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
25namespace 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
74
77
79 virtual void rowSelected();
80
82 void selectFont();
83
84 protected:
85
86 QFont font_;
87 };
88} }
89
90#endif
Definition: constants.h:13
PythonSettings(QWidget *parent=0, const char *name=0)
Constructor.
String getFilename() const
Get the filename of the startup script.
void setFilename(const String &filename)
Set the filename of the startup script.
const std::list< Hotkey > getContent() const
virtual void rowSelected()
void setContent(const std::list< Hotkey > &hotkeys)
void writePreferenceEntries(INIFile &inifile)
Store the settings of all registered objects.
void readPreferenceEntries(const INIFile &inifile)
Restore the settings of all registered objects.
void fileSelected()
Open a filedialog to select the startup script.
#define BALL_DEPRECATED
Definition: COMMON/global.h:64
#define BALL_VIEW_EXPORT
Definition: COMMON/global.h:52