1 #ifndef TABBEDPLOTWIDGET_H 2 #define TABBEDPLOTWIDGET_H 6 #include <QTableWidget> 22 QMainWindow *main_window,
25 QMainWindow *parent );
29 QTabWidget* tabWidget();
31 const QTabWidget* tabWidget()
const;
35 QDomElement xmlSaveState(QDomDocument &doc)
const;
37 bool xmlLoadState(QDomElement &tabbed_area);
41 QString
name()
const {
return _name; }
43 static const std::map<QString,TabbedPlotWidget*>& instances();
47 void setControlsVisible(
bool visible);
51 void setStreamingMode(
bool streaming_mode);
53 static void saveTabImage(QString fileName,
PlotMatrix* matrix);
57 void on_renameCurrentTab();
59 void on_savePlotsToFile();
61 void on_pushAddColumn_pressed();
63 void on_pushVerticalResize_pressed();
65 void on_pushHorizontalResize_pressed();
67 void on_pushAddRow_pressed();
69 void on_addTabButton_pressed();
71 void on_pushRemoveEmpty_pressed();
73 void on_tabWidget_currentChanged(
int index);
75 void on_tabWidget_tabCloseRequested(
int index);
77 void on_buttonLinkHorizontalScale_toggled(
bool checked);
79 void on_requestTabMovement(
const QString &destination_name);
81 void on_moveTabIntoNewWindow();
83 void on_pushButtonShowLabel_pressed();
85 void onLabelStatusChanged();
87 void on_pushButtonZoomMax_pressed();
89 void onMoveWidgetIntoNewTab(QString plot_name);
95 Ui::TabbedPlotWidget *
ui;
112 virtual void closeEvent(QCloseEvent *event)
override;
116 virtual bool eventFilter(QObject *obj, QEvent *event)
override;
122 void undoableChangeHappened();
127 #endif // TABBEDPLOTWIDGET_H