finalcut/src/fradiobutton.h

80 lines
2.0 KiB
C
Raw Normal View History

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