initial commit
Signed-off-by: Peter Siegmund <mars3142@noreply.mars3142.dev>
This commit is contained in:
98
libs/wxWidgets-3.3.1/include/wx/qt/radiobox.h
Normal file
98
libs/wxWidgets-3.3.1/include/wx/qt/radiobox.h
Normal file
@@ -0,0 +1,98 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/qt/radiobox.h
|
||||
// Author: Peter Most, Mariano Reingart
|
||||
// Copyright: (c) 2010 wxWidgets dev team
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_QT_RADIOBOX_H_
|
||||
#define _WX_QT_RADIOBOX_H_
|
||||
|
||||
class QGroupBox;
|
||||
class QButtonGroup;
|
||||
class QGridLayout;
|
||||
|
||||
class WXDLLIMPEXP_CORE wxRadioBox : public wxControl, public wxRadioBoxBase
|
||||
{
|
||||
public:
|
||||
wxRadioBox() = default;
|
||||
|
||||
wxRadioBox(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
const wxString& title,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
int n = 0, const wxString choices[] = nullptr,
|
||||
int majorDim = 0,
|
||||
long style = wxRA_SPECIFY_COLS,
|
||||
const wxValidator& val = wxDefaultValidator,
|
||||
const wxString& name = wxASCII_STR(wxRadioBoxNameStr));
|
||||
|
||||
wxRadioBox(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
const wxString& title,
|
||||
const wxPoint& pos,
|
||||
const wxSize& size,
|
||||
const wxArrayString& choices,
|
||||
int majorDim = 0,
|
||||
long style = wxRA_SPECIFY_COLS,
|
||||
const wxValidator& val = wxDefaultValidator,
|
||||
const wxString& name = wxASCII_STR(wxRadioBoxNameStr));
|
||||
|
||||
bool Create(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
const wxString& title,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
int n = 0, const wxString choices[] = nullptr,
|
||||
int majorDim = 0,
|
||||
long style = wxRA_SPECIFY_COLS,
|
||||
const wxValidator& val = wxDefaultValidator,
|
||||
const wxString& name = wxASCII_STR(wxRadioBoxNameStr));
|
||||
|
||||
bool Create(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
const wxString& title,
|
||||
const wxPoint& pos,
|
||||
const wxSize& size,
|
||||
const wxArrayString& choices,
|
||||
int majorDim = 0,
|
||||
long style = wxRA_SPECIFY_COLS,
|
||||
const wxValidator& val = wxDefaultValidator,
|
||||
const wxString& name = wxASCII_STR(wxRadioBoxNameStr));
|
||||
|
||||
using wxWindowBase::Show;
|
||||
using wxWindowBase::Enable;
|
||||
using wxRadioBoxBase::GetDefaultBorder;
|
||||
|
||||
virtual bool Enable(unsigned int n, bool enable = true) override;
|
||||
virtual bool Enable(bool enable = true) override;
|
||||
virtual bool Show(unsigned int n, bool show = true) override;
|
||||
virtual bool Show(bool show = true) override;
|
||||
virtual bool IsItemEnabled(unsigned int n) const override;
|
||||
virtual bool IsItemShown(unsigned int n) const override;
|
||||
|
||||
virtual unsigned int GetCount() const override;
|
||||
virtual wxString GetString(unsigned int n) const override;
|
||||
virtual void SetString(unsigned int n, const wxString& s) override;
|
||||
|
||||
virtual void SetSelection(int n) override;
|
||||
virtual int GetSelection() const override;
|
||||
|
||||
virtual void SetLabel(const wxString &label) override;
|
||||
virtual wxString GetLabel() const override;
|
||||
|
||||
// The 'visual' group box:
|
||||
QGroupBox* GetQGroupBox() const;
|
||||
|
||||
private:
|
||||
// Handles the mutual exclusion of buttons:
|
||||
QButtonGroup *m_qtButtonGroup = nullptr;
|
||||
|
||||
// Autofit layout for buttons (either vert. or horiz.):
|
||||
QGridLayout *m_qtGridLayout = nullptr;
|
||||
|
||||
wxDECLARE_DYNAMIC_CLASS(wxRadioBox);
|
||||
};
|
||||
|
||||
#endif // _WX_QT_RADIOBOX_H_
|
||||
Reference in New Issue
Block a user