MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
widgetDialog.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2008 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: widgetDialog.h,v $ $Revision: 1.6 $ $State: Exp $
7 *******************************************************************************/
8 
11 
12 #ifndef widgetDialog_H_
13 #define widgetDialog_H_
14 
15 #include "rtiMsConfig.h"
16 #include <QtGui/QDialog>
17 #include <QtGui/QDialogButtonBox>
18 
19 class QVBoxLayout;
20 
25 {
26  Q_OBJECT
27 
28 public:
29 
31  DtWidgetDialog( QDialogButtonBox::StandardButtons buttons = QDialogButtonBox::Ok | QDialogButtonBox::Cancel,
32  QWidget* parent=0, Qt::WindowFlags f=0 );
33 
35  virtual ~DtWidgetDialog();
36 
40  virtual void setWidget( QWidget* widget );
41 
43  virtual QPushButton* addButton( const QString& text, QDialogButtonBox::ButtonRole role );
44 
46  virtual QPushButton* addButton( QDialogButtonBox::StandardButton button );
47 
49  virtual bool centerButtons() const;
50 
52  virtual void removeButton( QAbstractButton* button );
53 
55  virtual void removeButton( QDialogButtonBox::StandardButton button );
56 
58  virtual bool isAcceptEnabled();
59 
60 public slots:
61 
63  virtual void enableAccept( bool enable );
64 
66  virtual void enableApply( bool enable );
67 
69  virtual void enableButtonRole( QDialogButtonBox::ButtonRole role, bool enable );
70 
71 protected:
72 
74  QVBoxLayout* myLayout;
75 
77  QDialogButtonBox* myButtonBox;
78 
81 };
82 
83 #endif

Document ID: Generated on Mon Mar 21 09:41:37 EDT 2016 from SVN revision 163228
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (www.mak.com)