![]() |
Scanframe Modular Application 0.1.0
|
#include <LayoutData.h>
Public Member Functions | |
LayoutData (QObject *parent=nullptr) | |
Constructor as QWidget. | |
virtual void | openPropertyEditor (QObject *target) |
Opens a property editor dialog for the given target in a derived class. The returned pointer can be used to execute the dialog in modal mode. | |
virtual void | popupContextMenu (QObject *target, const QPoint &pos) |
Executes a popup from . | |
void | setReadOnly (bool) |
Property 'converted' set method. | |
bool | getReadOnly () const |
Property 'converted' get method. | |
virtual QDir | getDirectory () const |
Gets the directory of the loaded layout file. | |
void | setDirectory (const QDir &directory) |
Gets the directory of the loaded layout file. Only has effect when getDirectory() is not overridden. | |
gii::IdType | getIdOffset () const |
Gets the id offset for all Gii widgets. Only applied when a layout is loaded. | |
void | setIdOffset (gii::IdType idOffset) const |
Sets id offset for all Gii widgets. Only applied when a layout is loaded. | |
Static Public Member Functions | |
static LayoutData * | from (QObject *target) |
Gets the layout widget instance for the passed target if any. | |
static bool | hasMenuModifiers (Qt::KeyboardModifiers modifiers) |
Returns true when the modifier are met for the context menu to popup. | |
static QString | getFileSuffix () |
Gets suffix used for layout files. | |
Base class for loading Widgets from an ui-file when used in an editor for example.
|
explicit |
Constructor as QWidget.
|
static |
Gets the layout widget instance for the passed target if any.
target | Target object in the layout. |
|
virtual |
Gets the directory of the loaded layout file.
|
static |
Gets suffix used for layout files.
gii::IdType sf::LayoutData::getIdOffset | ( | ) | const |
Gets the id offset for all Gii widgets. Only applied when a layout is loaded.
bool sf::LayoutData::getReadOnly | ( | ) | const |
Property 'converted' get method.
|
static |
Returns true when the modifier are met for the context menu to popup.
|
virtual |
Opens a property editor dialog for the given target in a derived class. The returned pointer can be used to execute the dialog in modal mode.
target | Object targeted in the editor. |
|
virtual |
Executes a popup from .
target | Object targeted in the editor. |
pos | Global position to pop up the menu. |
void sf::LayoutData::setDirectory | ( | const QDir & | directory | ) |
Gets the directory of the loaded layout file. Only has effect when getDirectory() is not overridden.
void sf::LayoutData::setIdOffset | ( | gii::IdType | idOffset | ) | const |
Sets id offset for all Gii widgets. Only applied when a layout is loaded.
void sf::LayoutData::setReadOnly | ( | bool | ) |
Property 'converted' set method.