Loading...
Searching...
No Matches
pythonSettings.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_VIEW_DIALOGS_PYTHONSETTINGS_H
#define BALL_VIEW_DIALOGS_PYTHONSETTINGS_H
#ifndef BALL_COMMON_GLOBAL_H
# include <BALL/COMMON/global.h>
#endif
#ifndef BALL_VIEW_KERNEL_PREFERENCESENTRY
# include <BALL/VIEW/KERNEL/preferencesEntry.h>
#endif
#ifndef BALL_VIEW_WIDGETS_PYWIDGET_H
# include <BALL/VIEW/WIDGETS/pyWidget.h>
#endif
#include <BALL/VIEW/UIC/ui_pythonSettings.h>
#include <QtWidgets/QWidget>
#include <QtGui/QFont>
namespace BALL
{
namespace VIEW
{
class BALL_VIEW_EXPORT BALL_DEPRECATED PythonSettings
: public QWidget,
public Ui_PythonSettingsData,
public PreferencesEntry
{
Q_OBJECT
public:
PythonSettings(QWidget* parent = 0, const char* name = 0);
~PythonSettings() {}
QFont getEditorFont() const { return font_;}
void setFilename(const String& filename);
String getFilename() const;
const std::list<Hotkey> getContent() const;
void setContent(const std::list<Hotkey>& hotkeys);
void writePreferenceEntries(INIFile& inifile);
void readPreferenceEntries(const INIFile& inifile);
public Q_SLOTS:
void fileSelected();
void clearStartupScript();
virtual void rowSelected();
void selectFont();
protected:
QFont font_;
};
} }
#endif
global.h
BALL_DEPRECATED
#define BALL_DEPRECATED
Definition COMMON/global.h:64
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::INIFile
Definition INIFile.h:29
BALL::String
Definition string.h:57
BALL::VIEW::PreferencesEntry::PreferencesEntry
PreferencesEntry()
BALL::VIEW::PythonSettings::~PythonSettings
~PythonSettings()
Destructor.
Definition pythonSettings.h:47
BALL::VIEW::PythonSettings::PythonSettings
PythonSettings(QWidget *parent=0, const char *name=0)
Constructor.
BALL::VIEW::PythonSettings::getFilename
String getFilename() const
Get the filename of the startup script.
BALL::VIEW::PythonSettings::setFilename
void setFilename(const String &filename)
Set the filename of the startup script.
BALL::VIEW::PythonSettings::getEditorFont
QFont getEditorFont() const
Definition pythonSettings.h:50
BALL::VIEW::PythonSettings::clearStartupScript
void clearStartupScript()
BALL::VIEW::PythonSettings::font_
QFont font_
Definition pythonSettings.h:86
BALL::VIEW::PythonSettings::getContent
const std::list< Hotkey > getContent() const
BALL::VIEW::PythonSettings::rowSelected
virtual void rowSelected()
BALL::VIEW::PythonSettings::selectFont
void selectFont()
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.
BALL::VIEW::PythonSettings::readPreferenceEntries
void readPreferenceEntries(const INIFile &inifile)
Restore the settings of all registered objects.
BALL::VIEW::PythonSettings::fileSelected
void fileSelected()
Open a filedialog to select the startup script.
QWidget
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13
preferencesEntry.h
pyWidget.h