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
|
2004-05-23 16:53:33 -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
|
|
|
|
2006-01-26 12:20:50 -05:00
|
|
|
#include "wx/defs.h"
|
1998-05-20 10:12:05 -04:00
|
|
|
#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);
|
2002-05-09 18:34:44 -04:00
|
|
|
virtual wxString GetTitle() const;
|
2000-07-15 15:51:35 -04:00
|
|
|
|
|
|
|
virtual int ShowModal();
|
1998-08-07 19:52:45 -04:00
|
|
|
|
|
|
|
protected:
|
2006-02-08 16:47:09 -05:00
|
|
|
virtual void DoGetPosition( int *x, int *y ) const;
|
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;
|
|
|
|
|
2002-04-26 17:06:21 -04:00
|
|
|
wxPoint m_pos;
|
|
|
|
|
2003-07-21 20:24:07 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxColourDialog)
|
1998-05-20 10:12:05 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
1998-08-07 19:52:45 -04:00
|
|
|
// _WX_COLORDLG_H_
|