BALL
1.4.1
|
00001 // -*- Mode: C++; tab-width: 2; -*- 00002 // vi: set ts=2: 00003 // 00004 00005 #ifndef BALL_VIEW_DIALOGS_GEOMETRICFITDIALOG_H 00006 #define BALL_VIEW_DIALOGS_GEOMETRICFITDIALOG_H 00007 00008 #ifndef BALL_COMMON_GLOBAL_H 00009 # include <BALL/COMMON/global.h> 00010 #endif 00011 00012 #ifndef BALL_VIEW_KERNEL_PREFERENCESENTRY 00013 # include <BALL/VIEW/KERNEL/preferencesEntry.h> 00014 #endif 00015 00016 #ifndef BALL_DATATYPE_OPTIONS_H 00017 #include <BALL/DATATYPE/options.h> 00018 #endif 00019 00020 #include <BALL/VIEW/UIC/ui_geometricFitDialog.h> 00021 00022 namespace BALL 00023 { 00024 namespace VIEW 00025 { 00031 class BALL_VIEW_EXPORT GeometricFitDialog : 00032 public QDialog, 00033 public Ui_GeometricFitDialogData, 00034 public PreferencesEntry 00035 { 00036 Q_OBJECT 00037 00038 public: 00039 00040 00044 00054 GeometricFitDialog(QWidget* parent = 0, const char* name = "GeometricFitDialog"); 00055 00058 virtual ~GeometricFitDialog(); 00060 00066 const GeometricFitDialog& operator =(const GeometricFitDialog& geo_fit_dialog); 00068 00072 00076 void getOptions(Options& options); 00077 00081 void isRedock(bool is_redock); 00082 00089 void fetchPreferences(INIFile& file); 00090 00096 void writePreferences(INIFile& file); 00097 00099 00100 public slots: 00101 00104 void show(); 00105 00109 void reset(); 00110 00114 virtual void reject(); 00115 00116 // 00117 virtual void accept(); 00118 00119 00120 protected: 00121 00129 void fetchPreferences_(INIFile& file, const String& entry, const QString& default_value); 00130 00136 void swapValues_(); 00137 00138 00139 private: 00140 00145 GeometricFitDialog(const GeometricFitDialog& geo_fit_dialog); 00146 00151 bool has_changed_; 00152 00155 bool is_redock_; 00156 00162 vector<QString> backup_; 00163 }; 00164 00165 } } // Namespaces 00166 #endif