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
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxColourDialog : public wxDialog
|
1998-05-20 10:12:05 -04:00
|
|
|
{
|
1998-08-07 19:52:45 -04:00
|
|
|
public:
|
2007-11-17 09:43:38 -05:00
|
|
|
wxColourDialog() { Init(); }
|
|
|
|
wxColourDialog(wxWindow *parent, wxColourData *data = NULL)
|
|
|
|
{
|
|
|
|
Init();
|
|
|
|
|
|
|
|
Create(parent, data);
|
|
|
|
}
|
1998-08-07 19:52:45 -04:00
|
|
|
|
|
|
|
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
|
|
|
|
2007-11-17 09:43:38 -05:00
|
|
|
// wxMSW-specific implementation from now on
|
|
|
|
// -----------------------------------------
|
|
|
|
|
|
|
|
// called from the hook procedure on WM_INITDIALOG reception
|
|
|
|
virtual void MSWOnInitDone(WXHWND hDlg);
|
|
|
|
|
1998-08-07 19:52:45 -04:00
|
|
|
protected:
|
2007-11-17 09:43:38 -05:00
|
|
|
// common part of all ctors
|
|
|
|
void Init();
|
|
|
|
|
|
|
|
#if !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
|
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;
|
2007-11-17 09:43:38 -05:00
|
|
|
virtual void DoMoveWindow(int x, int y, int width, int height);
|
|
|
|
virtual void DoCentre(int dir);
|
|
|
|
#endif // !(__SMARTPHONE__ && __WXWINCE__)
|
2000-07-15 15:51:35 -04:00
|
|
|
|
1998-08-07 19:52:45 -04:00
|
|
|
wxColourData m_colourData;
|
2000-07-15 15:51:35 -04:00
|
|
|
wxString m_title;
|
|
|
|
|
2007-11-17 09:43:38 -05:00
|
|
|
// indicates that the dialog should be centered in this direction if non 0
|
|
|
|
// (set by DoCentre(), used by MSWOnInitDone())
|
|
|
|
int m_centreDir;
|
|
|
|
|
|
|
|
// true if DoMoveWindow() had been called
|
|
|
|
bool m_movedWindow;
|
|
|
|
|
2002-04-26 17:06:21 -04:00
|
|
|
|
2003-07-21 20:24:07 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxColourDialog)
|
1998-05-20 10:12:05 -04:00
|
|
|
};
|
|
|
|
|
2007-11-17 09:43:38 -05:00
|
|
|
#endif // _WX_COLORDLG_H_
|