mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 08:59:55 +00:00
* Initial implementation of Python data processors * Add RideEditor to PyFIx script editor * Enable write-access to activity data for python fixes * Add GC.deleteActivitySample method * Add GC.deleteSeries method * Check for python fix for changes before close * Build python fixes menu dynamically * Make python fixes first class data processors * Add GC.postProcess method * Check GC_WANT_PYTHON and "Enable Python" setting for python fixes * Add GC.createXDataSeries method * Clean up ScriptContext ctor mess * Support editing xdata series * PDP: Implement xdata append/remove methods
39 lines
796 B
C++
39 lines
796 B
C++
#ifndef FIXPYSETTINGS_H
|
|
#define FIXPYSETTINGS_H
|
|
|
|
#include <QString>
|
|
#include <QList>
|
|
|
|
#include "FixPyScript.h"
|
|
#include "FixPyRunner.h"
|
|
|
|
class FixPySettings
|
|
{
|
|
public:
|
|
FixPySettings();
|
|
~FixPySettings();
|
|
|
|
void initialize();
|
|
void disableFixPy();
|
|
QList<FixPyScript *> getScripts();
|
|
FixPyScript *getScript(QString name);
|
|
FixPyScript *createScript(QString name);
|
|
void deleteScript(QString name);
|
|
|
|
void save();
|
|
|
|
private:
|
|
const QString PYFIXES_DIR_NAME = ".pyfixes";
|
|
const QString PYFIXES_SETTINGS_FILE_NAME = "configglobal-pyfixes.ini";
|
|
|
|
bool readPyFixFile(QString fixName, QString fixPath, QString iniKey);
|
|
int getMaxKey();
|
|
|
|
bool isInitialied;
|
|
QList<FixPyScript *> scripts;
|
|
};
|
|
|
|
extern FixPySettings *fixPySettings;
|
|
|
|
#endif // FIXPYSETTINGS_H
|