Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
Globals.h
Go to the documentation of this file.
1#pragma once
2#include <QString>
3#include <misc/global.h>
4
5// Forward declarations.
6class QSettings;
7class QUiLoader;
8class QWidget;
9class QIODevice;
10
11namespace sf
12{
13
19_MISC_FUNC QSettings* setGlobalSettings(QSettings* settings);
20
26
32_MISC_FUNC QWidget* setGlobalParent(QWidget* parent);
33
39
45_MISC_FUNC QUiLoader* setGlobalUiLoader(QUiLoader* uiLoader);
46
52
56_MISC_FUNC void setPluginDir(QString pluginDir);
57
62
67_MISC_FUNC QWidget* FormBuilderLoad(QIODevice* io, QWidget* parent);
68
73_MISC_FUNC void FormBuilderSave(QIODevice* io, QWidget* widget);
74
75}// namespace sf
#define _MISC_FUNC
Definition misc/global.h:39
Definition Application.h:10
_MISC_FUNC QWidget * setGlobalParent(QWidget *parent)
Sets global parent widget class for dialogs.
_MISC_FUNC void setPluginDir(QString pluginDir)
Sets the global plugin directory used i.e. by sf::FormBuilderLoad() and sf::FormBuilderSave().
_MISC_FUNC QString getPluginDir()
Gets the global plugin directory.
_MISC_FUNC QUiLoader * setGlobalUiLoader(QUiLoader *uiLoader)
Sets global UI loader class.
_MISC_FUNC QSettings * getGlobalSettings()
Gets global settings class for settings.
_MISC_FUNC QSettings * setGlobalSettings(QSettings *settings)
Sets global settings class for settings.
_MISC_FUNC QUiLoader * getGlobalUiLoader()
Gets global UI loader instance.
_MISC_FUNC void FormBuilderSave(QIODevice *io, QWidget *widget)
Saves the widget to the passed file. This function prevents mandatory linking of the Qt::Designer lib...
_MISC_FUNC QWidget * FormBuilderLoad(QIODevice *io, QWidget *parent)
Loads the form from the passed UI file. This function prevents mandatory linking of the Qt::Designer ...
_MISC_FUNC QWidget * getGlobalParent()
Gets global parent widget class for settings.