OpenStudio:shared_gui_components
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
openstudio::OSDialog Class Reference

#include <OSDialog.hpp>

+ Inheritance diagram for openstudio::OSDialog:

Signals

void backButtonClicked (bool checked)
 
void cancelButtonClicked (bool checked)
 
void okButtonClicked (bool checked)
 
void toggleUnitsClicked (bool displayIP)
 

Public Member Functions

QPushButtonbackButton ()
 
QPushButtoncancelButton ()
 
QMargins layoutContentsMargins () const
 
QPushButtonokButton ()
 
 OSDialog (bool isIP=false,*parent=nullptr)
 
void setLayoutContentsMargins (const QMargins &layoutContentsMargins)
 
void setSizeHint (const QSize &sizeHint)
 
QSize sizeHint () const override
 
QVBoxLayout * upperLayout ()
 
virtual ~OSDialog ()
 

Protected Slots

virtual void on_backButton (bool checked)
 
virtual void on_cancelButton (bool checked)
 
virtual void on_okButton (bool checked)
 
virtual void toggleUnits (bool displayIP)
 

Protected Member Functions

void mouseMoveEvent (QMouseEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void paintEvent (QPaintEvent *event) override
 
void resizeEvent (QResizeEvent *event) override
 
void setOkButtonAsDefault (bool isDefault)
 

Protected Attributes

QPushButtonm_backButton
 
QPushButtonm_cancelButton
 
bool m_isIP
 
QPushButtonm_okButton
 

Constructor & Destructor Documentation

openstudio::OSDialog::OSDialog ( bool  isIP = false,
parent = nullptr 
)
virtual openstudio::OSDialog::~OSDialog ( )
inlinevirtual

Member Function Documentation

QPushButton* openstudio::OSDialog::backButton ( )
void openstudio::OSDialog::backButtonClicked ( bool  checked)
signal
QPushButton* openstudio::OSDialog::cancelButton ( )
void openstudio::OSDialog::cancelButtonClicked ( bool  checked)
signal
QMargins openstudio::OSDialog::layoutContentsMargins ( ) const
void openstudio::OSDialog::mouseMoveEvent ( QMouseEvent *  event)
overrideprotected
void openstudio::OSDialog::mousePressEvent ( QMouseEvent *  event)
overrideprotected
void openstudio::OSDialog::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotected
QPushButton* openstudio::OSDialog::okButton ( )
void openstudio::OSDialog::okButtonClicked ( bool  checked)
signal
virtual void openstudio::OSDialog::on_backButton ( bool  checked)
protectedvirtualslot
virtual void openstudio::OSDialog::on_cancelButton ( bool  checked)
protectedvirtualslot
virtual void openstudio::OSDialog::on_okButton ( bool  checked)
protectedvirtualslot
void openstudio::OSDialog::paintEvent ( QPaintEvent *  event)
overrideprotected
void openstudio::OSDialog::resizeEvent ( QResizeEvent *  event)
overrideprotected
void openstudio::OSDialog::setLayoutContentsMargins ( const QMargins &  layoutContentsMargins)
void openstudio::OSDialog::setOkButtonAsDefault ( bool  isDefault)
protected
void openstudio::OSDialog::setSizeHint ( const QSize &  sizeHint)
QSize openstudio::OSDialog::sizeHint ( ) const
override
virtual void openstudio::OSDialog::toggleUnits ( bool  displayIP)
protectedvirtualslot
void openstudio::OSDialog::toggleUnitsClicked ( bool  displayIP)
signal
QVBoxLayout* openstudio::OSDialog::upperLayout ( )

Member Data Documentation

QPushButton* openstudio::OSDialog::m_backButton
protected
QPushButton* openstudio::OSDialog::m_cancelButton
protected
bool openstudio::OSDialog::m_isIP
protected
QPushButton* openstudio::OSDialog::m_okButton
protected