1 // 2 // FLPreferenceWindow.h 3 // 4 // Created by Sarah Denoux on 12/04/13. 5 // Copyright (c) 2013 __MyCompanyName__. All rights reserved. 6 // 7 8 // The role of the preference Window is to display the preferences of FaustLive and to handle the changes of settings. 9 10 #ifndef _FLPreferenceWindow_h 11 #define _FLPreferenceWindow_h 12 13 #include <QtGui> 14 #if QT_VERSION >= 0x050000 15 #include <QtWidgets> 16 #endif 17 18 #include "AudioCreator.h" 19 20 class FLPreferenceWindow : public QDialog 21 { 22 private: 23 24 Q_OBJECT 25 26 QLineEdit* fCompilModes; 27 QLineEdit* fOptVal; 28 QLineEdit* fServerLine; 29 QLineEdit* fRemoteServerLine; 30 QLineEdit* fPortLine; 31 QCheckBox* fHttpAuto; 32 QCheckBox* fOscAuto; 33 QCheckBox* fMIDIAuto; 34 QCheckBox* fPolyAuto; 35 36 AudioCreator* fAudioCreator; 37 QGroupBox* fAudioBox; 38 39 void init(); 40 void resetVisualObjects(); 41 42 public: 43 44 FLPreferenceWindow(QWidget* parent = 0); 45 virtual ~FLPreferenceWindow(); 46 47 static FLPreferenceWindow* _prefWindow; 48 static FLPreferenceWindow* _Instance(); 49 50 private slots: 51 52 void save(); 53 void cancel(); 54 void styleClicked(); 55 virtual void closeEvent(QCloseEvent* event); 56 57 signals: 58 59 void newStyle(const QString&); 60 void urlChanged(); 61 void dropPortChange(); 62 void remoteServerPortChanged(); 63 }; 64 65 #endif 66