BALL
1.4.1
|
00001 // -*- Mode: C++; tab-width: 2; -*- 00002 // vi: set ts=2: 00003 // 00004 00005 #ifndef BALL_VIEW_DIALOGS_PYTHONSETTINGS_H 00006 #define BALL_VIEW_DIALOGS_PYTHONSETTINGS_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_VIEW_WIDGETS_PYWIDGET_H 00017 # include <BALL/VIEW/WIDGETS/pyWidget.h> 00018 #endif 00019 00020 #include <BALL/VIEW/UIC/ui_pythonSettings.h> 00021 00022 #include <QtGui/QWidget> 00023 #include <QtGui/QFont> 00024 00025 namespace BALL 00026 { 00027 namespace VIEW 00028 { 00034 class BALL_VIEW_EXPORT PythonSettings 00035 : public QWidget, 00036 public Ui_PythonSettingsData, 00037 public PreferencesEntry 00038 { 00039 Q_OBJECT 00040 00041 public: 00042 00044 PythonSettings(QWidget* parent = 0, const char* name = 0); 00045 00047 ~PythonSettings() {} 00048 00050 QFont getEditorFont() const { return font_;} 00051 00053 void setFilename(const String& filename); 00054 00056 String getFilename() const; 00057 00059 const std::list<Hotkey> getContent() const; 00060 00062 void setContent(const std::list<Hotkey>& hotkeys); 00063 00065 void writePreferenceEntries(INIFile& inifile); 00066 00068 void readPreferenceEntries(const INIFile& inifile); 00069 00070 public slots: 00071 00073 void fileSelected(); 00074 00076 void clearStartupScript(); 00077 00079 virtual void rowSelected(); 00080 00082 void selectFont(); 00083 00084 protected: 00085 00086 QFont font_; 00087 }; 00088 } } 00089 00090 #endif