MAK Data Logger API Documentation for DIS
 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-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #ifndef lgrMainWindow_H_
10 #define lgrMainWindow_H_
11 
12 #include <lgrGui/lgrGui.h>
13 
14 #include <QtGui/QMainWindow>
15 
16 #include <commonWidgets/dynamicMenuBar.h>
17 #include <list>
18 
19 class QProgressDialog;
20 class DtString;
21 class DtFilename;
22 
23 namespace MAKLogger
24 {
25 
26  class DtLgrMenu;
27  class DtLgrGuiModel;
28 
31  {
32  Q_OBJECT
33  public:
34 
37 
39  virtual ~DtLgrMainWindow();
40 
43  virtual void saveGuiConfiguration(bool forceSave=false);
44 
46  virtual void loadGuiConfiguration();
47 
51  virtual bool getConfigurationDirectory(DtFilename& configPath, bool makeDirEnabled);
52 
54  virtual void updateTitleBar(const DtString loggerName);
55 
59  bool yesNoQuestion(QString question);
60 
65  int yesNoCancelQuestion(QString question);
66 
69  void errorMessage(QString message);
70 
72  void showProgress(QString name,bool canBeCanceled);
73 
75  void updateProgress(QString msg,int progress);
76 
78  void finishProgress();
79 
81  const DtLgrGuiModel* guiModel() const;
82 
84  MAKCommonWidgets::DtDynamicMenuBar& dynamicMenuBar();
85 
86  void addMenu( QString previousMenuName, DtLgrMenu* menu );
87 
88  static QString theTitleBarText;
89  static QString theShortTitleBarText;
90  static QString theGuiConfigFileName;
91 
93  virtual void setVisible(bool on);
94 
95  public slots:
96  virtual void show();
97 
98  protected:
99 
100  void closeEvent(QCloseEvent* ce);
101  void printMessage(const DtString& message);
102  void closeMainWindow(const bool& closeFlag);
103  bool savedState();
104 
106  MAKCommonWidgets::DtDynamicMenuBar* myMenuBar;
107  QProgressDialog* myProgressDialog;
109 
111 
112  };
113 
114 }
115 
116 #endif

Document ID: Generated on Thu Apr 7 20:50:59 EDT 2016 from SVN revision 163818
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)