1998-05-20 10:12:05 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2000-07-15 15:51:35 -04:00
|
|
|
// Name: wx/msw/colordlg.h
|
1998-05-20 10:12:05 -04:00
|
|
|
// Purpose: wxColourDialog class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
1998-08-07 19:52:45 -04:00
|
|
|
// Copyright: (c) Julian Smart
|
2000-07-15 15:51:35 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:12:05 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-07 19:52:45 -04:00
|
|
|
#ifndef _WX_COLORDLG_H_
|
|
|
|
#define _WX_COLORDLG_H_
|
1998-05-20 10:12:05 -04:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface "colordlg.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/setup.h"
|
|
|
|
#include "wx/dialog.h"
|
|
|
|
#include "wx/cmndata.h"
|
|
|
|
|
2000-07-15 15:51:35 -04:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxColourDialog: dialog for choosing a colours
|
|
|
|
// ----------------------------------------------------------------------------
|
1998-05-20 10:12:05 -04:00
|
|
|
|
2000-07-15 15:51:35 -04:00
|
|
|
class WXDLLEXPORT wxColourDialog : public wxDialog
|
1998-05-20 10:12:05 -04:00
|
|
|
{
|
1998-08-07 19:52:45 -04:00
|
|
|
public:
|
2000-07-15 15:51:35 -04:00
|
|
|
wxColourDialog();
|
1998-08-07 19:52:45 -04:00
|
|
|
wxColourDialog(wxWindow *parent, wxColourData *data = NULL);
|
|
|
|
|
|
|
|
bool Create(wxWindow *parent, wxColourData *data = NULL);
|
|
|
|
|
2000-07-15 15:51:35 -04:00
|
|
|
wxColourData& GetColourData() { return m_colourData; }
|
|
|
|
|
|
|
|
// override some base class virtuals
|
|
|
|
virtual void SetTitle(const wxString& title);
|
|
|
|
virtual wxString GetTitle();
|
|
|
|
|
|
|
|
virtual int ShowModal();
|
1998-08-07 19:52:45 -04:00
|
|
|
|
|
|
|
protected:
|
2000-07-15 15:51:35 -04:00
|
|
|
virtual void DoGetSize(int *width, int *height) const;
|
|
|
|
virtual void DoGetClientSize(int *width, int *height) const;
|
|
|
|
virtual void DoSetSize(int x, int y,
|
|
|
|
int width, int height,
|
|
|
|
int sizeFlags = wxSIZE_AUTO);
|
|
|
|
|
1998-08-07 19:52:45 -04:00
|
|
|
wxColourData m_colourData;
|
2000-07-15 15:51:35 -04:00
|
|
|
wxString m_title;
|
|
|
|
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxColourDialog)
|
1998-05-20 10:12:05 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
1998-08-07 19:52:45 -04:00
|
|
|
// _WX_COLORDLG_H_
|