|
Canorus
0.7
|
#include <undotoolbutton.h>

Public Types | |
| enum | CAUndoToolButtonType { Undo, Redo } |
Public Slots | |
| void | onListWidgetItemClicked (QListWidgetItem *) |
| void | onListWidgetItemEntered (QListWidgetItem *) |
Public Member Functions | |
| CAUndoToolButton (QIcon icon, CAUndoToolButtonType t, QWidget *parent) | |
| ~CAUndoToolButton () | |
| void | setDefaultAction (QAction *) |
| CAUndoToolButtonType | undoType () |
| void | setUndoType (CAUndoToolButtonType type) |
| void | showButtons () |
Protected Member Functions | |
| void | wheelEvent (QWheelEvent *) |
Private Attributes | |
| QListWidget * | _listWidget |
| CAUndoToolButtonType | _type |
| QIcon | _icon |
| CAUndoToolButton::CAUndoToolButton | ( | QIcon | icon, |
| CAUndoToolButtonType | type, | ||
| QWidget * | parent | ||
| ) |
Copyright (c) 2007, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.
Licensed under the GNU GENERAL PUBLIC LICENSE. See COPYING for details.
References _icon, _listWidget, onListWidgetItemClicked(), onListWidgetItemEntered(), CAToolButton::setCurrentId(), CAToolButton::setPopupWidget(), and setUndoType().

References _listWidget.
| void CAUndoToolButton::onListWidgetItemClicked | ( | QListWidgetItem * | item | ) | [slot] |
References _listWidget, CAToolButton::hideButtons(), and CAToolButton::toggled().
Referenced by CAUndoToolButton().


| void CAUndoToolButton::onListWidgetItemEntered | ( | QListWidgetItem * | item | ) | [slot] |
References _listWidget.
Referenced by CAUndoToolButton().

| void CAUndoToolButton::setDefaultAction | ( | QAction * | a | ) |
Sets the new default action a and connects some signals to custom slots made by CAMenuToolButton. Also calls QToolButton::setDefaultAction().
Reimplemented from CAToolButton.
References _icon.
Referenced by CAMainWin::setupCustomUi().

| void CAUndoToolButton::setUndoType | ( | CAUndoToolButtonType | type | ) | [inline] |
| void CAUndoToolButton::showButtons | ( | ) | [virtual] |
Shows the popup widget if it's set
Reimplemented from CAToolButton.
References _listWidget, CAToolButton::mainWin(), Redo, Undo, CACanorus::undo(), CAUndo::undoIndex(), CAUndo::undoStack(), and undoType().

| CAUndoToolButtonType CAUndoToolButton::undoType | ( | ) | [inline] |
| void CAUndoToolButton::wheelEvent | ( | QWheelEvent * | e | ) | [protected, virtual] |
Implements CAToolButton.
QIcon CAUndoToolButton::_icon [private] |
Referenced by CAUndoToolButton(), and setDefaultAction().
QListWidget* CAUndoToolButton::_listWidget [private] |
Referenced by CAUndoToolButton(), onListWidgetItemClicked(), onListWidgetItemEntered(), showButtons(), and ~CAUndoToolButton().
CAUndoToolButtonType CAUndoToolButton::_type [private] |
Referenced by setUndoType(), and undoType().
1.8.0