NDEVR
API Documentation
PaperViewModelLogic.h
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/CustomModelLogic.h>
4namespace NDEVR
5{
6 class Button;
11 class NDEVR_API PaperViewModelLogic : public CustomModelLogic
12 {
13 public:
19 static void SetEnabled(bool is_enabled, QTModelManager* manager);
25 virtual void setupUI(WindowManager*) override;
31 virtual void setupPropertiesDialog(DesignObjectDialog* dialog, const DynamicPointer<QTDesignObject>& object) override;
32 private:
33 Button* m_make_page_button = nullptr;
34 };
35}
A core widget that allows the user to click one of many button types.
Definition Button.h:68
CustomModelLogic(QTModelManager *manager, const StringView &type_name)
Constructs a CustomModelLogic for a single model type name.
A popup dialog for showing options or information to the user for a particular DesignObject.
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:356
virtual void setupPropertiesDialog(DesignObjectDialog *dialog, const DynamicPointer< QTDesignObject > &object) override
Modifies property dialogs when paper view objects are created or selected.
static void SetEnabled(bool is_enabled, QTModelManager *manager)
Enables or disables the default paper view model logic for the given manager.
virtual void setupUI(WindowManager *) override
Override to set up custom UI elements for this model type.
PaperViewModelLogic(QTModelManager *manager)
Constructs the paper view model logic for the given manager.
A wrapper around DesignObjectLookup that provides signal and slot functionality and adds rendering ca...
Manages all windows and logic surrounding dialogs and views for displaying and managing any environme...
The primary namespace for the NDEVR SDK.