2015-09-25 21:37:19 +02:00
|
|
|
// File: fcheckbox.h
|
|
|
|
// Provides: class FCheckBox
|
|
|
|
//
|
|
|
|
// Inheritance diagram
|
|
|
|
// ═══════════════════
|
|
|
|
//
|
|
|
|
// ▕▔▔▔▔▔▔▔▔▔▏ ▕▔▔▔▔▔▔▔▔▔▏
|
|
|
|
// ▕ FObject ▏ ▕ FTerm ▏
|
|
|
|
// ▕▁▁▁▁▁▁▁▁▁▏ ▕▁▁▁▁▁▁▁▁▁▏
|
|
|
|
// ▲ ▲
|
|
|
|
// │ │
|
|
|
|
// └─────┬─────┘
|
|
|
|
// │
|
2016-10-11 04:57:36 +02:00
|
|
|
// ▕▔▔▔▔▔▔▔▔▏
|
|
|
|
// ▕ FVTerm ▏
|
|
|
|
// ▕▁▁▁▁▁▁▁▁▏
|
|
|
|
// ▲
|
|
|
|
// │
|
2015-09-25 21:37:19 +02:00
|
|
|
// ▕▔▔▔▔▔▔▔▔▔▏
|
|
|
|
// ▕ FWidget ▏
|
|
|
|
// ▕▁▁▁▁▁▁▁▁▁▏
|
|
|
|
// ▲
|
|
|
|
// │
|
|
|
|
// ▕▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▏
|
|
|
|
// ▕ FToggleButton ▏
|
|
|
|
// ▕▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▏
|
|
|
|
// ▲
|
|
|
|
// │
|
|
|
|
// ▕▔▔▔▔▔▔▔▔▔▔▔▏
|
|
|
|
// ▕ FCheckBox ▏
|
|
|
|
// ▕▁▁▁▁▁▁▁▁▁▁▁▏
|
2015-05-23 13:35:12 +02:00
|
|
|
|
|
|
|
#ifndef _FCHECKBOX_H
|
|
|
|
#define _FCHECKBOX_H
|
|
|
|
|
|
|
|
#include "ftogglebutton.h"
|
|
|
|
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// class FCheckBox
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
|
|
|
|
#pragma pack(push)
|
|
|
|
#pragma pack(1)
|
|
|
|
|
|
|
|
class FCheckBox : public FToggleButton
|
|
|
|
{
|
|
|
|
private:
|
2016-09-30 04:55:28 +02:00
|
|
|
// Disable copy constructor
|
2015-05-23 13:35:12 +02:00
|
|
|
FCheckBox (const FCheckBox&);
|
2016-09-30 04:55:28 +02:00
|
|
|
// Disable assignment operator (=)
|
2015-05-23 13:35:12 +02:00
|
|
|
FCheckBox& operator = (const FCheckBox&);
|
2016-09-30 04:55:28 +02:00
|
|
|
|
2015-07-04 22:51:47 +02:00
|
|
|
void init();
|
2015-05-23 13:35:12 +02:00
|
|
|
void draw();
|
|
|
|
void drawCheckButton();
|
|
|
|
|
|
|
|
public:
|
2016-09-30 04:55:28 +02:00
|
|
|
// Constructors
|
|
|
|
explicit FCheckBox (FWidget* = 0);
|
|
|
|
FCheckBox (const FString&, FWidget* = 0);
|
|
|
|
// Destructor
|
|
|
|
virtual ~FCheckBox();
|
|
|
|
|
2015-05-23 13:35:12 +02:00
|
|
|
const char* getClassName() const;
|
|
|
|
};
|
|
|
|
#pragma pack(pop)
|
|
|
|
|
|
|
|
|
|
|
|
// FCheckBox inline functions
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
inline const char* FCheckBox::getClassName() const
|
|
|
|
{ return "FCheckBox"; }
|
|
|
|
|
|
|
|
#endif // _FCHECKBOX_H
|