34#include <NDEVR/Ribbon.h>
35#include <NDEVR/KeyController.h>
50 class QTWindowManager;
52 class SnapsEditorWidget;
56 class QTResourceListener;
58 class NDEVRRibbonWidget;
363 Button* m_project_settings_button =
nullptr;
The core class for assigning actions to key-presses and registering them as a program-wide service.
Definition KeyController.h:71
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
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:49
Definition NDEVRRibbon.h:130
Buffer< QWidget * > m_left_widgets
Definition NDEVRRibbon.h:343
RibbonGroup * drawRibbonGroup()
std::function< void(const PopupInfo &)> m_main_button_callback
Definition NDEVRRibbon.h:379
QWidget * m_main_button_widget
Definition NDEVRRibbon.h:342
Ribbon * ribbon() const
Definition NDEVRRibbon.h:206
void createDrawRibbonGroup()
QTResourceListener * m_command_listener
Definition NDEVRRibbon.h:377
RibbonGroup * measureRibbonGroup()
Buffer< Button * > m_buttons_to_add_to_home_file_subgroup
Definition NDEVRRibbon.h:352
NDEVRRibbon(WindowManager *window_manager, QTModelManager *manager, RibbonArea area)
RibbonGroup * editRibbonGroup()
const NDEVRRibbonOptions & options() const
Definition NDEVRRibbon.h:183
RibbonSubGroup * homeFileRibbonSubGroup()
RibbonSubGroup * homeGeneralRibbonSubGroup()
void addButtonToGeneralHome(Button *button, bool disable_with_no_project)
void showHome(bool visible)
bool m_is_vertical
Definition NDEVRRibbon.h:380
void showDraw(bool visible)
NDEVRRibbon(MainWindow *window, WindowManager *window_manager, QTModelManager *manager, RibbonArea area)
Buffer< Button * > m_buttons_to_add_to_home_general_subgroup
Definition NDEVRRibbon.h:354
bool m_scene_visible
Definition NDEVRRibbon.h:381
void setRibbonOptions(const NDEVRRibbonOptions &options)
void addLeftWidget(QWidget *widget)
void setSceneVisible(bool scene_visible)
LayerWidget * m_layer_tools_dock
Definition NDEVRRibbon.h:341
void resetKeyControllerToDefaults() override
Buffer< Button * > m_touch_theme_buttons
Definition NDEVRRibbon.h:365
void createEditRibbonGroup()
RibbonGroup * homeRibbonGroup()
Buffer< Button * > m_ui_theme_buttons
Definition NDEVRRibbon.h:360
Buffer< Button * > m_disable_with_no_project_buttons
Definition NDEVRRibbon.h:376
void setMainButtonCallback(const std::function< void(const PopupInfo &)> &main_callback)
NDEVRRibbonOptions m_ribbon_options
Definition NDEVRRibbon.h:382
Ribbon * m_ribbon
Definition NDEVRRibbon.h:336
void addRightWidget(QWidget *widget)
void updateButtonStates()
QTResourceListener * m_background_listener
Definition NDEVRRibbon.h:378
Buffer< Button * > m_window_theme_buttons
Definition NDEVRRibbon.h:359
SnapsEditorWidget * m_snaps_dock
Definition NDEVRRibbon.h:340
void setIsVertical(bool is_vertical)
void addButtonToGeneralFile(Button *button, bool disable_with_no_project)
WindowManager * m_window_manager
Definition NDEVRRibbon.h:338
QTModelManager * m_model_manager
Definition NDEVRRibbon.h:337
void showEdit(bool visible)
MainWindow * m_main_window
Definition NDEVRRibbon.h:339
Buffer< QWidget * > m_right_widgets
Definition NDEVRRibbon.h:344
RibbonGroup * viewRibbonGroup()
void showView(bool visible)
virtual bool processKeyEvent(const String &id, const KeyEvent &key_event, DesignObjectLookup *lookup, Camera *camera) override
void showMeasure(bool visible)
void updateUndoRedoSlot(UUID last_command)
A wrapper around DesignObjectLookup that provides signal and slot functionality and adds rendering ca...
Definition QTModelManager.h:105
Represents the "Tab" of a widget. For example sections such as Home, View, Edit, Measurements would a...
Definition RibbonGroup.h:51
The UI ribbon is a horizontal menu bar typically located at the top of the application interface or a...
Definition Ribbon.h:54
Represents a sub-section of "Tab" of a ribbon represting a grouping of buttons or widgets within a ta...
Definition RibbonSubGroup.h:47
The core String class for the NDEVR API.
Definition String.h:69
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:60
Manages all windows and logic surrounding dialogs and views for displaying and managing any environme...
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
Requests a ribbon or tab area to be in a certain location and orientation relative to another widget.
Definition RibbonArea.h:71
Definition NDEVRRibbon.h:71
bool showFileActions() const
RibbonVisibleOption light_theme_visible
Definition NDEVRRibbon.h:90
RibbonVisibleOption view_actions_visible
Definition NDEVRRibbon.h:82
RibbonVisibleOption about_visible
Definition NDEVRRibbon.h:93
RibbonVisibleOption draw_actions_visible
Definition NDEVRRibbon.h:83
bool showMainButton() const
RibbonVisibleOption wifi_visible
Definition NDEVRRibbon.h:96
RibbonVisibleOption layers_visible
Definition NDEVRRibbon.h:86
bool showEditActions() const
RibbonVisibleOption measure_actions_visible
Definition NDEVRRibbon.h:85
bool showMeasureActions() const
RibbonVisibleOption reports_visible
Definition NDEVRRibbon.h:92
bool showHomeGeneral() const
bool showProjectBrowser() const
bool showColorTheme() const
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
static bool ShouldShow(RibbonVisibleOption option, bool default_option)
RibbonVisibleOption main_button_visible
Definition NDEVRRibbon.h:87
RibbonVisibleOption file_actions_visible
Definition NDEVRRibbon.h:81
bool showViewActions() const
bool showWidgetMode() const
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
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