git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3221
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
DECLARE_DYNAMIC_CLASS(wxGenericMessageDialog)
public:
DECLARE_DYNAMIC_CLASS(wxGenericMessageDialog)
public:
- wxGenericMessageDialog(wxWindow *parent, const wxString& message,
+ wxGenericMessageDialog(wxWindow *parent, const wxString& message,
const wxString& caption = wxMessageBoxCaptionStr,
long style = wxOK|wxCENTRE, const wxPoint& pos = wxDefaultPosition);
void OnYes(wxCommandEvent& event);
void OnNo(wxCommandEvent& event);
void OnCancel(wxCommandEvent& event);
const wxString& caption = wxMessageBoxCaptionStr,
long style = wxOK|wxCENTRE, const wxPoint& pos = wxDefaultPosition);
void OnYes(wxCommandEvent& event);
void OnNo(wxCommandEvent& event);
void OnCancel(wxCommandEvent& event);
private:
int m_dialogStyle;
DECLARE_EVENT_TABLE()
};
private:
int m_dialogStyle;
DECLARE_EVENT_TABLE()
};
-#if !defined( __WXMSW__ ) && !defined( __WXMAC__)
+#if !defined( __WXMSW__ ) && !defined( __WXMAC__) && !defined(__WXPM__)
#define wxMessageDialog wxGenericMessageDialog
#define wxMessageDialog wxGenericMessageDialog
-int wxMessageBox(const wxString& message, const wxString& caption = wxMessageBoxCaptionStr,
- long style = wxOK|wxCENTRE, wxWindow *parent = (wxWindow *) NULL, int x = -1, int y = -1);
+int wxMessageBox( const wxString& message
+ ,const wxString& caption = wxMessageBoxCaptionStr
+ ,long style = wxOK|wxCENTRE
+ ,wxWindow *parent = (wxWindow *) NULL
+ ,int x = -1
+ ,int y = -1
+ );
#include "wx/dcprint.h"
#include "wx/printdlg.h"
#include "wx/generic/prntdlgg.h"
#include "wx/dcprint.h"
#include "wx/printdlg.h"
#include "wx/generic/prntdlgg.h"
+#include "wx/generic/progdlgg.h"
#include "wx/paper.h"
#include <stdlib.h>
#include "wx/paper.h"
#include <stdlib.h>
totalPages,
parent,
wxPD_CAN_ABORT|wxPD_AUTO_HIDE|wxPD_APP_MODAL);
totalPages,
parent,
wxPD_CAN_ABORT|wxPD_AUTO_HIDE|wxPD_APP_MODAL);
printout->OnBeginPrinting();
bool keepGoing = TRUE;
printout->OnBeginPrinting();
bool keepGoing = TRUE;
void wxPropertyValue::Delete(wxPropertyValue *node)
{
wxPropertyValue *expr = GetFirst();
void wxPropertyValue::Delete(wxPropertyValue *node)
{
wxPropertyValue *expr = GetFirst();
wxPropertyValue *previous = NULL;
while (expr && (expr != node))
{
wxPropertyValue *previous = NULL;
while (expr && (expr != node))
{
{
if (previous)
previous->m_next = expr->m_next;
{
if (previous)
previous->m_next = expr->m_next;
// If node was the first in the list,
// make the list point to the NEXT one.
if (GetFirst() == expr)
// If node was the first in the list,
// make the list point to the NEXT one.
if (GetFirst() == expr)
case wxPropertyValueStringPtr:
return new wxPropertyValue(m_value.stringPtr);
case wxPropertyValueStringPtr:
return new wxPropertyValue(m_value.stringPtr);
- case wxPropertyValueNull:
+ case wxPropertyValueNull:
#ifdef __X__
cerr << "Should never get here!\n";
#endif
#ifdef __X__
cerr << "Should never get here!\n";
#endif
case wxPropertyValueReal:
(*this) = copyFrom.RealValue();
return ;
case wxPropertyValueReal:
(*this) = copyFrom.RealValue();
return ;
case wxPropertyValueString:
(*this) = wxString(copyFrom.StringValue());
return ;
case wxPropertyValueString:
(*this) = wxString(copyFrom.StringValue());
return ;
case wxPropertyValuebool:
(*this) = copyFrom.BoolValue();
return ;
case wxPropertyValuebool:
(*this) = copyFrom.BoolValue();
return ;
case wxPropertyValueStringPtr:
{
wxChar** s = copyFrom.StringValuePtr();
case wxPropertyValueStringPtr:
{
wxChar** s = copyFrom.StringValuePtr();
case wxPropertyValueList:
{
m_value.first = NULL;
case wxPropertyValueList:
{
m_value.first = NULL;
- case wxPropertyValueNull:
+ case wxPropertyValueNull:
#ifdef __X__
cerr << "Should never get here!\n";
#endif
#ifdef __X__
cerr << "Should never get here!\n";
#endif
stream.Append( _T(" ") );
node->WritePropertyType(stream);
node = node->m_next;
stream.Append( _T(" ") );
node->WritePropertyType(stream);
node = node->m_next;
stream.Append( _T(",\n" ) );
first = FALSE;
}
stream.Append( _T(",\n" ) );
first = FALSE;
}
{
expr->WritePropertyType(stream);
expr = expr->m_next;
{
expr->WritePropertyType(stream);
expr = expr->m_next;
stream.Append( _T(", ") );
}
stream.Append( _T("]") );
stream.Append( _T(", ") );
}
stream.Append( _T("]") );
else
*m_value.stringPtr = NULL;
}
else
*m_value.stringPtr = NULL;
}
m_clientData = NULL;
m_next = NULL;
m_last = NULL;
m_clientData = NULL;
m_next = NULL;
m_last = NULL;
/*
* A property (name plus value)
*/
/*
* A property (name plus value)
*/
IMPLEMENT_DYNAMIC_CLASS(wxProperty, wxObject)
wxProperty::wxProperty(void)
IMPLEMENT_DYNAMIC_CLASS(wxProperty, wxObject)
wxProperty::wxProperty(void)
/*
* Base property view class
*/
/*
* Base property view class
*/
IMPLEMENT_DYNAMIC_CLASS(wxPropertyView, wxEvtHandler)
wxPropertyView::wxPropertyView(long flags)
IMPLEMENT_DYNAMIC_CLASS(wxPropertyView, wxEvtHandler)
wxPropertyView::wxPropertyView(long flags)
{
if (property->GetValidator())
return property->GetValidator();
{
if (property->GetValidator())
return property->GetValidator();
wxNode *node = m_validatorRegistryList.First();
while (node)
{
wxNode *node = m_validatorRegistryList.First();
while (node)
{
}
bool wxPropertySheet::HasProperty(const wxString& name) const
}
bool wxPropertySheet::HasProperty(const wxString& name) const
-{
- return (GetProperty(name)?TRUE:FALSE);
+{
+ return (GetProperty(name)?TRUE:FALSE);
}
// Clear all properties
}
// Clear all properties
wxProperty *prop = (wxProperty *)node->Data();
prop->GetValue().SetModified(flag);
node = node->Next();
wxProperty *prop = (wxProperty *)node->Data();
prop->GetValue().SetModified(flag);
node = node->Next();