Commit 124b9a6d authored by Olivier Teulière's avatar Olivier Teulière

* skins2/*: cosmetic changes

parent 163879e7
...@@ -37,11 +37,11 @@ class CtrlImage: public CtrlFlat ...@@ -37,11 +37,11 @@ class CtrlImage: public CtrlFlat
{ {
public: public:
/// Resize methods /// Resize methods
typedef enum enum resize_t
{ {
kMosaic, // Repeat the base image in a mosaic kMosaic, // Repeat the base image in a mosaic
kScale // Scale the base image kScale // Scale the base image
} resize_t; };
// Create an image with the given bitmap (which is NOT copied) // Create an image with the given bitmap (which is NOT copied)
CtrlImage( intf_thread_t *pIntf, const GenericBitmap &rBitmap, CtrlImage( intf_thread_t *pIntf, const GenericBitmap &rBitmap,
......
...@@ -32,11 +32,11 @@ ...@@ -32,11 +32,11 @@
class EvtKey: public EvtInput class EvtKey: public EvtInput
{ {
public: public:
typedef enum enum ActionType_t
{ {
kDown, kDown,
kUp kUp
} ActionType_t; };
EvtKey( intf_thread_t *pIntf, int key, ActionType_t action, EvtKey( intf_thread_t *pIntf, int key, ActionType_t action,
int mod = kModNone ): int mod = kModNone ):
......
...@@ -32,19 +32,19 @@ ...@@ -32,19 +32,19 @@
class EvtMouse: public EvtInput class EvtMouse: public EvtInput
{ {
public: public:
typedef enum enum ButtonType_t
{ {
kLeft, kLeft,
kMiddle, kMiddle,
kRight kRight
} ButtonType_t; };
typedef enum enum ActionType_t
{ {
kDown, kDown,
kUp, kUp,
kDblClick kDblClick
} ActionType_t; };
EvtMouse( intf_thread_t *pIntf, int xPos, int yPos, ButtonType_t button, EvtMouse( intf_thread_t *pIntf, int xPos, int yPos, ButtonType_t button,
ActionType_t action, int mod = kModNone ): ActionType_t action, int mod = kModNone ):
......
...@@ -32,11 +32,11 @@ ...@@ -32,11 +32,11 @@
class EvtScroll: public EvtInput class EvtScroll: public EvtInput
{ {
public: public:
typedef enum enum Direction_t
{ {
kUp, kUp,
kDown kDown
} Direction_t; };
EvtScroll( intf_thread_t *pIntf, int xPos, int yPos, EvtScroll( intf_thread_t *pIntf, int xPos, int yPos,
Direction_t direction, int mod = kModNone ): Direction_t direction, int mod = kModNone ):
......
...@@ -32,13 +32,13 @@ ...@@ -32,13 +32,13 @@
class EvtSpecial: public EvtGeneric class EvtSpecial: public EvtGeneric
{ {
public: public:
typedef enum enum ActionType_t
{ {
kShow, kShow,
kHide, kHide,
kEnable, kEnable,
kDisable kDisable
} ActionType_t; };
EvtSpecial( intf_thread_t *pIntf, ActionType_t action ): EvtSpecial( intf_thread_t *pIntf, ActionType_t action ):
EvtGeneric( pIntf ), m_action( action ) {} EvtGeneric( pIntf ), m_action( action ) {}
......
...@@ -97,12 +97,12 @@ class Dialogs: public SkinObject ...@@ -97,12 +97,12 @@ class Dialogs: public SkinObject
typedef void DlgCallback( intf_dialog_args_t *pArg ); typedef void DlgCallback( intf_dialog_args_t *pArg );
/// Possible flags for the open/save dialog /// Possible flags for the open/save dialog
typedef enum enum flags_t
{ {
kOPEN = 0x01, kOPEN = 0x01,
kSAVE = 0x02, kSAVE = 0x02,
kMULTIPLE = 0x04 kMULTIPLE = 0x04
} flags_t; };
/// Initialization method /// Initialization method
bool init(); bool init();
......
...@@ -44,14 +44,14 @@ class OSTimer; ...@@ -44,14 +44,14 @@ class OSTimer;
class OSFactory: public SkinObject class OSFactory: public SkinObject
{ {
public: public:
typedef enum enum CursorType_t
{ {
kDefaultArrow, kDefaultArrow,
kResizeNS, kResizeNS,
kResizeWE, kResizeWE,
kResizeNWSE, kResizeNWSE,
kResizeNESW kResizeNESW
} CursorType_t; };
/// Initialization method overloaded in derived classes. /// Initialization method overloaded in derived classes.
/// It must return false if the init failed. /// It must return false if the init failed.
......
...@@ -38,12 +38,12 @@ class Bezier: public SkinObject ...@@ -38,12 +38,12 @@ class Bezier: public SkinObject
public: public:
/// Values to indicate which coordinate(s) must be checked to consider /// Values to indicate which coordinate(s) must be checked to consider
/// that two points are distinct /// that two points are distinct
typedef enum enum Flag_t
{ {
kCoordsBoth, // x or y must be different (default) kCoordsBoth, // x or y must be different (default)
kCoordsX, // only x is different kCoordsX, // only x is different
kCoordsY // only y is different kCoordsY // only y is different
} Flag_t; };
Bezier( intf_thread_t *p_intf, Bezier( intf_thread_t *p_intf,
const vector<float> &pAbscissas, const vector<float> &pAbscissas,
......
...@@ -68,7 +68,7 @@ class Position ...@@ -68,7 +68,7 @@ class Position
{ {
public: public:
/// Type for reference edge/corner /// Type for reference edge/corner
typedef enum enum Ref_t
{ {
/// Coordinates are relative to the upper left corner /// Coordinates are relative to the upper left corner
kLeftTop, kLeftTop,
...@@ -78,7 +78,7 @@ class Position ...@@ -78,7 +78,7 @@ class Position
kLeftBottom, kLeftBottom,
/// Coordinates are relative to the lower right corner /// Coordinates are relative to the lower right corner
kRightBottom kRightBottom
} Ref_t; };
/// Create a new position relative to the given box /// Create a new position relative to the given box
Position( int left, int top, int right, int bottom, const Box &rBox, Position( int left, int top, int right, int bottom, const Box &rBox,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment