BALL  1.5.0
pythonSettings.h
Go to the documentation of this file.
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4 
5 #ifndef BALL_VIEW_DIALOGS_PYTHONSETTINGS_H
6 #define BALL_VIEW_DIALOGS_PYTHONSETTINGS_H
7 
8 #ifndef BALL_COMMON_GLOBAL_H
9 # include <BALL/COMMON/global.h>
10 #endif
11 
12 #ifndef BALL_VIEW_KERNEL_PREFERENCESENTRY
14 #endif
15 
16 #ifndef BALL_VIEW_WIDGETS_PYWIDGET_H
18 #endif
19 
20 #include <BALL/VIEW/UIC/ui_pythonSettings.h>
21 
22 #include <QtWidgets/QWidget>
23 #include <QtGui/QFont>
24 
25 namespace BALL
26 {
27  namespace VIEW
28  {
35  : public QWidget,
36  public Ui_PythonSettingsData,
37  public PreferencesEntry
38  {
39  Q_OBJECT
40 
41  public:
42 
44  PythonSettings(QWidget* parent = 0, const char* name = 0);
45 
48 
50  QFont getEditorFont() const { return font_;}
51 
53  void setFilename(const String& filename);
54 
57 
59  const std::list<Hotkey> getContent() const;
60 
62  void setContent(const std::list<Hotkey>& hotkeys);
63 
66 
68  void readPreferenceEntries(const INIFile& inifile);
69 
70  public Q_SLOTS:
71 
73  void fileSelected();
74 
77 
79  virtual void rowSelected();
80 
82  void selectFont();
83 
84  protected:
85 
86  QFont font_;
87  };
88 } }
89 
90 #endif
global.h
BALL::VIEW::PythonSettings::rowSelected
virtual void rowSelected()
BALL::VIEW::PythonSettings::readPreferenceEntries
void readPreferenceEntries(const INIFile &inifile)
Restore the settings of all registered objects.
BALL::VIEW::PythonSettings::font_
QFont font_
Definition: pythonSettings.h:86
BALL::VIEW::PythonSettings::~PythonSettings
~PythonSettings()
Destructor.
Definition: pythonSettings.h:47
BALL::VIEW::PythonSettings::PythonSettings
PythonSettings(QWidget *parent=0, const char *name=0)
Constructor.
BALL::String
Definition: string.h:57
BALL::VIEW::PreferencesEntry
Definition: preferencesEntry.h:69
BALL
Definition: constants.h:13
QWidget
BALL::VIEW::PythonSettings::selectFont
void selectFont()
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition: COMMON/global.h:52
BALL::VIEW::PythonSettings::getEditorFont
QFont getEditorFont() const
Definition: pythonSettings.h:50
BALL::VIEW::PythonSettings::getFilename
String getFilename() const
Get the filename of the startup script.
BALL::VIEW::PythonSettings::getContent
const std::list< Hotkey > getContent() const
BALL::INIFile
Definition: INIFile.h:29
preferencesEntry.h
BALL::VIEW::PythonSettings::setContent
void setContent(const std::list< Hotkey > &hotkeys)
BALL::VIEW::PythonSettings::writePreferenceEntries
void writePreferenceEntries(INIFile &inifile)
Store the settings of all registered objects.
pyWidget.h
BALL::VIEW::PythonSettings::setFilename
void setFilename(const String &filename)
Set the filename of the startup script.
BALL::VIEW::PythonSettings::clearStartupScript
void clearStartupScript()
BALL::VIEW::PythonSettings
Definition: pythonSettings.h:38
BALL_DEPRECATED
#define BALL_DEPRECATED
Definition: COMMON/global.h:64
BALL::VIEW::PythonSettings::fileSelected
void fileSelected()
Open a filedialog to select the startup script.