Namespace sh::ui::qt::feedbackpanelsΒΆ

namespace sh::ui::qt::feedbackpanels

Qt user interface parts for user feedback in action execution dialogs.

Implementations of sh::ui::qt::feedbackpanels::FeedbackPanel are used for implementing parts of sh::ui::ActionExecutionInfoDialog.

Typedefs

typedef QPair<QString, QWidget*> GridFormRow
class Credentials : public sh::ui::qt::feedbackpanels::FeedbackPanel
#include <credentials.h>

FeedbackPanel for user login credentials (password based).

Public Functions

Credentials(QString domain, QString username, QString password, QString text, bool showDomain, bool showUsername, bool showPassword, bool showAnonymous, bool showRemember)
~Credentials()
void cancelRequested()
bool isClosed()
void waitUntilClosed()
int preferredHeight()

Public Members

QString domain
QString username
QString password
bool anonymous
bool remember
bool accepted

Signals

void wasClosed()

Private Members

Ui::Credentials *ui

Private Slots

void on_chkAnonymous_toggled(bool checked)
void on_pushButton_3_clicked()
void on_pushButton_4_clicked()
class FeedbackPanel : public QWidget
#include <feedbackpanel.h>

Abstract base class for a Qt helper widget used in action user feedback.

Subclassed by sh::ui::qt::feedbackpanels::Credentials, sh::ui::qt::feedbackpanels::GridForm, sh::ui::qt::feedbackpanels::MsgBox, sh::ui::qt::feedbackpanels::UnixPermissions

Public Functions

FeedbackPanel(QWidget *parent = 0)
bool isClosed()
void waitUntilClosed()
int preferredHeight()
void cancelRequested() = 0

Signals

void wasClosed()

Private Members

QMutex _mutex
QWaitCondition _closedcondition
bool _closed = false
class GridForm : public sh::ui::qt::feedbackpanels::FeedbackPanel
#include <gridform.h>

FeedbackPanel for grid based forms.

Public Functions

GridForm(QString text, QList<sh::ui::qt::feedbackpanels::GridFormRow> form, QStringList answers, int defaultanswer = -1, int cancelanswer = -1, QWidget *parent = 0)
~GridForm()
int preferredHeight()
void cancelRequested()
bool isClosed()
void waitUntilClosed()

Public Members

int answer = -1

Signals

void wasClosed()

Private Members

Ui::GridForm *ui
QHash<QPushButton*, int> btn2index
QPushButton *_cancelBtn = 0
QPushButton *_defaultBtn = 0

Private Slots

void slot_btnclicked()
class GridFormInnerSimpleChooser : public QWidget
#include <gridforminnersimplechooser.h>

Helper widget for a GridForm.

Public Functions

GridFormInnerSimpleChooser(sh::actions::ActionExecutionUserFeedback::Choices *choices, QWidget *parent = 0)
~GridFormInnerSimpleChooser()

Public Members

int answer = -1
QString text

Private Functions

bool eventFilter(QObject *obj, QEvent *event)

Private Members

QLineEdit *lineedit
sh::actions::ActionExecutionUserFeedback::Choices *choices
QVBoxLayout *mylayout
sh::actions::ActionExecutionUserFeedback::Choice *currentchoice = 0

Private Slots

void slot_chosen(int id)
void slot_textedited(QString t)
class MsgBox : public sh::ui::qt::feedbackpanels::FeedbackPanel
#include <msgbox.h>

FeedbackPanel for showing a message, some answer buttons, and optionally a text input box.

Public Functions

MsgBox(QString question, QList<QString> answers, QString icon = "", QString withInputBox = QString(), bool inputBoxMultiline = false, int defaultanswer = -1, int cancelanswer = -1, int valuePreselectFrom = -1, int valuePreselectTo = -1, QList<QString> answericons = QList<QString>(), QWidget *parent = 0)
~MsgBox()
void cancelRequested()
bool isClosed()
void waitUntilClosed()

Public Members

int answer = -1
QString text

Signals

void wasClosed()

Private Members

Ui::MsgBox *ui
QHash<QPushButton*, int> btn2index
QWidget *_initialFocusWidget = 0
QPushButton *_cancelBtn = 0
QPushButton *_defaultBtn = 0
bool _inputBoxMultiline
int _valuePreselectFrom
int _valuePreselectTo

Private Slots

void slot_btnclicked()
class UnixPermissions : public sh::ui::qt::feedbackpanels::FeedbackPanel
#include <unixpermissions.h>

FeedbackPanel for setting one set of unix filesystem permissions.

Public Functions

UnixPermissions(QWidget *parent = 0)
~UnixPermissions()
void cancelRequested()
void setflags(bool userMayRead, bool userMayWrite, bool userMayExecute, bool groupMayRead, bool groupMayWrite, bool groupMayExecute, bool othersMayRead, bool othersMayWrite, bool othersMayExecute, bool sticky, bool setuid, bool setgid)
void setusers(QStringList users, QString selecteduser)
void setgroups(QStringList groups, QString selectedgroup)
bool isClosed()
void waitUntilClosed()
int preferredHeight()

Public Members

bool accepted
bool userMayRead
bool userMayWrite
bool userMayExecute
bool groupMayRead
bool groupMayWrite
bool groupMayExecute
bool othersMayRead
bool othersMayWrite
bool othersMayExecute
bool sticky
bool setuid
bool setgid
QString user
QString group

Signals

void wasClosed()

Private Members

Ui::UnixPermissions *ui

Private Slots

void on_pushButton_clicked()
void on_pushButton_2_clicked()