16#include <QtCore/qobject.h>
35namespace ot {
class BasicWidgetView; };
49 virtual QString
getToolName(
void)
const override {
return QString(
"Randomizer"); };
59 const std::map<QString, QPlainTextEdit*>&
listEntries(
void)
const {
return m_lists; };
62 void slotRunBool(
void);
63 void slotRunText(
void);
64 void slotRunList(
void);
65 void slotAddList(
void);
70 QVBoxLayout* m_rootLayout;
73 QGroupBox* m_boolGroup;
74 QVBoxLayout* m_boolLayout;
75 QHBoxLayout* m_boolTypeLayout;
76 QRadioButton* m_zeroOneRB;
77 QRadioButton* m_boolRB;
78 QRadioButton* m_yesNoRB;
80 QPushButton* m_boolRun;
82 QGroupBox* m_textGroup;
83 QVBoxLayout* m_textLayout;
84 QHBoxLayout* m_textTopLayout;
85 QCheckBox* m_upperCaseCB;
86 QCheckBox* m_lowerCaseCB;
87 QCheckBox* m_numbersCB;
88 QCheckBox* m_symbolsCB;
89 QLineEdit* m_symbolsEdit;
90 QHBoxLayout* m_textBottomLayout;
91 QLabel* m_textLengthL;
92 QSpinBox* m_textLength;
93 QPushButton* m_textRun;
94 QLineEdit* m_textResult;
96 QGroupBox* m_listGroup;
97 QVBoxLayout* m_listLayout;
98 QTabWidget* m_listTabs;
99 std::map<QString, QPlainTextEdit*> m_lists;
100 QHBoxLayout* m_addListLayout;
101 QPushButton* m_addListBtn;
102 QPushButton* m_runList;
103 QLineEdit* m_listResult;
116 void slotConfirm(
void);
117 void slotCancel(
void);
120 QVBoxLayout* m_centralLayout;
121 QHBoxLayout* m_nameLayout;
123 QLineEdit* m_nameEdit;
124 QHBoxLayout* m_buttonLayout;
125 QPushButton* m_confirmBtn;
126 QPushButton* m_cancelBtn;
This file contains defines that may be used simplyfy class creation.
Definition Randomizer.h:107
QString currentName(void) const
Definition Randomizer.cpp:348
virtual ~RandomizerDialog()
Definition Randomizer.cpp:344
Definition Randomizer.h:37
virtual ~Randomizer()
Definition Randomizer.cpp:48
virtual bool runTool(QMenu *_rootMenu, otoolkit::ToolWidgets &_content) override
Create the central widget that will be displayed to the user in the main tab view.
Definition Randomizer.cpp:56
virtual QString getToolName(void) const override
Return the unique tool name The name will be used to create all required menu entries.
Definition Randomizer.h:49
const std::map< QString, QPlainTextEdit * > & listEntries(void) const
Definition Randomizer.h:59
Randomizer()
Definition Randomizer.cpp:44
virtual void restoreToolSettings(QSettings &_settings) override
Definition Randomizer.cpp:150
virtual bool prepareToolShutdown(QSettings &_settings) override
Stop all the logic of this tool.
Definition Randomizer.cpp:199