QtxAction Class Reference

#include <QtxAction.h>

Inheritance diagram for QtxAction:

Inheritance graph

Public Member Functions

 QtxAction (QObject *=0, const char *=0, bool=false)
 QtxAction (const QString &, const QString &, int, QObject *, const char *=0, bool=false)
 QtxAction (const QString &, const QIconSet &, const QString &, int, QObject *, const char *=0, bool=false)
virtual ~QtxAction ()
virtual bool addTo (QWidget *)
virtual bool addTo (QWidget *, int)
virtual bool removeFrom (QWidget *)

Protected Member Functions

void setPopup (QWidget *, const int, QPopupMenu *) const

Private Attributes

QMap< QWidget *, int > myMenuIds

Constructor & Destructor Documentation

QtxAction::QtxAction QObject parent = 0,
const char *  name = 0,
bool  toggle = false
 

Name: QtxAction [public] Desc: Constructs an action with given parent and name. If toggle is true the action will be a toggle action, otherwise it will be a command action.

QtxAction::QtxAction const QString &  text,
const QString &  menuText,
int  accel,
QObject parent,
const char *  name = 0,
bool  toggle = false
 

Name: QtxAction [public] Desc: This constructor creates an action with the following properties: the description text, the menu text and keyboard accelerator. It is a child of given parent and named specified name. If toggle is true the action will be a toggle action, otherwise it will be a command action.

QtxAction::QtxAction const QString &  text,
const QIconSet &  icon,
const QString &  menuText,
int  accel,
QObject parent,
const char *  name = 0,
bool  toggle = false
 

Name: QtxAction [public] Desc: This constructor creates an action with the following properties: the description text, the icon or iconset icon, the menu text and keyboard accelerator. It is a child of given parent and named specified name. If toggle is true the action will be a toggle action, otherwise it will be a command action.

QtxAction::~QtxAction  )  [virtual]
 

Name: ~QtxAction [virtual public] Desc: Destructor.


Member Function Documentation

bool QtxAction::addTo QWidget w  )  [virtual]
 

Name: addTo [virtual public] Desc: Adds this action to widget. Returns true if the action was added successfully and false otherwise.

Reimplemented in QtxActionMenuMgr.MenuAction, QtxActionMgr.SeparatorAction, QtxDockAction, QtxListAction, QtxMRUAction, QtxWorkspaceAction, and QtxWorkstackAction.

bool QtxAction::addTo QWidget w,
int  index
[virtual]
 

Name: addTo [virtual public] Desc: Adds this action to widget. If widget is QPopupMenu given index will be used for menu item inserting. Returns true if the action was added successfully and false otherwise.

Reimplemented in QtxDockAction, QtxListAction, QtxMRUAction, QtxWorkspaceAction, and QtxWorkstackAction.

bool QtxAction::removeFrom QWidget w  )  [virtual]
 

Name: removeFrom [virtual public] Desc: Removes this action from widget. Returns true if the action was removed successfully and false otherwise.

Reimplemented in QtxActionMenuMgr.MenuAction, QtxActionMgr.SeparatorAction, QtxDockAction, QtxListAction, QtxMRUAction, QtxWorkspaceAction, and QtxWorkstackAction.

void QtxAction::setPopup QWidget w,
const   int,
QPopupMenu subPopup
const [protected]
 

Name: setPopup [virtual public] Desc: Set or unset the sub popup menu for item with specified id in the given popup.


Field Documentation

QMap<QWidget*,int> QtxAction.myMenuIds [private]