VR-Exchange 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 <QtGui/QAbstractButton>
14 #include <QtGui/QDialog>
15 #include <QtGui/QLabel>
16 #include <list>
17 
18 class QDialogButtonBox;
19 class QListWidgetItem;
20 class QStackedWidget;
21 class QPushButton;
22 class QListWidget;
23 class QMenuBar;
24 class QFrame;
25 class QMenu;
26 
27 namespace MAKVrExchange
28 {
29 
33  { Q_OBJECT;
34  public:
35 
37  DtDialogPager( QWidget* parent, Qt::WindowFlags f = Qt::Tool );
38 
40  virtual ~DtDialogPager();
41 
43  virtual void addPage( QWidget* page, QIcon icon,
44  QString label, bool showTabs );
45 
47  virtual void hidePage( const std::string& name );
48 
50  virtual void showPage( const std::string& name );
51 
53  virtual void setCurrentPage( const std::string& name );
54 
56  virtual void setCurrentPage( int index );
57 
58  signals:
59 
60  void closed();
61 
62  protected slots:
63 
66 
67  virtual void on_myContentsWidget_currentItemChanged(
68  QListWidgetItem* current, QListWidgetItem* previous );
69  virtual void on_myPagesWidget_currentChanged( int index );
70 
71  virtual void escPressed();
72  virtual void buttonClicked( QAbstractButton* );
73  virtual void enterPressed();
74  virtual void applied();
75 
77 
78  protected:
79 
82  void setupGui();
83 
86  void connectToSignals();
87 
88  protected:
89 
90  typedef std::pair<QString, QString> TabDefinition;
91  typedef std::vector<TabDefinition> TabList;
92  typedef std::list<QListWidgetItem*> ListItems;
93 
94  QListWidget* myContentsWidget;
96  QStackedWidget* myPagesWidget;
98  QDialogButtonBox* myButtonBox;
100 
101  };
102 
103 }

Document ID: Generated on Thu Jul 23 10:25:22 EDT 2015 from SVN revision 155065
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)