52 #ifndef __PCL_Action_h
53 #define __PCL_Action_h
57 #ifndef __PCL_BUILDING_PIXINSIGHT_APPLICATION
97 #ifndef __PCL_BUILDING_PIXINSIGHT_APPLICATION
241 #ifdef __PCL_ACTION_DEPRECATED_CTOR
408 int dum, key; GetAccelerator( dum, key );
return key != 0;
420 SetAccelerator( 0, 0 );
574 void* CloneHandle()
const override;
Client-side interface to a PixInsight module-defined action object.
void SetIconSVG(const IsoString &svgSource)
Action(const String &menuItem, const IsoString &iconSVGSource, int, const String &toolBar=String())
bool HasAccelerator() const
void SetToolTip(const String &tip)
void SetIcon(const Bitmap &icon)
Action(const String &menuItem, const String &iconSVGFile=String(), const String &toolBar=String())
void EnsureUnique() override
void SetMenuText(const String &text)
void SetAccelerator(int keyModifiers, int keyCode)
virtual bool IsEnabled(ActionInfo info) const
void SetIconSVGFile(const String &filePath)
void GetAccelerator(int &keyModifiers, int &keyCode) const
Client-side interface to a PixInsight Bitmap object.
Eight-bit string (ISO/IEC-8859-1 or UTF-8 string)
Root base class for all user interface objects.
Provides information about the current state of the core application's GUI to module-defined actions.
bool isColor
true if the active view is a color image; false if it is grayscale
bool isFloatSample
true if the active view's image is in floating-point format
bool isCurrentPreview
true if the active view is a preview
bool isImage
true if there is an active image window and it is not read-locked
bool thereAreImages
true if there are one or more image windows currently open
uint8 bitsPerSample
number of bits per sample in the active view's image
bool hasMask
true if the active image window is masked
bool hasPreviews
true if the active image window has one or more previews defined