finalcut/src/fcheckbox.h

80 lines
2.0 KiB
C
Raw Normal View History

// File: fcheckbox.h
// Provides: class FCheckBox
//
// Inheritance diagram
// ═══════════════════
//
// ▕▔▔▔▔▔▔▔▔▔▏ ▕▔▔▔▔▔▔▔▔▔▏
// ▕ FObject ▏ ▕ FTerm ▏
// ▕▁▁▁▁▁▁▁▁▁▏ ▕▁▁▁▁▁▁▁▁▁▏
// ▲ ▲
// │ │
// └─────┬─────┘
// │
// ▕▔▔▔▔▔▔▔▔▏
// ▕ FVTerm ▏
// ▕▁▁▁▁▁▁▁▁▏
// ▲
// │
// ▕▔▔▔▔▔▔▔▔▔▏
// ▕ 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
{
public:
// Constructors
explicit FCheckBox (FWidget* = 0);
FCheckBox (const FString&, FWidget* = 0);
// Destructor
virtual ~FCheckBox();
// Accessor
const char* getClassName() const;
2015-05-23 13:35:12 +02:00
private:
// Disable copy constructor
2015-05-23 13:35:12 +02:00
FCheckBox (const FCheckBox&);
// Disable assignment operator (=)
2015-05-23 13:35:12 +02:00
FCheckBox& operator = (const FCheckBox&);
// Methods
2015-07-04 22:51:47 +02:00
void init();
2015-05-23 13:35:12 +02:00
void draw();
void drawCheckButton();
};
#pragma pack(pop)
// FCheckBox inline functions
//----------------------------------------------------------------------
inline const char* FCheckBox::getClassName() const
{ return "FCheckBox"; }
#endif // _FCHECKBOX_H