mmswidget.h File Reference

#include "mmstools/mmstafffile.h"
#include "mmstools/mmslogger.h"
#include "mmsgui/theme/mmstheme.h"
#include "mmsgui/mmsguitools.h"
#include "mmswindow.h"

Include dependency graph for mmswidget.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Classes

class  MMSWidget
 This class is the base class for all widgets. More...
struct  MMSWidget::MMSWIDGET_DRAWABLE_ATTRIBUTES
 describes attributes for drawable widgets More...

Defines

#define searchForWidget   findWidget
#define searchForWidgetType   findWidgetType
#define MMSWIDGET_SCROLL_MODE_SETSELECTED   0x01
#define MMSWIDGET_SCROLL_MODE_SETPRESSED   0x02
#define MMSWIDGET_SCROLL_MODE_RMPRESSED   0x04

Typedefs

typedef int MMSWIDGET_SCROLL_MODE

Enumerations

enum  MMSWIDGETTYPE {
  MMSWIDGETTYPE_HBOX = 0, MMSWIDGETTYPE_VBOX, MMSWIDGETTYPE_BUTTON, MMSWIDGETTYPE_IMAGE,
  MMSWIDGETTYPE_LABEL, MMSWIDGETTYPE_MENU, MMSWIDGETTYPE_PROGRESSBAR, MMSWIDGETTYPE_TEXTBOX,
  MMSWIDGETTYPE_ARROW, MMSWIDGETTYPE_SLIDER, MMSWIDGETTYPE_INPUT, MMSWIDGETTYPE_CHECKBOX,
  MMSWIDGETTYPE_GAP, MMSWIDGETTYPE_CANVAS
}
 The available types of widgets. More...

Functions

 MMS_CREATEERROR (MMSWidgetError)

Variables

string MMSWidget_inputmode

Define Documentation

#define MMSWIDGET_SCROLL_MODE_RMPRESSED   0x04

Definition at line 92 of file mmswidget.h.

#define MMSWIDGET_SCROLL_MODE_SETPRESSED   0x02

Definition at line 91 of file mmswidget.h.

#define MMSWIDGET_SCROLL_MODE_SETSELECTED   0x01

Definition at line 90 of file mmswidget.h.

#define searchForWidget   findWidget

Definition at line 41 of file mmswidget.h.

#define searchForWidgetType   findWidgetType

Definition at line 42 of file mmswidget.h.


Typedef Documentation

typedef int MMSWIDGET_SCROLL_MODE

Definition at line 88 of file mmswidget.h.


Enumeration Type Documentation

The available types of widgets.

Enumerator:
MMSWIDGETTYPE_HBOX  A MMSHBoxWidget can contain 0 to n widgets. The widgets will be arranged in one horizontal row (0..n columns).
MMSWIDGETTYPE_VBOX  A MMSVBoxWidget can contain 0 to n widgets. The widgets will be arranged in one vertical column (0..n rows).
MMSWIDGETTYPE_BUTTON  A MMSButtonWidget can get the focus and therefore can process inputs.
MMSWIDGETTYPE_IMAGE  A MMSImageWidget cannot get the focus but can be selected.
MMSWIDGETTYPE_LABEL  A MMSLabelWidget cannot get the focus but can be selected. It displays one line of text.
MMSWIDGETTYPE_MENU  A MMSMenuWidget can get the focus and therefore can process inputs. It displays one- or two-dimensional menus.
MMSWIDGETTYPE_PROGRESSBAR  A MMSProgressBarWidget cannot get the focus but can be selected.
MMSWIDGETTYPE_TEXTBOX  A MMSTextBoxWidget can get the focus and therefore can process inputs. It displays a formated multiline text.
MMSWIDGETTYPE_ARROW  A MMSArrowWidget cannot get the focus but can be selected.
MMSWIDGETTYPE_SLIDER  A MMSSliderWidget cannot get the focus per default. You can switch the focusable state to true. So the widget can process e.g. the arrow keys.
MMSWIDGETTYPE_INPUT  A MMSInputWidget can get the focus and therefore can process inputs. You can display and edit one line of text.
MMSWIDGETTYPE_CHECKBOX  A MMSCheckBoxWidget can get the focus and therefore can process inputs. You can display an on/off switch.
MMSWIDGETTYPE_GAP  A MMSGapWidget is a spacer. It cannot have any children.
MMSWIDGETTYPE_CANVAS  A MMSCanvasWidget is a canvas that enables to add custom widgets to dialogs.

Definition at line 49 of file mmswidget.h.


Function Documentation

MMS_CREATEERROR ( MMSWidgetError   ) 


Variable Documentation

Definition at line 41 of file mmswidget.cpp.