1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
---|---|
2 | // |
3 | // SPDX-License-Identifier: GPL-3.0-or-later |
4 | |
5 | #ifndef WINDOWELEMENT_H |
6 | #define WINDOWELEMENT_H |
7 | |
8 | #include <QAction> |
9 | #include <QMenu> |
10 | #include <QDialog> |
11 | #include <QTabWidget> |
12 | |
13 | // window display elements |
14 | // MW = MainWindow |
15 | namespace dpfservice { |
16 | |
17 | inline const int MW_MIN_WIDTH { 1200 }; |
18 | inline const int MW_MIN_HEIGHT { 800 }; |
19 | |
20 | inline const QString MWNA_RECENT { QAction::tr("Recent") }; |
21 | inline const QString MWNA_EDIT { QAction::tr("Edit") }; |
22 | inline const QString MWNA_DEBUG { QAction::tr("Debug") }; |
23 | inline const QString MWNA_RUNTIME { QAction::tr("Runtime") }; |
24 | |
25 | inline const QString MWM_FILE { QMenu::tr("&File") }; |
26 | inline const QString MWMFA_CXX { "C/C++"}; |
27 | inline const QString MWMFA_JAVA { "Java"}; |
28 | inline const QString MWMFA_PYTHON { "Python"}; |
29 | inline const QString MWMFA_DOCUMENT_NEW { QAction::tr("New Document") }; |
30 | inline const QString MWMFA_FOLDER_NEW { QAction::tr("New Folder") }; |
31 | inline const QString MWMFA_OPEN_PROJECT { QAction::tr("Open Project") }; |
32 | inline const QString MWMFA_OPEN_DOCUMENT { QAction::tr("Open Document") }; |
33 | inline const QString MWMFA_OPEN_FILE { QAction::tr("Open File") }; |
34 | inline const QString MWMFA_OPEN_RECENT_DOCUMENTS { QAction::tr("Open Recent Documents") }; |
35 | inline const QString MWMFA_OPEN_RECENT_FOLDER { QAction::tr("Open Recent Folders") }; |
36 | inline const QString MWMFA_NEW_FILE_OR_PROJECT { QAction::tr("New File or Project") }; |
37 | inline const QString MWMFA_QUIT { QAction::tr("Quit") }; |
38 | |
39 | inline const QString MWM_BUILD { QMenu::tr("&Build") }; |
40 | inline const QString MWMBA_BUILD { QAction::tr("Build") }; |
41 | inline const QString MWMBA_REBUILD { QAction::tr("Rebuild") }; |
42 | inline const QString MWMBA_CLEAN { QAction::tr("Clean") }; |
43 | inline const QString MWMBA_CANCEL { QAction::tr("Cancel") }; |
44 | |
45 | inline const QString MWM_DEBUG { QMenu::tr("&Debug") }; |
46 | inline const QString MWMDA_START_DEBUG { QAction::tr("Start Debugging") }; |
47 | inline const QString MWMDA_RUNNING { QAction::tr("Running") }; |
48 | inline const QString MWMDA_INTERRUPT { QAction::tr("Interrupt") }; |
49 | inline const QString MWMDA_CONTINUE { QAction::tr("Continue") }; |
50 | inline const QString MWMDA_ABORT_DEBUGGING { QAction::tr("Abort Debugging") }; |
51 | inline const QString MWMDA_RESTART_DEBUGGING { QAction::tr("Restart Debugging") }; |
52 | inline const QString MWMDA_STEP_OVER { QAction::tr("Step Over") }; |
53 | inline const QString MWMDA_STEP_IN { QAction::tr("Step In") }; |
54 | inline const QString MWMDA_STEP_OUT { QAction::tr("Step Out") }; |
55 | |
56 | inline const QString MWM_TOOLS { QMenu::tr("&Tools") }; |
57 | inline const QString MWMTA_SEARCH { QAction::tr("Search") }; |
58 | inline const QString MWMTA_PACKAGE_TOOLS { QAction::tr("Package Tools") }; |
59 | inline const QString MWMTA_VERSION_TOOLS { QAction::tr("Version Tools") }; |
60 | inline const QString MWMTA_CODE_FORMATTING { QAction::tr("Code Formatting") }; |
61 | inline const QString MWMTA_RUNTIME_ANALYSIS { QAction::tr("Runtime Analysis") }; |
62 | inline const QString MWMTA_TEST { QAction::tr("Test") }; |
63 | inline const QString MWMTA_PLUGINS { QAction::tr("Plugins") }; |
64 | inline const QString MWMTA_OPTIONS { QAction::tr("Options") }; |
65 | inline const QString MWMTM_SWITCH_LANGUAGE { QMenu::tr("Switch language") }; |
66 | inline const QString MWMTA_ENGLISH { QAction::tr("English") }; |
67 | inline const QString MWMTA_CHINESE { QAction::tr("Chinese") }; |
68 | inline const QString MWMTA_USR_ACTION_ANALYZE { QAction::tr("User Action Analyse")}; |
69 | inline const QString MWMTA_BINARY_TOOLS { QAction::tr("Binary Tools")}; |
70 | |
71 | |
72 | inline const QString MWM_HELP { QMenu::tr("&Help") }; |
73 | inline const QString MWM_REPORT_BUG { QAction::tr("Report Bug") }; |
74 | inline const QString MWM_HELP_DOCUMENTS { QAction::tr("Help Documents") }; |
75 | inline const QString MWM_ABOUT { QAction::tr("About") }; |
76 | inline const QString MWM_ABOUT_PLUGINS { QAction::tr("About Plugins...")}; |
77 | |
78 | inline const QString DIALOG_OPEN_DOCUMENT_TITLE { QDialog::tr("Open Document") }; |
79 | inline const QString CONSOLE_TAB_TEXT { QTabWidget::tr("&Console") }; |
80 | |
81 | inline const QString MWM_ANALYZE { QMenu::tr("&Analyze")}; |
82 | inline const QString MWMAA_VALGRIND_MEMCHECK { QAction::tr("Valgrind Memcheck")}; |
83 | inline const QString MWMAA_VALGRIND_HELGRIND { QAction::tr("Valgrind Helgrind")}; |
84 | } // namespace dpfservice |
85 | |
86 | #endif // WINDOWELEMENT_H |
87 |