2015-11-15 19:46:33 +01:00
|
|
|
// File: fcheckmenuitem.h
|
|
|
|
// Provides: class FCheckMenuItem
|
|
|
|
//
|
|
|
|
// Inheritance diagram
|
|
|
|
// ═══════════════════
|
|
|
|
//
|
|
|
|
// ▕▔▔▔▔▔▔▔▔▔▏ ▕▔▔▔▔▔▔▔▔▔▏
|
|
|
|
// ▕ FObject ▏ ▕ FTerm ▏
|
|
|
|
// ▕▁▁▁▁▁▁▁▁▁▏ ▕▁▁▁▁▁▁▁▁▁▏
|
|
|
|
// ▲ ▲
|
|
|
|
// │ │
|
|
|
|
// └─────┬─────┘
|
|
|
|
// │
|
2016-10-11 04:57:36 +02:00
|
|
|
// ▕▔▔▔▔▔▔▔▔▏
|
|
|
|
// ▕ FVTerm ▏
|
|
|
|
// ▕▁▁▁▁▁▁▁▁▏
|
|
|
|
// ▲
|
|
|
|
// │
|
2015-11-15 19:46:33 +01:00
|
|
|
// ▕▔▔▔▔▔▔▔▔▔▏
|
|
|
|
// ▕ FWidget ▏
|
|
|
|
// ▕▁▁▁▁▁▁▁▁▁▏
|
|
|
|
// ▲
|
|
|
|
// │
|
|
|
|
// ▕▔▔▔▔▔▔▔▔▔▔▔▏
|
|
|
|
// ▕ FMenuItem ▏
|
|
|
|
// ▕▁▁▁▁▁▁▁▁▁▁▁▏
|
|
|
|
// ▲
|
|
|
|
// │
|
|
|
|
// ▕▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▏* 1▕▔▔▔▔▔▔▔▏
|
|
|
|
// ▕ FCheckMenuItem ▏- - - - -▕ FMenu ▏
|
|
|
|
// ▕▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▏ ▕▁▁▁▁▁▁▁▏
|
|
|
|
|
2017-04-09 20:08:53 +02:00
|
|
|
#ifndef FCHECKMENUITEM_H
|
|
|
|
#define FCHECKMENUITEM_H
|
2015-11-15 19:46:33 +01:00
|
|
|
|
2017-09-17 21:32:46 +02:00
|
|
|
#include "final/fmenuitem.h"
|
2015-11-15 19:46:33 +01:00
|
|
|
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// class FCheckMenuItem
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
|
|
|
|
#pragma pack(push)
|
|
|
|
#pragma pack(1)
|
|
|
|
|
|
|
|
class FCheckMenuItem : public FMenuItem
|
|
|
|
{
|
2017-09-11 03:06:02 +02:00
|
|
|
public:
|
|
|
|
// Constructors
|
|
|
|
explicit FCheckMenuItem (FWidget* = 0);
|
|
|
|
FCheckMenuItem (const FString&, FWidget* = 0);
|
2016-11-02 00:37:58 +01:00
|
|
|
|
2017-09-11 03:06:02 +02:00
|
|
|
// Destructor
|
|
|
|
virtual ~FCheckMenuItem();
|
2016-09-30 04:55:28 +02:00
|
|
|
|
2017-09-11 03:06:02 +02:00
|
|
|
// Accessor
|
|
|
|
const char* getClassName() const;
|
2016-11-02 00:37:58 +01:00
|
|
|
|
2017-09-11 03:06:02 +02:00
|
|
|
private:
|
|
|
|
// Disable copy constructor
|
|
|
|
FCheckMenuItem (const FCheckMenuItem&);
|
2016-11-02 00:37:58 +01:00
|
|
|
|
2017-09-11 03:06:02 +02:00
|
|
|
// Disable assignment operator (=)
|
|
|
|
FCheckMenuItem& operator = (const FCheckMenuItem&);
|
2016-11-02 00:37:58 +01:00
|
|
|
|
2017-09-11 03:06:02 +02:00
|
|
|
// Methods
|
|
|
|
void init (FWidget*);
|
|
|
|
void processToggle();
|
|
|
|
void processClicked();
|
2015-11-15 19:46:33 +01:00
|
|
|
};
|
|
|
|
#pragma pack(pop)
|
|
|
|
|
|
|
|
|
|
|
|
// FCheckMenuItem inline functions
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
inline const char* FCheckMenuItem::getClassName() const
|
|
|
|
{ return "FCheckMenuItem"; }
|
|
|
|
|
2017-04-09 20:08:53 +02:00
|
|
|
#endif // FCHECKMENUITEM_H
|