Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | Protected Member Functions | Static Private Attributes | List of all members
PanoCommand::GlobalCmdHist Class Reference

Singleton CommandHistory. More...

#include <CommandHistory.h>

Inheritance diagram for PanoCommand::GlobalCmdHist:
Inheritance graph

Static Public Member Functions

static GlobalCmdHistgetInstance ()
 

Protected Member Functions

 GlobalCmdHist ()
 

Static Private Attributes

static GlobalCmdHistinstance = 0
 

Additional Inherited Members

- Public Member Functions inherited from PanoCommand::CommandHistory
 CommandHistory ()
 ctor. More...
 
virtual ~CommandHistory ()
 dtor. More...
 
void clear ()
 Erases all the undo/redo history. More...
 
void clearRedoQueue ()
 clear all commands in the redo queue More...
 
void addCommand (PanoCommand *command, bool execute=true)
 Adds a command to the history. More...
 
virtual void undo ()
 Undoes the last action. More...
 
virtual void redo ()
 Redoes the last undone action. More...
 
bool canUndo () const
 Return true iff there is a command to undo. More...
 
bool canRedo () const
 Return true iff there is a command to redo. More...
 
std::string getLastCommandName () const
 returns the name of the last command More...
 
const PanoCommandgetLastCommand () const
 return the last PanoCommand More...
 

Detailed Description

Singleton CommandHistory.

for application that have only one subject that will receive commands

Definition at line 106 of file CommandHistory.h.

Constructor & Destructor Documentation

PanoCommand::GlobalCmdHist::GlobalCmdHist ( )
protected

Definition at line 188 of file CommandHistory.cpp.

Referenced by getInstance().

Member Function Documentation

GlobalCmdHist & PanoCommand::GlobalCmdHist::getInstance ( )
static

Definition at line 192 of file CommandHistory.cpp.

References GlobalCmdHist(), and instance.

Referenced by MainFrame::AddImages(), PreviewEditCPTool::AddLineCP(), MaskEditorPanel::AddMask(), ImageVariableDialog::ApplyNewVariables(), PanoPanel::BlenderChanged(), CPEditorPanel::CreateNewPoint(), CPListCtrl::DeleteSelected(), PanoPanel::DoCalcFOV(), PanoPanel::DoCalcOptimalROI(), PanoPanel::DoCalcOptimalWidth(), PanoPanel::FileFormatChanged(), CPEditorPanel::FineTuneSelectedPoint(), PanoPanel::HDRFileFormatChanged(), PanoPanel::HeightChanged(), PanoPanel::HFOVChanged(), Papywizard::ImportPapywizardFile(), GLPreviewFrame::LoadImages(), MainFrame::LoadProjectFile(), PreviewCropTool::MouseButtonEvent(), DragTool::MouseButtonEvent(), PreviewPanel::mousePressLMBEvent(), PreviewPanel::mousePressRMBEvent(), ImagesTreeCtrl::OnActivateImage(), MainFrame::OnAddImages(), MainFrame::OnAddTimeImages(), MainFrame::OnApplyTemplate(), GLPreviewFrame::OnAutocrop(), GLPreviewFrame::OnAutocropOutside(), PanoPanel::OnBlenderOptions(), CPEditorPanel::OnCelesteButton(), PreviewFrame::OnCenterHorizontally(), GLPreviewFrame::OnCenterHorizontally(), ImageToogleButtonEventHandler::OnChange(), PreviewFrame::OnChangeDisplayedImgs(), PreviewFrame::OnChangeFOV(), GLPreviewFrame::OnChangeFOV(), ImagesTreeCtrl::OnChar(), CPEditorPanel::OnCleanCPButton(), CPEditorPanel::OnCPEvent(), GLPreviewFrame::OnCreate(), GLPreviewFrame::OnCreateCP(), ImagesPanel::OnCropFactorChanged(), ImagesTreeCtrl::OnDeactivateImage(), PreviewFrame::OnDecreaseExposure(), GLPreviewFrame::OnDecreaseExposure(), PreviewFrame::OnDefaultExposure(), GLPreviewFrame::OnDefaultExposure(), CPEditorPanel::OnDeleteButton(), PanoDropTarget::OnDropFiles(), PanoPanel::OnEdgeFillChanged(), PanoPanel::OnEdgeFillOptions(), ImagesTreeCtrl::OnEndEdit(), ImagesTreeCtrl::OnExecuteOperation(), GLPreviewFrame::OnExposureChanged(), MainFrame::OnFineTuneAll(), PreviewFrame::OnFitPano(), GLPreviewFrame::OnFitPano(), ImagesPanel::OnFocalLengthChanged(), PanoPanel::OnFusionOptions(), PanoPanel::OnHDRMergeOptions(), PanoPanel::OnHDRTIFFCompression(), GLPreviewFrame::OnHFOVChanged(), PreviewFrame::OnIncreaseExposure(), GLPreviewFrame::OnIncreaseExposure(), huginApp::OnInit(), PanoPanel::OnJPEGQualityText(), CPEditorPanel::OnKey(), ImagesTreeCtrl::OnLeftUp(), ImagesPanel::OnLensTypeChanged(), MainFrame::OnLoadingFailed(), MaskEditorPanel::OnMaskDelete(), MaskEditorPanel::OnMaskLoad(), MaskEditorPanel::OnMaskPaste(), MaskEditorPanel::OnMaskTypeChange(), ImagesPanel::OnMaxEvDiffChanged(), MainFrame::OnMergeProject(), ImagesPanel::OnMinimumOverlapChanged(), MainFrame::OnNewProject(), PanoPanel::OnNormalTIFFCompression(), PreviewFrame::OnNumTransform(), GLPreviewFrame::OnNumTransform(), ImagesPanel::OnOptimizerSwitchChanged(), PreviewFrame::OnOutputChoice(), PanoPanel::OnOutputFilesChanged(), ImagesPanel::OnPhotometricOptimizerSwitchChanged(), PreviewFrame::OnProjectionChoice(), GLPreviewFrame::OnProjectionChoice(), GLPreviewFrame::OnProjParameterChanged(), PreviewFrame::OnProjParameterReset(), GLPreviewFrame::OnProjParameterReset(), GLPreviewFrame::OnRangeCompressionChanged(), PreviewFrame::OnRangeCompressionDecrease(), GLPreviewFrame::OnRangeCompressionDecrease(), PreviewFrame::OnRangeCompressionIncrease(), GLPreviewFrame::OnRangeCompressionIncrease(), PreviewFrame::OnRedo(), MainFrame::OnRedo(), PanoPanel::OnRemapperOptions(), GLPreviewFrame::OnRemoveCP(), MainFrame::OnRemoveCPinMasks(), OptimizePhotometricPanel::OnReset(), OptimizePanel::OnReset(), GLPreviewFrame::OnResetCrop(), GLPreviewFrame::OnROIChanged(), GLPreviewFrame::OnSetCropAspect(), PreviewFrame::OnShowAll(), GLPreviewFrame::OnShowAll(), PreviewFrame::OnShowNone(), GLPreviewFrame::OnShowNone(), GLPreviewFrame::OnStackAutocrop(), PreviewFrame::OnStraighten(), GLPreviewFrame::OnStraighten(), PreviewFrame::OnTextCtrlChanged(), CPEditorPanel::OnTextPointChange(), PreviewFrame::OnUndo(), MainFrame::OnUndo(), GLPreviewFrame::OnVFOVChanged(), ImagesPanel::panoramaChanged(), MainFrame::panoramaChanged(), GLPreviewFrame::panoramaChanged(), PanoPanel::ProjectionChanged(), PanoPanel::RemapperChanged(), GLPreviewFrame::ResetTranslationPlaneParameters(), PanoPanel::ROIChanged(), MainFrame::RunAssistant(), ImagesPanel::RunCPGenerator(), OptimizePhotometricPanel::runOptimizer(), OptimizePanel::runOptimizer(), ImagesTreeCtrl::SelectAllParameters(), MainFrame::SetGuiLevel(), ImagesTreeCtrl::UnLinkImageVariables(), MaskEditorPanel::UpdateCrop(), GLPreviewFrame::UpdateGlobalWhiteBalance(), MaskEditorPanel::UpdateMask(), PanoPanel::VFOVChanged(), PanoPanel::WidthChanged(), and MainFrame::~MainFrame().

Member Data Documentation

GlobalCmdHist * PanoCommand::GlobalCmdHist::instance = 0
staticprivate

Definition at line 113 of file CommandHistory.h.

Referenced by getInstance().


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