This class implements the creation of user defined toolbars. More...
#include <DlgToolbarsImp.h>
Public Member Functions | |
DlgCustomToolbarsImp (QWidget *parent=0) | |
Constructs a DlgCustomToolbarsImp which is a child of 'parent', with the name 'name' and widget flags set to 'f'. | |
~DlgCustomToolbarsImp () | |
Destroys the object and frees any allocated resources. | |
Protected Member Functions | |
virtual void | addCustomCommand (const QString &, const QByteArray &) |
virtual void | addCustomToolbar (const QString &) |
void | changeEvent (QEvent *e) |
virtual void | moveDownCustomCommand (const QString &, const QByteArray &) |
virtual void | moveUpCustomCommand (const QString &, const QByteArray &) |
virtual void | removeCustomCommand (const QString &, const QByteArray &) |
virtual void | removeCustomToolbar (const QString &) |
virtual void | renameCustomToolbar (const QString &, const QString &) |
This class implements the creation of user defined toolbars.
Definition at line 89 of file DlgToolbarsImp.h.
DlgCustomToolbarsImp::DlgCustomToolbarsImp | ( | QWidget * | parent = 0 |
) |
Constructs a DlgCustomToolbarsImp which is a child of 'parent', with the name 'name' and widget flags set to 'f'.
The dialog will by default be modeless, unless you set 'modal' to TRUE to construct a modal dialog.
Definition at line 552 of file DlgToolbarsImp.cpp.
DlgCustomToolbarsImp::~DlgCustomToolbarsImp | ( | ) |
Destroys the object and frees any allocated resources.
Definition at line 558 of file DlgToolbarsImp.cpp.
void DlgCustomToolbarsImp::addCustomCommand | ( | const QString & | name, | |
const QByteArray & | cmd | |||
) | [protected, virtual] |
Reimplemented from Gui::Dialog::DlgCustomToolbars.
Definition at line 598 of file DlgToolbarsImp.cpp.
References Gui::WorkbenchManager::active(), Gui::CommandManager::addTo(), Gui::Application::commandManager(), Gui::getMainWindow(), Gui::Application::Instance, Gui::WorkbenchManager::instance(), Gui::Workbench::name(), RobotExample::w, and Gui::Dialog::Ui_DlgCustomToolbars::workbenchBox.
void DlgCustomToolbarsImp::addCustomToolbar | ( | const QString & | name | ) | [protected, virtual] |
Reimplemented from Gui::Dialog::DlgCustomToolbars.
Definition at line 562 of file DlgToolbarsImp.cpp.
References Gui::WorkbenchManager::active(), Gui::getMainWindow(), Gui::WorkbenchManager::instance(), Gui::Workbench::name(), RobotExample::w, and Gui::Dialog::Ui_DlgCustomToolbars::workbenchBox.
void DlgCustomToolbarsImp::changeEvent | ( | QEvent * | e | ) | [protected, virtual] |
Reimplemented from Gui::Dialog::DlgCustomToolbars.
Definition at line 679 of file DlgToolbarsImp.cpp.
void DlgCustomToolbarsImp::moveDownCustomCommand | ( | const QString & | name, | |
const QByteArray & | cmd | |||
) | [protected, virtual] |
Reimplemented from Gui::Dialog::DlgCustomToolbars.
Definition at line 650 of file DlgToolbarsImp.cpp.
References Gui::WorkbenchManager::active(), Gui::getMainWindow(), Gui::WorkbenchManager::instance(), Gui::Workbench::name(), RobotExample::w, and Gui::Dialog::Ui_DlgCustomToolbars::workbenchBox.
void DlgCustomToolbarsImp::moveUpCustomCommand | ( | const QString & | name, | |
const QByteArray & | cmd | |||
) | [protected, virtual] |
Reimplemented from Gui::Dialog::DlgCustomToolbars.
Definition at line 627 of file DlgToolbarsImp.cpp.
References Gui::WorkbenchManager::active(), Gui::getMainWindow(), Gui::WorkbenchManager::instance(), Gui::Workbench::name(), RobotExample::w, and Gui::Dialog::Ui_DlgCustomToolbars::workbenchBox.
void DlgCustomToolbarsImp::removeCustomCommand | ( | const QString & | name, | |
const QByteArray & | cmd | |||
) | [protected, virtual] |
Reimplemented from Gui::Dialog::DlgCustomToolbars.
Definition at line 610 of file DlgToolbarsImp.cpp.
References Gui::WorkbenchManager::active(), Gui::getMainWindow(), Gui::WorkbenchManager::instance(), Gui::Workbench::name(), RobotExample::w, and Gui::Dialog::Ui_DlgCustomToolbars::workbenchBox.
void DlgCustomToolbarsImp::removeCustomToolbar | ( | const QString & | name | ) | [protected, virtual] |
Reimplemented from Gui::Dialog::DlgCustomToolbars.
Definition at line 572 of file DlgToolbarsImp.cpp.
References Gui::WorkbenchManager::active(), Gui::getMainWindow(), Gui::WorkbenchManager::instance(), Gui::Workbench::name(), RobotExample::w, and Gui::Dialog::Ui_DlgCustomToolbars::workbenchBox.
void DlgCustomToolbarsImp::renameCustomToolbar | ( | const QString & | old_name, | |
const QString & | new_name | |||
) | [protected, virtual] |
Reimplemented from Gui::Dialog::DlgCustomToolbars.
Definition at line 585 of file DlgToolbarsImp.cpp.
References Gui::WorkbenchManager::active(), Gui::getMainWindow(), Gui::WorkbenchManager::instance(), Gui::Workbench::name(), RobotExample::w, and Gui::Dialog::Ui_DlgCustomToolbars::workbenchBox.