14#ifndef TGO4QSETTINGS_H
15#define TGO4QSETTINGS_H
22#include <QtCore/QString>
23#include <QtCore/QStringList>
59 void setBool(
const QString& name,
bool value =
true);
60 bool getBool(
const QString& name,
bool def =
true);
61 void setInt(
const QString& name,
int value = 0);
62 int getInt(
const QString& name,
int def = 0);
63 void setStr(
const QString& name,
const QString& value =
"");
64 QString
getStr(
const QString& name,
const QString& value =
"");
65 void setDouble(
const QString& name,
double value = 0.);
66 double getDouble(
const QString& name,
double value = 0.);
203 void storePanelSize(QWidget *w,
const QString& kind =
"ViewPanel");
204 QSize
lastPanelSize(
const QString& kind =
"ViewPanel",
int dfltwidth = 450,
int dfltheight = 250);
219 void getHistAxisPars(
int naxis,
int& npoints,
double& min,
double& max);
242 void setRemoteFileSett(
const QString& hostname,
const QString& filename,
const QString& protocol);
Extends the usual QSettings by a global setup for the location of the settings file.
void setTH3DrawOpt(const QString &value)
QString getGStyleStatFormat()
void Open()
Read settings from the file/registry.
void setHistTitle(const QString &value)
void setAnalysisMacroCommand(int id, const QString &com)
void setAppFont(const QFont &)
void getHistAxisPars(int naxis, int &npoints, double &min, double &max)
bool getFetchDataWhenDraw()
void setWebBasedCanvas(bool on=true)
void setBool(const QString &name, bool value=true)
int getInt(const QString &name, int def=0)
void setTermHistorySize(int sz)
QString getStr(const QString &name, const QString &value="")
QStringList getCommandsHistoryGUI()
implement history for gui command line
double getDouble(const QString &name, double value=0.)
void setAnalysisMacroTip(int id, const QString &com)
void setFetchDataWhenDraw(bool on=true)
void setInt(const QString &name, int value=0)
bool getSavePadWhiteBackground()
switch to make pad and frame backgrounds white before saving/printing them
void setTermFont(const QFont &)
bool getClientDefaultPass()
bool getMoveSubwindowRubberBand()
void setClientControllerMode(int)
QString getClientAccountName()
QString fSettFileName
This is the name of the file with settings, if empty - default qt location will be used.
void setTH1DrawOpt(const QString &value)
void setClientExeMode(int mode)
void setMbsMonitorNode(const QString &name)
some things for the mbs monitor dockwindow:
void setHServPort(int port)
void setCommandsHistoryGUI(const QStringList &commands)
void setDrawFillStyle(int style)
void setHistAxisPars(int naxis, int npoints, double min, double max)
void restoreMainWindowState(QMainWindow *tgt)
main window state/geometry
void setHistName(const QString &value)
void setNativeMenuBar(bool on=true)
bool getTermShowTimestamp()
void setAppStyle(const QString &)
QString getDabcMonitorNode()
void setDabcMonitorFreq(int secs)
void setGStyleStatFormat(const QString &)
void setDrawOnceFlag(bool on=true)
TGo4QSettings(const QString &filename)
QString getClientExec(int mode=-1)
void setPaletteOpt(int min, int def, int max)
void setOptStat(int value)
void setTGraphDrawOpt(const QString &value)
QString getAnalysisMacroCommand(int id)
for predefined macro buttons in main gui:
bool getFetchDataWhenSave()
void setPrinterSett(const QString &name, const QString &cmd)
void setHServName(const QString &)
void getRemoteFileSett(QString &hostname, QString &filename, QString &protocol)
double getScreenScaleFactor()
for Qt>5.6: factor to scale up whole gui on high dpi screens
void setOptStatH(int value)
void setMbsMonitorTrend(bool on=true)
void setStr(const QString &name, const QString &value="")
void setSavePadWhiteBackground(bool on)
void setStatBoxErrors(bool on=true)
void setTermTimeFormat(const QString &form)
void setPadEventStatus(bool on)
void setClientTermMode(int)
void setClientArgs(const QString &)
void setClientShellMode(int)
void getPaletteOpt(int &min, int &def, int &max)
void setRemoteFileSett(const QString &hostname, const QString &filename, const QString &protocol)
void storeMainWindowState(QMainWindow *src)
bool getMbsMonitorBackwardsTrending()
void setDrawFillColor(int col)
void setClientIsServer(int kind)
void setClientDir(const QString &)
void setDrawLineWidth(int w=1)
bool getBool(const QString &name, bool def=true)
bool getMbsMonitorMonitorActive()
QString getTGraphDrawOpt()
QSize lastPanelSize(const QString &kind="ViewPanel", int dfltwidth=450, int dfltheight=250)
int getBrowserColumn(const char *name, int defwidth)
int getClientControllerMode()
void setPadCrosshair(bool on)
void storePanelSize(QWidget *w, const QString &kind="ViewPanel")
void setDrawTimeFlag(bool on=true)
QStringList getCommandsHistoryAnalysis()
implement history for analysis command line
void setPadSuperimpose(bool on)
void setTermShowTimestamp(bool on)
void setClientExec(const QString &)
void setMbsMonitorMonitorActive(bool on=true)
void setDabcMonitorBins(int num)
void setMbsMonitorFreq(int secs)
void setClientDefaultPass(bool)
void setAnalysisMacroAutomode(int id, bool on)
void setDabcMonitorNode(const QString &name)
some things for the DABC monitor dockwindow:
bool getFetchDataWhenCopy()
void setMoveSubwindowRubberBand(bool on=true)
void setMbsMonitorBackwardsTrending(bool on=true)
void setOptStatW(int value)
void setCanvasColor(int red, int green, int blue)
void setHServBase(const QString &)
bool getHideTGo4EventElement()
void setMbsMonitorMore(bool on=true)
void setDrawDateFlag(bool on=true)
void setDabcMonitorBackwardsTrending(bool on=true)
void setClientConnectMode(int)
void setClientNode(const QString &)
void setScreenScaleFactor(double factor)
void setBrowserColumn(const char *name, int width)
void setFetchDataWhenSave(bool on=true)
void setClientAccountName(const QString &)
void setHistType(int value)
QSettings * sett
Currently opened settings.
void setDrawItemFlag(bool on=true)
void getCanvasColor(int &red, int &green, int &blue)
void setClientName(const QString &)
QString GetSettLoaction()
QString getMbsMonitorNode()
void setHServFilter(const QString &)
QString getAnalysisMacroTip(int id)
void setCommandsHistoryAnalysis(const QStringList &commands)
void setStatBoxVisible(bool on=true)
bool getMbsMonitorTrend()
void getPrinterSett(QString &name, QString &cmd)
void setCloneFlag(bool on=true)
QString getTermTimeFormat()
void setHideTGo4EventElement(bool on=true)
void setMbsMonitorBins(int num)
void setTH2DrawOpt(const QString &value)
void setDouble(const QString &name, double value=0.)
bool getAnalysisMacroAutomode(int id)
bool getDabcMonitorBackwardsTrending()
int getClientConnectMode()
void setFetchDataWhenCopy(bool on=true)