MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
assistantConfigDialog.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2017 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include "rtiMsConfig.h"
13 #include "assistantEnums.h"
14 #include <QDialog>
15 #include <vector>
16 #include <map>
17 
18 class QListWidget;
19 class QSignalMapper;
20 class QStackedWidget;
21 class QListWidgetItem;
22 class QDialogButtonBox;
24 
28 { Q_OBJECT;
29 public:
30 
32  DtAssistantConfigDialog( QWidget* parent = 0, Qt::WindowFlags f = 0 );
33 
35  virtual ~DtAssistantConfigDialog();
36 
40  virtual void addConfigWidget( DtAssistantConfigWidget* widget, const QIcon& icon,
41  const QString& name, DtPreferencesPage pageId );
42 
45  virtual void completeDialogSetup();
46 
48  virtual QWidget* configWidget( DtPreferencesPage pageId );
49 
51  virtual void setPage( DtPreferencesPage pageId );
52 
54  virtual QSize sizeHint() const;
55 
56 signals:
57 
59  void applied();
60 
61 public slots:
62 
64  virtual void changePage( QListWidgetItem* current, QListWidgetItem* previous );
65 
67  virtual void enableAccept( int );
68 
70  virtual void disableAccept( int );
71 
72 protected:
73 
75  virtual void enableOrDisableAccept();
76 
79  virtual void showEvent( QShowEvent* event );
80 
81 private:
82 
85 
87  DtAssistantConfigDialog& operator = ( const DtAssistantConfigDialog& );
88 
89 protected:
90 
93 
96  QListWidget* myContentsWidget;
97 
100  QStackedWidget* myPagesWidget;
101 
103  std::map<DtPreferencesPage,unsigned int> myPageNumbers;
104 
106  QDialogButtonBox* myButtonBox;
107 
109  std::vector<DtAssistantConfigWidget*> myConfigWidgets;
110 
113  std::vector<bool> myEnableAccept;
114 
117  std::vector<QString> myDisableAcceptReasons;
118 
121  QSignalMapper* myEnableAcceptMapper;
122 
124  QSignalMapper* myDisableAcceptMapper;
125 
128 
131 
132 };
QDialogButtonBox * myButtonBox
The dialogs button box.
Definition: assistantConfigDialog.h:106
DtPreferencesPage
Definition: assistantEnums.h:17
QSignalMapper * myDisableAcceptMapper
Maps signals from configuration widgets to disable the accept button.
Definition: assistantConfigDialog.h:124
int myCurrentPage
The current page.
Definition: assistantConfigDialog.h:127
bool myFirstShowing
The first time the dialog is shown, do some additional configuration.
Definition: assistantConfigDialog.h:130
std::vector< QString > myDisableAcceptReasons
The current reasons for each widget why acceptance of the dialog should not be allowed.
Definition: assistantConfigDialog.h:117
std::vector< DtAssistantConfigWidget * > myConfigWidgets
Widgets for each configuration page in the dialog.
Definition: assistantConfigDialog.h:109
QSignalMapper * myEnableAcceptMapper
Maps signals from configuration widgets to enable the accept button button.
Definition: assistantConfigDialog.h:121
bool myWasAccepted
Stores the acceptance state of the last execution.
Definition: assistantConfigDialog.h:92
Qt dialog which allows a user to change the Assistant configuration.
Definition: assistantConfigDialog.h:27
QListWidget * myContentsWidget
The contents panel which allows the user to select the configuration page they would like to view...
Definition: assistantConfigDialog.h:96
#define DT_DLL_ASSISTANTAPP
Definition: rtiMsConfig.h:151
std::map< DtPreferencesPage, unsigned int > myPageNumbers
Mapping of page IDs to page numbers.
Definition: assistantConfigDialog.h:103
QStackedWidget * myPagesWidget
The stacked widget which holds all of the configuration pages and displays the currently selected one...
Definition: assistantConfigDialog.h:100
std::vector< bool > myEnableAccept
The current settings for each widget on whether or not acceptance of the dialog should be allowed...
Definition: assistantConfigDialog.h:113
Widget which can be added as a configuration page to the DtAssistantConfigDialog. ...
Definition: assistantConfigWidget.h:18

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)