QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Types | Public Member Functions | List of all members
QgsComposerMultiFrameMergeCommand Class Reference

A composer command that merges together with other commands having the same context (=id) for multi frame items. More...

#include <qgscomposermultiframecommand.h>

Inheritance diagram for QgsComposerMultiFrameMergeCommand:
Inheritance graph
[legend]

Public Types

enum  Context { Unknown = 0, HtmlSource, HtmlStylesheet, HtmlBreakDistance }
 

Public Member Functions

 QgsComposerMultiFrameMergeCommand (Context c, QgsComposerMultiFrame *multiFrame, const QString &text)
 
 ~QgsComposerMultiFrameMergeCommand ()
 
bool mergeWith (const QUndoCommand *command)
 
int id () const
 
- Public Member Functions inherited from QgsComposerMultiFrameCommand
 QgsComposerMultiFrameCommand (QgsComposerMultiFrame *multiFrame, const QString &text, QUndoCommand *parent=0)
 
 ~QgsComposerMultiFrameCommand ()
 
void undo ()
 
void redo ()
 
void savePreviousState ()
 
void saveAfterState ()
 
QDomDocument previousState () const
 
QDomDocument afterState () const
 
bool containsChange () const
 Returns true if previous state and after state are valid and different. More...
 
const QgsComposerMultiFramemultiFrame () const
 

Additional Inherited Members

- Protected Member Functions inherited from QgsComposerMultiFrameCommand
 QgsComposerMultiFrameCommand ()
 
void saveState (QDomDocument &stateDoc)
 
void restoreState (QDomDocument &stateDoc)
 
bool checkFirstRun ()
 
- Protected Attributes inherited from QgsComposerMultiFrameCommand
QgsComposerMultiFramemMultiFrame
 
QDomDocument mPreviousState
 
QDomDocument mAfterState
 
bool mFirstRun
 

Detailed Description

A composer command that merges together with other commands having the same context (=id) for multi frame items.

Keeps the oldest previous state and uses the newest after state. The purpose is to avoid too many micro changes in the history

Member Enumeration Documentation

Enumerator
Unknown 
HtmlSource 
HtmlStylesheet 
HtmlBreakDistance 

Constructor & Destructor Documentation

QgsComposerMultiFrameMergeCommand::QgsComposerMultiFrameMergeCommand ( QgsComposerMultiFrameMergeCommand::Context  c,
QgsComposerMultiFrame multiFrame,
const QString &  text 
)
QgsComposerMultiFrameMergeCommand::~QgsComposerMultiFrameMergeCommand ( )

Member Function Documentation

int QgsComposerMultiFrameMergeCommand::id ( ) const
inline
bool QgsComposerMultiFrameMergeCommand::mergeWith ( const QUndoCommand *  command)

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