VR-Exchange 2.7 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dialogPager.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2015 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <widgets/dllExport.h>
13 #include <QAbstractButton>
14 #include <QDialog>
15 #include <QLabel>
16 #include <list>
17 #include <map>
18 
19 class QDialogButtonBox;
20 class QListWidgetItem;
21 class QStackedWidget;
22 class QPushButton;
23 class QListWidget;
24 class QMenuBar;
25 class QFrame;
26 class QMenu;
27 
28 namespace MAKVrExchange
29 {
30 
34  { Q_OBJECT;
35  public:
36 
38  DtDialogPager( QWidget* parent, Qt::WindowFlags f = Qt::Tool );
39 
41  virtual ~DtDialogPager();
42 
44  virtual void addPage( QWidget* page, const QIcon& icon,
45  const QString& label, bool showTabs );
46 
48  virtual void hidePage( const std::string& name );
49 
51  virtual void showPage( const std::string& name );
52 
54  virtual void setCurrentPage( const std::string& name );
55 
57  virtual void setCurrentPage( int index );
58 
59  signals:
60 
61  void closed();
62 
63  protected slots:
64 
67 
68  virtual void on_myContentsWidget_currentItemChanged(
69  QListWidgetItem* current, QListWidgetItem* previous );
70  virtual void on_myPagesWidget_currentChanged( int index );
71 
72  virtual void escPressed();
73  virtual void buttonClicked( QAbstractButton* );
74  virtual void enterPressed();
75  virtual void applied();
76 
78 
79  protected:
80 
83  void setupGui();
84 
87  void connectToSignals();
88 
89  protected:
90 
91  typedef std::list<QListWidgetItem*> ListItems;
92  typedef std::map<std::string,QWidget*> PagesByNameMap;
93 
95  QListWidget* myContentsWidget;
97  QStackedWidget* myPagesWidget;
99  QDialogButtonBox* myButtonBox;
101 
102  };
103 
104 }
QStackedWidget * myPagesWidget
Definition: dialogPager.h:97
std::list< QListWidgetItem * > ListItems
Definition: dialogPager.h:91
QListWidget * myContentsWidget
Definition: dialogPager.h:95
The dialog pager is a dialog with a collection of pages.
Definition: dialogPager.h:33
QWidget * myLastWidget
Definition: dialogPager.h:98
PagesByNameMap myPagesByNameMap
Definition: dialogPager.h:94
#define DT_DLL_WIDGETS
Definition: include/widgets/dllExport.h:22
QSize myMaxItemSize
Definition: dialogPager.h:100
std::map< std::string, QWidget * > PagesByNameMap
Definition: dialogPager.h:92
ListItems myContentItems
Definition: dialogPager.h:96
QDialogButtonBox * myButtonBox
Definition: dialogPager.h:99

Document ID: Generated on Mon Apr 19 15:55:22 EDT 2021 from SVN revision 227909
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)