Engauge Digitizer 2
|
Dockable widget abstract base class. More...
#include <WindowAbstractBase.h>
Public Member Functions | |
WindowAbstractBase (QWidget *parent) | |
Single constructor. Parent is needed or else this widget cannot be redocked after being undocked. | |
virtual | ~WindowAbstractBase () |
virtual void | clear ()=0 |
Clear stale information. | |
virtual void | closeEvent (QCloseEvent *event)=0 |
Catch close event so corresponding menu item in MainWindow can be updated accordingly. | |
virtual void | doCopy ()=0 |
Copy the current selection to the clipboard. | |
void | getTableStatus (bool &tableIsActive, bool &tableIsCopyable) const |
Give table status so MainWindow can determine if table can be copied. | |
virtual void | update (const CmdMediator &cmdMediator, const MainWindowModel &modelMainWindow, const QString &curveSelected, const Transformation &transformation)=0 |
Populate the table with the specified Curve. |
Protected Member Functions | |
virtual QTableView * | view () const =0 |
QTableView-based class used by child class. |
Dockable widget abstract base class.
This class enforces support for the MainWindow class, in terms of copying selected stuff, and also for performing clearing and updates
Definition at line 20 of file WindowAbstractBase.h.
WindowAbstractBase::WindowAbstractBase | ( | QWidget * | parent | ) |
Single constructor. Parent is needed or else this widget cannot be redocked after being undocked.
Definition at line 12 of file WindowAbstractBase.cpp.
|
virtual |
Definition at line 17 of file WindowAbstractBase.cpp.
|
pure virtual |
Clear stale information.
Implemented in FittingWindow, and GeometryWindow.
|
pure virtual |
Catch close event so corresponding menu item in MainWindow can be updated accordingly.
Implemented in FittingWindow, and GeometryWindow.
|
pure virtual |
Copy the current selection to the clipboard.
Implemented in FittingWindow, and GeometryWindow.
void WindowAbstractBase::getTableStatus | ( | bool & | tableIsActive, |
bool & | tableIsCopyable ) const |
Give table status so MainWindow can determine if table can be copied.
Definition at line 21 of file WindowAbstractBase.cpp.
|
pure virtual |
Populate the table with the specified Curve.
Implemented in FittingWindow, and GeometryWindow.
|
protectedpure virtual |
QTableView-based class used by child class.
Implemented in FittingWindow, and GeometryWindow.