00001
00002
00003
00004
00005
00006
00007 #ifndef WINDOW_ABSTRACT_BASE_H
00008 #define WINDOW_ABSTRACT_BASE_H
00009
00010 #include <QDockWidget>
00011
00012 class CmdMediator;
00013 class MainWindowModel;
00014 class QString;
00015 class QTableView;
00016 class Transformation;
00017
00020 class WindowAbstractBase : public QDockWidget
00021 {
00022 Q_OBJECT;
00023
00024 public:
00026 WindowAbstractBase (QWidget *parent);
00027 virtual ~WindowAbstractBase ();
00028
00030 virtual void clear () = 0;
00031
00033 virtual void closeEvent(QCloseEvent *event) = 0;
00034
00036 virtual void doCopy () = 0;
00037
00039 void getTableStatus (bool &tableIsActive,
00040 bool &tableIsCopyable) const;
00041
00043 virtual void update (const CmdMediator &cmdMediator,
00044 const MainWindowModel &modelMainWindow,
00045 const QString &curveSelected,
00046 const Transformation &transformation) = 0;
00047
00048 protected:
00050 virtual QTableView *view() const = 0;
00051
00052 private:
00053 WindowAbstractBase();
00054
00055 };
00056
00057 #endif // WINDOW_ABSTRACT_BASE_H