MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lgrMainWindow.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #ifndef lgrMainWindow_H_
10 #define lgrMainWindow_H_
11 
12 #include <lgrGui/lgrGui.h>
13 #include <commonWidgets/dynamicMenuBar.h>
14 #include <list>
15 
16 #include <QMainWindow>
17 
18 class QProgressDialog;
19 class DtString;
20 class DtFilename;
21 
22 namespace MAKLogger
23 {
24  class DtLgrMenu;
25  class DtLgrGuiModel;
26  class DtWidgetIconStyleManager;
27 
30  {
31  Q_OBJECT
32  Q_PROPERTY(QColor ActualIconPrimaryColor MEMBER myActualIconPrimaryColor USER true)
33  Q_PROPERTY(QColor NormalIconPrimaryColor MEMBER myNormalIconPrimaryColor USER true)
34  Q_PROPERTY(QColor DisabledIconPrimaryColor MEMBER myDisabledIconPrimaryColor USER true)
35  Q_PROPERTY(QColor SelectedIconPrimaryColor MEMBER mySelectedIconPrimaryColor USER true)
36  Q_PROPERTY(QColor ActiveIconPrimaryColor MEMBER myActiveIconPrimaryColor USER true)
37  public:
38 
41 
43  virtual ~DtLgrMainWindow();
44 
47  virtual void saveGuiConfiguration(bool forceSave=false);
48 
50  virtual void loadGuiConfiguration();
51 
55  virtual bool getConfigurationDirectory(DtFilename& configPath, bool makeDirEnabled);
56 
58  virtual void updateTitleBar(const DtString& loggerName);
59 
63  bool yesNoQuestion(const QString& question);
64 
69  int yesNoCancelQuestion(const QString& question);
70 
73  void errorMessage(const QString& message);
74 
76  void showProgress(const QString& name, bool canBeCanceled);
77 
79  void updateProgress(const QString& msg, int progress);
80 
82  void finishProgress();
83 
85  const DtLgrGuiModel* guiModel() const;
86 
88  MAKCommonWidgets::DtDynamicMenuBar& dynamicMenuBar();
89 
90  void addMenu( QString previousMenuName, DtLgrMenu* menu );
91 
92  static QString theTitleBarText;
93  static QString theShortTitleBarText;
94  static QString theGuiConfigFileName;
95 
97  virtual void setVisible(bool on);
98 
100  void setWidgetIconStyleManager(DtWidgetIconStyleManager* manager);
101 
103  DtWidgetIconStyleManager* widgetIconStyleManager();
104 
106  virtual std::vector<std::pair<QColor, QColor>> iconColorMappingsByMode(QIcon::Mode modeToGetMappingsFor) const;
107 
111  virtual void invalidateIconColorMappings();
112 
113  public slots:
114  virtual void show();
115 
116  protected:
117 
118  void closeEvent(QCloseEvent* ce);
119  void printMessage(const DtString& message);
120  void closeMainWindow(const bool& closeFlag);
121  bool savedState();
122 
124  virtual void dragEnterEvent(QDragEnterEvent* event) override;
125 
127  virtual void dropEvent(QDropEvent* event) override;
128 
129  DtLgrGuiModel* myGuiModel;
130  MAKCommonWidgets::DtDynamicMenuBar* myMenuBar;
131  QProgressDialog* myProgressDialog;
132  bool myAlreadySaved;
133 
134  bool myRegisteredFileDropFlag;
135 
136  QColor myActualIconPrimaryColor;
137  QColor myNormalIconPrimaryColor;
138  QColor myDisabledIconPrimaryColor;
139  QColor mySelectedIconPrimaryColor;
140  QColor myActiveIconPrimaryColor;
141 
142  DtWidgetIconStyleManager* myWidgetIconStyleManager;
143  };
144 
145 }
146 
147 #endif
Definition: lgrWidgetIconStyleManager.h:107
The logger GUI&#39;s model.
Definition: lgrGuiModel.h:56
The main window for the logger application.
Definition: lgrMainWindow.h:29
#define DT_DLL_LGRGUI
Definition: lgrGui.h:19
Defines INPORT/EXPORT macros for lgrGui library.
Abstract Menu which can be added to the MAKLogger::DtLgrMainWindow.
Definition: lgrMenu.h:26

Document ID: Generated on Thu Dec 18 15:35:09 EST 2025 from SVN revision 282494
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)