#include "mmsgui/mmsdialogmanager.h"
#include "mmsgui/mmswindows.h"
#include "mmsgui/mmswidgets.h"
#include "mmsgui/mmscanvasfactory.h"
#include "mmsgui/theme/mmsthememanager.h"
#include <string.h>
#include <algorithm>
Go to the source code of this file.
Defines | |
#define | READ_DM_SPECIFIC_WIDGET_ATTRIBUTES(name, size, min_width, min_height, max_width, max_height) |
#define | SET_DM_SPECIFIC_WIDGET_ATTRIBUTES(widget, name, size, min_width, min_height, max_width, max_height) |
#define READ_DM_SPECIFIC_WIDGET_ATTRIBUTES | ( | name, | |||
size, | |||||
min_width, | |||||
min_height, | |||||
max_width, | |||||
max_height | ) |
Value:
case MMSGUI_BASE_ATTR::MMSGUI_BASE_ATTR_IDS_name: \ name = attrval_str; \ break; \ case MMSGUI_BASE_ATTR::MMSGUI_BASE_ATTR_IDS_size: \ size = attrval_str; \ break; \ case MMSGUI_BASE_ATTR::MMSGUI_BASE_ATTR_IDS_min_width: \ min_width = attrval_str; \ break; \ case MMSGUI_BASE_ATTR::MMSGUI_BASE_ATTR_IDS_min_height: \ min_height = attrval_str; \ break; \ case MMSGUI_BASE_ATTR::MMSGUI_BASE_ATTR_IDS_max_width: \ max_width = attrval_str; \ break; \ case MMSGUI_BASE_ATTR::MMSGUI_BASE_ATTR_IDS_max_height: \ max_height = attrval_str; \ break;
Definition at line 42 of file mmsdialogmanager.cpp.
#define SET_DM_SPECIFIC_WIDGET_ATTRIBUTES | ( | widget, | |||
name, | |||||
size, | |||||
min_width, | |||||
min_height, | |||||
max_width, | |||||
max_height | ) |
Value:
if (!name.empty()) { \ widget->setName(name); \ insertNamedWidget(widget); \ } \ if (!size.empty()) { \ if (!widget->setSizeHint(size)) \ throw MMSDialogManagerError(1, "invalid widget size '" + size + "'"); \ } \ if (!min_width.empty()) { \ if (!widget->setMinWidth(min_width)) \ throw MMSDialogManagerError(1, "invalid widget min_width '" + min_width + "'"); \ } \ if (!min_height.empty()) { \ if (!widget->setMinHeight(min_height)) \ throw MMSDialogManagerError(1, "invalid widget min_height '" + min_height + "'"); \ } \ if (!max_width.empty()) { \ if (!widget->setMaxWidth(max_width)) \ throw MMSDialogManagerError(1, "invalid widget max_width '" + max_width + "'"); \ } \ if (!max_height.empty()) { \ if (!widget->setMaxHeight(max_height)) \ throw MMSDialogManagerError(1, "invalid widget max_height '" + max_height + "'"); \ }
Definition at line 64 of file mmsdialogmanager.cpp.