A widget that displays controls and information for the currently selected design objects.
More...
|
| | SelectionWidget (QTModelManager *manager, QWidget *parent=nullptr) |
| | Constructs a selection widget for the given model manager.
|
| void | addExclusionType (const StringView &type) |
| | Adds a model type that this widget should exclude.
|
| void | addFactory (SelectionButtonFactory *factory) |
| | Adds a custom selection button factory.
|
| void | addInclusionType (const StringView &type) |
| | Adds a model type that this widget can handle.
|
| bool | canHandle (UUID id) const |
| | Checks whether this widget can handle the given object.
|
| bool | canHandleDirectly (const Model &model) const |
| | Checks whether this widget can handle the given model directly.
|
|
void | clear () |
| | Clears the widget, removing all displayed objects.
|
|
void | createGroup () |
| | Creates the button group layout for the selection widget.
|
| Model | findModelThatIsHandled (const Model &root_model) const |
| | Searches the model hierarchy for a model that this widget can handle.
|
| bool | isShowing (UUID id) const |
| | Checks whether the given object is currently shown in the widget.
|
| void | onAddedSlot (UUID id) |
| | Handles notification that a new object was added.
|
|
void | onClearSignal () |
| | Emitted when the widget is cleared.
|
|
void | onSelectedSignal () |
| | Emitted when the widget updates for a new selection.
|
| void | onSelectedSlot (Buffer< UUID > id, bool selected) |
| | Handles selection change events from the model manager.
|
| void | onTargetUpdated (UUID id) override |
| | Called when a target design object is updated.
|
| void | onTargetUpdatedSlot (UUID id) |
| | Handles notification that a target object was updated.
|
| virtual bool | processKeyEvent (const StringView &id, const KeyEvent &key_event, DesignObjectLookup *lookup, Camera *camera) override |
| | Processes a key event identified by its string ID.
|
| void | resetKeyControllerToDefaults () override |
| | Resets all key mappings to their default values.
|
| void | setSizeMode (SizeMode mode) |
| | Sets the size mode controlling the layout.
|
|
void | updateControls () |
| | Updates the enabled and visible state of all controls.
|
|
void | updateSelected () |
| | Updates the widget to reflect the current selection state.
|
| virtual void | addTarget (const DynamicPointer< QTDesignObject > &object) |
| | Adds a design object to the set of targets.
|
| virtual Bounds< 3, fltp08 > | bounds () const |
| | Returns the combined 3D bounding box of all target design objects.
|
|
void | clearTargets () |
| | Removes all target design objects from this widget.
|
| QTModelManager * | manager () const |
| | Returns the current model manager.
|
| Buffer< Model > | models () const |
| | Returns all target objects as Models.
|
| virtual void | removeTarget (const DynamicPointer< QTDesignObject > &object) |
| | Removes a specific target design object.
|
| virtual void | removeTarget (const UUID &object) |
| | Removes a specific target by UUID.
|
| void | setManager (QTModelManager *manager) |
| | Sets the model manager used for UUID-based lookups.
|
| void | setTarget (const DynamicPointer< QTDesignObject > &object) |
| | Sets a single target design object, replacing any existing targets.
|
| void | setTargetID (const UUID &object) |
| | Sets a single target by UUID, replacing any existing targets.
|
| void | setTargetIDs (const Buffer< UUID > &objects) |
| | Sets multiple targets by UUID, replacing any existing targets.
|
| void | setTargets (const Buffer< DynamicPointer< QTDesignObject > > &objects) |
| | Sets multiple target design objects, replacing any existing targets.
|
| Buffer< UUID > | targetIDs () const |
| | Returns the UUIDs of all current target design objects.
|
| | BasicKeyController (const TranslatedString &key_controller_title) |
| | Constructs a BasicKeyController with the given title.
|
| virtual void | addKeyOption (const KeyOption &option) |
| | Adds a new key option mapping to this controller.
|
| const Buffer< KeyOption > & | currentKeyMaps () const |
| | Returns the current set of key option mappings.
|
| virtual void | getINI (INIFactory &factory) override |
| | Serializes or deserializes key controller settings to/from an INI file.
|
| const TranslatedString & | keyControllerTitle () const |
| | Returns the display title of this key controller.
|
| bool | processKeyEvent (const KeyEvent &key_event, DesignObjectLookup *lookup, Camera *camera) final override |
| | Processes a key event by matching it against registered key options.
|
| virtual void | setKeyOption (const KeyOption &option) |
| | Sets or updates an existing key option mapping.
|
|
| INIInterface () |
| | Constructs an INIInterface with no default INI file.
|
| | INIInterface (const File &default_ini) |
| | Constructs an INIInterface with the specified default INI file.
|
|
virtual | ~INIInterface () |
| | Virtual destructor for safe polymorphic cleanup.
|
| virtual void | finishReadingINI (INIFactory &) |
| | Called after reading an INI file.
|
| virtual void | prepareForINI (INIFactory &) |
| | Called before reading or writing an INI file.
|
| virtual bool | readINIOptions () |
| | Reads INI options from the default INI file.
|
| virtual bool | readINIOptions (File &ini_file) |
| | Reads INI options from the specified INI file.
|
| virtual bool | saveINIOptions (bool multithead=false) |
| | Saves INI options to the default INI file.
|
| virtual bool | saveINIOptions (File &ini_file, bool multithead=false) |
| | Saves INI options to the specified INI file.
|
| void | setDefaultINIFile (const File &file) |
| | Sets the default INI file path used for reading and writing options.
|
| virtual void | writeToLog (const StringView &title, LogPtr log, uint01 log_level=2U) |
| | Writes the current INI options to the specified log with a title.
|
| virtual void | writeToLog (LogPtr log, uint01 log_level=2U) |
| | Writes the current INI options to the specified log.
|
A widget that displays controls and information for the currently selected design objects.
Supports filtering by object type and customizable button factories.
Definition at line 111 of file SelectionWidget.h.