// File: fcheckmenuitem.h // Provides: class FCheckMenuItem // // Inheritance diagram // ═══════════════════ // // ▕▔▔▔▔▔▔▔▔▔▏ ▕▔▔▔▔▔▔▔▔▔▏ // ▕ FObject ▏ ▕ FTerm ▏ // ▕▁▁▁▁▁▁▁▁▁▏ ▕▁▁▁▁▁▁▁▁▁▏ // ▲ ▲ // │ │ // └─────┬─────┘ // │ // ▕▔▔▔▔▔▔▔▔▏ // ▕ FVTerm ▏ // ▕▁▁▁▁▁▁▁▁▏ // ▲ // │ // ▕▔▔▔▔▔▔▔▔▔▏ // ▕ FWidget ▏ // ▕▁▁▁▁▁▁▁▁▁▏ // ▲ // │ // ▕▔▔▔▔▔▔▔▔▔▔▔▏ // ▕ FMenuItem ▏ // ▕▁▁▁▁▁▁▁▁▁▁▁▏ // ▲ // │ // ▕▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▏* 1▕▔▔▔▔▔▔▔▏ // ▕ FCheckMenuItem ▏- - - - -▕ FMenu ▏ // ▕▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▏ ▕▁▁▁▁▁▁▁▏ #ifndef FCHECKMENUITEM_H #define FCHECKMENUITEM_H #include "fmenuitem.h" //---------------------------------------------------------------------- // class FCheckMenuItem //---------------------------------------------------------------------- #pragma pack(push) #pragma pack(1) class FCheckMenuItem : public FMenuItem { public: // Constructors explicit FCheckMenuItem (FWidget* = 0); FCheckMenuItem (const FString&, FWidget* = 0); // Destructor virtual ~FCheckMenuItem(); // Accessor const char* getClassName() const; private: // Disable copy constructor FCheckMenuItem (const FCheckMenuItem&); // Disable assignment operator (=) FCheckMenuItem& operator = (const FCheckMenuItem&); // Methods void init (FWidget*); void processToggle(); void processClicked(); }; #pragma pack(pop) // FCheckMenuItem inline functions //---------------------------------------------------------------------- inline const char* FCheckMenuItem::getClassName() const { return "FCheckMenuItem"; } #endif // FCHECKMENUITEM_H