QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskDialog Class Reference

Detailed Description

Definition at line 23 of file QskDialog.h.

Inheritance diagram for QskDialog:

Public Types

enum  Policy { EmbeddedBox , EmbeddedWindow , TopLevelWindow }
 
enum  Action {
  NoAction = 0 , Ok = 1 << 10 , Save = 1 << 11 , SaveAll = 1 << 12 ,
  Open = 1 << 13 , Yes = 1 << 14 , YesToAll = 1 << 15 , No = 1 << 16 ,
  NoToAll = 1 << 17 , Abort = 1 << 18 , Retry = 1 << 19 , Ignore = 1 << 20 ,
  Close = 1 << 21 , Cancel = 1 << 22 , Discard = 1 << 23 , Help = 1 << 24 ,
  Apply = 1 << 25 , Reset = 1 << 26 , RestoreDefaults = 1 << 27
}
 
enum  ActionRole {
  InvalidRole = -1 , AcceptRole , RejectRole , DestructiveRole ,
  UserRole , HelpRole , YesRole , NoRole ,
  ResetRole , ApplyRole , NActionRoles
}
 
enum  ButtonLayoutFlag { ActionMask = 0x0FFFFFFF , AlternateRole = 1 << 28 , Stretch = 1 << 29 , Reverse = 1 << 30 }
 
enum  DialogCode { Rejected = 0 , Accepted }
 

Properties

Policy policy
 
QWindow * transientParent
 

Public Member Functions

void setPolicy (Policy)
 
Policy policy () const
 
Q_INVOKABLE void setTransientParent (QWindow *)
 
Q_INVOKABLE QWindow * transientParent () const
 
Q_INVOKABLE Action message (const QString &title, const QString &text, uint priority=0, Actions actions=Ok, Action defaultAction=NoAction) const
 
Q_INVOKABLE Action information (const QString &title, const QString &text, Actions actions=Ok, Action defaultAction=NoAction) const
 
Q_INVOKABLE Action question (const QString &title, const QString &text, Actions actions=Actions(Yes|No), Action defaultAction=NoAction) const
 
Q_INVOKABLE QString select (const QString &title, const QStringList &entries, int selectedRow=0) const
 

Static Public Member Functions

static QskDialoginstance ()
 
static ActionRole actionRole (Action action)
 

Signals

void transientParentChanged ()
 
void policyChanged ()
 

Member Enumeration Documentation

◆ Action

enum QskDialog::Action

Definition at line 44 of file QskDialog.h.

◆ ActionRole

enum QskDialog::ActionRole

Definition at line 71 of file QskDialog.h.

◆ ButtonLayoutFlag

enum QskDialog::ButtonLayoutFlag

Definition at line 91 of file QskDialog.h.

◆ DialogCode

enum QskDialog::DialogCode

Definition at line 101 of file QskDialog.h.

◆ Policy

enum QskDialog::Policy

Definition at line 34 of file QskDialog.h.

Member Function Documentation

◆ ~QskDialog()

QskDialog::~QskDialog ( )
overrideprivate

Definition at line 222 of file QskDialog.cpp.

◆ actionRole()

QskDialog::ActionRole QskDialog::actionRole ( Action  action)
static

Definition at line 324 of file QskDialog.cpp.

◆ information()

QskDialog::Action QskDialog::information ( const QString &  title,
const QString &  text,
Actions  actions = Ok,
Action  defaultAction = NoAction 
) const

Definition at line 282 of file QskDialog.cpp.

◆ instance()

QskDialog * QskDialog::instance ( )
static

Definition at line 226 of file QskDialog.cpp.

◆ message()

QskDialog::Action QskDialog::message ( const QString &  title,
const QString &  text,
uint  priority = 0,
Actions  actions = Ok,
Action  defaultAction = NoAction 
) const

Definition at line 260 of file QskDialog.cpp.

◆ policy()

QskDialog::Policy QskDialog::policy ( ) const

Definition at line 241 of file QskDialog.cpp.

◆ question()

QskDialog::Action QskDialog::question ( const QString &  title,
const QString &  text,
Actions  actions = Actions( Yes | No ),
Action  defaultAction = NoAction 
) const

Definition at line 289 of file QskDialog.cpp.

◆ select()

QString QskDialog::select ( const QString &  title,
const QStringList &  entries,
int  selectedRow = 0 
) const

Definition at line 296 of file QskDialog.cpp.

◆ setPolicy()

void QskDialog::setPolicy ( Policy  policy)

Definition at line 232 of file QskDialog.cpp.

◆ setTransientParent()

void QskDialog::setTransientParent ( QWindow *  window)

Definition at line 246 of file QskDialog.cpp.

◆ transientParent()

QWindow * QskDialog::transientParent ( ) const

Definition at line 255 of file QskDialog.cpp.

Property Documentation

◆ policy

Policy QskDialog::policy
readwrite

Definition at line 27 of file QskDialog.h.

◆ transientParent

QWindow * QskDialog::transientParent
readwrite

Definition at line 30 of file QskDialog.h.