RedPanda-CPP/RedPandaIDE/mainwindow.h

660 lines
18 KiB
C
Raw Normal View History

2021-04-06 23:10:57 +08:00
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QFileSystemWatcher>
2021-04-06 23:10:57 +08:00
#include <QMainWindow>
2021-08-30 22:05:45 +08:00
#include <QTimer>
2021-10-22 07:42:51 +08:00
#include <QFileSystemModel>
#include <QTcpServer>
2021-04-24 15:57:45 +08:00
#include "common.h"
2021-08-05 12:31:53 +08:00
#include "widgets/searchresultview.h"
2021-08-23 17:27:17 +08:00
#include "widgets/classbrowser.h"
#include "widgets/codecompletionpopup.h"
#include "widgets/headercompletionpopup.h"
2021-09-24 11:41:14 +08:00
#include "widgets/functiontooltipwidget.h"
2021-09-02 12:14:02 +08:00
#include "caretlist.h"
#include "symbolusagemanager.h"
2021-09-30 12:52:22 +08:00
#include "codesnippetsmanager.h"
2021-10-03 17:18:43 +08:00
#include "todoparser.h"
2021-10-08 00:06:41 +08:00
#include "toolsmanager.h"
#include "widgets/labelwithmenu.h"
2021-10-21 17:31:25 +08:00
#include "widgets/bookmarkmodel.h"
2021-11-01 00:40:11 +08:00
#include "widgets/ojproblemsetmodel.h"
2021-10-08 00:06:41 +08:00
2021-04-06 23:10:57 +08:00
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
2021-07-20 15:16:52 +08:00
enum class CompileTarget {
Invalid, None, File, Project, SyntaxCheck
};
2021-11-01 20:44:08 +08:00
enum class RunType {
Normal,
CurrentProblemCase,
ProblemCases
};
2021-04-07 21:13:15 +08:00
class EditorList;
class QLabel;
2021-04-18 11:41:41 +08:00
class QComboBox;
2021-04-20 22:24:33 +08:00
class CompilerManager;
2021-06-24 20:43:09 +08:00
class Editor;
2021-07-23 13:22:05 +08:00
class Debugger;
2021-07-26 11:47:54 +08:00
class CPUDialog;
2021-08-01 10:00:27 +08:00
class QPlainTextEdit;
2021-08-03 23:55:57 +08:00
class SearchDialog;
2021-09-11 11:42:20 +08:00
class Project;
class ColorSchemeItem;
2021-04-07 21:13:15 +08:00
2021-04-06 23:10:57 +08:00
class MainWindow : public QMainWindow
{
Q_OBJECT
2021-06-25 12:40:11 +08:00
enum class CompileSuccessionTaskType {
None,
RunNormal,
RunProblemCases,
RunCurrentProblemCase,
2021-06-25 12:40:11 +08:00
Debug,
Profile
};
struct CompileSuccessionTask {
CompileSuccessionTaskType type;
QString filename;
};
using PCompileSuccessionTask = std::shared_ptr<CompileSuccessionTask>;
struct TabWidgetInfo {
int order;
QString text;
QIcon icon;
};
using PTabWidgetInfo = std::shared_ptr<TabWidgetInfo>;
2021-04-06 23:10:57 +08:00
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
void updateForEncodingInfo();
void updateStatusbarForLineCol();
void updateForStatusbarModeInfo();
2021-08-30 22:05:45 +08:00
void updateStatusbarMessage(const QString& s);
2021-06-07 11:02:03 +08:00
void updateEditorSettings();
void updateEditorActions();
void updateProjectActions();
2021-07-01 19:44:38 +08:00
void updateCompileActions();
2021-06-20 14:30:47 +08:00
void updateEditorColorSchemes();
2021-06-24 20:43:09 +08:00
void updateCompilerSet();
2021-08-01 23:24:37 +08:00
void updateDebuggerSettings();
2021-06-24 20:43:09 +08:00
void checkSyntaxInBack(Editor* e);
2021-06-25 12:40:11 +08:00
bool compile(bool rebuild=false);
2021-11-01 20:44:08 +08:00
void runExecutable(const QString& exeName, const QString& filename=QString(),RunType runType = RunType::Normal);
void runExecutable(RunType runType = RunType::Normal);
2021-07-23 13:22:05 +08:00
void debug();
void showSearchPanel(bool showReplace = false);
2021-11-25 09:05:45 +08:00
void showCPUInfoDialog();
2021-06-18 21:48:40 +08:00
void applySettings();
void applyUISettings();
QFileSystemWatcher* fileSystemWatcher();
2021-06-18 21:48:40 +08:00
2021-07-26 00:22:08 +08:00
void removeActiveBreakpoints();
void updateAppTitle();
2021-07-26 11:47:54 +08:00
void addDebugOutput(const QString& text);
2021-07-30 23:28:58 +08:00
void changeDebugOutputLastline(const QString& text);
2021-08-01 23:24:37 +08:00
void updateDebugEval(const QString& value);
2021-08-02 10:08:25 +08:00
void rebuildOpenedFileHisotryMenu();
2021-08-23 17:27:17 +08:00
void updateClassBrowserForEditor(Editor* editor);
2021-08-30 22:05:45 +08:00
void resetAutoSaveTimer();
2021-10-06 23:19:18 +08:00
void updateShortcuts();
void saveLastOpens();
void loadLastOpens();
2021-10-08 00:06:41 +08:00
void updateTools();
void openFiles(const QStringList& files);
void newEditor();
2021-08-01 10:00:27 +08:00
QPlainTextEdit* txtLocals();
Ui::MainWindow* mainWidget() const;
2021-07-26 18:22:09 +08:00
CPUDialog *cpuDialog() const;
2021-07-26 00:22:08 +08:00
2021-08-01 09:13:38 +08:00
Debugger *debugger() const;
2021-08-03 23:55:57 +08:00
EditorList *editorList() const;
SearchDialog *searchDialog() const;
2021-08-05 12:31:53 +08:00
SearchResultModel* searchResultModel();
const std::shared_ptr<CodeCompletionPopup> &completionPopup() const;
const std::shared_ptr<HeaderCompletionPopup> &headerCompletionPopup() const;
2021-09-24 11:41:14 +08:00
const std::shared_ptr<FunctionTooltipWidget> &functionTip() const;
2021-09-02 12:14:02 +08:00
CaretList &caretList();
void updateCaretActions();
2021-09-11 18:42:49 +08:00
std::shared_ptr<Project> project();
const std::shared_ptr<QHash<StatementKind, std::shared_ptr<ColorSchemeItem> > > &statementColors() const;
2021-09-25 23:12:36 +08:00
PSymbolUsageManager &symbolUsageManager();
2021-09-30 12:52:22 +08:00
PCodeSnippetManager &codeSnippetManager();
2021-10-03 17:18:43 +08:00
const PTodoParser &todoParser() const;
2021-10-08 00:06:41 +08:00
const PToolsManager &toolsManager() const;
bool shouldRemoveAllSettings() const;
2021-10-21 17:31:25 +08:00
const PBookmarkModel &bookmarkModel() const;
void openFile(const QString& filename, QTabWidget* page=nullptr);
void openProject(const QString& filename);
2021-10-24 17:31:20 +08:00
void changeOptions(const QString& widgetName=QString(), const QString& groupName=QString());
bool openningFiles() const;
2021-08-30 22:05:45 +08:00
public slots:
void onCompileLog(const QString& msg);
void onCompileIssue(PCompileIssue issue);
void onCompileStarted();
void onCompileFinished(bool isCheckSyntax);
2021-08-30 22:05:45 +08:00
void onCompileErrorOccured(const QString& reason);
void onRunErrorOccured(const QString& reason);
void onRunFinished();
2021-11-01 20:44:08 +08:00
void onRunProblemFinished();
void onOJProblemCaseStarted(const QString& id, int current, int total);
void onOJProblemCaseFinished(const QString& id, int current, int total);
2021-08-30 22:05:45 +08:00
void cleanUpCPUDialog();
void onDebugCommandInput(const QString& command);
void onDebugEvaluateInput();
void onDebugMemoryAddressInput();
2021-08-30 22:05:45 +08:00
void onParserProgress(const QString& fileName, int total, int current);
void onStartParsing();
void onEndParsing(int total, int updateView);
void onEvalValueReady(const QString& value);
void onMemoryExamineReady(const QStringList& value);
void onLocalsReady(const QStringList& value);
void onEditorContextMenu(const QPoint& pos);
void onEditorRightTabContextMenu(const QPoint& pos);
void onEditorLeftTabContextMenu(const QPoint& pos);
void onEditorTabContextMenu(QTabWidget* tabWidget, const QPoint& pos);
void disableDebugActions();
void enableDebugActions();
2021-10-21 08:04:41 +08:00
void onTodoParseStarted(const QString& filename);
2021-10-03 17:18:43 +08:00
void onTodoParsing(const QString& filename, int lineNo, int ch, const QString& line);
void onTodoParseFinished();
2021-11-24 17:53:25 +08:00
void setActiveBreakpoint(QString FileName, int Line, bool setFocus);
private:
void prepareProjectForCompile();
2021-09-11 18:42:49 +08:00
void closeProject(bool refreshEditor);
void updateProjectView();
2021-08-30 22:05:45 +08:00
CompileTarget getCompileTarget();
bool debugInferiorhasBreakpoint();
void setupActions();
void openCloseBottomPanel(bool open);
void openCloseLeftPanel(bool open);
2021-08-30 22:05:45 +08:00
void prepareDebugger();
void doAutoSave(Editor *e);
void buildContextMenus();
void buildEncodingMenu();
void maximizeEditor();
void openShell(const QString& folder, const QString& shellCommand);
QAction* createActionFor(const QString& text,
QWidget* parent,
QKeySequence shortcut=QKeySequence());
2021-09-11 18:42:49 +08:00
void scanActiveProject(bool parse=false);
void includeOrSkipDirs(const QStringList& dirs, bool skip);
void showSearchReplacePanel(bool show);
2021-10-22 15:02:54 +08:00
void setFilesViewRoot(const QString& path);
void clearIssues();
void doCompileRun(RunType runType);
void updateProblemCaseOutput(POJProblemCase problemCase);
void applyCurrentProblemCaseChanges();
void updateEditorParser(QTabWidget* tabWidget);
void updateEditorHideTime(QTabWidget* tabWidget);
void showHideInfosTab(QWidget *widget, bool show);
void showHideMessagesTab(QWidget *widget, bool show);
void prepareTabInfosData();
void prepareTabMessagesData();
void newProjectUnitFile();
2021-04-07 21:13:15 +08:00
private slots:
2021-08-30 22:05:45 +08:00
void onAutoSaveTimeout();
void onFileChanged(const QString& path);
2021-08-30 22:05:45 +08:00
void onWatchViewContextMenu(const QPoint& pos);
2021-10-21 17:31:25 +08:00
void onBookmarkContextMenu(const QPoint& pos);
void onTableIssuesContextMenu(const QPoint& pos);
void onSearchViewContextMenu(const QPoint& pos);
void onBreakpointsViewContextMenu(const QPoint& pos);
void onProjectViewContextMenu(const QPoint& pos);
2021-09-26 16:25:17 +08:00
void onClassBrowserContextMenu(const QPoint& pos);
void onDebugConsoleContextMenu(const QPoint& pos);
void onFileEncodingContextMenu(const QPoint& pos);
2021-10-22 15:02:54 +08:00
void onFilesViewContextMenu(const QPoint& pos);
void onLstProblemSetContextMenu(const QPoint& pos);
2021-11-01 00:40:11 +08:00
void onProblemSetIndexChanged(const QModelIndex &current, const QModelIndex &previous);
void onProblemCaseIndexChanged(const QModelIndex &current, const QModelIndex &previous);
void onProblemNameChanged(int index);
void onNewProblemConnection();
void onEditorClosed();
void onShowInsertCodeSnippetMenu();
2021-04-07 21:13:15 +08:00
void on_actionNew_triggered();
2021-04-07 22:44:08 +08:00
void on_EditorTabsLeft_tabCloseRequested(int index);
void on_EditorTabsRight_tabCloseRequested(int index);
2021-04-07 22:44:08 +08:00
void on_actionOpen_triggered();
void on_actionSave_triggered();
void on_actionSaveAs_triggered();
2021-04-16 22:04:48 +08:00
void on_actionOptions_triggered();
2021-04-18 11:41:41 +08:00
// qt will auto bind slots with the prefix "on_"
void onCompilerSetChanged(int index);
2021-04-20 22:24:33 +08:00
void on_actionCompile_triggered();
void on_actionRun_triggered();
void on_actionUndo_triggered();
void on_actionRedo_triggered();
void on_actionCut_triggered();
void on_actionSelectAll_triggered();
void on_actionCopy_triggered();
void on_actionPaste_triggered();
void on_actionIndent_triggered();
void on_actionUnIndent_triggered();
2021-04-24 15:57:45 +08:00
void on_actionToggleComment_triggered();
void on_actionUnfoldAll_triggered();
void on_actionFoldAll_triggered();
2021-04-29 20:54:44 +08:00
void on_tableIssues_doubleClicked(const QModelIndex &index);
void on_actionEncode_in_ANSI_triggered();
void on_actionEncode_in_UTF_8_triggered();
void on_actionAuto_Detect_triggered();
void on_actionConvert_to_ANSI_triggered();
void on_actionConvert_to_UTF_8_triggered();
2021-06-23 22:38:02 +08:00
void on_tabMessages_tabBarClicked(int index);
void on_tabMessages_currentChanged(int index);
void on_tabMessages_tabBarDoubleClicked(int index);
2021-06-25 12:40:11 +08:00
void on_actionCompile_Run_triggered();
void on_actionRebuild_triggered();
void on_actionStop_Execution_triggered();
2021-07-20 15:16:52 +08:00
void on_actionDebug_triggered();
2021-07-31 14:04:43 +08:00
void on_actionStep_Over_triggered();
void on_actionStep_Into_triggered();
void on_actionStep_Out_triggered();
void on_actionRun_To_Cursor_triggered();
void on_actionContinue_triggered();
2021-08-01 01:06:43 +08:00
void on_actionAdd_Watch_triggered();
2021-08-01 23:24:37 +08:00
void on_actionView_CPU_Window_triggered();
2021-08-02 10:08:25 +08:00
void on_actionExit_triggered();
2021-08-03 23:55:57 +08:00
void on_actionFind_triggered();
void on_actionFind_in_files_triggered();
void on_actionReplace_triggered();
void on_actionFind_Next_triggered();
void on_actionFind_Previous_triggered();
2021-08-05 19:58:32 +08:00
void on_cbSearchHistory_currentIndexChanged(int index);
void on_btnSearchAgain_clicked();
void on_actionRemove_Watch_triggered();
void on_actionRemove_All_Watches_triggered();
void on_actionModify_Watch_triggered();
2021-09-02 12:14:02 +08:00
void on_actionReformat_Code_triggered();
void on_actionBack_triggered();
void on_actionForward_triggered();
void on_tabInfos_tabBarClicked(int index);
void on_splitterInfos_splitterMoved(int pos, int index);
void on_splitterMessages_splitterMoved(int pos, int index);
void on_EditorTabsLeft_tabBarDoubleClicked(int index);
void on_EditorTabsRight_tabBarDoubleClicked(int index);
void on_actionClose_triggered();
void on_actionClose_All_triggered();
void on_actionMaximize_Editor_triggered();
void on_actionNext_Editor_triggered();
void on_actionPrevious_Editor_triggered();
void on_actionToggle_Breakpoint_triggered();
void on_actionClear_all_breakpoints_triggered();
void on_actionBreakpoint_property_triggered();
2021-09-03 11:50:04 +08:00
void on_actionGoto_Declaration_triggered();
void on_actionGoto_Definition_triggered();
void on_actionFind_references_triggered();
void on_actionOpen_Containing_Folder_triggered();
void on_actionOpen_Terminal_triggered();
void on_actionFile_Properties_triggered();
void on_searchView_doubleClicked(const QModelIndex &index);
void on_tblStackTrace_doubleClicked(const QModelIndex &index);
void on_tblBreakpoints_doubleClicked(const QModelIndex &index);
2021-09-12 00:17:15 +08:00
void on_projectView_doubleClicked(const QModelIndex &index);
2021-09-12 01:01:34 +08:00
void on_actionClose_Project_triggered();
2021-09-14 17:33:47 +08:00
void on_actionProject_options_triggered();
2021-09-16 23:51:05 +08:00
void on_actionNew_Project_triggered();
void on_actionSaveAll_triggered();
2021-09-17 13:35:50 +08:00
void on_actionProject_New_File_triggered();
void on_actionAdd_to_project_triggered();
2021-09-17 17:15:35 +08:00
void on_actionRemove_from_project_triggered();
2021-09-17 19:58:37 +08:00
void on_actionView_Makefile_triggered();
void on_actionMakeClean_triggered();
void on_actionProject_Open_Folder_In_Explorer_triggered();
void on_actionProject_Open_In_Terminal_triggered();
2021-09-26 12:19:46 +08:00
void on_classBrowser_doubleClicked(const QModelIndex &index);
2021-10-03 17:18:43 +08:00
void on_EditorTabsLeft_currentChanged(int index);
void on_EditorTabsRight_currentChanged(int index);
void on_tableTODO_doubleClicked(const QModelIndex &index);
2021-10-03 23:12:20 +08:00
void on_actionAbout_triggered();
2021-10-04 11:07:35 +08:00
void on_actionRename_Symbol_triggered();
void on_btnReplace_clicked();
void on_btnCancelReplace_clicked();
2021-10-07 07:52:20 +08:00
void on_actionPrint_triggered();
void on_actionExport_As_RTF_triggered();
void on_actionExport_As_HTML_triggered();
void on_actionMove_To_Other_View_triggered();
void on_actionC_C_Reference_triggered();
void on_actionEGE_Manual_triggered();
2021-10-21 17:31:25 +08:00
void on_actionAdd_bookmark_triggered();
void on_actionRemove_Bookmark_triggered();
void on_tableBookmark_doubleClicked(const QModelIndex &index);
void on_actionModify_Bookmark_Description_triggered();
2021-10-22 15:02:54 +08:00
void on_actionLocate_in_Files_View_triggered();
void on_treeFiles_doubleClicked(const QModelIndex &index);
void on_actionOpen_Folder_triggered();
2021-10-24 17:31:20 +08:00
void on_actionRun_Parameters_triggered();
2021-11-01 00:40:11 +08:00
void on_btnNewProblemSet_clicked();
void on_btnAddProblem_clicked();
void on_btnRemoveProblem_clicked();
void on_btnSaveProblemSet_clicked();
void on_btnLoadProblemSet_clicked();
void on_btnAddProblemCase_clicked();
2021-11-01 20:44:08 +08:00
void on_btnRunAllProblemCases_clicked();
void on_actionC_Reference_triggered();
void on_btnRemoveProblemCase_clicked();
void on_btnOpenProblemAnswer_clicked();
void on_actionTool_Window_Bars_triggered();
void on_actionStatus_Bar_triggered();
void on_actionProject_triggered();
void on_actionWatch_triggered();
void on_actionStructure_triggered();
void on_actionFiles_triggered();
void on_actionProblem_Set_triggered();
void on_actionIssues_triggered();
void on_actionCompile_Log_triggered();
void on_actionDebug_Window_triggered();
void on_actionSearch_triggered();
void on_actionTODO_triggered();
void on_actionBookmark_triggered();
void on_actionProblem_triggered();
void on_actionDelete_Line_triggered();
void on_actionDuplicate_Line_triggered();
void on_actionDelete_Word_triggered();
void on_actionDelete_to_EOL_triggered();
void on_actionDelete_to_BOL_triggered();
void on_btnCaseValidateOptions_clicked();
2021-04-06 23:10:57 +08:00
private:
Ui::MainWindow *ui;
2021-08-01 09:13:38 +08:00
EditorList *mEditorList;
QLabel *mFileInfoStatus;
LabelWithMenu *mFileEncodingStatus;
2021-08-01 09:13:38 +08:00
QLabel *mFileModeStatus;
QMenu *mMenuEncoding;
QMenu *mMenuExport;
2021-08-01 09:13:38 +08:00
QMenu *mMenuEncodingList;
2021-08-02 10:08:25 +08:00
QMenu *mMenuRecentFiles;
QMenu *mMenuRecentProjects;
2021-09-16 23:51:05 +08:00
QMenu *mMenuNew;
QMenu *mMenuInsertCodeSnippet;
2021-08-01 09:13:38 +08:00
QComboBox *mCompilerSet;
CompilerManager *mCompilerManager;
Debugger *mDebugger;
CPUDialog *mCPUDialog;
2021-08-03 23:55:57 +08:00
SearchDialog *mSearchDialog;
2021-08-23 17:27:17 +08:00
bool mQuitting;
2021-08-27 16:38:55 +08:00
QElapsedTimer mParserTimer;
QFileSystemWatcher mFileSystemWatcher;
2021-09-11 18:42:49 +08:00
std::shared_ptr<Project> mProject;
2021-07-23 13:22:05 +08:00
std::shared_ptr<CodeCompletionPopup> mCompletionPopup;
std::shared_ptr<HeaderCompletionPopup> mHeaderCompletionPopup;
2021-09-24 11:41:14 +08:00
std::shared_ptr<FunctionTooltipWidget> mFunctionTip;
2021-10-03 17:18:43 +08:00
TodoModel mTodoModel;
2021-08-05 12:31:53 +08:00
SearchResultModel mSearchResultModel;
2021-10-21 17:31:25 +08:00
PBookmarkModel mBookmarkModel;
2021-08-05 12:31:53 +08:00
PSearchResultListModel mSearchResultListModel;
PSearchResultTreeModel mSearchResultTreeModel;
PSearchResultTreeViewDelegate mSearchViewDelegate;
2021-08-23 17:27:17 +08:00
ClassBrowserModel mClassBrowserModel;
std::shared_ptr<QHash<StatementKind, std::shared_ptr<ColorSchemeItem> > > mStatementColors;
PSymbolUsageManager mSymbolUsageManager;
2021-09-30 12:52:22 +08:00
PCodeSnippetManager mCodeSnippetManager;
2021-10-03 17:18:43 +08:00
PTodoParser mTodoParser;
2021-10-08 00:06:41 +08:00
PToolsManager mToolsManager;
2021-10-22 07:42:51 +08:00
QFileSystemModel mFileSystemModel;
2021-11-01 00:40:11 +08:00
OJProblemSetModel mOJProblemSetModel;
OJProblemModel mOJProblemModel;
int mOJProblemSetNameCounter;
2021-08-05 12:31:53 +08:00
2021-06-23 22:38:02 +08:00
bool mCheckSyntaxInBack;
bool mOpenClosingBottomPanel;
int mBottomPanelHeight;
bool mBottomPanelOpenned;
bool mOpenClosingLeftPanel;
int mLeftPanelWidth;
bool mLeftPanelOpenned;
bool mShouldRemoveAllSettings;
2021-06-25 12:40:11 +08:00
PCompileSuccessionTask mCompileSuccessionTask;
2021-04-20 22:24:33 +08:00
QMap<QWidget*, PTabWidgetInfo> mTabInfosData;
QMap<QWidget*, PTabWidgetInfo> mTabMessagesData;
2021-08-30 22:05:45 +08:00
QTimer mAutoSaveTimer;
2021-09-02 12:14:02 +08:00
CaretList mCaretList;
bool mClosing;
bool mOpenningFiles;
bool mSystemTurnedOff;
QPoint mEditorContextMenuPos;
QTcpServer mTcpServer;
QColor mErrorColor;
2021-09-05 19:10:54 +08:00
//actions for compile issue table
QAction * mTableIssuesCopyAction;
QAction * mTableIssuesCopyAllAction;
QAction * mTableIssuesClearAction;
//actions for search result view
QAction * mSearchViewClearAction;
QAction * mSearchViewClearAllAction;
//actions for breakpoint view
QAction * mBreakpointViewPropertyAction;
QAction * mBreakpointViewRemoveAllAction;
QAction * mBreakpointViewRemoveAction;
//actions for project view
QAction * mProject_Add_Folder;
QAction * mProject_Rename_Unit;
QAction * mProject_Rename_Folder;
QAction * mProject_Remove_Folder;
2021-09-26 12:19:46 +08:00
//actions for class browser
QAction * mClassBrowser_Sort_By_Type;
QAction * mClassBrowser_Sort_By_Name;
2021-09-26 16:25:17 +08:00
QAction * mClassBrowser_Show_Inherited;
2021-09-26 12:19:46 +08:00
QAction * mClassBrowser_goto_declaration;
QAction * mClassBrowser_goto_definition;
2021-09-26 16:25:17 +08:00
QWidget * mClassBrowserToolbar;
2021-10-22 07:42:51 +08:00
//actions for files view
QAction * mFilesView_Open;
QAction * mFilesView_OpenWithExternal;
QAction * mFilesView_OpenInTerminal;
QAction * mFilesView_OpenInExplorer;
QWidget * mFilesViewToolbar;
//action for debug console
QAction * mDebugConsole_ShowDetailLog;
QAction * mDebugConsole_Clear;
QAction * mDebugConsole_Copy;
QAction * mDebugConsole_Paste;
QAction * mDebugConsole_SelectAll;
2021-10-21 17:31:25 +08:00
//action for bookmarks
QAction * mBookmark_Remove;
QAction * mBookmark_RemoveAll;
QAction * mBookmark_Modify;
//action for problem set
QAction * mProblem_Properties;
2021-04-09 17:48:25 +08:00
// QWidget interface
protected:
void closeEvent(QCloseEvent *event) override;
void showEvent(QShowEvent* event) override;
void hideEvent(QHideEvent *event) override;
2021-04-06 23:10:57 +08:00
};
extern MainWindow* pMainWindow;
2021-04-06 23:10:57 +08:00
#endif // MAINWINDOW_H