OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::Painter2DEditDialog Class Reference

#include "Painter2DEditDialog.h"

Inheritance diagram for ot::Painter2DEditDialog:
ot::Dialog ot::QWidgetInterface

Public Types

enum  PainterEntryType { FillType , LinearType , RadialType }
 
- Public Types inherited from ot::Dialog
enum  DialogResult {
  Ok , Yes , No , Retry ,
  Cancel
}
 
enum  ShowFlag { DefaultShow = 0 << 0 , CenterOnParent = 1 << 0 , FitOnScreen = 1 << 1 , IdealFit = CenterOnParent | FitOnScreen }
 
enum class  DialogState { NoState = 0 << 0 , MousePressed = 1 << 0 , Closing = 1 << 1 }
 
typedef Flags< ShowFlagShowFlags
 
typedef Flags< DialogStateDialogStateFlags
 

Signals

void painterChanged (void)
 

Public Member Functions

 Painter2DEditDialog (const Painter2D *_painter=(Painter2D *) nullptr)
 
virtual ~Painter2DEditDialog ()
 
const Painter2DcurrentPainter (void) const
 
Painter2DcreatePainter (void) const
 
void setHasChanged (bool _changed)
 
bool hasChanged (void) const
 
- Public Member Functions inherited from ot::Dialog
 Dialog (QWidget *_parent=(QWidget *) nullptr)
 
 Dialog (const DialogCfg &_config, QWidget *_parent=(QWidget *) nullptr)
 
virtual ~Dialog ()
 
virtual QWidget * getQWidget (void) override
 Returns a pointer to the root widget of this object.
 
virtual const QWidget * getQWidget (void) const override
 
DialogResult showDialog (const ShowFlags &_showFlags=ShowFlags(IdealFit))
 Center the dialog on parent and call exec.
 
void setDialogFlag (DialogCfg::DialogFlag _flag, bool _active=true)
 
void setDialogFlags (DialogCfg::DialogFlags _flags)
 
DialogCfg::DialogFlags dialogFlags (void) const
 
DialogResult dialogResult (void) const
 
void setDialogName (const std::string &_name)
 
const std::string & dialogName (void) const
 
const DialogStateFlagsgetDialogState (void) const
 
- Public Member Functions inherited from ot::QWidgetInterface
 QWidgetInterface ()
 
virtual ~QWidgetInterface ()
 
void setOTWidgetFlags (const WidgetFlags &_flags)
 
const WidgetFlagsotWidgetFlags (void) const
 

Additional Inherited Members

- Public Slots inherited from ot::Dialog
void close (DialogResult _result)
 
void closeOk (void)
 
void closeYes (void)
 
void closeNo (void)
 
void closeRetry (void)
 
void closeCancel (void)
 
- Protected Member Functions inherited from ot::Dialog
virtual void keyPressEvent (QKeyEvent *_event) override
 
virtual void mousePressEvent (QMouseEvent *_event) override
 
virtual void mouseMoveEvent (QMouseEvent *_event) override
 
virtual void mouseReleaseEvent (QMouseEvent *_event) override
 
virtual void closeEvent (QCloseEvent *_event) override
 
virtual bool mayCloseDialogWindow (void) const
 
- Protected Member Functions inherited from ot::QWidgetInterface
virtual void otWidgetFlagsChanged (const WidgetFlags &_flags)
 

Member Enumeration Documentation

◆ PainterEntryType

Enumerator
FillType 
LinearType 
RadialType 

Constructor & Destructor Documentation

◆ Painter2DEditDialog()

ot::Painter2DEditDialog::Painter2DEditDialog ( const Painter2D * _painter = (Painter2D*)nullptr)

◆ ~Painter2DEditDialog()

ot::Painter2DEditDialog::~Painter2DEditDialog ( )
virtual

Member Function Documentation

◆ createPainter()

ot::Painter2D * ot::Painter2DEditDialog::createPainter ( void ) const

◆ currentPainter()

const Painter2D * ot::Painter2DEditDialog::currentPainter ( void ) const
inline

◆ hasChanged()

bool ot::Painter2DEditDialog::hasChanged ( void ) const
inline

◆ painterChanged

void ot::Painter2DEditDialog::painterChanged ( void )
signal

◆ setHasChanged()

void ot::Painter2DEditDialog::setHasChanged ( bool _changed)
inline

The documentation for this class was generated from the following files: