df13791078
This merges in the latest sources from GSoC 2014 wxQt project with just a few minor corrections, mostly undoing wrong changes to common files in that branch (results of a previous bad merge?) and getting rid of whitespace-only changes. Also remove debug logging from wxGrid. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77455 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
96 lines
3.2 KiB
C++
96 lines
3.2 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// 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_
|
|
|
|
#include <QtWidgets/QGroupBox>
|
|
#include <QtWidgets/QButtonGroup>
|
|
#include <QtWidgets/QVBoxLayout>
|
|
|
|
class WXDLLIMPEXP_CORE wxRadioBox : public wxControl, public wxRadioBoxBase
|
|
{
|
|
public:
|
|
wxRadioBox();
|
|
|
|
wxRadioBox(wxWindow *parent,
|
|
wxWindowID id,
|
|
const wxString& title,
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
const wxSize& size = wxDefaultSize,
|
|
int n = 0, const wxString choices[] = NULL,
|
|
int majorDim = 0,
|
|
long style = wxRA_SPECIFY_COLS,
|
|
const wxValidator& val = wxDefaultValidator,
|
|
const wxString& name = 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 = wxRadioBoxNameStr);
|
|
|
|
bool Create(wxWindow *parent,
|
|
wxWindowID id,
|
|
const wxString& title,
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
const wxSize& size = wxDefaultSize,
|
|
int n = 0, const wxString choices[] = NULL,
|
|
int majorDim = 0,
|
|
long style = wxRA_SPECIFY_COLS,
|
|
const wxValidator& val = wxDefaultValidator,
|
|
const wxString& name = 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 = wxRadioBoxNameStr);
|
|
|
|
using wxWindowBase::Show;
|
|
using wxWindowBase::Enable;
|
|
using wxRadioBoxBase::GetDefaultBorder;
|
|
|
|
virtual bool Enable(unsigned int n, bool enable = true);
|
|
virtual bool Show(unsigned int n, bool show = true);
|
|
virtual bool IsItemEnabled(unsigned int n) const;
|
|
virtual bool IsItemShown(unsigned int n) const;
|
|
|
|
virtual unsigned int GetCount() const;
|
|
virtual wxString GetString(unsigned int n) const;
|
|
virtual void SetString(unsigned int n, const wxString& s);
|
|
|
|
virtual void SetSelection(int n);
|
|
virtual int GetSelection() const;
|
|
|
|
virtual QGroupBox *GetHandle() const;
|
|
|
|
private:
|
|
// The 'visual' group box:
|
|
QGroupBox *m_qtGroupBox;
|
|
|
|
// Handles the mutual exclusion of buttons:
|
|
QButtonGroup *m_qtButtonGroup;
|
|
|
|
// Autofit layout for buttons (either vert. or horiz.):
|
|
QBoxLayout *m_qtBoxLayout;
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxRadioBox)
|
|
};
|
|
|
|
#endif // _WX_QT_RADIOBOX_H_
|