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