19 #ifndef RQT_MULTIPLOT_MULTIPLOT_CONFIG_WIDGET_H 20 #define RQT_MULTIPLOT_MULTIPLOT_CONFIG_WIDGET_H 22 #include <QStringList> 28 class MultiplotConfigWidget;
41 void setCurrentConfigUrl(
const QString& url,
bool updateHistory =
true);
42 QString getCurrentConfigUrl()
const;
43 bool setCurrentConfigModified(
bool modified);
44 bool isCurrentConfigModified()
const;
45 void setMaxConfigUrlHistoryLength(
size_t length);
46 size_t getMaxConfigUrlHistoryLength()
const;
47 void setConfigUrlHistory(
const QStringList& history);
48 QStringList getConfigUrlHistory()
const;
49 bool isFile(
const QString& url)
const;
51 bool loadConfig(
const QString& url);
52 bool saveCurrentConfig();
53 bool saveConfig(
const QString& url);
56 bool confirmSave(
bool canCancel =
true);
58 void addConfigUrlToHistory(
const QString& url);
59 void clearConfigUrlHistory();
62 void currentConfigModifiedChanged(
bool modified);
63 void currentConfigUrlChanged(
const QString& url);
66 Ui::MultiplotConfigWidget*
ui_;
77 void configComboBoxEditTextChanged(
const QString& text);
78 void configComboBoxCurrentUrlChanged(
const QString& url);
80 void pushButtonClearHistoryClicked();
81 void pushButtonNewClicked();
82 void pushButtonOpenClicked();
83 void pushButtonSaveClicked();
84 void pushButtonSaveAsClicked();