Albert
|
#include <QSettings>
Go to the source code of this file.
Macros | |
#define | EXPAND_STRINGIZE(s) STRINGIZE(s) |
#define | STRINGIZE(s) #s |
#define | ALBERT_PROPERTY_BASE(type, name, defaultValue, settings) |
Convenience macro for (incomplete) user property definition. | |
#define | ALBERT_PLUGIN_PROPERTY_BASE(type, name, defaultValue) ALBERT_PROPERTY_BASE(type, name, defaultValue, PluginInstance::settings) |
Convenience macro for (incomplete) plugin user property definition. | |
#define | ALBERT_PROPERTY_GETSET(type, name, defaultValue, settings) |
Convenience macro for (incomplete) user property definition. | |
#define | ALBERT_PLUGIN_PROPERTY_GETSET(type, name, defaultValue) ALBERT_PROPERTY_GETSET(type, name, defaultValue, PluginInstance::settings) |
Convenience macro for (incomplete) plugin user property definition. | |
#define | ALBERT_PROPERTY_MEMBER(type, name, member, defaultValue, settings) |
Convenience macro for user property definition using a given member. | |
#define | ALBERT_PLUGIN_PROPERTY_MEMBER(type, name, member, defaultValue) ALBERT_PROPERTY_MEMBER(type, name, member, defaultValue, PluginInstance::settings) |
Convenience macro for plugin user property definition using a given member. | |
#define | ALBERT_PROPERTY(type, name, defaultValue, settings) |
Convenience macro for user property definition defining a member. | |
#define | ALBERT_PLUGIN_PROPERTY(type, name, defaultValue) ALBERT_PROPERTY(type, name, defaultValue, PluginInstance::settings) |
Convenience macro for plugin user property definition defining a member. | |
#define | ALBERT_PROPERTY_CONNECT_CHECKBOX(object, name, checkbox) |
Convenience macro to connect checkboxes to boolean user properties. | |
#define | ALBERT_PROPERTY_CONNECT_SPINBOX(object, name, spinbox) |
Convenience macro to connect spinboxes to int user properties. | |
#define ALBERT_PLUGIN_PROPERTY | ( | type, | |
name, | |||
defaultValue | |||
) | ALBERT_PROPERTY(type, name, defaultValue, PluginInstance::settings) |
Convenience macro for plugin user property definition defining a member.
Calls ALBERT_PROPERTY with PluginInstance::settings.
#define ALBERT_PLUGIN_PROPERTY_BASE | ( | type, | |
name, | |||
defaultValue | |||
) | ALBERT_PROPERTY_BASE(type, name, defaultValue, PluginInstance::settings) |
Convenience macro for (incomplete) plugin user property definition.
Calls ALBERT_PROPERTY_BASE with PluginInstance::settings.
#define ALBERT_PLUGIN_PROPERTY_GETSET | ( | type, | |
name, | |||
defaultValue | |||
) | ALBERT_PROPERTY_GETSET(type, name, defaultValue, PluginInstance::settings) |
Convenience macro for (incomplete) plugin user property definition.
Calls ALBERT_PROPERTY_BASE with PluginInstance::settings.
#define ALBERT_PLUGIN_PROPERTY_MEMBER | ( | type, | |
name, | |||
member, | |||
defaultValue | |||
) | ALBERT_PROPERTY_MEMBER(type, name, member, defaultValue, PluginInstance::settings) |
Convenience macro for plugin user property definition using a given member.
Calls ALBERT_PROPERTY_MEMBER with PluginInstance::settings.
#define ALBERT_PROPERTY | ( | type, | |
name, | |||
defaultValue, | |||
settings | |||
) |
Convenience macro for user property definition defining a member.
Extends ALBERT_PLUGIN_PROPERTY_MEMBER by (psuedo code):
<type> <name>_;
type | The type of the property |
name | The name of the property |
defaultValue | The default value of the property |
#define ALBERT_PROPERTY_BASE | ( | type, | |
name, | |||
defaultValue, | |||
settings | |||
) |
Convenience macro for (incomplete) user property definition.
The property this macro produces is incomplete. It still requires you to provide definitions for:
Expands to (psuedo code):
type | The type of the property |
name | The name of the property |
defaultValue | The default value of the property |
settings | Something that evaluates to a dereferencable QSettings object (*, ->). A pointer, factory, etc. |
#define ALBERT_PROPERTY_CONNECT_CHECKBOX | ( | object, | |
name, | |||
checkbox | |||
) |
Convenience macro to connect checkboxes to boolean user properties.
Specialization of ALBERT_PLUGIN_PROPERTY_CONNECT
object | The object containing the property |
name | The property name |
widget | The widget pointer to connect to |
#define ALBERT_PROPERTY_CONNECT_SPINBOX | ( | object, | |
name, | |||
spinbox | |||
) |
Convenience macro to connect spinboxes to int user properties.
Specialization of ALBERT_PLUGIN_PROPERTY_CONNECT
object | The object containing the property |
name | The property name |
widget | The widget pointer to connect to |
#define ALBERT_PROPERTY_GETSET | ( | type, | |
name, | |||
defaultValue, | |||
settings | |||
) |
Convenience macro for (incomplete) user property definition.
Extends ALBERT_PLUGIN_PROPERTY_BASE by (psuedo code):
The property this macro produces is incomplete. It still requires you to provide definitions.
type | The type of the property |
name | The name of the property |
defaultValue | The default value of the property |
settings | Something that evaluates to a dereferencable QSettings object (*, ->). A pointer, factory, etc. |
#define ALBERT_PROPERTY_MEMBER | ( | type, | |
name, | |||
member, | |||
defaultValue, | |||
settings | |||
) |
Convenience macro for user property definition using a given member.
Extends ALBERT_PLUGIN_PROPERTY_BASE by (psuedo code):
type | The type of the property |
name | The name of the property |
member | The member to expose as property |
defaultValue | The default value of the property |
#define EXPAND_STRINGIZE | ( | s | ) | STRINGIZE(s) |
#define STRINGIZE | ( | s | ) | #s |