Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Slots | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
CAUndoToolButton Class Reference

#include <undotoolbutton.h>

Inheritance diagram for CAUndoToolButton:
Inheritance graph
[legend]

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 ()
 
- Public Member Functions inherited from CAToolButton
 CAToolButton (QWidget *parent)
 
virtual ~CAToolButton ()
 
int currentId ()
 
virtual void setCurrentId (int id)
 
bool buttonsVisible ()
 
void setDefaultAction (QAction *)
 
virtual void hideButtons ()
 

Protected Member Functions

void wheelEvent (QWheelEvent *)
 
- Protected Member Functions inherited from CAToolButton
CAMainWinmainWin ()
 
void setMainWin (CAMainWin *m)
 
void setPopupWidget (QWidget *w)
 
void mousePressEvent (QMouseEvent *)
 
QPoint calculateTopLeft (QSize widgetSize)
 

Private Attributes

QListWidget * _listWidget
 
CAUndoToolButtonType _type
 
QIcon _icon
 

Additional Inherited Members

- Signals inherited from CAToolButton
void toggled (bool checked, int id)
 
- Protected Attributes inherited from CAToolButton
CAMainWin_mainWin
 
int _currentId
 
CAToolButtonPopup_popupWidget
 

Member Enumeration Documentation

Enumerator
Undo 
Redo 

Constructor & Destructor Documentation

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().

Here is the call graph for this function:

CAUndoToolButton::~CAUndoToolButton ( )

References _listWidget.

Member Function Documentation

void CAUndoToolButton::onListWidgetItemClicked ( QListWidgetItem *  item)
slot

References _listWidget, CAToolButton::hideButtons(), and CAToolButton::toggled().

Referenced by CAUndoToolButton().

Here is the call graph for this function:

Here is the caller graph for this function:

void CAUndoToolButton::onListWidgetItemEntered ( QListWidgetItem *  item)
slot

References _listWidget.

Referenced by CAUndoToolButton().

Here is the caller graph for this function:

void CAUndoToolButton::setDefaultAction ( QAction action)

References _icon, and CAToolButton::setDefaultAction().

Referenced by CAMainWin::setupCustomUi().

Here is the call graph for this function:

Here is the caller graph for this function:

void CAUndoToolButton::setUndoType ( CAUndoToolButtonType  type)
inline

References _type.

Referenced by CAUndoToolButton().

Here is the caller graph for this function:

void CAUndoToolButton::showButtons ( )
virtual

Shows the popup widget if it's set

Todo:
This should be set to maxUndo steps
Todo:
This should be set to maxUndo steps

Reimplemented from CAToolButton.

References _listWidget, CAToolButton::mainWin(), Redo, CAToolButton::showButtons(), Undo, CACanorus::undo(), CAUndo::undoIndex(), CAUndo::undoStack(), and undoType().

Here is the call graph for this function:

CAUndoToolButtonType CAUndoToolButton::undoType ( )
inline

References _type.

Referenced by showButtons().

Here is the caller graph for this function:

void CAUndoToolButton::wheelEvent ( QWheelEvent *  e)
protectedvirtual

Implements CAToolButton.

Member Data Documentation

QIcon CAUndoToolButton::_icon
private
QListWidget* CAUndoToolButton::_listWidget
private
CAUndoToolButtonType CAUndoToolButton::_type
private

Referenced by setUndoType(), and undoType().


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