1 // 2 // FLWinSettings.h 3 // 4 // Created by Sarah Denoux on 12/04/13. 5 // Copyright (c) 2013 __MyCompanyName__. All rights reserved. 6 // 7 8 // FLWinSettings contains the settings of a window. It synchronizes some parameters with the general settings of the application. 9 // Each FLWindow has its own set of FLWinSettings 10 11 #ifndef _FLWinSettings_h 12 #define _FLWinSettings_h 13 14 #include <QtGui> 15 #if QT_VERSION >= 0x050000 16 #include <QtWidgets> 17 #endif 18 19 class FLWinSettings : public QSettings 20 { 21 private: 22 23 Q_OBJECT 24 int fIndex; 25 26 public: 27 28 //@param index : index of the window which settings it is 29 //@param filename : path to the settings file 30 //@param format : format of the settings 31 //@param parent : parent object in the hierarchy 32 FLWinSettings(int index, const QString& fileName, Format format, QObject* parent = 0); 33 virtual ~FLWinSettings(); 34 35 virtual void setValue(const QString& key, const QVariant& value); 36 }; 37 38 #endif 39