13 #ifndef QmitkGnuplotWidget_h
14 #define QmitkGnuplotWidget_h
18 #include <QScopedPointer>
20 #include <itkTimeStamp.h>
38 QString GetGnuplotPath()
const;
39 void SetGnuplotPath(
const QString &path);
41 QStringList GetCommands()
const;
42 void SetCommands(
const QStringList &commands);
46 QSize sizeHint()
const override;
49 void contextMenuEvent(QContextMenuEvent *event)
override;
50 void resizeEvent(QResizeEvent *event)
override;
53 void OnProcessStateChanged(QProcess::ProcessState state);
54 void OnProcessError(QProcess::ProcessError error);
55 void OnProcessFinished(
int exitCode, QProcess::ExitStatus exitStatus);
60 void CreateContextMenu();
61 QString CreateSetTermCommand()
const;
63 QScopedPointer<Ui::QmitkGnuplotWidget> m_Ui;
65 QAction *m_CopyPlotAction;
66 QAction *m_CopyScriptAction;
68 QString m_GnuplotPath;
69 QStringList m_Commands;
70 itk::TimeStamp m_ModifiedTime;
71 itk::TimeStamp m_UpdateTime;