Frapper  1.0a
Public Member Functions | List of all members
Frapper::HistoryPanel Class Reference

Class representing a panel for an undo/redo command history. More...

#include <HistoryPanel.h>

Inheritance diagram for Frapper::HistoryPanel:
Inheritance graph
[legend]
Collaboration diagram for Frapper::HistoryPanel:
Collaboration graph
[legend]

Public Member Functions

 HistoryPanel (QWidget *parent=0, Qt::WindowFlags flags=0)
 Constructor of the HistoryPanel class.
 
virtual ~HistoryPanel ()
 Destructor of the HistoryPanel class.
 
virtual void fillToolBars (QToolBar *mainToolBar, QToolBar *panelToolBar)
 Fills the given tool bars with actions for the history panel.
 
void addItem (const QString &text)
 Adds the given text to the history list.
 
- Public Member Functions inherited from Frapper::Panel
 Panel (QWidget *parent=0, Qt::WindowFlags flags=0)
 Constructor of the Panel class.
 
virtual ~Panel ()
 Destructor of the Panel class.
 
QMap< QString, QString > getPanelParameters ()
 Gets the panel parameters. For load and save functionality.
 
virtual void setPanelParameters (const QMap< QString, QString > &parameterMap)
 Sets the panel parameters. For load and save functionality.
 
virtual void registerControl (NodeModel *nodeModel, SceneModel *sceneModel)
 Connects the panel with the scene.
 

Additional Inherited Members

- Public Types inherited from Frapper::Panel
enum  Type {
  T_Uninitialized = -1, T_Viewport, T_NetworkEditor, T_HierarchyEditor,
  T_ParameterEditor, T_CurveEditor, T_Timeline, T_History,
  T_Log, T_Documentation, T_NumTypes
}
 Nested enumeration of panel types. More...
 
- Static Public Member Functions inherited from Frapper::Panel
static QString getTypeName (Type panelType)
 Returns the name of the given panel type.
 
static QString getTypeIconName (Type panelType)
 Returns the icon name for the given panel type.
 
- Protected Attributes inherited from Frapper::Panel
QMap< QString, QString > m_parameterMap
 Map with default values. For load and save functionality.
 

Detailed Description

Class representing a panel for an undo/redo command history.

Constructor & Destructor Documentation

Frapper::HistoryPanel::HistoryPanel ( QWidget *  parent = 0,
Qt::WindowFlags  flags = 0 
)

Constructor of the HistoryPanel class.

Constructors and Destructors.

Parameters
parentThe parent widget the created instance will be a child of.
flagsExtra widget options.

Constructor of the HistoryPanel class.

Parameters
parentThe parent widget the created instance will be a child of.
flagsExtra widget options.
Frapper::HistoryPanel::~HistoryPanel ( )
virtual

Destructor of the HistoryPanel class.

Defined virtual to guarantee that the destructor of a derived class will be called if the instance of the derived class is saved in a variable of its parent class type.

Member Function Documentation

void Frapper::HistoryPanel::fillToolBars ( QToolBar *  mainToolBar,
QToolBar *  panelToolBar 
)
virtual

Fills the given tool bars with actions for the history panel.

Public Functions.

Parameters
mainToolBarThe main tool bar to fill with actions.
panelToolBarThe panel tool bar to fill with actions.

Fills the given tool bars with actions for the history panel.

Parameters
mainToolBarThe main tool bar to fill with actions.
panelToolBarThe panel tool bar to fill with actions.

Reimplemented from Frapper::Panel.

void Frapper::HistoryPanel::addItem ( const QString &  text)

Adds the given text to the history list.

Parameters
textThe text to add to the history list.

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