Loading...
Searching...
No Matches
undoManagerDialog.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_VIEW_DIALOGS_UNDOMANAGERDIALOG_H
#define BALL_VIEW_DIALOGS_UNDOMANAGERDIALOG_H
#ifndef BALL_COMMON_GLOBAL_H
# include <BALL/COMMON/global.h>
#endif
#ifndef BALL_VIEW_KERNEL_MODULARWIDGET_H
# include <BALL/VIEW/KERNEL/modularWidget.h>
#endif
#ifndef BALL_VIEW_KERNEL_SNAPSHOT_MANAGER_INTERFACE_H
# include <BALL/VIEW/KERNEL/snapshotManagerInterface.h>
#endif
#include <QtWidgets/QDialog>
#include <BALL/VIEW/UIC/ui_undoManagerDialog.h>
namespace BALL
{
namespace VIEW
{
class BALL_VIEW_EXPORT UndoManagerDialog
: public QDialog,
public Ui_UndoManagerDialogData,
public ModularWidget
{
Q_OBJECT
public:
BALL_EMBEDDABLE(UndoManagerDialog,ModularWidget)
UndoManagerDialog( QWidget* parent = 0, const char* name = "UndoManagerDialog", Qt::WindowFlags fl = 0 );
~UndoManagerDialog() {}
virtual void initializeWidget(MainControl& main_control);
virtual void checkMenu(MainControl& main_control);
virtual void onNotify(Message* message);
public Q_SLOTS:
void show();
void close_pressed();
void resetTo_pressed();
void takeSnapshot_pressed();
protected:
QAction* action_;
SnapshotManagerInterface snapshot_interface_;
bool first_run;
};
}
} // namespaces
#endif
global.h
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::VIEW::MainControl
Definition mainControl.h:118
BALL::VIEW::Message
Definition message.h:53
BALL::VIEW::ModularWidget::ModularWidget
ModularWidget(const char *name="<ModularWidget>")
BALL::VIEW::SnapshotManagerInterface
Definition snapshotManagerInterface.h:16
BALL::VIEW::UndoManagerDialog::show
void show()
Show and raise dialog.
BALL::VIEW::UndoManagerDialog::initializeWidget
virtual void initializeWidget(MainControl &main_control)
BALL::VIEW::UndoManagerDialog::takeSnapshot_pressed
void takeSnapshot_pressed()
BALL::VIEW::UndoManagerDialog::action_
QAction * action_
Definition undoManagerDialog.h:73
BALL::VIEW::UndoManagerDialog::snapshot_interface_
SnapshotManagerInterface snapshot_interface_
Definition undoManagerDialog.h:74
BALL::VIEW::UndoManagerDialog::resetTo_pressed
void resetTo_pressed()
BALL::VIEW::UndoManagerDialog::first_run
bool first_run
Definition undoManagerDialog.h:76
BALL::VIEW::UndoManagerDialog::checkMenu
virtual void checkMenu(MainControl &main_control)
BALL::VIEW::UndoManagerDialog::UndoManagerDialog
UndoManagerDialog(QWidget *parent=0, const char *name="UndoManagerDialog", Qt::WindowFlags fl=0)
Constructor.
BALL::VIEW::UndoManagerDialog::onNotify
virtual void onNotify(Message *message)
Overrides message in order to intercept system changed events.
BALL::VIEW::UndoManagerDialog::close_pressed
void close_pressed()
QDialog
QWidget
BALL_EMBEDDABLE
#define BALL_EMBEDDABLE(TYPE, BASE)
Definition embeddable.h:31
modularWidget.h
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13
snapshotManagerInterface.h