Class sh::actions::ActionExecutionUserFeedback¶
-
class
sh::actions
::
ActionExecutionUserFeedback
¶ Methods for user interaction in an action execution.
When an action executes, it may need to ask the user for some input at some time. An action implementation can do so by calling those methods. It is available as a member of the ActionExecutionInfo class. An instance of it is available in each action execution.
Subclassed by sh::ui::ActionExecutionInfoDialog
Public Types
Public Functions
-
int
messageBox
(QString text, QList<QString> answers, QString icon = QString(), int defaultanswer = -1, int cancelanswer = -1, QList<QString> answericons = QList<QString>()) = 0¶
-
int
inputBox
(QString text, QList<QString> answers, QString *value, QString icon = QString(), int defaultanswer = -1, int cancelanswer = -1, int valuePreselectFrom = -1, int valuePreselectTo = -1) = 0¶
-
int
multilineInputBox
(QString text, QList<QString> answers, QString *value, QString icon = QString(), int defaultanswer = -1, int cancelanswer = -1) = 0¶
-
int
simpleChooserGridform
(QString text, GridformEntries *entries, QStringList answers, int defaultanswer = -1, int cancelanswer = -1) = 0¶
-
bool
credentialsDialog
(QString text, bool showDomain, bool showUsername, bool showPassword, bool showAnonymous, bool showRemember, QString *domain, QString *username, QString *password, bool *isAnonymous, bool *isRemember) = 0¶
-
bool
unixPermissionsDialog
(bool *userMayRead, bool *userMayWrite, bool *userMayExecute, bool *groupMayRead, bool *groupMayWrite, bool *groupMayExecute, bool *othersMayRead, bool *othersMayWrite, bool *othersMayExecute, bool *sticky, bool *setuid, bool *setgid, QStringList users, QStringList groups, QString *ownerUser, QString *ownerGroup) = 0¶
-
QString
simpleInputBox
(QString text, QString deflt, int valuePreselectFrom = -1, int valuePreselectTo = -1)¶
-
int
simpleMessageBox
(QString text, int buttons = (int)MessageBoxButton::OK, QString icon = QString(), int defaultbutton = (MessageBoxButton)0, int cancelbutton = (MessageBoxButton)0)¶
-
~ActionExecutionUserFeedback
()¶
-
class
Choice
¶ A data structure for a choice (in an GridformEntry).
Public Functions
-
Choice
(QString label, QString text = QString())¶
-
-
class
GridformEntries
¶ A data structure for a list of entries in a simple chooser grid form.
Public Functions
-
GridformEntries
()¶ Is intended to be directly constructed from everywhere.
-
~GridformEntries
()¶
-
GridformEntry *
newEntry
(QString label)¶
Public Members
-
QList<GridformEntry*>
list
¶
-
-
int