*** empty log message ***

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3221 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
1999-07-31 03:35:35 +00:00
parent 9dfbf520eb
commit 2179d57968
3 changed files with 29 additions and 23 deletions

View File

@@ -29,25 +29,30 @@ class WXDLLEXPORT wxGenericMessageDialog: public wxDialog
DECLARE_DYNAMIC_CLASS(wxGenericMessageDialog) DECLARE_DYNAMIC_CLASS(wxGenericMessageDialog)
public: public:
wxGenericMessageDialog(wxWindow *parent, const wxString& message, wxGenericMessageDialog(wxWindow *parent, const wxString& message,
const wxString& caption = wxMessageBoxCaptionStr, const wxString& caption = wxMessageBoxCaptionStr,
long style = wxOK|wxCENTRE, const wxPoint& pos = wxDefaultPosition); long style = wxOK|wxCENTRE, const wxPoint& pos = wxDefaultPosition);
void OnYes(wxCommandEvent& event); void OnYes(wxCommandEvent& event);
void OnNo(wxCommandEvent& event); void OnNo(wxCommandEvent& event);
void OnCancel(wxCommandEvent& event); void OnCancel(wxCommandEvent& event);
private: private:
int m_dialogStyle; int m_dialogStyle;
DECLARE_EVENT_TABLE() 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, int wxMessageBox( const wxString& message
long style = wxOK|wxCENTRE, wxWindow *parent = (wxWindow *) NULL, int x = -1, int y = -1); ,const wxString& caption = wxMessageBoxCaptionStr
,long style = wxOK|wxCENTRE
,wxWindow *parent = (wxWindow *) NULL
,int x = -1
,int y = -1
);
#endif #endif

View File

@@ -45,6 +45,7 @@
#include "wx/dcprint.h" #include "wx/dcprint.h"
#include "wx/printdlg.h" #include "wx/printdlg.h"
#include "wx/generic/prntdlgg.h" #include "wx/generic/prntdlgg.h"
#include "wx/generic/progdlgg.h"
#include "wx/paper.h" #include "wx/paper.h"
#include <stdlib.h> #include <stdlib.h>
@@ -180,7 +181,7 @@ bool wxPostScriptPrinter::Print(wxWindow *parent, wxPrintout *printout, bool pro
totalPages, totalPages,
parent, parent,
wxPD_CAN_ABORT|wxPD_AUTO_HIDE|wxPD_APP_MODAL); wxPD_CAN_ABORT|wxPD_AUTO_HIDE|wxPD_APP_MODAL);
printout->OnBeginPrinting(); printout->OnBeginPrinting();
bool keepGoing = TRUE; bool keepGoing = TRUE;

View File

@@ -242,7 +242,7 @@ void wxPropertyValue::Insert(wxPropertyValue *expr)
void wxPropertyValue::Delete(wxPropertyValue *node) void wxPropertyValue::Delete(wxPropertyValue *node)
{ {
wxPropertyValue *expr = GetFirst(); wxPropertyValue *expr = GetFirst();
wxPropertyValue *previous = NULL; wxPropertyValue *previous = NULL;
while (expr && (expr != node)) while (expr && (expr != node))
{ {
@@ -254,7 +254,7 @@ void wxPropertyValue::Delete(wxPropertyValue *node)
{ {
if (previous) if (previous)
previous->m_next = expr->m_next; previous->m_next = expr->m_next;
// If node was the first in the list, // If node was the first in the list,
// make the list point to the NEXT one. // make the list point to the NEXT one.
if (GetFirst() == expr) if (GetFirst() == expr)
@@ -327,7 +327,7 @@ wxPropertyValue *wxPropertyValue::NewCopy(void) const
case wxPropertyValueStringPtr: case wxPropertyValueStringPtr:
return new wxPropertyValue(m_value.stringPtr); return new wxPropertyValue(m_value.stringPtr);
case wxPropertyValueNull: case wxPropertyValueNull:
#ifdef __X__ #ifdef __X__
cerr << "Should never get here!\n"; cerr << "Should never get here!\n";
#endif #endif
@@ -349,11 +349,11 @@ void wxPropertyValue::Copy(wxPropertyValue& copyFrom)
case wxPropertyValueReal: case wxPropertyValueReal:
(*this) = copyFrom.RealValue(); (*this) = copyFrom.RealValue();
return ; return ;
case wxPropertyValueString: case wxPropertyValueString:
(*this) = wxString(copyFrom.StringValue()); (*this) = wxString(copyFrom.StringValue());
return ; return ;
case wxPropertyValuebool: case wxPropertyValuebool:
(*this) = copyFrom.BoolValue(); (*this) = copyFrom.BoolValue();
return ; return ;
@@ -371,10 +371,10 @@ void wxPropertyValue::Copy(wxPropertyValue& copyFrom)
case wxPropertyValueStringPtr: case wxPropertyValueStringPtr:
{ {
wxChar** s = copyFrom.StringValuePtr(); wxChar** s = copyFrom.StringValuePtr();
(*this) = s != 0; (*this) = s;
return ; return ;
} }
case wxPropertyValueList: case wxPropertyValueList:
{ {
m_value.first = NULL; m_value.first = NULL;
@@ -389,7 +389,7 @@ void wxPropertyValue::Copy(wxPropertyValue& copyFrom)
} }
return; return;
} }
case wxPropertyValueNull: case wxPropertyValueNull:
#ifdef __X__ #ifdef __X__
cerr << "Should never get here!\n"; cerr << "Should never get here!\n";
#endif #endif
@@ -463,7 +463,7 @@ void wxPropertyValue::WritePropertyClause(wxString& stream) // Write this expre
stream.Append( _T(" ") ); stream.Append( _T(" ") );
node->WritePropertyType(stream); node->WritePropertyType(stream);
node = node->m_next; node = node->m_next;
if (node) if (node)
stream.Append( _T(",\n" ) ); stream.Append( _T(",\n" ) );
first = FALSE; first = FALSE;
} }
@@ -550,7 +550,7 @@ void wxPropertyValue::WritePropertyType(wxString& stream) // Write as any oth
{ {
expr->WritePropertyType(stream); expr->WritePropertyType(stream);
expr = expr->m_next; expr = expr->m_next;
if (expr) if (expr)
stream.Append( _T(", ") ); stream.Append( _T(", ") );
} }
stream.Append( _T("]") ); stream.Append( _T("]") );
@@ -599,7 +599,7 @@ void wxPropertyValue::operator=(const wxString& val1)
else else
*m_value.stringPtr = NULL; *m_value.stringPtr = NULL;
} }
m_clientData = NULL; m_clientData = NULL;
m_next = NULL; m_next = NULL;
m_last = NULL; m_last = NULL;
@@ -773,7 +773,7 @@ wxChar **wxPropertyValue::StringValuePtr(void) const
/* /*
* A property (name plus value) * A property (name plus value)
*/ */
IMPLEMENT_DYNAMIC_CLASS(wxProperty, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxProperty, wxObject)
wxProperty::wxProperty(void) wxProperty::wxProperty(void)
@@ -863,7 +863,7 @@ void wxProperty::operator=(const wxPropertyValue& val)
/* /*
* Base property view class * Base property view class
*/ */
IMPLEMENT_DYNAMIC_CLASS(wxPropertyView, wxEvtHandler) IMPLEMENT_DYNAMIC_CLASS(wxPropertyView, wxEvtHandler)
wxPropertyView::wxPropertyView(long flags) wxPropertyView::wxPropertyView(long flags)
@@ -887,7 +887,7 @@ wxPropertyValidator *wxPropertyView::FindPropertyValidator(wxProperty *property)
{ {
if (property->GetValidator()) if (property->GetValidator())
return property->GetValidator(); return property->GetValidator();
wxNode *node = m_validatorRegistryList.First(); wxNode *node = m_validatorRegistryList.First();
while (node) while (node)
{ {
@@ -964,8 +964,8 @@ void wxPropertySheet::RemoveProperty(const wxString& name)
} }
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
@@ -991,7 +991,7 @@ void wxPropertySheet::SetAllModified(bool flag)
wxProperty *prop = (wxProperty *)node->Data(); wxProperty *prop = (wxProperty *)node->Data();
prop->GetValue().SetModified(flag); prop->GetValue().SetModified(flag);
node = node->Next(); node = node->Next();
} }
} }
/* /*