This class implements the creation of user defined toolbars. More...
#include <DlgToolbarsImp.h>
Protected Types | |
enum | Type { Toolbar , Toolboxbar } |
Protected Slots | |
void | on_categoryBox_activated (int index) |
void | on_deleteButton_clicked () |
void | on_moveActionDownButton_clicked () |
Moves down an action. More... | |
void | on_moveActionLeftButton_clicked () |
Removes an action. More... | |
void | on_moveActionRightButton_clicked () |
Adds a new action. More... | |
void | on_moveActionUpButton_clicked () |
Moves up an action. More... | |
void | on_newButton_clicked () |
void | on_renameButton_clicked () |
void | on_workbenchBox_activated (int index) |
void | onAddMacroAction (const QByteArray &) |
void | onModifyMacroAction (const QByteArray &) |
void | onRemoveMacroAction (const QByteArray &) |
Protected Slots inherited from Gui::Dialog::CustomizeActionPage | |
virtual void | onAddMacroAction (const QByteArray &)=0 |
virtual void | onModifyMacroAction (const QByteArray &)=0 |
virtual void | onRemoveMacroAction (const QByteArray &)=0 |
Protected Member Functions | |
virtual void | addCustomCommand (const QString &, const QByteArray &) |
virtual void | addCustomToolbar (const QString &) |
void | changeEvent (QEvent *e) |
DlgCustomToolbars (Type, QWidget *parent=nullptr) | |
Constructs a DlgCustomToolbars which is a child of 'parent', with the name 'name' and widget flags set to 'f'. More... | |
void | hideEvent (QHideEvent *event) |
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 &) |
virtual | ~DlgCustomToolbars () |
Destroys the object and frees any allocated resources. More... | |
Protected Member Functions inherited from Gui::Dialog::CustomizeActionPage | |
virtual void | changeEvent (QEvent *e)=0 |
bool | event (QEvent *e) |
Protected Attributes | |
std::unique_ptr< Ui_DlgCustomToolbars > | ui |
Additional Inherited Members | |
Public Member Functions inherited from Gui::Dialog::CustomizeActionPage | |
CustomizeActionPage (QWidget *parent=nullptr) | |
Construction. More... | |
virtual | ~CustomizeActionPage () |
Destruction. More... | |
This class implements the creation of user defined toolbars.
In the left panel are shown all command groups with their command objects. If any changeable toolbar was created in the left panel are shown all commands of the currently edited toolbar, otherwise it is empty. All changes to a toolbar is done immediately.
|
protected |
|
protected |
Constructs a DlgCustomToolbars 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.
References Gui::WorkbenchManager::active(), Gui::BitmapFactory(), Gui::Application::commandManager(), Gui::CommandManager::getCommands(), Gui::Application::Instance, Gui::WorkbenchManager::instance(), on_categoryBox_activated(), on_workbenchBox_activated(), ui, Gui::Application::workbenches(), Gui::Application::workbenchIcon(), and Gui::Application::workbenchMenuText().
|
protectedvirtual |
Destroys the object and frees any allocated resources.
|
protectedvirtual |
Reimplemented in Gui::Dialog::DlgCustomToolbarsImp.
Referenced by on_moveActionRightButton_clicked().
|
protectedvirtual |
Reimplemented in Gui::Dialog::DlgCustomToolbarsImp.
Referenced by on_newButton_clicked().
|
protectedvirtual |
Implements Gui::Dialog::CustomizeActionPage.
Reimplemented in Gui::Dialog::DlgCustomToolbarsImp, and Gui::Dialog::DlgCustomToolBoxbarsImp.
References Gui::Application::commandManager(), Gui::CommandManager::getGroupCommands(), Gui::Application::Instance, on_categoryBox_activated(), and ui.
Referenced by Gui::Dialog::DlgCustomToolbarsImp::changeEvent(), and Gui::Dialog::DlgCustomToolBoxbarsImp::changeEvent().
|
protected |
References ui.
|
protectedvirtual |
Reimplemented in Gui::Dialog::DlgCustomToolbarsImp.
Referenced by on_moveActionDownButton_clicked().
|
protectedvirtual |
Reimplemented in Gui::Dialog::DlgCustomToolbarsImp.
Referenced by on_moveActionUpButton_clicked().
|
protectedslot |
References Gui::BitmapFactory(), Gui::Application::commandManager(), Gui::CommandManager::getGroupCommands(), Gui::Application::Instance, and ui.
Referenced by changeEvent(), and DlgCustomToolbars().
|
protectedslot |
References removeCustomToolbar(), and ui.
|
protectedslot |
Moves down an action.
References moveDownCustomCommand(), and ui.
|
protectedslot |
Removes an action.
References removeCustomCommand(), and ui.
|
protectedslot |
Adds a new action.
References addCustomCommand(), and ui.
|
protectedslot |
Moves up an action.
References moveUpCustomCommand(), and ui.
|
protectedslot |
References addCustomToolbar(), draftfunctions.svgtext::getText(), and ui.
|
protectedslot |
References draftfunctions.svgtext::getText(), renameCustomToolbar(), and ui.
|
protectedslot |
References ui.
Referenced by DlgCustomToolbars().
|
protectedslot |
|
protectedslot |
|
protectedslot |
References ui.
|
protectedvirtual |
Reimplemented in Gui::Dialog::DlgCustomToolbarsImp.
Referenced by on_moveActionLeftButton_clicked().
|
protectedvirtual |
Reimplemented in Gui::Dialog::DlgCustomToolbarsImp.
Referenced by on_deleteButton_clicked().
|
protectedvirtual |
Reimplemented in Gui::Dialog::DlgCustomToolbarsImp.
Referenced by on_renameButton_clicked().
|
protected |
Referenced by draftguitools.gui_beziers.BezCurve::action(), draftguitools.gui_dimensions.Dimension::action(), draftguitools.gui_ellipses.Ellipse::action(), draftguitools.gui_labels.Label::action(), draftguitools.gui_lines.Line::action(), draftguitools.gui_mirror.Mirror::action(), draftguitools.gui_offset.Offset::action(), draftguitools.gui_rectangles.Rectangle::action(), draftguitools.gui_shapestrings.ShapeString::action(), draftguitools.gui_splines.BSpline::action(), draftguitools.gui_texts.Text::action(), draftguitools.gui_arcs.Arc::Activated(), draftguitools.gui_circulararray.CircularArray::Activated(), draftguitools.gui_clone.Clone::Activated(), draftguitools.gui_downgrade.Downgrade::Activated(), draftguitools.gui_draft2sketch.Draft2Sketch::Activated(), draftguitools.gui_ellipses.Ellipse::Activated(), draftguitools.gui_facebinders.Facebinder::Activated(), draftguitools.gui_join.Join::Activated(), draftguitools.gui_move.Move::Activated(), draftguitools.gui_orthoarray.OrthoArray::Activated(), draftguitools.gui_polararray.PolarArray::Activated(), draftguitools.gui_polygons.Polygon::Activated(), draftguitools.gui_rectangles.Rectangle::Activated(), draftguitools.gui_rotate.Rotate::Activated(), draftguitools.gui_scale.Scale::Activated(), draftguitools.gui_shape2dview.Shape2DView::Activated(), draftguitools.gui_shapestrings.ShapeString::Activated(), draftguitools.gui_split.Split::Activated(), draftguitools.gui_styles.ApplyStyle::Activated(), draftguitools.gui_texts.Text::Activated(), draftguitools.gui_upgrade.Upgrade::Activated(), draftguitools.gui_array_simple.Array::Activated(), draftguitools.gui_fillets.Fillet::Activated(), Gui::Dialog::DlgCustomToolbarsImp::addCustomCommand(), Gui::Dialog::DlgCustomToolbarsImp::addCustomToolbar(), draftguitools.gui_stretch.Stretch::addPoint(), draftguitools.gui_ellipses.Ellipse::appendPoint(), draftguitools.gui_rectangles.Rectangle::appendPoint(), package_details.PackageDetails::branch_changed(), changeEvent(), DraftGui.DraftToolBar::changeEvent(), draftguitools.gui_circulararray.CircularArray::click(), draftguitools.gui_orthoarray.OrthoArray::click(), draftguitools.gui_polararray.PolarArray::click(), draftguitools.gui_dimensions.Dimension::createObject(), package_details.PackageDetails::disable_clicked(), package_details.PackageDetails::display_repo_status(), DlgCustomToolbars(), draftguitools.gui_polygons.Polygon::drawPolygon(), package_details.PackageDetails::enable_clicked(), draftguitools.gui_edit.Edit::endEditing(), change_branch.ChangeBranchDialog::exec(), draftguitools.gui_base_original.DraftTool::finish(), draftguitools.gui_fillets.Fillet::finish(), draftguitools.gui_dimensions.Dimension::finish(), draftguitools.gui_edit.Edit::finish(), draftguitools.gui_trimex.Trimex::finish(), draftguitools.gui_arcs.Arc::finish(), draftguitools.gui_beziers.BezCurve::finish(), draftguitools.gui_beziers.CubicBezCurve::finish(), draftguitools.gui_ellipses.Ellipse::finish(), draftguitools.gui_lines.Line::finish(), draftguitools.gui_mirror.Mirror::finish(), draftguitools.gui_move.Move::finish(), draftguitools.gui_polygons.Polygon::finish(), draftguitools.gui_rectangles.Rectangle::finish(), draftguitools.gui_rotate.Rotate::finish(), draftguitools.gui_splines.BSpline::finish(), draftguitools.gui_texts.Text::finish(), draftguitools.gui_points.Point::finish(), draftguitools.gui_shapestrings.ShapeString::finish(), draftguitools.gui_move.Move::get_object_selection(), draftguitools.gui_rotate.Rotate::get_object_selection(), draftguitools.gui_scale.Scale::get_object_selection(), draftguitools.gui_subelements.SubelementHighlight::get_selection(), draftguitools.gui_base_original.DraftTool::getStrings(), draftguitools.gui_move.Move::handle_mouse_click_event(), hideEvent(), package_details.PackageDetails::load_finished(), package_details.PackageDetails::load_progress(), package_details.PackageDetails::load_started(), package_details.PackageDetails::long_load_running(), package_details.PackageDetails::macro_readme_updated(), draftguitools.gui_circulararray.CircularArray::move(), draftguitools.gui_points.Point::move(), draftguitools.gui_polararray.PolarArray::move(), draftguitools.gui_move.Move::move(), Gui::Dialog::DlgCustomToolbarsImp::moveDownCustomCommand(), Gui::Dialog::DlgCustomToolbarsImp::moveUpCustomCommand(), draftguitools.gui_arcs.Arc::numericInput(), draftguitools.gui_polygons.Polygon::numericInput(), draftguitools.gui_rotate.Rotate::numericInput(), draftguitools.gui_shapestrings.ShapeString::numericInput(), draftguitools.gui_arcs.Arc::numericRadius(), draftguitools.gui_offset.Offset::numericRadius(), draftguitools.gui_rotate.Rotate::numericRadius(), on_categoryBox_activated(), on_deleteButton_clicked(), on_moveActionDownButton_clicked(), on_moveActionLeftButton_clicked(), on_moveActionRightButton_clicked(), on_moveActionUpButton_clicked(), on_newButton_clicked(), on_renameButton_clicked(), on_workbenchBox_activated(), onAddMacroAction(), onModifyMacroAction(), onRemoveMacroAction(), draftguitools.gui_edit.Edit::proceed(), draftguitools.gui_groups.AddToGroup::proceed(), draftguitools.gui_groups.SetAutoGroup::proceed(), Gui::Dialog::DlgCustomToolbarsImp::removeCustomCommand(), Gui::Dialog::DlgCustomToolbarsImp::removeCustomToolbar(), Gui::Dialog::DlgCustomToolbarsImp::renameCustomToolbar(), draftguitools.gui_rotate.Rotate::rotate(), package_details.PackageDetails::run_javascript(), draftguitools.gui_fillets.Fillet::set_chamfer(), package_details.PackageDetails::set_change_branch_button_state(), draftguitools.gui_fillets.Fillet::set_delete(), package_details.PackageDetails::set_disable_button_state(), draftguitools.gui_move.Move::set_ghosts(), draftguitools.gui_rotate.Rotate::set_ghosts(), draftguitools.gui_rotate.Rotate::set_start_point(), package_list.PackageList::set_view_style(), package_details.PackageDetails::show_error_for(), package_details.PackageDetails::show_package(), package_details.PackageDetails::show_repo(), package_details.PackageDetails::show_workbench(), draftguitools.gui_edit.Edit::startEditing(), package_list.PackageList::update_text_filter(), and draftguitools.gui_edit.Edit::updateTrackerAndGhost().