MAK RTIspy API Documentation for HLA 1.3
widgetDialog.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2008 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: widgetDialog.h,v $ $Revision: 1.6 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00012 #ifndef widgetDialog_H_
00013 #define widgetDialog_H_
00014 
00015 #include "rtiMsConfig.h"
00016 #include <qdialog.h>
00017 #include <qdialogbuttonbox.h>
00018 
00019 class QVBoxLayout;
00020 
00024 class DT_DLL_ASSISTANTAPP DtWidgetDialog : public QDialog
00025 {
00026    Q_OBJECT
00027 
00028 public:
00029 
00031    DtWidgetDialog( QDialogButtonBox::StandardButtons buttons = QDialogButtonBox::Ok | QDialogButtonBox::Cancel,
00032       QWidget* parent=0, Qt::WindowFlags f=0 );
00033 
00035    virtual ~DtWidgetDialog();
00036 
00040    virtual void setWidget( QWidget* widget );
00041 
00043    virtual QPushButton* addButton( const QString& text, QDialogButtonBox::ButtonRole role );
00044 
00046    virtual QPushButton* addButton( QDialogButtonBox::StandardButton button );
00047 
00049    virtual bool centerButtons() const;
00050 
00052    virtual void removeButton( QAbstractButton* button );
00053 
00055    virtual void removeButton( QDialogButtonBox::StandardButton button );
00056 
00058    virtual bool isAcceptEnabled();
00059 
00060 public slots:
00061 
00063    virtual void enableAccept( bool enable );
00064 
00066    virtual void enableApply( bool enable );
00067 
00069    virtual void enableButtonRole( QDialogButtonBox::ButtonRole role, bool enable );
00070 
00071 protected:
00072 
00074    QVBoxLayout* myLayout;
00075 
00077    QDialogButtonBox* myButtonBox;
00078 
00080    QWidget* myWidget;
00081 };
00082 
00083 #endif

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)