Added wxExtDialog and sample.
Tried to make defs.h slightly more readable, also found some wrong flags then. Updated testconf. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
96
include/wx/generic/extdlgg.h
Normal file
96
include/wx/generic/extdlgg.h
Normal file
@@ -0,0 +1,96 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: extdlgg.h
|
||||
// Purpose: Extended Generic dialogs
|
||||
// Author: Robert Roebling
|
||||
// Modified by:
|
||||
// Created: 01/02/97
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef __EXTDLGH_G__
|
||||
#define __EXTDLGH_G__
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma interface "extdlgg.h"
|
||||
#endif
|
||||
|
||||
#include "wx/setup.h"
|
||||
#include "wx/dialog.h"
|
||||
#include "wx/button.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// classes
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
class WXDLLEXPORT wxExtDialog;
|
||||
class WXDLLEXPORT wxStaticLine;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// global data
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
extern const wxChar *wxDialogNameStr;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxExtDialog
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
class WXDLLEXPORT wxExtDialog: public wxDialog
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxExtDialog)
|
||||
|
||||
public:
|
||||
wxExtDialog() {}
|
||||
wxExtDialog( wxWindow *parent, wxWindowID id,
|
||||
const wxString& title,
|
||||
long extraStyle = (wxOK|wxCANCEL|wxCENTRE),
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxEXT_DIALOG_STYLE,
|
||||
const wxString &name = wxDialogNameStr );
|
||||
bool Create( wxWindow *parent, wxWindowID id,
|
||||
const wxString& title,
|
||||
long extraStyle = (wxOK|wxCANCEL|wxCENTRE),
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxEXT_DIALOG_STYLE,
|
||||
const wxString &name = wxDialogNameStr );
|
||||
|
||||
void SetClientWindow( wxWindow *clientWindow )
|
||||
{ m_clientWindow = clientWindow; }
|
||||
wxWindow *GetClientWindow()
|
||||
{ return m_clientWindow; }
|
||||
|
||||
void AddButton( wxButton *button );
|
||||
|
||||
void SetDefaultButton( wxWindowID button );
|
||||
|
||||
void EnableButton( wxWindowID button, bool enable=TRUE );
|
||||
bool ButtonIsEnabled( wxWindowID button );
|
||||
|
||||
wxSize GetButtonAreaSize();
|
||||
|
||||
void OnSize( wxSizeEvent &event );
|
||||
|
||||
void OnYes(wxCommandEvent& event);
|
||||
void OnNo(wxCommandEvent& event);
|
||||
void OnCancel(wxCommandEvent& event);
|
||||
|
||||
protected:
|
||||
wxWindow *m_clientWindow;
|
||||
long m_extraStyle;
|
||||
wxList m_buttons;
|
||||
#if wxUSE_STATLINE
|
||||
wxStaticLine *m_statLine;
|
||||
#endif
|
||||
|
||||
wxSize LayoutButtons();
|
||||
|
||||
private:
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user