BALL  1.4.1
undoManagerDialog.h
Go to the documentation of this file.
00001 // -*- Mode: C++; tab-width: 2; -*-
00002 // vi: set ts=2:
00003 //
00004 
00005 #ifndef BALL_VIEW_DIALOGS_UNDOMANAGERDIALOG_H
00006 #define BALL_VIEW_DIALOGS_UNDOMANAGERDIALOG_H
00007 
00008 #ifndef BALL_COMMON_GLOBAL_H
00009 # include <BALL/COMMON/global.h>
00010 #endif
00011 
00012 #ifndef BALL_VIEW_KERNEL_MODULARWIDGET_H
00013 # include <BALL/VIEW/KERNEL/modularWidget.h>
00014 #endif
00015 
00016 #ifndef BALL_VIEW_KERNEL_SNAPSHOT_MANAGER_INTERFACE_H
00017 # include <BALL/VIEW/KERNEL/snapshotManagerInterface.h>
00018 #endif
00019 
00020 #include <QtGui/QDialog>
00021 
00022 #include <BALL/VIEW/UIC/ui_undoManagerDialog.h>
00023 
00024 namespace BALL
00025 {
00026   namespace VIEW
00027   {
00031     class BALL_VIEW_EXPORT UndoManagerDialog
00032       : public QDialog,
00033         public Ui_UndoManagerDialogData,
00034         public ModularWidget
00035     {
00036       Q_OBJECT
00037 
00038       public:
00039 
00040         BALL_EMBEDDABLE(UndoManagerDialog,ModularWidget)
00041 
00042         
00043         UndoManagerDialog( QWidget* parent = 0, const char* name = "UndoManagerDialog", Qt::WFlags fl = 0 );
00044 
00046         ~UndoManagerDialog() {}
00047 
00049         virtual void initializeWidget(MainControl& main_control);
00050 
00052         virtual void checkMenu(MainControl& main_control);
00053 
00055         virtual void onNotify(Message* message);
00056 
00057       public slots:
00058 
00060         void show();
00061 
00063         void close_pressed();
00064 
00066         void resetTo_pressed();
00067 
00069         void takeSnapshot_pressed();
00070 
00071       protected:
00072 
00073         QAction* action_;
00074         SnapshotManagerInterface snapshot_interface_;
00075 
00076         bool first_run;
00077 
00078     };
00079 
00080   }
00081 } // namespaces
00082 
00083 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines