|
|
|
@ -289,13 +289,7 @@ public:
|
|
|
|
|
REFLECT_BOOL("opened", isOpen, setOpen);
|
|
|
|
|
REFLECT_BOOL("lockable", isLockable, setLockable);
|
|
|
|
|
REFLECT_BOOL("locked", isLocked, setLocked);
|
|
|
|
|
REFLECT_SINT32("container_alpha", getContainerAlphaAsSInt32, setContainerAlpha);
|
|
|
|
|
REFLECT_SINT32("content_alpha", getContentAlphaAsSInt32, setContentAlpha);
|
|
|
|
|
REFLECT_SINT32("rollover_content_alpha", getRolloverAlphaContentAsSInt32, setRolloverAlphaContent);
|
|
|
|
|
REFLECT_SINT32("rollover_container_alpha", getRolloverAlphaContainerAsSInt32, setRolloverAlphaContainer);
|
|
|
|
|
REFLECT_BOOL("use_global_alpha_settings", isUsingGlobalAlpha, setUseGlobalAlpha);
|
|
|
|
|
REFLECT_STRING("on_alpha_settings_changed", getAHOnAlphaSettingsChanged, setAHOnAlphaSettingsChanged);
|
|
|
|
|
REFLECT_STRING("on_alpha_settings_changed_aparams", getAHOnAlphaSettingsChangedParams, setAHOnAlphaSettingsChangedParams);
|
|
|
|
|
|
|
|
|
|
REFLECT_BOOL("header_active", getHeaderActive, setHeaderActive);
|
|
|
|
|
REFLECT_BOOL("right_button_enabled", getRightButtonEnabled, setRightButtonEnabled);
|
|
|
|
|
REFLECT_EXPORT_END
|
|
|
|
@ -372,33 +366,8 @@ public:
|
|
|
|
|
|
|
|
|
|
sint32 getRefW() const { return _RefW; }
|
|
|
|
|
|
|
|
|
|
// alpha for content / container
|
|
|
|
|
void setUseGlobalAlpha(bool use);
|
|
|
|
|
void setContainerAlpha(uint8 alpha);
|
|
|
|
|
void setContentAlpha(uint8 alpha);
|
|
|
|
|
void setRolloverAlphaContent(uint8 alpha);
|
|
|
|
|
void setRolloverAlphaContainer(uint8 alpha);
|
|
|
|
|
|
|
|
|
|
// sin32 versions for export
|
|
|
|
|
void setContainerAlpha(sint32 alpha) { setContainerAlpha((uint8) alpha); }
|
|
|
|
|
void setContentAlpha(sint32 alpha) { setContentAlpha((uint8) alpha); }
|
|
|
|
|
void setRolloverAlphaContent(sint32 alpha) { setRolloverAlphaContent((uint8) alpha); }
|
|
|
|
|
void setRolloverAlphaContainer(sint32 alpha) { setRolloverAlphaContainer((uint8) alpha); }
|
|
|
|
|
|
|
|
|
|
bool isUsingGlobalAlpha() const { return _UseGlobalAlpha; }
|
|
|
|
|
|
|
|
|
|
uint8 getContainerAlpha() const { return _ContainerAlpha; }
|
|
|
|
|
uint8 getContentAlpha() const { return _ContentAlpha; }
|
|
|
|
|
uint8 getCurrentContainerAlpha() const { return _CurrentContainerAlpha; }
|
|
|
|
|
uint8 getCurrentContentAlpha() const { return _CurrentContentAlpha; }
|
|
|
|
|
uint8 getRolloverAlphaContent() const { return _RolloverAlphaContent; }
|
|
|
|
|
uint8 getRolloverAlphaContainer() const { return _RolloverAlphaContainer; }
|
|
|
|
|
|
|
|
|
|
// for export
|
|
|
|
|
sint32 getContainerAlphaAsSInt32() const { return (sint32) _ContainerAlpha; }
|
|
|
|
|
sint32 getContentAlphaAsSInt32() const { return (sint32) _ContentAlpha; }
|
|
|
|
|
sint32 getRolloverAlphaContentAsSInt32() const { return (sint32) _RolloverAlphaContent; }
|
|
|
|
|
sint32 getRolloverAlphaContainerAsSInt32() const { return (sint32) _RolloverAlphaContainer; }
|
|
|
|
|
|
|
|
|
|
/** Increase the rollover alpha for the current frame.
|
|
|
|
|
* Example of use : an edit box that has focus in a group container
|
|
|
|
@ -413,7 +382,6 @@ public:
|
|
|
|
|
void setLockable(bool lockable);
|
|
|
|
|
bool isLockable() const { return _Lockable; }
|
|
|
|
|
void setLocked(bool locked);
|
|
|
|
|
bool isLocked() const { return _Locked; }
|
|
|
|
|
|
|
|
|
|
// to be called by the 'deactive check' handler
|
|
|
|
|
static void validateCanDeactivate(bool validate) { _ValidateCanDeactivate = validate; }
|
|
|
|
@ -439,17 +407,6 @@ public:
|
|
|
|
|
void setOnCloseButtonHandler(const std::string &h) { _AHOnCloseButton = CAHManager::getInstance()->getAH(h,_AHOnCloseButtonParams); }
|
|
|
|
|
void setOnCloseButtonParams(const std::string &p) { _AHOnCloseButtonParams = p; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::string getAHOnAlphaSettingsChanged() const { return CAHManager::getInstance()->getAHName(_AHOnAlphaSettingsChanged); }
|
|
|
|
|
std::string getAHOnAlphaSettingsChangedParams() const { return _AHOnAlphaSettingsChangedParams; }
|
|
|
|
|
|
|
|
|
|
void setAHOnAlphaSettingsChanged(const std::string &h) { _AHOnAlphaSettingsChanged = CAHManager::getInstance()->getAH(h, _AHOnAlphaSettingsChangedParams); }
|
|
|
|
|
void setAHOnAlphaSettingsChangedParams(const std::string &p) { _AHOnAlphaSettingsChangedParams = p; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void setModalParentList (const std::string &name);
|
|
|
|
|
bool checkIfModal(const NLGUI::CEventDescriptor& event); // Return true if we can handle the event (and prevent from selecting a window)
|
|
|
|
|
bool isGrayed() const;
|
|
|
|
@ -506,13 +463,9 @@ public:
|
|
|
|
|
sint32 getTitleDeltaMaxW() const { return _TitleDeltaMaxW; }
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
uint8 _ContainerAlpha;
|
|
|
|
|
uint8 _ContentAlpha;
|
|
|
|
|
uint8 _CurrentContainerAlpha;
|
|
|
|
|
uint8 _CurrentContentAlpha;
|
|
|
|
|
uint8 _RolloverAlphaContainer; // Alpha for the window when mouse not over it
|
|
|
|
|
uint8 _ICurrentRolloverAlphaContainer;
|
|
|
|
|
uint8 _RolloverAlphaContent; // Alpha for the content when mouse not over it
|
|
|
|
|
uint8 _HighLightedAlpha;
|
|
|
|
|
float _CurrentRolloverAlphaContainer;
|
|
|
|
|
float _CurrentRolloverAlphaContent;
|
|
|
|
@ -585,8 +538,6 @@ protected:
|
|
|
|
|
CStringShared _AHOnMoveParams;
|
|
|
|
|
IActionHandler *_AHOnResize;
|
|
|
|
|
CStringShared _AHOnResizeParams;
|
|
|
|
|
IActionHandler *_AHOnAlphaSettingsChanged;
|
|
|
|
|
CStringShared _AHOnAlphaSettingsChangedParams;
|
|
|
|
|
IActionHandler *_AHOnBeginMove;
|
|
|
|
|
CStringShared _AHOnBeginMoveParams;
|
|
|
|
|
|
|
|
|
@ -612,7 +563,6 @@ protected:
|
|
|
|
|
// Move management
|
|
|
|
|
bool _Movable : 1; // Is the container movable ?
|
|
|
|
|
bool _MovableInParentList: 1;
|
|
|
|
|
bool _Locked : 1; // Is the container locked (ie override movable, openable ...)
|
|
|
|
|
bool _Lockable : 1;
|
|
|
|
|
bool _MovingInParentList : 1; // Mgt : currently moving ?
|
|
|
|
|
|
|
|
|
@ -628,7 +578,6 @@ protected:
|
|
|
|
|
|
|
|
|
|
bool _Savable : 1;
|
|
|
|
|
bool _ActiveSavable : 1;
|
|
|
|
|
bool _UseGlobalAlpha : 1;
|
|
|
|
|
|
|
|
|
|
// Display title background or not
|
|
|
|
|
bool _HeaderActive : 1;
|
|
|
|
@ -694,7 +643,6 @@ private:
|
|
|
|
|
enum {NumLayerName=10};
|
|
|
|
|
static const std::string _OptionLayerName[NumLayerName];
|
|
|
|
|
|
|
|
|
|
void triggerAlphaSettingsChangedAH();
|
|
|
|
|
public:
|
|
|
|
|
// for use by CCtrlMover
|
|
|
|
|
// Tell that this group is moving in its parent list
|
|
|
|
|