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
|
|
|
|
2003-08-09 08:38:21 -04:00
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
1998-05-20 10:12:05 -04:00
|
|
|
#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);
|
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
|
|
|
|
2002-04-26 17:06:21 -04:00
|
|
|
virtual void DoGetPosition( int *x, int *y ) const;
|
|
|
|
|
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;
|
|
|
|
|
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_
|