34#include <NDEVR/Ribbon.h>
35#include <NDEVR/KeyController.h>
50 class QTWindowManager;
52 class SnapsEditorWidget;
56 class QTResourceListener;
58 class NDEVRRibbonWidget;
150 void setMainButtonCallback(
const std::function<
void(
const PopupInfo&)>& main_callback);
164 void addLeftWidget(QWidget* widget);
178 void addRightWidget(QWidget* widget);
234 void addButtonToGeneralHome(
Button* button,
bool disable_with_no_project);
250 void addButtonToGeneralFile(
Button* button,
bool disable_with_no_project);
318 void setSceneVisible(
bool scene_visible);
344 void setIsVertical(
bool is_vertical);
346 void initializeRibbon();
347 void showHome(
bool visible);
348 void showEdit(
bool visible);
349 void updateButtonStates();
350 void refreshWidget();
353 void resetKeyControllerToDefaults()
override;
354 void createEditRibbonGroup();
355 void showView(
bool visible);
357 void showDraw(
bool visible);
359 void createDrawRibbonGroup();
360 void showMeasure(
bool visible);
363 void updateUndoRedoSlot(
UUID last_command);
364 void onClearAllSlot();
393 Button* m_project_settings_button =
nullptr;
419 QSize sizeHint()
const override;
The core class for assigning actions to key-presses and registering them as a program-wide service.
Definition KeyController.h:65
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:59
A core class where all Design Objects including models, materials, and geometries are stored.
Definition DesignObjectLookup.h:65
A class which describes a user key press.
Definition Event.h:47
Definition NDEVRRibbon.h:130
Buffer< QWidget * > m_left_widgets
Definition NDEVRRibbon.h:373
std::function< void(const PopupInfo &)> m_main_button_callback
Definition NDEVRRibbon.h:409
QWidget * m_main_button_widget
Definition NDEVRRibbon.h:372
Ribbon * ribbon() const
Definition NDEVRRibbon.h:218
QTResourceListener * m_command_listener
Definition NDEVRRibbon.h:407
Buffer< Button * > m_buttons_to_add_to_home_file_subgroup
Definition NDEVRRibbon.h:382
const NDEVRRibbonOptions & options() const
Definition NDEVRRibbon.h:191
bool m_is_vertical
Definition NDEVRRibbon.h:410
Buffer< Button * > m_buttons_to_add_to_home_general_subgroup
Definition NDEVRRibbon.h:384
bool m_scene_visible
Definition NDEVRRibbon.h:411
LayerWidget * m_layer_tools_dock
Definition NDEVRRibbon.h:371
Buffer< Button * > m_touch_theme_buttons
Definition NDEVRRibbon.h:395
Buffer< Button * > m_ui_theme_buttons
Definition NDEVRRibbon.h:390
Buffer< Button * > m_disable_with_no_project_buttons
Definition NDEVRRibbon.h:406
NDEVRRibbonOptions m_ribbon_options
Definition NDEVRRibbon.h:412
Ribbon * m_ribbon
Definition NDEVRRibbon.h:366
QTResourceListener * m_background_listener
Definition NDEVRRibbon.h:408
Buffer< Button * > m_window_theme_buttons
Definition NDEVRRibbon.h:389
SnapsEditorWidget * m_snaps_dock
Definition NDEVRRibbon.h:370
WindowManager * m_window_manager
Definition NDEVRRibbon.h:368
QTModelManager * m_model_manager
Definition NDEVRRibbon.h:367
MainWindow * m_main_window
Definition NDEVRRibbon.h:369
Buffer< QWidget * > m_right_widgets
Definition NDEVRRibbon.h:374
Definition QTModelManager.h:94
Definition RibbonGroup.h:47
Definition RibbonSubGroup.h:43
The core String class for the software.
Definition String.h:47
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:62
Definition WindowManager.h:68
NDEVRRibbonAction
Definition NDEVRRibbon.h:39
@ e_undo
Definition NDEVRRibbon.h:43
@ e_settings
Definition NDEVRRibbon.h:46
@ e_save_file
Definition NDEVRRibbon.h:40
@ e_redo
Definition NDEVRRibbon.h:44
@ e_open_project
Definition NDEVRRibbon.h:42
@ e_help
Definition NDEVRRibbon.h:45
@ e_save_as_file
Definition NDEVRRibbon.h:41
@ e_ribbon_action_size
Definition NDEVRRibbon.h:47
RibbonArea
Definition RibbonArea.h:68
Definition NDEVRRibbon.h:71
bool showFileActions() const
Definition NDEVRRibbon.cpp:1090
RibbonVisibleOption light_theme_visible
Definition NDEVRRibbon.h:90
RibbonVisibleOption view_actions_visible
Definition NDEVRRibbon.h:82
bool showWifi() const
Definition NDEVRRibbon.cpp:1129
NDEVRRibbonOptions()
Definition NDEVRRibbon.cpp:1081
RibbonVisibleOption about_visible
Definition NDEVRRibbon.h:93
RibbonVisibleOption draw_actions_visible
Definition NDEVRRibbon.h:83
bool showAbout() const
Definition NDEVRRibbon.cpp:1155
bool showMainButton() const
Definition NDEVRRibbon.cpp:1110
bool showLog() const
Definition NDEVRRibbon.cpp:1134
bool showReports() const
Definition NDEVRRibbon.cpp:1114
RibbonVisibleOption wifi_visible
Definition NDEVRRibbon.h:96
RibbonVisibleOption layers_visible
Definition NDEVRRibbon.h:86
bool showEditActions() const
Definition NDEVRRibbon.cpp:1098
RibbonVisibleOption measure_actions_visible
Definition NDEVRRibbon.h:85
bool showMeasureActions() const
Definition NDEVRRibbon.cpp:1102
RibbonVisibleOption reports_visible
Definition NDEVRRibbon.h:92
bool showHomeGeneral() const
Definition NDEVRRibbon.cpp:1086
static bool ShouldShow(RibbonVisibleOption option, bool default_option)
Definition NDEVRRibbon.cpp:1163
bool showProjectBrowser() const
Definition NDEVRRibbon.cpp:1151
bool showColorTheme() const
Definition NDEVRRibbon.cpp:1147
RibbonVisibleOption log_visible
Definition NDEVRRibbon.h:95
RibbonVisibleOption touch_theme_visible
Definition NDEVRRibbon.h:91
RibbonVisibleOption save_visible
Definition NDEVRRibbon.h:88
RibbonVisibleOption save_as_visible
Definition NDEVRRibbon.h:89
RibbonVisibleOption main_button_visible
Definition NDEVRRibbon.h:87
RibbonVisibleOption file_actions_visible
Definition NDEVRRibbon.h:81
bool showViewActions() const
Definition NDEVRRibbon.cpp:1106
bool showWidgetMode() const
Definition NDEVRRibbon.cpp:1159
RibbonVisibleOption
Definition NDEVRRibbon.h:73
@ e_visible
Definition NDEVRRibbon.h:74
@ e_default
Definition NDEVRRibbon.h:76
@ e_not_visible
Definition NDEVRRibbon.h:75
RibbonVisibleOption home_general_visible
Definition NDEVRRibbon.h:80
bool showSaveAs() const
Definition NDEVRRibbon.cpp:1143
bool showExit() const
Definition NDEVRRibbon.cpp:1119
bool showLayers() const
Definition NDEVRRibbon.cpp:1124
bool showSave() const
Definition NDEVRRibbon.cpp:1139
RibbonVisibleOption project_browser_visible
Definition NDEVRRibbon.h:94
RibbonVisibleOption edit_actions_visible
Definition NDEVRRibbon.h:84
RibbonVisibleOption exit_visible
Definition NDEVRRibbon.h:97
bool showDrawActions() const
Definition NDEVRRibbon.cpp:1094