Public Member Functions | Private Attributes

conan::anonymous_namespace{ConanWidget.cpp}::SelectObjectCommand Class Reference

A command that finds an object by address, selects it and makes it current. More...

List of all members.

Public Member Functions

 SelectObjectCommand (QItemSelectionModel *inSelectionModel, const QString &inOldAddress, const QString &inNewAddress)
virtual void undo ()
virtual void redo ()

Private Attributes

QItemSelectionModel * mSelectionModel
QString mOldAddress
 The selection model of an ObjectModel.
QString mNewAddress
 The address of the old current object.
bool mSkipFirstSelect
 The address of the new current object.

Detailed Description

A command that finds an object by address, selects it and makes it current.

Note that during the first redo nothing is done, because this command is generated after an actual current index change.


Constructor & Destructor Documentation

conan::anonymous_namespace{ConanWidget.cpp}::SelectObjectCommand::SelectObjectCommand ( QItemSelectionModel *  inSelectionModel,
const QString &  inOldAddress,
const QString &  inNewAddress 
) [inline]

Member Function Documentation

virtual void conan::anonymous_namespace{ConanWidget.cpp}::SelectObjectCommand::redo (  )  [inline, virtual]
virtual void conan::anonymous_namespace{ConanWidget.cpp}::SelectObjectCommand::undo (  )  [inline, virtual]

Member Data Documentation

QString conan::anonymous_namespace{ConanWidget.cpp}::SelectObjectCommand::mNewAddress [private]

The address of the old current object.

QString conan::anonymous_namespace{ConanWidget.cpp}::SelectObjectCommand::mOldAddress [private]

The selection model of an ObjectModel.

QItemSelectionModel* conan::anonymous_namespace{ConanWidget.cpp}::SelectObjectCommand::mSelectionModel [private]
bool conan::anonymous_namespace{ConanWidget.cpp}::SelectObjectCommand::mSkipFirstSelect [private]

The address of the new current object.


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