2004-06-04 12:02:14 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/gtk/colordlg.h
|
|
|
|
// Purpose: wxColourDialog
|
|
|
|
// Author: Vaclav Slavik
|
|
|
|
// Modified by:
|
|
|
|
// Created: 2004/06/04
|
|
|
|
// Copyright: (c) Vaclav Slavik, 2004
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2006-08-30 01:55:56 -04:00
|
|
|
#ifndef _WX_GTK_COLORDLG_H_
|
|
|
|
#define _WX_GTK_COLORDLG_H_
|
2004-06-04 12:02:14 -04:00
|
|
|
|
|
|
|
#include "wx/dialog.h"
|
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxColourDialog : public wxDialog
|
2004-06-04 12:02:14 -04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxColourDialog() {}
|
|
|
|
wxColourDialog(wxWindow *parent,
|
2009-01-19 08:55:27 -05:00
|
|
|
wxColourData *data = NULL);
|
2004-06-04 12:02:14 -04:00
|
|
|
virtual ~wxColourDialog() {}
|
|
|
|
|
2009-01-19 08:55:27 -05:00
|
|
|
bool Create(wxWindow *parent, wxColourData *data = NULL);
|
2004-06-04 12:02:14 -04:00
|
|
|
|
|
|
|
wxColourData &GetColourData() { return m_data; }
|
|
|
|
|
2014-03-29 20:02:23 -04:00
|
|
|
virtual int ShowModal() wxOVERRIDE;
|
2004-06-04 12:02:14 -04:00
|
|
|
|
|
|
|
protected:
|
|
|
|
// implement some base class methods to do nothing to avoid asserts and
|
|
|
|
// GTK warnings, since this is not a real wxDialog.
|
2004-10-16 15:41:18 -04:00
|
|
|
virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y),
|
|
|
|
int WXUNUSED(width), int WXUNUSED(height),
|
2014-03-29 20:02:23 -04:00
|
|
|
int WXUNUSED(sizeFlags) = wxSIZE_AUTO) wxOVERRIDE {}
|
2004-10-16 15:41:18 -04:00
|
|
|
virtual void DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y),
|
2014-03-29 20:02:23 -04:00
|
|
|
int WXUNUSED(width), int WXUNUSED(height)) wxOVERRIDE {}
|
2004-06-04 12:02:14 -04:00
|
|
|
|
|
|
|
// copy data between the dialog and m_colourData:
|
|
|
|
void ColourDataToDialog();
|
|
|
|
void DialogToColourData();
|
2006-01-26 12:20:50 -05:00
|
|
|
|
2004-06-04 12:02:14 -04:00
|
|
|
wxColourData m_data;
|
|
|
|
|
2015-04-23 07:49:01 -04:00
|
|
|
wxDECLARE_DYNAMIC_CLASS(wxColourDialog);
|
2004-06-04 12:02:14 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|