MAK RTIspy API Documentation for HLA Evolved
 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) 2017 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include "rtiMsConfig.h"
13 #include <QDialog>
14 #include <QDialogButtonBox>
15 
16 class QVBoxLayout;
17 
22 {
23  Q_OBJECT
24 
25 public:
26 
28  DtWidgetDialog( QDialogButtonBox::StandardButtons buttons = QDialogButtonBox::Ok | QDialogButtonBox::Cancel,
29  QWidget* parent=0, Qt::WindowFlags f=0 );
30 
32  virtual ~DtWidgetDialog();
33 
37  virtual void setWidget( QWidget* widget );
38 
40  virtual QPushButton* addButton( const QString& text, QDialogButtonBox::ButtonRole role );
41 
43  virtual QPushButton* addButton( QDialogButtonBox::StandardButton button );
44 
46  virtual bool centerButtons() const;
47 
49  virtual void removeButton( QAbstractButton* button );
50 
52  virtual void removeButton( QDialogButtonBox::StandardButton button );
53 
55  virtual bool isAcceptEnabled();
56 
57 public slots:
58 
60  virtual void enableAccept( bool enable );
61 
63  virtual void enableApply( bool enable );
64 
66  virtual void enableButtonRole( QDialogButtonBox::ButtonRole role, bool enable );
67 
68 protected:
69 
71  QVBoxLayout* myLayout;
72 
74  QDialogButtonBox* myButtonBox;
75 
78 };

Document ID: Generated on Fri Sep 27 00:57:56 EDT 2019 from SVN revision 201708
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)