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

#include "CreateProjectDialog.h"

Inheritance diagram for ot::CreateProjectDialog:
ot::Dialog ot::QWidgetInterface

Signals

void createProject (const QString &_projectName, const std::string &_projectType, const std::string &_projectTemplate)
 

Public Member Functions

 CreateProjectDialog (QWidget *_parentWidget=(QWidget *) nullptr)
 
virtual ~CreateProjectDialog ()
 
void setProjectTemplates (const std::list< ProjectTemplateInformation > &_templates)
 
void setCurrentProjectName (const QString &_name)
 
std::string getProjectType (void) const
 
std::string getTemplateName (bool _emptyIfDefault) const
 
std::string getProjectName (void) const
 
void setDefaultIcon (const QIcon &_icon)
 
const QIcon & getDefaultIcon (void) const
 
void setDefaultIconMap (const std::map< std::string, std::string > &_projectNameToIconMap)
 
const std::map< std::string, std::string > & getDefaultIconMap (void) const
 
void setCustomIconMap (const std::map< std::string, std::string > &_projectNameToIconMap)
 
const std::map< std::string, std::string > & getCustomIconMap (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
 

Protected Member Functions

virtual void showEvent (QShowEvent *_event) override
 
- 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)
 

Additional Inherited Members

- 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
 
- 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)
 

Constructor & Destructor Documentation

◆ CreateProjectDialog()

ot::CreateProjectDialog::CreateProjectDialog ( QWidget * _parentWidget = (QWidget*)nullptr)

◆ ~CreateProjectDialog()

ot::CreateProjectDialog::~CreateProjectDialog ( )
virtual

Member Function Documentation

◆ createProject

void ot::CreateProjectDialog::createProject ( const QString & _projectName,
const std::string & _projectType,
const std::string & _projectTemplate )
signal

◆ getCustomIconMap()

const std::map< std::string, std::string > & ot::CreateProjectDialog::getCustomIconMap ( void ) const
inline

◆ getDefaultIcon()

const QIcon & ot::CreateProjectDialog::getDefaultIcon ( void ) const
inline

◆ getDefaultIconMap()

const std::map< std::string, std::string > & ot::CreateProjectDialog::getDefaultIconMap ( void ) const
inline

◆ getProjectName()

std::string ot::CreateProjectDialog::getProjectName ( void ) const

◆ getProjectType()

std::string ot::CreateProjectDialog::getProjectType ( void ) const

◆ getTemplateName()

std::string ot::CreateProjectDialog::getTemplateName ( bool _emptyIfDefault) const

◆ setCurrentProjectName()

void ot::CreateProjectDialog::setCurrentProjectName ( const QString & _name)

◆ setCustomIconMap()

void ot::CreateProjectDialog::setCustomIconMap ( const std::map< std::string, std::string > & _projectNameToIconMap)
inline

◆ setDefaultIcon()

void ot::CreateProjectDialog::setDefaultIcon ( const QIcon & _icon)
inline

◆ setDefaultIconMap()

void ot::CreateProjectDialog::setDefaultIconMap ( const std::map< std::string, std::string > & _projectNameToIconMap)
inline

◆ setProjectTemplates()

void ot::CreateProjectDialog::setProjectTemplates ( const std::list< ProjectTemplateInformation > & _templates)

◆ showEvent()

void ot::CreateProjectDialog::showEvent ( QShowEvent * _event)
overrideprotectedvirtual

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