]> git.saurik.com Git - wxWidgets.git/commitdiff
*** empty log message ***
authorDavid Webster <Dave.Webster@bhmi.com>
Sat, 31 Jul 1999 03:35:35 +0000 (03:35 +0000)
committerDavid Webster <Dave.Webster@bhmi.com>
Sat, 31 Jul 1999 03:35:35 +0000 (03:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3221 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/generic/msgdlgg.h
src/generic/printps.cpp
src/generic/prop.cpp

index 62dddb1b876522384fc50c6dceaf9ce61a562c12..f5a75bf12407ebbe19ce425b96c8ed8333af7bde 100644 (file)
@@ -29,25 +29,30 @@ class WXDLLEXPORT wxGenericMessageDialog: public wxDialog
 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);
-    
+
 private:
     int     m_dialogStyle;
 
 DECLARE_EVENT_TABLE()
 };
 
-#if !defined( __WXMSW__ ) && !defined( __WXMAC__)
+#if !defined( __WXMSW__ ) && !defined( __WXMAC__) && !defined(__WXPM__)
 #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
+                );
 
 #endif
 
index 3317b1df0abc71ae91550e5b5a66c15f430c0a33..ec2b99b5d3b3a31c80b24c51542a042f02081d99 100644 (file)
@@ -45,6 +45,7 @@
 #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>
@@ -180,7 +181,7 @@ bool wxPostScriptPrinter::Print(wxWindow *parent, wxPrintout *printout, bool pro
        totalPages,
        parent,
        wxPD_CAN_ABORT|wxPD_AUTO_HIDE|wxPD_APP_MODAL);
-    
+
     printout->OnBeginPrinting();
 
     bool keepGoing = TRUE;
index 00e53646063d2a4740ff69fc9ef7472d60d16392..30c510e8748a8e6f1fc39c342a8642f0465b183b 100644 (file)
@@ -242,7 +242,7 @@ void wxPropertyValue::Insert(wxPropertyValue *expr)
 void wxPropertyValue::Delete(wxPropertyValue *node)
 {
   wxPropertyValue *expr = GetFirst();
-  
+
   wxPropertyValue *previous = NULL;
   while (expr && (expr != node))
   {
@@ -254,7 +254,7 @@ void wxPropertyValue::Delete(wxPropertyValue *node)
   {
     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)
@@ -327,7 +327,7 @@ wxPropertyValue *wxPropertyValue::NewCopy(void) const
    case wxPropertyValueStringPtr:
      return new wxPropertyValue(m_value.stringPtr);
 
-   case wxPropertyValueNull: 
+   case wxPropertyValueNull:
 #ifdef __X__
     cerr << "Should never get here!\n";
 #endif
@@ -349,11 +349,11 @@ void wxPropertyValue::Copy(wxPropertyValue& copyFrom)
     case wxPropertyValueReal:
       (*this) = copyFrom.RealValue();
       return ;
-      
+
     case wxPropertyValueString:
       (*this) = wxString(copyFrom.StringValue());
       return ;
-      
+
     case wxPropertyValuebool:
       (*this) = copyFrom.BoolValue();
       return ;
@@ -371,10 +371,10 @@ void wxPropertyValue::Copy(wxPropertyValue& copyFrom)
     case wxPropertyValueStringPtr:
     {
       wxChar** s = copyFrom.StringValuePtr();
-      (*this) = s != 0;
+      (*this) = s;
       return ;
     }
-      
+
     case wxPropertyValueList:
     {
       m_value.first = NULL;
@@ -389,7 +389,7 @@ void wxPropertyValue::Copy(wxPropertyValue& copyFrom)
       }
       return;
     }
-   case wxPropertyValueNull: 
+   case wxPropertyValueNull:
 #ifdef __X__
     cerr << "Should never get here!\n";
 #endif
@@ -463,7 +463,7 @@ void wxPropertyValue::WritePropertyClause(wxString& stream)  // Write this expre
         stream.Append( _T("  ") );
       node->WritePropertyType(stream);
       node = node->m_next;
-      if (node) 
+      if (node)
         stream.Append( _T(",\n" ) );
       first = FALSE;
     }
@@ -550,7 +550,7 @@ void wxPropertyValue::WritePropertyType(wxString& stream)    // Write as any oth
         {
           expr->WritePropertyType(stream);
           expr = expr->m_next;
-          if (expr) 
+          if (expr)
            stream.Append( _T(", ") );
         }
         stream.Append( _T("]") );
@@ -599,7 +599,7 @@ void wxPropertyValue::operator=(const wxString& val1)
     else
       *m_value.stringPtr = NULL;
   }
-  
+
   m_clientData = NULL;
   m_next = NULL;
   m_last = NULL;
@@ -773,7 +773,7 @@ wxChar **wxPropertyValue::StringValuePtr(void) const
 /*
  * A property (name plus value)
  */
+
 IMPLEMENT_DYNAMIC_CLASS(wxProperty, wxObject)
 
 wxProperty::wxProperty(void)
@@ -863,7 +863,7 @@ void wxProperty::operator=(const wxPropertyValue& val)
 /*
  * Base property view class
  */
+
 IMPLEMENT_DYNAMIC_CLASS(wxPropertyView, wxEvtHandler)
 
 wxPropertyView::wxPropertyView(long flags)
@@ -887,7 +887,7 @@ wxPropertyValidator *wxPropertyView::FindPropertyValidator(wxProperty *property)
 {
   if (property->GetValidator())
     return property->GetValidator();
-    
+
   wxNode *node = m_validatorRegistryList.First();
   while (node)
   {
@@ -964,8 +964,8 @@ void wxPropertySheet::RemoveProperty(const wxString& name)
 }      
 
 bool wxPropertySheet::HasProperty(const wxString& name) const
-{ 
-       return (GetProperty(name)?TRUE:FALSE); 
+{
+       return (GetProperty(name)?TRUE:FALSE);
 }
 
 // Clear all properties
@@ -991,7 +991,7 @@ void wxPropertySheet::SetAllModified(bool flag)
     wxProperty *prop = (wxProperty *)node->Data();
     prop->GetValue().SetModified(flag);
     node = node->Next();
-  }  
+  }
 }
 
 /*