Hugintrunk
0.1
|
Singleton CommandHistory. More...
#include <CommandHistory.h>
Static Public Member Functions | |
static GlobalCmdHist & | getInstance () |
Protected Member Functions | |
GlobalCmdHist () | |
Static Private Attributes | |
static GlobalCmdHist * | instance = 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 PanoCommand * | getLastCommand () const |
return the last PanoCommand More... | |
Singleton CommandHistory.
for application that have only one subject that will receive commands
Definition at line 106 of file CommandHistory.h.
|
protected |
Definition at line 188 of file CommandHistory.cpp.
Referenced by 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().
|
staticprivate |
Definition at line 113 of file CommandHistory.h.
Referenced by getInstance().