Class sh::scripting::api::ApiFilePropertyDialogTab¶
-
class
sh::scripting::api
::
ApiFilePropertyDialogTab
: public sh::ui::FilePropertyDialogTab¶ Public Functions
-
ApiFilePropertyDialogTab
(QString title, QList<PropertyConfig> properties)¶
-
QString
title
() override¶ The tab title. .
-
QList<QString>
properties
() override¶ Returns the list of property labels (one entry for each widget).
Each property is displayed with a header and a widget (created in createWidget) with some content (populated in updateWidget).
-
void
populateWidget
(int i, sh::ui::FilePropertyDialogTabActionsView *widget) override¶ Populates the tab widget for the i-th property.
Typically uses the FilePropertyDialog::create* methods to create sub-widgets.
See also dialog().
-
void
updateWidget
(int i, sh::ui::FilePropertyDialogTabActionsView *widget, sh::filesystem::Operation *op) override¶ Populates the widget for the i-th property with actual content. .
-
QString
titleWithoutMnemonic
()¶ The tab title without mnemonic.
-
void
refresh
()¶ Refreshes the complete content.
Typically called after some user actions in a property widget require that all the other content must be refreshed.
-
QList<std::shared_ptr<sh::filesystem::FilesystemNode>>
nodes
()¶ The nodes to show.
-
FilePropertyDialogTabActionsView *
widgetAt
(int i)¶ Returns the widget for the i-th property.
-
int
widgetCount
()¶ Returns the number of widgets.
-
std::shared_ptr<FilePropertyDialog>
dialog
()¶ Returns the associated dialog.
Public Members
-
std::function< QList< QString >int, sh::filesystem::Operation *, qintptr)> _updateWidget
Public Static Attributes
-
const int
PROPERTY_TYPE_STRING
= 1¶
-
const int
PROPERTY_TYPE_STRINGMAP
= 2¶
-
const int
PROPERTY_TYPE_ICONTEXTBANNER
= 3¶
Private Types
-
typedef QPair<QString, QString>
StringPair
¶
-
class
PropertyConfig
¶ Public Types
-
typedef QPair<QString, QString>
ButtonConfig
¶
Public Functions
-
PropertyConfig
(QString title, int propertytype, QList<ButtonConfig> buttons)¶
-
typedef QPair<QString, QString>
-