NDEVR
API Documentation
FormSheetWindowManager.h
1#pragma once
2#include <NDEVR/MainWindow.h>
3#include "NDEVR/Headers/NDEVRRibbon.h"
4#include "NDEVR/Headers/WindowManager.h"
5#include "Widgets/Headers/ContainerWidget.h"
6#include "NDEVR/Headers/SceneTree.h"
7#include "CustomerModelList.h"
8#include <QMainWindow>
9namespace NDEVR
10{
13 {
15 std::function<bool(const Model& model)> tree_filter;
16 };
17 class MainWindow;
24 {
25 Q_OBJECT
26 public:
46 ContainerWidget* container() const final override { return m_container; }
50 NDEVRWindow* mainWindow() const final override { return m_main_window; }
52 virtual void clearAll() {};
54 virtual void updateModified()
55 {
56
57 }
58
62 void requestExit(QCloseEvent* event, const PopupInfo& popup_origin = PopupInfo()) override;
67 virtual void exit(bool relaunch = false, const StringView& relaunch_options) override;
68 protected:
75 };
76}
manages a series of SectionContent that can share the same space or lay out in various patterns inclu...
A type-safe dock widget that wraps a specific widget type.
virtual void updateModified()
Updates the modified indicator in the UI.
NDEVRRibbon * m_ribbon_list
The ribbon widget.
void requestExit(QCloseEvent *event, const PopupInfo &popup_origin=PopupInfo()) override
Handles an exit request, prompting to save if needed.
virtual void exit(bool relaunch=false, const StringView &relaunch_options) override
Exits the application, optionally relaunching.
DockWidget< SceneTree > * m_scene_tree_dock
The scene tree dock widget.
NDEVRRibbon * ribbon()
Returns the ribbon widget.
virtual ~FormSheetWindowManager()
Destroys the window manager and releases resources.
FormSheetWindowManager()
Constructs the form sheet window manager.
NDEVRWindow * mainWindow() const final override
Returns the main application window.
MainWindow * m_main_window
The main application window.
DockWidget< CustomerModelList > * customerList()
Returns the customer list dock widget, creating it if needed.
ContainerWidget * container() const final override
Returns the main container widget.
SheetOptions m_sheet_options
The form sheet display options.
virtual void clearAll()
Clears all managed state.
ContainerWidget * m_container
The central container widget.
DockWidget< CustomerModelList > * m_customer_list
The customer list dock widget.
DockWidget< SceneTree > * sceneTree()
Returns the scene tree dock widget, creating it if needed.
The primary Window within the NDEVR API.
Definition MainWindow.h:69
A core class that represents a node on model hierarchy.
Definition Model.h:292
The Ribbon that typically appears on the top of the window or, in touch mode, to the side of the wind...
A top-level widget.
Definition NDEVRWindow.h:51
The core String View class for the NDEVR API.
Definition StringView.h:58
The core String class for the NDEVR API.
Definition String.h:95
WindowManager(QTModelManager *manager)
Constructs a WindowManager with the given model manager.
The primary namespace for the NDEVR SDK.
Class which is used to pass arguments and requests for creating a popup dialog or widget.
Definition PopupInfo.h:16
Options for configuring the form sheet window's customer type and tree filter.
String customer_type
The customer type identifier to display.
std::function< bool(const Model &model)> tree_filter
Filter function for the scene tree.