Action Class Reference

A convenience subclass of QAction for simplifying the association of menu items with icons, toolbar buttons, and hotkeys. More...

#include <guiclient.h>

Public Member Functions

 Action (QWidget *, const char *, const QString &, QObject *, const char *, QWidget *, bool)
 
 Action (QWidget *, const char *, const QString &, QObject *, const char *, QWidget *, bool, const QPixmap *, QWidget *)
 
 Action (QWidget *, const char *, const QString &, QObject *, const char *, QWidget *, bool, const QPixmap *, QWidget *, const QString &)
 
 Action (QWidget *, const char *, const QString &, QObject *, const char *, QWidget *, const QString &)
 
 Action (QWidget *, const char *, const QString &, QObject *, const char *, QWidget *, const QString &, const QPixmap *, QWidget *)
 
 Action (QWidget *, const char *, const QString &, QObject *, const char *, QWidget *, const QString &, const QPixmap *, QWidget *, const QString &)
 

Detailed Description

A convenience subclass of QAction for simplifying the association of menu items with icons, toolbar buttons, and hotkeys.

Core application menu items are built using the Action class. The Action constructors - actually Action::init - attach QString values describing the user's permissions as QAction::data. These strings are interpreted in the following fashion:

  • true - the user can use this QAction
  • false - the user can not use this QAction
  • Priv - the user must have SimplePriv
  • #superuser - the user must be a DBA
  • PrivA PrivB - the user can have either PrivA or PrivB
  • PrivA+PrivB - the user must have both PrivA and PrivB
See also
Privileges::isDba()
Todo
Add support for @name:mode - call name::userHasPriv(mode)

Constructor & Destructor Documentation

◆ Action() [1/6]

Action::Action ( QWidget * pParent,
const char * pName,
const QString & pDisplayName,
QObject * pTarget,
const char * pActivateSlot,
QWidget * pAddTo,
bool pEnabled )

◆ Action() [2/6]

Action::Action ( QWidget * ,
const char * ,
const QString & ,
QObject * ,
const char * ,
QWidget * ,
bool ,
const QPixmap * ,
QWidget *  )

◆ Action() [3/6]

Action::Action ( QWidget * ,
const char * ,
const QString & ,
QObject * ,
const char * ,
QWidget * ,
bool ,
const QPixmap * ,
QWidget * ,
const QString &  )

◆ Action() [4/6]

Action::Action ( QWidget * pParent,
const char * pName,
const QString & pDisplayName,
QObject * pTarget,
const char * pActivateSlot,
QWidget * pAddTo,
const QString & pEnabled )

◆ Action() [5/6]

Action::Action ( QWidget * pParent,
const char * pName,
const QString & pDisplayName,
QObject * pTarget,
const char * pActivateSlot,
QWidget * pAddTo,
const QString & pEnabled,
const QPixmap * pIcon,
QWidget * pToolBar )

◆ Action() [6/6]

Action::Action ( QWidget * pParent,
const char * pName,
const QString & pDisplayName,
QObject * pTarget,
const char * pActivateSlot,
QWidget * pAddTo,
const QString & pEnabled,
const QPixmap * pIcon,
QWidget * pToolBar,
const QString & pToolTip )

The documentation for this class was generated from the following files:

Generated on Mon Feb 17 2025 xTuple ERP Programmer Reference, Version 6.1.0 doxygen 1.11.0