]> git.saurik.com Git - wxWidgets.git/commitdiff
wx/wxprec.h already includes wx/defs.h (with other minor cleaning).
authorWłodzimierz Skiba <abx@abx.art.pl>
Tue, 18 Apr 2006 08:11:26 +0000 (08:11 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Tue, 18 Apr 2006 08:11:26 +0000 (08:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

40 files changed:
src/generic/dirdlgg.cpp
src/generic/grid.cpp
src/generic/gridsel.cpp
src/generic/imaglist.cpp
src/generic/printps.cpp
src/generic/propdlg.cpp
src/gtk/bitmap.cpp
src/gtk/bmpbuttn.cpp
src/gtk/button.cpp
src/gtk/checkbox.cpp
src/gtk/data.cpp
src/gtk/dataview.cpp
src/gtk/fontdlg.cpp
src/gtk/frame.cpp
src/gtk/toplevel.cpp
src/gtk1/bmpbuttn.cpp
src/gtk1/button.cpp
src/gtk1/checkbox.cpp
src/gtk1/data.cpp
src/gtk1/fontdlg.cpp
src/gtk1/frame.cpp
src/gtk1/toplevel.cpp
src/html/helpdata.cpp
src/html/htmlcell.cpp
src/html/htmlfilt.cpp
src/html/htmlpars.cpp
src/html/htmltag.cpp
src/html/htmlwin.cpp
src/html/htmprint.cpp
src/html/m_dflist.cpp
src/html/m_fonts.cpp
src/html/m_hline.cpp
src/html/m_image.cpp
src/html/m_layout.cpp
src/html/m_links.cpp
src/html/m_list.cpp
src/html/m_pre.cpp
src/html/m_style.cpp
src/html/m_tables.cpp
src/html/winpars.cpp

index 1b9cc357640b12fe989ce33c6468cf7c646f6067..9419cbc73fbc290471edb9505f4627c614c3d1cf 100644 (file)
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
-#include "wx/defs.h"
-
 #if wxUSE_DIRDLG
 
 #ifndef WX_PRECOMP
index 8c54f1eb9992ba51ec21b909e1c8f1e0dcb0ae64..9e009e5d1a5fa2814ab97c4391cce11cdd4aa5de 100644 (file)
@@ -12,8 +12,6 @@
 // For compilers that support precompilatixon, includes "wx/wx.h".
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
-
 #ifdef __BORLANDC__
     #pragma hdrstop
 #endif
@@ -3180,7 +3178,7 @@ bool wxGridTableBase::DeleteCols( size_t WXUNUSED(pos),
 wxString wxGridTableBase::GetRowLabelValue( int row )
 {
     wxString s;
+
     // RD: Starting the rows at zero confuses users,
     // no matter how much it makes sense to us geeks.
     s << row + 1;
index c81506448412226922bb36e6c20b91aca4778cd3..f89835df90c64541a66c2de7813600d64dbadf3c 100644 (file)
@@ -1,5 +1,5 @@
 ///////////////////////////////////////////////////////////////////////////
-// Name:        generic/gridsel.cpp
+// Name:        src/generic/gridsel.cpp
 // Purpose:     wxGridSelection
 // Author:      Stefan Neis
 // Modified by:
@@ -9,6 +9,13 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
+// For compilers that support precompilation, includes "wx/wx.h".
+#include "wx/wxprec.h"
+
+#ifdef __BORLANDC__
+    #pragma hdrstop
+#endif
+
 // ============================================================================
 // declarations
 // ============================================================================
 // headers
 // ----------------------------------------------------------------------------
 
-// For compilers that support precompilation, includes "wx/wx.h".
-#include "wx/wxprec.h"
-
-#include "wx/defs.h"
-
-#ifdef __BORLANDC__
-    #pragma hdrstop
-#endif
-
 #if wxUSE_GRID
 
 #include "wx/generic/gridsel.h"
index 0e3d1c01bd154d970d75175409411ece570b89e8..9ec73fa68e0a9785ac1dc27822523b4be44630a0 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        generic/imaglist.cpp
+// Name:        src/generic/imaglist.cpp
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $id$
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
-#if wxUSE_IMAGLIST
-
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
-#include "wx/defs.h"
+#if wxUSE_IMAGLIST
 
 #ifndef __WXPALMOS__
 
@@ -86,7 +84,7 @@ int wxGenericImageList::Add( const wxBitmap &bitmap )
         m_width = bitmap.GetWidth();
         m_height = bitmap.GetHeight();
     }
-    
+
     return m_images.GetCount()-1;
 }
 
index c3fd9a8a61e69be32794abe6498f5482e74b0c25..6b73aab6741032eae406ebc06421855fb128bd79 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        printps.cpp
+// Name:        src/generic/printps.cpp
 // Purpose:     Postscript print/preview framework
 // Author:      Julian Smart
 // Modified by:
@@ -9,14 +9,6 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-// ============================================================================
-// declarations
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// headers
-// ----------------------------------------------------------------------------
-
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
     #pragma hdrstop
 #endif
 
-#include "wx/defs.h"
+// ============================================================================
+// declarations
+// ============================================================================
+
+// ----------------------------------------------------------------------------
+// headers
+// ----------------------------------------------------------------------------
 
 #if wxUSE_PRINTING_ARCHITECTURE && wxUSE_POSTSCRIPT && (!defined(__WXMSW__) || wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW)
 
index 02c23b3a8edd3f40c95fc45c68419f6b1c7d277a..5b1fa5d1d5ca7e512b73dd194fcaad197212cfba 100644 (file)
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
-#include "wx/defs.h"
-
 #if wxUSE_BOOKCTRL
 
 #ifndef WX_PRECOMP
@@ -145,7 +143,7 @@ wxBookCtrlBase* wxPropertySheetDialog::CreateBookCtrl()
 #endif
 
     wxBookCtrlBase* bookCtrl = NULL;
-    
+
 #if wxUSE_NOTEBOOK
     if (GetSheetStyle() & wxPROPSHEET_NOTEBOOK)
         bookCtrl = new wxNotebook(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, style );
@@ -169,10 +167,10 @@ wxBookCtrlBase* wxPropertySheetDialog::CreateBookCtrl()
 #endif
     if (!bookCtrl)
         bookCtrl = new wxBookCtrl(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, style );
-    
+
     if (GetSheetStyle() & wxPROPSHEET_SHRINKTOFIT)
         bookCtrl->SetFitToCurrentPage(true);
-    
+
     return bookCtrl;
 }
 
@@ -211,7 +209,7 @@ void wxPropertySheetDialog::OnActivate(wxActivateEvent& event)
 void wxPropertySheetDialog::OnIdle(wxIdleEvent& event)
 {
     event.Skip();
-    
+
     if ((GetSheetStyle() & wxPROPSHEET_SHRINKTOFIT) && GetBookCtrl())
     {
         int sel = GetBookCtrl()->GetSelection();
@@ -228,4 +226,3 @@ void wxPropertySheetDialog::OnIdle(wxIdleEvent& event)
 }
 
 #endif // wxUSE_BOOKCTRL
-
index cb569d36472df747f90c01ec308f4b62c927b3f3..eb638d494479b9f90d57ff84cc691dfc120b7e10 100644 (file)
@@ -10,7 +10,9 @@
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
+#ifndef WX_PRECOMP
+    #include "wx/app.h"
+#endif
 
 #include "wx/bitmap.h"
 #include "wx/palette.h"
@@ -18,7 +20,6 @@
 #include "wx/filefn.h"
 #include "wx/image.h"
 #include "wx/dcmemory.h"
-#include "wx/app.h"
 
 #include "wx/rawbmp.h"
     // need this to get gdk_image_new_bitmap()
index eab91a19defb9ec4977671059deb33ba54cbfc3e..656db887dced84958755f9ca1b0fcfdb866f774e 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        gtk/bmpbuttn.cpp
+// Name:        src/gtk/bmpbuttn.cpp
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -10,8 +10,6 @@
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
-
 #if wxUSE_BMPBUTTON
 
 #include "wx/bmpbuttn.h"
index e7d67d6e925ae65cb96c5127fc9ae626487e2a6c..74281019ca41bd0e4f7ef05a59a4d2a69d90aae1 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        button.cpp
+// Name:        src/gtk/button.cpp
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -10,8 +10,6 @@
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
-
 #if wxUSE_BUTTON
 
 #include "wx/button.h"
@@ -107,14 +105,14 @@ bool wxButton::Create(  wxWindow *parent, wxWindowID id, const wxString &label,
       const wxPoint &pos, const wxSize &size,
       long style, const wxValidator& validator, const wxString &name )
 {
-    m_needParent = TRUE;
-    m_acceptsFocus = TRUE;
+    m_needParent = true;
+    m_acceptsFocus = true;
 
     if (!PreCreation( parent, pos, size ) ||
         !CreateBase( parent, id, pos, size, style, validator, name ))
     {
         wxFAIL_MSG( wxT("wxButton creation failed") );
-        return FALSE;
+        return false;
     }
 
     m_widget = gtk_button_new_with_mnemonic("");
@@ -247,11 +245,11 @@ void wxButton::SetLabel( const wxString &lbl )
 bool wxButton::Enable( bool enable )
 {
     if ( !wxControl::Enable( enable ) )
-        return FALSE;
+        return false;
 
     gtk_widget_set_sensitive(GTK_BIN(m_widget)->child, enable);
 
-    return TRUE;
+    return true;
 }
 
 bool wxButton::IsOwnGtkWindow( GdkWindow *window )
@@ -305,4 +303,3 @@ wxButton::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
 }
 
 #endif // wxUSE_BUTTON
-
index 4dd5333334043e8bda62556aef214607b782bbe5..4b7adcc2087486119004a25bdd9fe3a6fda46a89 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        checkbox.cpp
+// Name:        src/gtk/checkbox.cpp
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -10,8 +10,6 @@
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
-
 #if wxUSE_CHECKBOX
 
 #include "wx/checkbox.h"
@@ -113,15 +111,15 @@ bool wxCheckBox::Create(wxWindow *parent,
                         const wxValidator& validator,
                         const wxString &name )
 {
-    m_needParent = TRUE;
-    m_acceptsFocus = TRUE;
-    m_blockEvent = FALSE;
+    m_needParent = true;
+    m_acceptsFocus = true;
+    m_blockEvent = false;
 
     if (!PreCreation( parent, pos, size ) ||
         !CreateBase( parent, id, pos, size, style, validator, name ))
     {
         wxFAIL_MSG( wxT("wxCheckBox creation failed") );
-        return FALSE;
+        return false;
     }
 
     wxASSERT_MSG( (style & wxCHK_ALLOW_3RD_STATE_FOR_USER) == 0 ||
@@ -161,7 +159,7 @@ bool wxCheckBox::Create(wxWindow *parent,
 
     PostCreation(size);
 
-    return TRUE;
+    return true;
 }
 
 void wxCheckBox::SetValue( bool state )
@@ -171,16 +169,16 @@ void wxCheckBox::SetValue( bool state )
     if (state == GetValue())
         return;
 
-    m_blockEvent = TRUE;
+    m_blockEvent = true;
 
     gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON(m_widgetCheckbox), state );
 
-    m_blockEvent = FALSE;
+    m_blockEvent = false;
 }
 
 bool wxCheckBox::GetValue() const
 {
-    wxCHECK_MSG( m_widgetCheckbox != NULL, FALSE, wxT("invalid checkbox") );
+    wxCHECK_MSG( m_widgetCheckbox != NULL, false, wxT("invalid checkbox") );
 
     return gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(m_widgetCheckbox));
 }
@@ -214,11 +212,11 @@ void wxCheckBox::SetLabel( const wxString& label )
 bool wxCheckBox::Enable( bool enable )
 {
     if ( !wxControl::Enable( enable ) )
-        return FALSE;
+        return false;
 
     gtk_widget_set_sensitive( m_widgetLabel, enable );
 
-    return TRUE;
+    return true;
 }
 
 void wxCheckBox::DoApplyWidgetStyle(GtkRcStyle *style)
index f0626d144808f4ca98f26cd5e665c2279ec9bce0..a160e3ff37beecac269972ed8d1b42176e47bcc1 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        gtk/data.cpp
+// Name:        src/gtk/data.cpp
 // Purpose:     Various global GTK-specific data
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -10,7 +10,6 @@
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
 #include "wx/object.h"
 #include "wx/window.h"
 #include "wx/dc.h"
 wxCursor g_globalCursor;
 
 /* Don't allow event propagation during drag */
-bool g_blockEventsOnDrag = FALSE;
+bool g_blockEventsOnDrag = false;
 
 /* Don't allow mouse event propagation during scroll */
-bool g_blockEventsOnScroll = FALSE;
+bool g_blockEventsOnScroll = false;
 
 /* Don't allow window closing if there are open dialogs */
 int g_openDialogs = 0;
 
-/* TRUE when the message queue is empty. this gets set to
-   FALSE by all event callbacks before anything else is done */
-bool g_isIdle = FALSE;
+/* true when the message queue is empty. this gets set to
+   false by all event callbacks before anything else is done */
+bool g_isIdle = false;
 
index 55767284db6e75adfb89cba7787a7b7bf04a2c4e..8b02377e0ef2e1c89ce8964713de5a63804b5675 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        dataview.cpp
+// Name:        src/gtk/dataview.cpp
 // Purpose:     wxDataViewCtrl GTK+2 implementation
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -10,8 +10,6 @@
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
-
 #if wxUSE_DATAVIEWCTRL
 
 #include "wx/dataview.h"
@@ -76,7 +74,6 @@ struct _GtkWxListStore
 struct _GtkWxListStoreClass
 {
   GObjectClass list_parent_class;
-  
 };
 
 static GtkWxListStore *wxgtk_list_store_new          (void);
@@ -87,68 +84,68 @@ static void         wxgtk_list_store_finalize        (GObject           *object)
 static GtkTreeModelFlags wxgtk_list_store_get_flags  (GtkTreeModel      *tree_model);
 static gint         wxgtk_list_store_get_n_columns   (GtkTreeModel      *tree_model);
 static GType        wxgtk_list_store_get_column_type (GtkTreeModel      *tree_model,
-                                                   gint               index);
+                                                      gint               index);
 static gboolean     wxgtk_list_store_get_iter        (GtkTreeModel      *tree_model,
-                                                   GtkTreeIter       *iter,
-                                                   GtkTreePath       *path);
+                                                      GtkTreeIter       *iter,
+                                                      GtkTreePath       *path);
 static GtkTreePath *wxgtk_list_store_get_path        (GtkTreeModel      *tree_model,
-                                                   GtkTreeIter       *iter);
+                                                      GtkTreeIter       *iter);
 static void         wxgtk_list_store_get_value       (GtkTreeModel      *tree_model,
-                                                   GtkTreeIter       *iter,
-                                                   gint               column,
-                                                   GValue            *value);
+                                                      GtkTreeIter       *iter,
+                                                      gint               column,
+                                                      GValue            *value);
 static gboolean     wxgtk_list_store_iter_next       (GtkTreeModel      *tree_model,
-                                                   GtkTreeIter       *iter);
+                                                      GtkTreeIter       *iter);
 static gboolean     wxgtk_list_store_iter_children   (GtkTreeModel      *tree_model,
-                                                   GtkTreeIter       *iter,
-                                                   GtkTreeIter       *parent);
+                                                      GtkTreeIter       *iter,
+                                                      GtkTreeIter       *parent);
 static gboolean     wxgtk_list_store_iter_has_child  (GtkTreeModel      *tree_model,
-                                                   GtkTreeIter       *iter);
+                                                      GtkTreeIter       *iter);
 static gint         wxgtk_list_store_iter_n_children (GtkTreeModel      *tree_model,
-                                                   GtkTreeIter       *iter);
+                                                      GtkTreeIter       *iter);
 static gboolean     wxgtk_list_store_iter_nth_child  (GtkTreeModel      *tree_model,
-                                                   GtkTreeIter       *iter,
-                                                   GtkTreeIter       *parent,
-                                                   gint               n);
+                                                      GtkTreeIter       *iter,
+                                                      GtkTreeIter       *parent,
+                                                      gint               n);
 static gboolean     wxgtk_list_store_iter_parent     (GtkTreeModel      *tree_model,
-                                                   GtkTreeIter       *iter,
-                                                   GtkTreeIter       *child);
+                                                      GtkTreeIter       *iter,
+                                                      GtkTreeIter       *child);
 
 static GObjectClass *list_parent_class = NULL;
 
 GType
 gtk_wx_list_store_get_type (void)
 {
-  static GType list_store_type = 0;
+    static GType list_store_type = 0;
 
-  if (!list_store_type)
+    if (!list_store_type)
     {
-      static const GTypeInfo list_store_info =
-      {
-       sizeof (GtkWxListStoreClass),
-       NULL,           /* base_init */
-       NULL,           /* base_finalize */
-        (GClassInitFunc) wxgtk_list_store_class_init,
-       NULL,           /* class_finalize */
-       NULL,           /* class_data */
-        sizeof (GtkWxListStore),
-       0,
-        (GInstanceInitFunc) wxgtk_list_store_init,
-      };
+        static const GTypeInfo list_store_info =
+        {
+            sizeof (GtkWxListStoreClass),
+            NULL,   /* base_init */
+            NULL,   /* base_finalize */
+            (GClassInitFunc) wxgtk_list_store_class_init,
+            NULL,   /* class_finalize */
+            NULL,   /* class_data */
+            sizeof (GtkWxListStore),
+            0,
+            (GInstanceInitFunc) wxgtk_list_store_init,
+        };
 
       static const GInterfaceInfo tree_model_info =
       {
-       (GInterfaceInitFunc) wxgtk_list_store_tree_model_init,
-       NULL,
-       NULL
+          (GInterfaceInitFunc) wxgtk_list_store_tree_model_init,
+          NULL,
+          NULL
       };
 
       list_store_type = g_type_register_static (G_TYPE_OBJECT, "GtkWxListStore",
-                                               &list_store_info, (GTypeFlags)0 );
+                                                &list_store_info, (GTypeFlags)0 );
 
       g_type_add_interface_static (list_store_type,
-                                  GTK_TYPE_TREE_MODEL,
-                                  &tree_model_info);
+                                   GTK_TYPE_TREE_MODEL,
+                                   &tree_model_info);
     }
 
   return list_store_type;
@@ -204,7 +201,7 @@ wxgtk_list_store_finalize (GObject *object)
     /* must chain up */
     (* list_parent_class->finalize) (object);
 }
-                        
+
 } // extern "C"
 
 //-----------------------------------------------------------------------------
@@ -238,15 +235,15 @@ wxgtk_list_store_get_n_columns (GtkTreeModel *tree_model)
 
 static GType
 wxgtk_list_store_get_column_type (GtkTreeModel *tree_model,
-                               gint          index)
+                                  gint          index)
 {
     GtkWxListStore *list_store = (GtkWxListStore *) tree_model;
     g_return_val_if_fail (GTK_IS_WX_LIST_STORE (tree_model), G_TYPE_INVALID);
 
     GType gtype = G_TYPE_INVALID;
-    
+
     wxString wxtype = list_store->model->GetColType( (size_t) index );
-    
+
     if (wxtype == wxT("string"))
         gtype = G_TYPE_STRING;
 
@@ -255,8 +252,8 @@ wxgtk_list_store_get_column_type (GtkTreeModel *tree_model,
 
 static gboolean
 wxgtk_list_store_get_iter (GtkTreeModel *tree_model,
-                        GtkTreeIter  *iter,
-                        GtkTreePath  *path)
+                           GtkTreeIter  *iter,
+                           GtkTreePath  *path)
 {
     GtkWxListStore *list_store = (GtkWxListStore *) tree_model;
     g_return_val_if_fail (GTK_IS_WX_LIST_STORE (tree_model), FALSE);
@@ -276,11 +273,11 @@ wxgtk_list_store_get_iter (GtkTreeModel *tree_model,
 
 static GtkTreePath *
 wxgtk_list_store_get_path (GtkTreeModel *tree_model,
-                        GtkTreeIter  *iter)
+                           GtkTreeIter  *iter)
 {
     g_return_val_if_fail (GTK_IS_WX_LIST_STORE (tree_model), NULL);
     g_return_val_if_fail (iter->stamp == GTK_WX_LIST_STORE (tree_model)->stamp, NULL);
-  
+
     GtkTreePath *retval = gtk_tree_path_new ();
     // user_data is just the index
     int i = (wxUIntPtr) iter->user_data;
@@ -290,9 +287,9 @@ wxgtk_list_store_get_path (GtkTreeModel *tree_model,
 
 static void
 wxgtk_list_store_get_value (GtkTreeModel *tree_model,
-                         GtkTreeIter  *iter,
-                         gint          column,
-                         GValue       *value)
+                            GtkTreeIter  *iter,
+                            gint          column,
+                            GValue       *value)
 {
     GtkWxListStore *list_store = (GtkWxListStore *) tree_model;
     g_return_if_fail (GTK_IS_WX_LIST_STORE (tree_model) );
@@ -309,7 +306,7 @@ wxgtk_list_store_get_value (GtkTreeModel *tree_model,
     else
     {
     }
-    
+
 #if 0
   GtkTreeDataList *list;
   gint tmp_column = column;
@@ -326,29 +323,29 @@ wxgtk_list_store_get_value (GtkTreeModel *tree_model,
     g_value_init (value, GTK_LIST_STORE (tree_model)->column_headers[column]);
   else
     _gtk_tree_data_list_node_to_value (list,
-                                      GTK_LIST_STORE (tree_model)->column_headers[column],
-                                      value);
+                                       GTK_LIST_STORE (tree_model)->column_headers[column],
+                                       value);
 #endif
 
 }
 
 static gboolean
 wxgtk_list_store_iter_next (GtkTreeModel  *tree_model,
-                         GtkTreeIter   *iter)
+                            GtkTreeIter   *iter)
 {
     g_return_val_if_fail (GTK_IS_WX_LIST_STORE (tree_model), FALSE);
     GtkWxListStore *list_store = (GtkWxListStore *) tree_model;
-    
+
     g_return_val_if_fail (list_store->stamp == iter->stamp, FALSE);
 
     int n = (wxUIntPtr) iter->user_data;
-    
+
     if (n == -1)
         return FALSE;
-        
+
     if (n >= (int) list_store->model->GetNumberOfRows()-1)
         return FALSE;
-        
+
     iter->user_data = (gpointer) ++n;
 
     return TRUE;
@@ -356,72 +353,72 @@ wxgtk_list_store_iter_next (GtkTreeModel  *tree_model,
 
 static gboolean
 wxgtk_list_store_iter_children (GtkTreeModel *tree_model,
-                             GtkTreeIter  *iter,
-                             GtkTreeIter  *parent)
+                                GtkTreeIter  *iter,
+                                GtkTreeIter  *parent)
 {
     g_return_val_if_fail (GTK_IS_WX_LIST_STORE (tree_model), FALSE);
     GtkWxListStore *list_store = (GtkWxListStore *) tree_model;
-    
+
     // this is a list, nodes have no children
     if (parent)
         return FALSE;
 
     iter->stamp = list_store->stamp;
     iter->user_data = (gpointer) -1;
-    
+
     return TRUE;
 }
 
 static gboolean
 wxgtk_list_store_iter_has_child (GtkTreeModel *tree_model,
-                              GtkTreeIter  *iter)
+                                 GtkTreeIter  *iter)
 {
     return FALSE;
 }
 
 static gint
 wxgtk_list_store_iter_n_children (GtkTreeModel *tree_model,
-                               GtkTreeIter  *iter)
+                                  GtkTreeIter  *iter)
 {
     g_return_val_if_fail (GTK_IS_WX_LIST_STORE (tree_model), -1);
     GtkWxListStore *list_store = (GtkWxListStore *) tree_model;
-    
+
     if (iter == NULL)
         return (gint) list_store->model->GetNumberOfRows();
 
     g_return_val_if_fail (list_store->stamp == iter->stamp, -1);
-  
+
     return 0;
 }
 
 static gboolean
 wxgtk_list_store_iter_nth_child (GtkTreeModel *tree_model,
-                              GtkTreeIter  *iter,
-                              GtkTreeIter  *parent,
-                              gint          n)
+                                 GtkTreeIter  *iter,
+                                 GtkTreeIter  *parent,
+                                 gint          n)
 {
     g_return_val_if_fail (GTK_IS_WX_LIST_STORE (tree_model), FALSE);
     GtkWxListStore *list_store = (GtkWxListStore *) tree_model;
-    
+
     if (parent)
         return FALSE;
 
     if (n < 0)
         return FALSE;
-        
+
     if (n >= (gint) list_store->model->GetNumberOfRows())
         return FALSE;
 
     iter->stamp = list_store->stamp;
     iter->user_data = (gpointer) n;
-    
+
     return TRUE;
 }
 
 static gboolean
 wxgtk_list_store_iter_parent (GtkTreeModel *tree_model,
-                           GtkTreeIter  *iter,
-                           GtkTreeIter  *child)
+                              GtkTreeIter  *iter,
+                              GtkTreeIter  *child)
 {
     return FALSE;
 }
@@ -468,20 +465,20 @@ static void gtk_wx_cell_renderer_finalize (
                         GObject                *object );
 static void gtk_wx_cell_renderer_get_size (
                         GtkCellRenderer         *cell,
-                                               GtkWidget               *widget,
-                                               GdkRectangle            *rectangle,
-                                               gint                    *x_offset,
-                                               gint                    *y_offset,
-                                               gint                    *width,
-                                               gint                    *height );
+                        GtkWidget               *widget,
+                        GdkRectangle            *rectangle,
+                        gint                    *x_offset,
+                        gint                    *y_offset,
+                        gint                    *width,
+                        gint                    *height );
 static void gtk_wx_cell_renderer_render (
                         GtkCellRenderer         *cell,
-                                               GdkWindow               *window,
-                                               GtkWidget               *widget,
-                                               GdkRectangle            *background_area,
-                                               GdkRectangle            *cell_area,
-                                               GdkRectangle            *expose_area,
-                                               GtkCellRendererState     flags );
+                        GdkWindow               *window,
+                        GtkWidget               *widget,
+                        GdkRectangle            *background_area,
+                        GdkRectangle            *cell_area,
+                        GdkRectangle            *expose_area,
+                        GtkCellRendererState     flags );
 static gboolean gtk_wx_cell_renderer_activate(
                         GtkCellRenderer         *cell,
                         GdkEvent                *event,
@@ -495,7 +492,7 @@ static GObjectClass *cell_parent_class = NULL;
 
 }  // extern "C"
 
-GType 
+GType
 gtk_wx_cell_renderer_get_type (void)
 {
     static GType cell_wx_type = 0;
@@ -505,17 +502,17 @@ gtk_wx_cell_renderer_get_type (void)
         static const GTypeInfo cell_wx_info =
         {
             sizeof (GtkWxCellRendererClass),
-            NULL,              /* base_init */
-            NULL,              /* base_finalize */
+            NULL, /* base_init */
+            NULL, /* base_finalize */
             (GClassInitFunc) gtk_wx_cell_renderer_class_init,
-            NULL,              /* class_finalize */
-            NULL,              /* class_data */
+            NULL, /* class_finalize */
+            NULL, /* class_data */
             sizeof (GtkWxCellRenderer),
             0,          /* n_preallocs */
             (GInstanceInitFunc) gtk_wx_cell_renderer_init,
         };
 
-        cell_wx_type = g_type_register_static( GTK_TYPE_CELL_RENDERER, 
+        cell_wx_type = g_type_register_static( GTK_TYPE_CELL_RENDERER,
             "GtkWxCellRenderer", &cell_wx_info, (GTypeFlags)0 );
     }
 
@@ -559,34 +556,34 @@ gtk_wx_cell_renderer_new (void)
 
 static void
 gtk_wx_cell_renderer_get_size (GtkCellRenderer *renderer,
-                                  GtkWidget       *widget,
-                                  GdkRectangle    *cell_area,
-                                  gint            *x_offset,
-                                  gint            *y_offset,
-                                  gint            *width,
-                                  gint            *height)
+                               GtkWidget       *widget,
+                               GdkRectangle    *cell_area,
+                               gint            *x_offset,
+                               gint            *y_offset,
+                               gint            *width,
+                               gint            *height)
 {
     GtkWxCellRenderer *wxrenderer = (GtkWxCellRenderer *) renderer;
     wxDataViewCustomCell *cell = wxrenderer->cell;
-  
+
     wxSize size = cell->GetSize();
 
     gint calc_width  = (gint) renderer->xpad * 2 + size.x;
     gint calc_height = (gint) renderer->ypad * 2 + size.y;
-  
-    if (x_offset) 
+
+    if (x_offset)
         *x_offset = 0;
-    if (y_offset) 
+    if (y_offset)
         *y_offset = 0;
 
     if (cell_area && size.x > 0 && size.y > 0)
     {
         if (x_offset)
-           {
+        {
             *x_offset = (gint)((renderer->xalign *
                                (cell_area->width - calc_width - 2 * renderer->xpad)));
             *x_offset = MAX (*x_offset, 0) + renderer->xpad;
-           }
+        }
         if (y_offset)
         {
             *y_offset = (gint)((renderer->yalign *
@@ -597,36 +594,36 @@ gtk_wx_cell_renderer_get_size (GtkCellRenderer *renderer,
 
     if (width)
         *width = calc_width;
-  
+
     if (height)
         *height = calc_height;
 }
 
 static void
 gtk_wx_cell_renderer_render (GtkCellRenderer      *renderer,
-                                GdkWindow            *window,
-                                GtkWidget            *widget,
-                                GdkRectangle         *background_area,
-                                GdkRectangle         *cell_area,
-                                GdkRectangle         *expose_area,
-                                GtkCellRendererState  flags)
+                             GdkWindow            *window,
+                             GtkWidget            *widget,
+                             GdkRectangle         *background_area,
+                             GdkRectangle         *cell_area,
+                             GdkRectangle         *expose_area,
+                             GtkCellRendererState  flags)
 
 {
     GtkWxCellRenderer *wxrenderer = (GtkWxCellRenderer *) renderer;
     wxDataViewCustomCell *cell = wxrenderer->cell;
-    
+
     GdkRectangle rect;
     gtk_wx_cell_renderer_get_size (renderer, widget, cell_area,
-                                    &rect.x,
-                                    &rect.y,
-                                    &rect.width,
-                                    &rect.height);
+                                   &rect.x,
+                                   &rect.y,
+                                   &rect.width,
+                                   &rect.height);
 
     rect.x += cell_area->x;
     rect.y += cell_area->y;
     rect.width  -= renderer->xpad * 2;
     rect.height -= renderer->ypad * 2;
-    
+
     GdkRectangle dummy;
     if (gdk_rectangle_intersect (expose_area, &rect, &dummy))
     {
@@ -637,7 +634,7 @@ gtk_wx_cell_renderer_render (GtkCellRenderer      *renderer,
             dc->m_window = window;
             dc->SetUpDC();
         }
-        
+
         int state = 0;
         if (flags & GTK_CELL_RENDERER_SELECTED)
             state |= wxDATAVIEW_CELL_SELECTED;
@@ -650,10 +647,10 @@ gtk_wx_cell_renderer_render (GtkCellRenderer      *renderer,
         if (flags & GTK_CELL_RENDERER_FOCUSED)
             state |= wxDATAVIEW_CELL_FOCUSED;
         cell->Render( renderrect, dc, state );
-    }   
+    }
 }
 
-static gboolean 
+static gboolean
 gtk_wx_cell_renderer_activate(
                         GtkCellRenderer         *renderer,
                         GdkEvent                *event,
@@ -665,35 +662,35 @@ gtk_wx_cell_renderer_activate(
 {
     GtkWxCellRenderer *wxrenderer = (GtkWxCellRenderer *) renderer;
     wxDataViewCustomCell *cell = wxrenderer->cell;
-    
+
     GdkRectangle rect;
     gtk_wx_cell_renderer_get_size (renderer, widget, cell_area,
-                                    &rect.x,
-                                    &rect.y,
-                                    &rect.width,
-                                    &rect.height);
+                                   &rect.x,
+                                   &rect.y,
+                                   &rect.width,
+                                   &rect.height);
 
     rect.x += cell_area->x;
     rect.y += cell_area->y;
     rect.width  -= renderer->xpad * 2;
     rect.height -= renderer->ypad * 2;
-    
+
     wxRect renderrect( rect.x, rect.y, rect.width, rect.height );
-    
+
     wxDataViewListModel *model = cell->GetOwner()->GetOwner()->GetModel();
-    
+
     GtkTreePath *treepath = gtk_tree_path_new_from_string( path );
     size_t model_row = (size_t)gtk_tree_path_get_indices (treepath)[0];
     gtk_tree_path_free( treepath );
-    
+
     size_t model_col = cell->GetOwner()->GetModelColumn();
-    
+
     if (event->type == GDK_BUTTON_PRESS)
     {
         GdkEventButton *button_event = (GdkEventButton*) event;
-        wxPoint pt( ((int) button_event->x) - renderrect.x, 
+        wxPoint pt( ((int) button_event->x) - renderrect.x,
                     ((int) button_event->y) - renderrect.y );
-        
+
         bool ret = false;
         if (button_event->button == 1)
         {
@@ -709,24 +706,24 @@ gtk_wx_cell_renderer_activate(
             if (cell->RightClick( pt, renderrect, model, model_col, model_row ))
                 ret = true;
         }
-        
+
         wxrenderer->last_click = button_event->time;
-        
+
         return ret;
     }
-    
+
     return false;
 }
 
-// --------------------------------------------------------- 
+// ---------------------------------------------------------
 // wxGtkDataViewListModelNotifier
-// --------------------------------------------------------- 
+// ---------------------------------------------------------
 
 class wxGtkDataViewListModelNotifier: public wxDataViewListModelNotifier
 {
 public:
     wxGtkDataViewListModelNotifier( GtkWxListStore* gtk_store, wxDataViewListModel *wx_model );
-    
+
     virtual bool RowAppended();
     virtual bool RowPrepended();
     virtual bool RowInserted( size_t before );
@@ -735,35 +732,35 @@ public:
     virtual bool ValueChanged( size_t col, size_t row );
     virtual bool RowsReordered( size_t *new_order );
     virtual bool Cleared();
-    
+
     GtkWxListStore      *m_gtk_store;
     wxDataViewListModel *m_wx_model;
 };
 
-// --------------------------------------------------------- 
+// ---------------------------------------------------------
 // wxGtkDataViewListModelNotifier
-// --------------------------------------------------------- 
+// ---------------------------------------------------------
 
-wxGtkDataViewListModelNotifier::wxGtkDataViewListModelNotifier( 
+wxGtkDataViewListModelNotifier::wxGtkDataViewListModelNotifier(
     GtkWxListStore* gtk_store, wxDataViewListModel *wx_model )
 {
     m_gtk_store = gtk_store;
     m_wx_model = wx_model;
 }
-    
+
 bool wxGtkDataViewListModelNotifier::RowAppended()
 {
     size_t pos = m_wx_model->GetNumberOfRows()-1;
-    
+
     GtkTreeIter iter;
     iter.stamp = m_gtk_store->stamp;
     iter.user_data = (gpointer) pos;
-    
+
     GtkTreePath *path = gtk_tree_path_new ();
     gtk_tree_path_append_index (path, (gint) pos);
     gtk_tree_model_row_inserted (GTK_TREE_MODEL (m_gtk_store), path, &iter);
     gtk_tree_path_free (path);
-    
+
     return true;
 }
 
@@ -772,12 +769,12 @@ bool wxGtkDataViewListModelNotifier::RowPrepended()
     GtkTreeIter iter;
     iter.stamp = m_gtk_store->stamp;
     iter.user_data = (gpointer) 0;
-    
+
     GtkTreePath *path = gtk_tree_path_new ();
     gtk_tree_path_append_index (path, (gint) 0);
     gtk_tree_model_row_inserted (GTK_TREE_MODEL (m_gtk_store), path, &iter);
     gtk_tree_path_free (path);
-    
+
     return true;
 }
 
@@ -820,17 +817,17 @@ bool wxGtkDataViewListModelNotifier::ValueChanged( size_t model_col, size_t mode
             gtk_tree_path_append_index( path, model_row );
             GdkRectangle cell_area;
             gtk_tree_view_get_cell_area( widget, path, column, &cell_area );
-            gtk_tree_path_free( path ); 
+            gtk_tree_path_free( path );
 
             int ydiff = column->button->allocation.height;
             // Redraw
-            gtk_widget_queue_draw_area( GTK_WIDGET(widget), 
+            gtk_widget_queue_draw_area( GTK_WIDGET(widget),
                 cell_area.x, ydiff + cell_area.y, cell_area.width, cell_area.height );
         }
 
         node = node->GetNext();
     }
-    
+
     return true;
 }
 
@@ -849,11 +846,11 @@ bool wxGtkDataViewListModelNotifier::RowsReordered( size_t *new_order )
         wxDataViewViewingColumn* viewing_column = (wxDataViewViewingColumn*) node->GetData();
         GtkTreeView *widget = GTK_TREE_VIEW(viewing_column->m_viewColumn->GetOwner()->m_treeview);
         // Doesn't work yet...
-        gtk_widget_queue_draw( GTK_WIDGET(widget) ); 
+        gtk_widget_queue_draw( GTK_WIDGET(widget) );
 
         node = node->GetNext();
     }
-    
+
     return true;
 }
 
@@ -862,9 +859,9 @@ bool wxGtkDataViewListModelNotifier::Cleared()
     return false;
 }
 
-// --------------------------------------------------------- 
+// ---------------------------------------------------------
 // wxDataViewCell
-// --------------------------------------------------------- 
+// ---------------------------------------------------------
 
 IMPLEMENT_ABSTRACT_CLASS(wxDataViewCell, wxDataViewCellBase)
 
@@ -874,33 +871,33 @@ wxDataViewCell::wxDataViewCell( const wxString &varianttype, wxDataViewCellMode
     m_renderer = NULL;
 }
 
-// --------------------------------------------------------- 
+// ---------------------------------------------------------
 // wxDataViewTextCell
-// --------------------------------------------------------- 
+// ---------------------------------------------------------
 
 extern "C" {
-static void wxGtkTextRendererEditedCallback( GtkCellRendererText *renderer, 
+static void wxGtkTextRendererEditedCallback( GtkCellRendererText *renderer,
     gchar *arg1, gchar *arg2, gpointer user_data );
 }
 
-static void wxGtkTextRendererEditedCallback( GtkCellRendererText *renderer, 
+static void wxGtkTextRendererEditedCallback( GtkCellRendererText *renderer,
     gchar *arg1, gchar *arg2, gpointer user_data )
 {
     wxDataViewTextCell *cell = (wxDataViewTextCell*) user_data;
-    
+
     wxString tmp = wxGTK_CONV_BACK( arg2 );
     wxVariant value = tmp;
     if (!cell->Validate( value ))
         return;
-        
+
     wxDataViewListModel *model = cell->GetOwner()->GetOwner()->GetModel();
-    
+
     GtkTreePath *path = gtk_tree_path_new_from_string( arg1 );
     size_t model_row = (size_t)gtk_tree_path_get_indices (path)[0];
     gtk_tree_path_free( path );
-    
+
     size_t model_col = cell->GetOwner()->GetModelColumn();
-    
+
     model->SetValue( value, model_col, model_row );
     model->ValueChanged( model_col, model_row );
 }
@@ -911,7 +908,7 @@ wxDataViewTextCell::wxDataViewTextCell( const wxString &varianttype, wxDataViewC
     wxDataViewCell( varianttype, mode )
 {
     m_renderer = (void*) gtk_cell_renderer_text_new();
-    
+
     if (m_mode & wxDATAVIEW_CELL_EDITABLE)
     {
         GValue gvalue = { 0, };
@@ -919,7 +916,7 @@ wxDataViewTextCell::wxDataViewTextCell( const wxString &varianttype, wxDataViewC
         g_value_set_boolean( &gvalue, true );
         g_object_set_property( G_OBJECT(m_renderer), "editable", &gvalue );
         g_value_unset( &gvalue );
-        
+
         g_signal_connect_after( m_renderer, "edited", G_CALLBACK(wxGtkTextRendererEditedCallback), this );
     }
 }
@@ -927,13 +924,13 @@ wxDataViewTextCell::wxDataViewTextCell( const wxString &varianttype, wxDataViewC
 bool wxDataViewTextCell::SetValue( const wxVariant &value )
 {
     wxString tmp = value;
-    
+
     GValue gvalue = { 0, };
     g_value_init( &gvalue, G_TYPE_STRING );
     g_value_set_string( &gvalue, wxGTK_CONV( tmp ) );
     g_object_set_property( G_OBJECT(m_renderer), "text", &gvalue );
     g_value_unset( &gvalue );
-    
+
     return true;
 }
 
@@ -942,61 +939,61 @@ bool wxDataViewTextCell::GetValue( wxVariant &value )
     GValue gvalue = { 0, };
     g_value_init( &gvalue, G_TYPE_STRING );
     g_object_get_property( G_OBJECT(m_renderer), "text", &gvalue );
-    wxString tmp = wxGTK_CONV_BACK( g_value_get_string( &gvalue ) ); 
+    wxString tmp = wxGTK_CONV_BACK( g_value_get_string( &gvalue ) );
     g_value_unset( &gvalue );
-    
+
     value = tmp;
 
     return true;
 }
 
-// --------------------------------------------------------- 
+// ---------------------------------------------------------
 // wxDataViewToggleCell
-// --------------------------------------------------------- 
+// ---------------------------------------------------------
 
 extern "C" {
-static void wxGtkToggleRendererToggledCallback( GtkCellRendererToggle *renderer, 
+static void wxGtkToggleRendererToggledCallback( GtkCellRendererToggle *renderer,
     gchar *path, gpointer user_data );
 }
 
-static void wxGtkToggleRendererToggledCallback( GtkCellRendererToggle *renderer, 
+static void wxGtkToggleRendererToggledCallback( GtkCellRendererToggle *renderer,
     gchar *path, gpointer user_data )
 {
     wxDataViewToggleCell *cell = (wxDataViewToggleCell*) user_data;
 
-    // get old value    
+    // get old value
     GValue gvalue = { 0, };
     g_value_init( &gvalue, G_TYPE_BOOLEAN );
     g_object_get_property( G_OBJECT(renderer), "active", &gvalue );
-    bool tmp = g_value_get_boolean( &gvalue ); 
+    bool tmp = g_value_get_boolean( &gvalue );
     g_value_unset( &gvalue );
     // invert it
     tmp = !tmp;
-    
+
     wxVariant value = tmp;
     if (!cell->Validate( value ))
         return;
-        
+
     wxDataViewListModel *model = cell->GetOwner()->GetOwner()->GetModel();
-    
+
     GtkTreePath *gtk_path = gtk_tree_path_new_from_string( path );
     size_t model_row = (size_t)gtk_tree_path_get_indices (gtk_path)[0];
     gtk_tree_path_free( gtk_path );
-    
+
     size_t model_col = cell->GetOwner()->GetModelColumn();
-    
+
     model->SetValue( value, model_col, model_row );
     model->ValueChanged( model_col, model_row );
 }
 
 IMPLEMENT_ABSTRACT_CLASS(wxDataViewToggleCell, wxDataViewCell)
 
-wxDataViewToggleCell::wxDataViewToggleCell( const wxString &varianttype, 
+wxDataViewToggleCell::wxDataViewToggleCell( const wxString &varianttype,
                         wxDataViewCellMode mode ) :
     wxDataViewCell( varianttype, mode )
 {
     m_renderer = (void*) gtk_cell_renderer_toggle_new();
-    
+
     if (m_mode & wxDATAVIEW_CELL_ACTIVATABLE)
     {
         g_signal_connect_after( m_renderer, "toggled", G_CALLBACK(wxGtkToggleRendererToggledCallback), this );
@@ -1022,13 +1019,13 @@ wxDataViewToggleCell::wxDataViewToggleCell( const wxString &varianttype,
 bool wxDataViewToggleCell::SetValue( const wxVariant &value )
 {
     bool tmp = value;
-    
+
     GValue gvalue = { 0, };
     g_value_init( &gvalue, G_TYPE_BOOLEAN );
     g_value_set_boolean( &gvalue, tmp );
     g_object_set_property( G_OBJECT(m_renderer), "active", &gvalue );
     g_value_unset( &gvalue );
-    
+
     return true;
 }
 
@@ -1037,17 +1034,17 @@ bool wxDataViewToggleCell::GetValue( wxVariant &value )
     GValue gvalue = { 0, };
     g_value_init( &gvalue, G_TYPE_BOOLEAN );
     g_object_get_property( G_OBJECT(m_renderer), "active", &gvalue );
-    bool tmp = g_value_get_boolean( &gvalue ); 
+    bool tmp = g_value_get_boolean( &gvalue );
     g_value_unset( &gvalue );
-    
+
     value = tmp;
 
     return true;
 }
-    
-// --------------------------------------------------------- 
+
+// ---------------------------------------------------------
 // wxDataViewCustomCell
-// --------------------------------------------------------- 
+// ---------------------------------------------------------
 
 class wxDataViewCtrlDC: public wxWindowDC
 {
@@ -1070,18 +1067,18 @@ public:
     }
 };
 
-// --------------------------------------------------------- 
+// ---------------------------------------------------------
 // wxDataViewCustomCell
-// --------------------------------------------------------- 
+// ---------------------------------------------------------
 
 IMPLEMENT_ABSTRACT_CLASS(wxDataViewCustomCell, wxDataViewCell)
 
-wxDataViewCustomCell::wxDataViewCustomCell( const wxString &varianttype, 
+wxDataViewCustomCell::wxDataViewCustomCell( const wxString &varianttype,
                           wxDataViewCellMode mode, bool no_init ) :
     wxDataViewCell( varianttype, mode )
 {
     m_dc = NULL;
-    
+
     if (no_init)
         m_renderer = NULL;
     else
@@ -1092,9 +1089,9 @@ bool wxDataViewCustomCell::Init()
 {
     GtkWxCellRenderer *renderer = (GtkWxCellRenderer *) gtk_wx_cell_renderer_new();
     renderer->cell = this;
-    
+
     m_renderer = (void*) renderer;
-    
+
     if (m_mode & wxDATAVIEW_CELL_ACTIVATABLE)
     {
         GValue gvalue = { 0, };
@@ -1103,7 +1100,7 @@ bool wxDataViewCustomCell::Init()
         g_object_set_property( G_OBJECT(m_renderer), "mode", &gvalue );
         g_value_unset( &gvalue );
     }
-    
+
     return true;
 }
 
@@ -1123,28 +1120,28 @@ wxDC *wxDataViewCustomCell::GetDC()
             return NULL;
         m_dc = new wxDataViewCtrlDC( GetOwner()->GetOwner() );
     }
-        
+
     return m_dc;
 }
-    
-// --------------------------------------------------------- 
+
+// ---------------------------------------------------------
 // wxDataViewProgressCell
-// --------------------------------------------------------- 
+// ---------------------------------------------------------
 
 IMPLEMENT_ABSTRACT_CLASS(wxDataViewProgressCell, wxDataViewCustomCell)
 
-wxDataViewProgressCell::wxDataViewProgressCell( const wxString &label, 
+wxDataViewProgressCell::wxDataViewProgressCell( const wxString &label,
     const wxString &varianttype, wxDataViewCellMode mode ) :
-    wxDataViewCustomCell( varianttype, mode, true )  
+    wxDataViewCustomCell( varianttype, mode, true )
 {
     m_label = label;
     m_value = 0;
-    
+
 #ifdef __WXGTK26__
     if (!gtk_check_version(2,6,0))
     {
         m_renderer = (void*) gtk_cell_renderer_progress_new();
-        
+
         GValue gvalue = { 0, };
         g_value_init( &gvalue, G_TYPE_STRING );
         g_value_set_boolean( &gvalue, wxGTK_CONV(m_label) );
@@ -1179,14 +1176,14 @@ bool wxDataViewProgressCell::SetValue( const wxVariant &value )
 #endif
     {
         m_value = (long) value;
-    
+
         if (m_value < 0) m_value = 0;
         if (m_value > 100) m_value = 100;
     }
-    
+
     return true;
 }
-    
+
 bool wxDataViewProgressCell::Render( wxRect cell, wxDC *dc, int state )
 {
     double pct = (double)m_value / 100.0;
@@ -1199,7 +1196,7 @@ bool wxDataViewProgressCell::Render( wxRect cell, wxDC *dc, int state )
     dc->SetBrush( *wxTRANSPARENT_BRUSH );
     dc->SetPen( *wxBLACK_PEN );
     dc->DrawRectangle( cell );
-    
+
     return true;
 }
 
@@ -1207,14 +1204,14 @@ wxSize wxDataViewProgressCell::GetSize()
 {
     return wxSize(40,12);
 }
-    
-// --------------------------------------------------------- 
+
+// ---------------------------------------------------------
 // wxDataViewDateCell
-// --------------------------------------------------------- 
+// ---------------------------------------------------------
 
 class wxDataViewDateCellPopupTransient: public wxPopupTransientWindow
 {
-public: 
+public:
     wxDataViewDateCellPopupTransient( wxWindow* parent, wxDateTime *value,
         wxDataViewListModel *model, size_t col, size_t row ) :
         wxPopupTransientWindow( parent, wxBORDER_SIMPLE )
@@ -1228,18 +1225,18 @@ public:
         SetSizer( sizer );
         sizer->Fit( this );
     }
-    
+
     virtual void OnDismiss()
     {
     }
-    
+
     void OnCalendar( wxCalendarEvent &event );
-    
+
     wxCalendarCtrl      *m_cal;
-    wxDataViewListModel *m_model; 
+    wxDataViewListModel *m_model;
     size_t               m_col;
     size_t               m_row;
-    
+
 private:
     DECLARE_EVENT_TABLE()
 };
@@ -1264,11 +1261,11 @@ wxDataViewDateCell::wxDataViewDateCell( const wxString &varianttype,
     wxDataViewCustomCell( varianttype, mode )
 {
 }
-    
+
 bool wxDataViewDateCell::SetValue( const wxVariant &value )
 {
     m_date = value.GetDateTime();
-    
+
     return true;
 }
 
@@ -1296,7 +1293,7 @@ bool wxDataViewDateCell::Activate( wxRect cell, wxDataViewListModel *model, size
     model->GetValue( variant, col, row );
     wxDateTime value = variant.GetDateTime();
 
-    wxDataViewDateCellPopupTransient *popup = new wxDataViewDateCellPopupTransient( 
+    wxDataViewDateCellPopupTransient *popup = new wxDataViewDateCellPopupTransient(
         GetOwner()->GetOwner()->GetParent(), &value, model, col, row );
     wxPoint pos = wxGetMousePosition();
     popup->Move( pos );
@@ -1306,9 +1303,9 @@ bool wxDataViewDateCell::Activate( wxRect cell, wxDataViewListModel *model, size
     return true;
 }
 
-// --------------------------------------------------------- 
+// ---------------------------------------------------------
 // wxDataViewColumn
-// --------------------------------------------------------- 
+// ---------------------------------------------------------
 
 extern "C" {
 static void wxGtkTreeCellDataFunc( GtkTreeViewColumn *column,
@@ -1327,37 +1324,37 @@ static void wxGtkTreeCellDataFunc( GtkTreeViewColumn *column,
 {
     g_return_if_fail (GTK_IS_WX_LIST_STORE (model));
     GtkWxListStore *list_store = (GtkWxListStore *) model;
-    
+
     wxDataViewCell *cell = (wxDataViewCell*) data;
 
     size_t model_row = (size_t) iter->user_data;
-    
+
     wxVariant value;
     list_store->model->GetValue( value, cell->GetOwner()->GetModelColumn(), model_row );
 
     if (value.GetType() != cell->GetVariantType())
         wxLogError( wxT("Wrong type\n") );
-                                            
+
     cell->SetValue( value );
 }
 
 IMPLEMENT_ABSTRACT_CLASS(wxDataViewColumn, wxDataViewColumnBase)
 
-wxDataViewColumn::wxDataViewColumn( const wxString &title, wxDataViewCell *cell, 
+wxDataViewColumn::wxDataViewColumn( const wxString &title, wxDataViewCell *cell,
     size_t model_column, int flags ) :
     wxDataViewColumnBase( title, cell, model_column, flags )
 {
     GtkCellRenderer *renderer = (GtkCellRenderer *) cell->GetGtkHandle();
-    
+
     GtkTreeViewColumn *column = gtk_tree_view_column_new();
-   
+
     gtk_tree_view_column_set_title( column, wxGTK_CONV(title) );
-    
+
     gtk_tree_view_column_pack_start( column, renderer, TRUE );
-    
-    gtk_tree_view_column_set_cell_data_func( column, renderer, 
+
+    gtk_tree_view_column_set_cell_data_func( column, renderer,
         wxGtkTreeCellDataFunc, (gpointer) cell, NULL );
-       
+
     m_column = (void*) column;
 }
 
@@ -1368,7 +1365,7 @@ wxDataViewColumn::~wxDataViewColumn()
 void wxDataViewColumn::SetTitle( const wxString &title )
 {
     wxDataViewColumnBase::SetTitle( title );
-    
+
     GtkTreeViewColumn *column = (GtkTreeViewColumn *)m_column;
     gtk_tree_view_column_set_title( column, wxGTK_CONV(title) );
 }
@@ -1391,19 +1388,19 @@ void wxDataViewCtrl::Init()
 }
 
 bool wxDataViewCtrl::Create(wxWindow *parent, wxWindowID id,
-           const wxPoint& pos, const wxSize& size, 
+           const wxPoint& pos, const wxSize& size,
            long style, const wxValidator& validator )
 {
     Init();
-    
-    m_needParent = TRUE;
-    m_acceptsFocus = TRUE;
+
+    m_needParent = true;
+    m_acceptsFocus = true;
 
     if (!PreCreation( parent, pos, size ) ||
         !CreateBase( parent, id, pos, size, style, validator ))
     {
         wxFAIL_MSG( wxT("wxDataViewCtrl creation failed") );
-        return FALSE;
+        return false;
     }
 
     m_widget = gtk_scrolled_window_new (NULL, NULL);
@@ -1412,11 +1409,11 @@ bool wxDataViewCtrl::Create(wxWindow *parent, wxWindowID id,
 
     m_treeview = gtk_tree_view_new();
     gtk_container_add (GTK_CONTAINER (m_widget), m_treeview);
-    
+
     gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (m_widget),
         GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);
     gtk_widget_show (m_treeview);
-    
+
     m_parent->DoAddChild( this );
 
     PostCreation(size);
@@ -1434,11 +1431,11 @@ bool wxDataViewCtrl::AssociateModel( wxDataViewListModel *model )
 
     m_notifier = new wxGtkDataViewListModelNotifier( gtk_store, model );
 
-    model->AddNotifier( m_notifier );    
+    model->AddNotifier( m_notifier );
 
     gtk_tree_view_set_model( GTK_TREE_VIEW(m_treeview), GTK_TREE_MODEL(gtk_store) );
     g_object_unref( gtk_store );
-    
+
     return true;
 }
 
@@ -1446,7 +1443,7 @@ bool wxDataViewCtrl::AppendColumn( wxDataViewColumn *col )
 {
     if (!wxDataViewCtrlBase::AppendColumn(col))
         return false;
-        
+
     GtkTreeViewColumn *column = (GtkTreeViewColumn *)col->GetGtkHandle();
 
     gtk_tree_view_append_column( GTK_TREE_VIEW(m_treeview), column );
@@ -1454,9 +1451,8 @@ bool wxDataViewCtrl::AppendColumn( wxDataViewColumn *col )
     return true;
 }
 
-#endif 
+#endif
     // !wxUSE_GENERICDATAVIEWCTRL
 
-#endif 
+#endif
     // wxUSE_DATAVIEWCTRL
-
index 407c6798c620de17fea36e414b7891938ab18987..d51b0fb9497ac634918948586f33352a934aa432 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        gtk/fontdlg.cpp
+// Name:        src/gtk/fontdlg.cpp
 // Purpose:     wxFontDialog
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -10,8 +10,6 @@
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
-
 #if wxUSE_FONTDLG
 
 #ifndef __WXGPE__
@@ -45,7 +43,7 @@ bool gtk_fontdialog_delete_callback( GtkWidget *WXUNUSED(widget), GdkEvent *WXUN
 
     win->Close();
 
-    return TRUE;
+    return true;
 }
 }
 
@@ -98,14 +96,14 @@ IMPLEMENT_DYNAMIC_CLASS(wxFontDialog, wxDialog)
 
 bool wxFontDialog::DoCreate(wxWindow *parent)
 {
-    m_needParent = FALSE;
+    m_needParent = false;
 
     if (!PreCreation( parent, wxDefaultPosition, wxDefaultSize ) ||
         !CreateBase( parent, -1, wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE,
                      wxDefaultValidator, wxT("fontdialog") ))
     {
         wxFAIL_MSG( wxT("wxFontDialog creation failed") );
-        return FALSE;
+        return false;
     }
 
     wxString m_message( _("Choose font") );
@@ -144,7 +142,7 @@ bool wxFontDialog::DoCreate(wxWindow *parent)
         }
     }
 
-    return TRUE;
+    return true;
 }
 
 wxFontDialog::~wxFontDialog()
@@ -159,4 +157,3 @@ void wxFontDialog::SetChosenFont(const char *fontname)
 #endif // wxUSE_FONTDLG
 
 #endif // GPE
-
index e35a025f7a0a2cacf700dc346dc42d28956d7f9e..1612603a1e71c4f2d2e4766e3f91d3fe291976e1 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        frame.cpp
+// Name:        src/gtk/frame.cpp
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -7,6 +7,9 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
 // ============================================================================
 // declarations
 // ============================================================================
 // headers
 // ----------------------------------------------------------------------------
 
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#include "wx/defs.h"
-
 #include "wx/frame.h"
 #include "wx/dialog.h"
 #include "wx/control.h"
index 87742cb61a672a381a99fd655ae2a9aa6eed410c..627bc9e3de31e9cc8502418f3bd2b499340ccbdd 100644 (file)
@@ -7,6 +7,9 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
 // ============================================================================
 // declarations
 // ============================================================================
 // headers
 // ----------------------------------------------------------------------------
 
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
 #ifdef __VMS
 #define XIconifyWindow XICONIFYWINDOW
 #endif
 
-#include "wx/defs.h"
-
 #include "wx/toplevel.h"
 #include "wx/log.h"
 #include "wx/dialog.h"
index 1a0d71c0321ab059cb03a4894032cee929547fc7..1d0c7ce96219f523d9ddb56911cabec146950fc2 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        gtk/bmpbuttn.cpp
+// Name:        src/gtk1/bmpbuttn.cpp
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -10,8 +10,6 @@
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
-
 #if wxUSE_BMPBUTTON
 
 #include "wx/bmpbuttn.h"
@@ -275,4 +273,3 @@ void wxBitmapButton::EndSelect()
 }
 
 #endif // wxUSE_BMPBUTTON
-
index e12cd26f15069920aa5411cfea7598dac421e6d6..c84debc53d2710540c53b85bac7255d1695dd252 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        button.cpp
+// Name:        src/gtk1/button.cpp
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -10,8 +10,6 @@
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
-
 #if wxUSE_BUTTON
 
 #include "wx/button.h"
@@ -107,14 +105,14 @@ bool wxButton::Create(  wxWindow *parent, wxWindowID id, const wxString &label,
       const wxPoint &pos, const wxSize &size,
       long style, const wxValidator& validator, const wxString &name )
 {
-    m_needParent = TRUE;
-    m_acceptsFocus = TRUE;
+    m_needParent = true;
+    m_acceptsFocus = true;
 
     if (!PreCreation( parent, pos, size ) ||
         !CreateBase( parent, id, pos, size, style, validator, name ))
     {
         wxFAIL_MSG( wxT("wxButton creation failed") );
-        return FALSE;
+        return false;
     }
 
     m_widget = gtk_button_new_with_label("");
@@ -193,11 +191,11 @@ void wxButton::SetLabel( const wxString &lbl )
 bool wxButton::Enable( bool enable )
 {
     if ( !wxControl::Enable( enable ) )
-        return FALSE;
+        return false;
 
     gtk_widget_set_sensitive( BUTTON_CHILD(m_widget), enable );
 
-    return TRUE;
+    return true;
 }
 
 bool wxButton::IsOwnGtkWindow( GdkWindow *window )
@@ -253,4 +251,3 @@ wxButton::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
 }
 
 #endif // wxUSE_BUTTON
-
index c9d1c422d3120af06c8f584845a3a6ca8a76dca1..a85a9b4acfedea5d1df16a0ae325e4c5867372b5 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        checkbox.cpp
+// Name:        src/gtk1/checkbox.cpp
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -10,8 +10,6 @@
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
-
 #if wxUSE_CHECKBOX
 
 #include "wx/checkbox.h"
@@ -74,15 +72,15 @@ bool wxCheckBox::Create(wxWindow *parent,
                         const wxValidator& validator,
                         const wxString &name )
 {
-    m_needParent = TRUE;
-    m_acceptsFocus = TRUE;
-    m_blockEvent = FALSE;
+    m_needParent = true;
+    m_acceptsFocus = true;
+    m_blockEvent = false;
 
     if (!PreCreation( parent, pos, size ) ||
         !CreateBase( parent, id, pos, size, style, validator, name ))
     {
         wxFAIL_MSG( wxT("wxCheckBox creation failed") );
-        return FALSE;
+        return false;
     }
 
     wxASSERT_MSG( (style & wxCHK_ALLOW_3RD_STATE_FOR_USER) == 0 ||
@@ -124,7 +122,7 @@ bool wxCheckBox::Create(wxWindow *parent,
 
     PostCreation(size);
 
-    return TRUE;
+    return true;
 }
 
 void wxCheckBox::SetValue( bool state )
@@ -134,16 +132,16 @@ void wxCheckBox::SetValue( bool state )
     if (state == GetValue())
         return;
 
-    m_blockEvent = TRUE;
+    m_blockEvent = true;
 
     gtk_toggle_button_set_state( GTK_TOGGLE_BUTTON(m_widgetCheckbox), state );
 
-    m_blockEvent = FALSE;
+    m_blockEvent = false;
 }
 
 bool wxCheckBox::GetValue() const
 {
-    wxCHECK_MSG( m_widgetCheckbox != NULL, FALSE, wxT("invalid checkbox") );
+    wxCHECK_MSG( m_widgetCheckbox != NULL, false, wxT("invalid checkbox") );
 
     return GTK_TOGGLE_BUTTON(m_widgetCheckbox)->active;
 }
@@ -158,11 +156,11 @@ void wxCheckBox::SetLabel( const wxString& label )
 bool wxCheckBox::Enable( bool enable )
 {
     if ( !wxControl::Enable( enable ) )
-        return FALSE;
+        return false;
 
     gtk_widget_set_sensitive( m_widgetLabel, enable );
 
-    return TRUE;
+    return true;
 }
 
 void wxCheckBox::DoApplyWidgetStyle(GtkRcStyle *style)
index f0626d144808f4ca98f26cd5e665c2279ec9bce0..c4a0b5dc1e6bf5c8d670f539135e37ed8854c2d9 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        gtk/data.cpp
+// Name:        src/gtk1/data.cpp
 // Purpose:     Various global GTK-specific data
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -10,7 +10,6 @@
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
 #include "wx/object.h"
 #include "wx/window.h"
 #include "wx/dc.h"
 wxCursor g_globalCursor;
 
 /* Don't allow event propagation during drag */
-bool g_blockEventsOnDrag = FALSE;
+bool g_blockEventsOnDrag = false;
 
 /* Don't allow mouse event propagation during scroll */
-bool g_blockEventsOnScroll = FALSE;
+bool g_blockEventsOnScroll = false;
 
 /* Don't allow window closing if there are open dialogs */
 int g_openDialogs = 0;
 
-/* TRUE when the message queue is empty. this gets set to
-   FALSE by all event callbacks before anything else is done */
-bool g_isIdle = FALSE;
-
+/* true when the message queue is empty. this gets set to
+   false by all event callbacks before anything else is done */
+bool g_isIdle = false;
index 982850c35ef23d0786af15c092b2114a0489a30a..fb9b7393981520c9b0816fa9da4fd0160d6303a0 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        gtk/fontdlg.cpp
+// Name:        src/gtk1/fontdlg.cpp
 // Purpose:     wxFontDialog
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -10,8 +10,6 @@
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
-
 #if wxUSE_FONTDLG
 
 #ifndef __WXGPE__
@@ -52,7 +50,7 @@ bool gtk_fontdialog_delete_callback( GtkWidget *WXUNUSED(widget), GdkEvent *WXUN
 
     win->Close();
 
-    return TRUE;
+    return true;
 }
 }
 
@@ -114,14 +112,14 @@ IMPLEMENT_DYNAMIC_CLASS(wxFontDialog, wxDialog)
 
 bool wxFontDialog::DoCreate(wxWindow *parent)
 {
-    m_needParent = FALSE;
+    m_needParent = false;
 
     if (!PreCreation( parent, wxDefaultPosition, wxDefaultSize ) ||
         !CreateBase( parent, -1, wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE,
                      wxDefaultValidator, wxT("fontdialog") ))
     {
         wxFAIL_MSG( wxT("wxFontDialog creation failed") );
-        return FALSE;
+        return false;
     }
 
     wxString m_message( _("Choose font") );
@@ -169,7 +167,7 @@ bool wxFontDialog::DoCreate(wxWindow *parent)
         }
     }
 
-    return TRUE;
+    return true;
 }
 
 wxFontDialog::~wxFontDialog()
@@ -184,4 +182,3 @@ void wxFontDialog::SetChosenFont(const char *fontname)
 #endif // wxUSE_FONTDLG
 
 #endif // GPE
-
index 9b703f28d8dde87e3ee8ae3b8ad65b5c9e645378..7d7824daa4e4091cde6b203120aa11c0cce9b6b5 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        frame.cpp
+// Name:        src/gtk1/frame.cpp
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -7,6 +7,9 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
 // ============================================================================
 // declarations
 // ============================================================================
 // headers
 // ----------------------------------------------------------------------------
 
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#include "wx/defs.h"
-
 #include "wx/frame.h"
 #include "wx/dialog.h"
 #include "wx/control.h"
index 8c521b42823a7854ba0fa609802924ed37abab38..460cae59ad6653a98a7e5a7eb370b7455c4ef315 100644 (file)
@@ -7,6 +7,9 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
 // ============================================================================
 // declarations
 // ============================================================================
 // headers
 // ----------------------------------------------------------------------------
 
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
 #ifdef __VMS
 #define XIconifyWindow XICONIFYWINDOW
 #endif
 
-#include "wx/defs.h"
-
 #include "wx/toplevel.h"
 #include "wx/log.h"
 #include "wx/dialog.h"
index 9aa5f8d1b9c37986da25969afde2da223a6adf92..5acac76914c089d609987f16292e12342a7ac504 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        helpdata.cpp
+// Name:        src/html/helpdata.cpp
 // Purpose:     wxHtmlHelpData
 // Notes:       Based on htmlhelp.cpp, implementing a monolithic
 //              HTML Help controller class,  by Vaclav Slavik
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
-#include "wx/defs.h"
-
 #if wxUSE_HTML && wxUSE_STREAMS
 
 #ifndef WXPRECOMP
@@ -294,7 +292,7 @@ bool wxHtmlHelpData::LoadMSProject(wxHtmlBookRecord *book, wxFileSystem& fsys,
     HP_TagHandler *handler = new HP_TagHandler(book);
     parser.AddTagHandler(handler);
 
-    f = ( contentsfile.IsEmpty() ? (wxFSFile*) NULL : fsys.OpenFile(contentsfile) );
+    f = ( contentsfile.empty() ? (wxFSFile*) NULL : fsys.OpenFile(contentsfile) );
     if (f)
     {
         buf.clear();
@@ -308,7 +306,7 @@ bool wxHtmlHelpData::LoadMSProject(wxHtmlBookRecord *book, wxFileSystem& fsys,
         wxLogError(_("Cannot open contents file: %s"), contentsfile.c_str());
     }
 
-    f = ( indexfile.IsEmpty() ? (wxFSFile*) NULL : fsys.OpenFile(indexfile) );
+    f = ( indexfile.empty() ? (wxFSFile*) NULL : fsys.OpenFile(indexfile) );
     if (f)
     {
         buf.clear();
@@ -317,7 +315,7 @@ bool wxHtmlHelpData::LoadMSProject(wxHtmlBookRecord *book, wxFileSystem& fsys,
         handler->Reset(m_index);
         parser.Parse(buf);
     }
-    else if (!indexfile.IsEmpty())
+    else if (!indexfile.empty())
     {
         wxLogError(_("Cannot open index file: %s"), indexfile.c_str());
     }
@@ -488,7 +486,7 @@ void wxHtmlHelpData::SetTempDir(const wxString& path)
         if (wxIsAbsolutePath(path)) m_tempPath = path;
         else m_tempPath = wxGetCwd() + _T("/") + path;
 
-        if (m_tempPath[m_tempPath.Length() - 1] != _T('/'))
+        if (m_tempPath[m_tempPath.length() - 1] != _T('/'))
             m_tempPath << _T('/');
     }
 }
@@ -518,7 +516,7 @@ bool wxHtmlHelpData::AddBookParam(const wxFSFile& bookfile,
     int IndexOld = m_index.size(),
         ContentsOld = m_contents.size();
 
-    if (!path.IsEmpty())
+    if (!path.empty())
         fsys.ChangePathTo(path, true);
 
     size_t booksCnt = m_bookRecords.GetCount();
@@ -643,7 +641,7 @@ bool wxHtmlHelpData::AddBook(const wxString& book)
 #endif
             s = fsys.FindFirst(book + wxT("#zip:*.hhp"), wxFILE);
 
-        while (!s.IsEmpty())
+        while (!s.empty())
         {
             if (AddBook(s)) rt = true;
             s = fsys.FindNext();
@@ -989,7 +987,7 @@ bool wxHtmlSearchEngine::Scan(const wxFSFile& file)
     wxASSERT_MSG(!m_Keyword.empty(), wxT("wxHtmlSearchEngine::LookFor must be called before scanning!"));
 
     int i, j;
-    int wrd = m_Keyword.Length();
+    int wrd = m_Keyword.length();
     bool found = false;
     wxHtmlFilterHTML filter;
     wxString tmp = filter.ReadFile(file);
index d56483bf6e4aaa5a16b71f37b47d0dda068db466..8f4f0f50c076c164044f375928e13382da1d276f 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        htmlcell.cpp
+// Name:        src/html/htmlcell.cpp
 // Purpose:     wxHtmlCell - basic element of HTML output
 // Author:      Vaclav Slavik
 // RCS-ID:      $Id$
@@ -9,14 +9,12 @@
 
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
-
-#if wxUSE_HTML && wxUSE_STREAMS
-
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
+#if wxUSE_HTML && wxUSE_STREAMS
+
 #ifndef WXPRECOMP
     #include "wx/brush.h"
     #include "wx/colour.h"
@@ -1149,7 +1147,7 @@ void wxHtmlContainerCell::SetWidthFloat(const wxHtmlTag& tag, double pixel_scale
         int wdi;
         wxString wd = tag.GetParam(wxT("WIDTH"));
 
-        if (wd[wd.Length()-1] == wxT('%'))
+        if (wd[wd.length()-1] == wxT('%'))
         {
             wxSscanf(wd.c_str(), wxT("%i%%"), &wdi);
             SetWidthFloat(wdi, wxHTML_UNITS_PERCENT);
index d3f951a88d876c4ec39a45d3ff5d67e491192bc7..025a19e15542820381bb79bdf42e4a2c61ae23f2 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        htmlfilt.cpp
+// Name:        src/html/htmlfilt.cpp
 // Purpose:     wxHtmlFilter - input filter for translating into HTML format
 // Author:      Vaclav Slavik
 // RCS-ID:      $Id$
@@ -9,13 +9,12 @@
 
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
-#if wxUSE_HTML && wxUSE_STREAMS
-
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
+#if wxUSE_HTML && wxUSE_STREAMS
+
 #ifndef WXPRECOMP
     #include "wx/log.h"
     #include "wx/intl.h"
index ea7f38d865fa4f1f76613f21ecb0ed0556f958c1..b5feaccbf19a354dfe51466f807a17566399153f 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        htmlpars.cpp
+// Name:        src/html/htmlpars.cpp
 // Purpose:     wxHtmlParser class (generic parser)
 // Author:      Vaclav Slavik
 // RCS-ID:      $Id$
@@ -9,13 +9,12 @@
 
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
-#if wxUSE_HTML && wxUSE_STREAMS
-
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
+#if wxUSE_HTML && wxUSE_STREAMS
+
 #ifndef WXPRECOMP
     #include "wx/log.h"
     #include "wx/intl.h"
@@ -135,7 +134,7 @@ void wxHtmlParser::CreateDOMTree()
 {
     wxHtmlTagsCache cache(m_Source);
     m_TextPieces = new wxHtmlTextPieces;
-    CreateDOMSubTree(NULL, 0, m_Source.Length(), &cache);
+    CreateDOMSubTree(NULL, 0, m_Source.length(), &cache);
     m_CurTextPiece = 0;
 }
 
@@ -272,7 +271,7 @@ void wxHtmlParser::DoParsing()
 {
     m_CurTag = m_Tags;
     m_CurTextPiece = 0;
-    DoParsing(0, m_Source.Length());
+    DoParsing(0, m_Source.length());
 }
 
 void wxHtmlParser::DoParsing(int begin_pos, int end_pos)
index 98a1ff4fba8b485f36ac821d0a03407d9dec0a76..9bae31f64028faf1c19751989c2f236bc560df79 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        htmltag.cpp
+// Name:        src/html/htmltag.cpp
 // Purpose:     wxHtmlTag class (represents single tag)
 // Author:      Vaclav Slavik
 // RCS-ID:      $Id$
@@ -9,13 +9,12 @@
 
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
-#if wxUSE_HTML
-
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
+#if wxUSE_HTML
+
 #ifndef WXPRECOMP
 #endif
 
@@ -61,7 +60,7 @@ bool wxIsCDATAElement(const wxChar *tag)
 wxHtmlTagsCache::wxHtmlTagsCache(const wxString& source)
 {
     const wxChar *src = source.c_str();
-    int lng = source.Length();
+    int lng = source.length();
     wxChar tagBuffer[256];
 
     m_Cache = NULL;
index aad2aa3e57cc0e60e41b81c0c8d6f61bb285395c..9b5fc735fa7d8ade199274be8fb6ed23600bbd12 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        htmlwin.cpp
+// Name:        src/html/htmlwin.cpp
 // Purpose:     wxHtmlWindow class for parsing & displaying HTML (implementation)
 // Author:      Vaclav Slavik
 // RCS-ID:      $Id$
@@ -9,13 +9,12 @@
 
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
-#if wxUSE_HTML && wxUSE_STREAMS
-
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
+#if wxUSE_HTML && wxUSE_STREAMS
+
 #ifndef WXPRECOMP
     #include "wx/log.h"
     #include "wx/intl.h"
index 63054b25448177cf1e0e70023a805c17409dcc33..013ab79937eb1cd04ce47b786b494a46894f145a 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        htmprint.cpp
+// Name:        src/html/htmprint.cpp
 // Purpose:     html printing classes
 // Author:      Vaclav Slavik
 // Created:     25/09/99
 // For compilers that support precompilation, includes "wx/wx.h".
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
-
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
+#if wxUSE_HTML && wxUSE_PRINTING_ARCHITECTURE && wxUSE_STREAMS
+
 #ifndef WX_PRECOMP
     #include "wx/log.h"
     #include "wx/intl.h"
     #include "wx/dc.h"
 #endif
 
-#if wxUSE_HTML && wxUSE_PRINTING_ARCHITECTURE && wxUSE_STREAMS
-
 #include "wx/dc.h"
 #include "wx/print.h"
 #include "wx/printdlg.h"
index 419a90dcc171208bcdf6cd750fa96476455a69b2..92ff94b1c167560f1509e60ceb7df5798974ed5a 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        m_dflist.cpp
+// Name:        src/html/m_dflist.cpp
 // Purpose:     wxHtml module for definition lists (DL,DT,DD)
 // Author:      Vaclav Slavik
 // RCS-ID:      $Id$
@@ -9,13 +9,12 @@
 
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
-#if wxUSE_HTML && wxUSE_STREAMS
-
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
+#if wxUSE_HTML && wxUSE_STREAMS
+
 #ifndef WXPRECOMP
 #endif
 
index 48664c686dbc57c379a21c32a058518bbb8fddef..917a2f0eec3d326fe7b584d7bc10664f243818b2 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        m_fonts.cpp
+// Name:        src/html/m_fonts.cpp
 // Purpose:     wxHtml module for fonts & colors of fonts
 // Author:      Vaclav Slavik
 // RCS-ID:      $Id$
@@ -9,13 +9,12 @@
 
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
-#if wxUSE_HTML && wxUSE_STREAMS
-
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
+#if wxUSE_HTML && wxUSE_STREAMS
+
 #ifndef WXPRECOMP
 #endif
 
index 80f433c441b22de8afd83d8855ded279795d5903..6bf88c77322ec75d573a0c0ab42ccccb52d63edb 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        m_hline.cpp
+// Name:        src/html/m_hline.cpp
 // Purpose:     wxHtml module for horizontal line (HR tag)
 // Author:      Vaclav Slavik
 // RCS-ID:      $Id$
@@ -9,12 +9,12 @@
 
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
-#if wxUSE_HTML && wxUSE_STREAMS
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
+#if wxUSE_HTML && wxUSE_STREAMS
+
 #ifndef WXPRECOMP
     #include "wx/brush.h"
     #include "wx/pen.h"
index 3182825232c8a74555aeab252888dcb6b59aaea8..59881ad023c4c55b75c7343be025faf69c724fc6 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        m_image.cpp
+// Name:        src/html/m_image.cpp
 // Purpose:     wxHtml module for displaying images
 // Author:      Vaclav Slavik
 // RCS-ID:      $Id$
@@ -9,13 +9,12 @@
 
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
-#if wxUSE_HTML && wxUSE_STREAMS
-
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
+#if wxUSE_HTML && wxUSE_STREAMS
+
 #ifndef WXPRECOMP
     #include "wx/dc.h"
     #include "wx/scrolwin.h"
index 0bc14503f754b3c70c4ed522d31a531bc6061373..e4242e6a6621764405e1e8d827534cd9ec23ffa0 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        m_layout.cpp
+// Name:        src/html/m_layout.cpp
 // Purpose:     wxHtml module for basic paragraphs/layout handling
 // Author:      Vaclav Slavik
 // RCS-ID:      $Id$
@@ -9,14 +9,12 @@
 
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
-
-#if wxUSE_HTML && wxUSE_STREAMS
-
 #ifdef __BORLANDC__
     #pragma hdrstop
 #endif
 
+#if wxUSE_HTML && wxUSE_STREAMS
+
 #ifndef WXPRECOMP
 #endif
 
index 4c5647c4cd0edc8b3ea2df33ab1c068af38d6d8f..ee764370849128ea3beac9b237647e4106a685b3 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        m_links.cpp
+// Name:        src/html/m_links.cpp
 // Purpose:     wxHtml module for links & anchors
 // Author:      Vaclav Slavik
 // RCS-ID:      $Id$
@@ -9,13 +9,12 @@
 
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
-#if wxUSE_HTML && wxUSE_STREAMS
-
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
+#if wxUSE_HTML && wxUSE_STREAMS
+
 #ifndef WXPRECOMP
 #endif
 
index 97864acc7c67c32f4c3f2bee4f456ced9130d659..2328b748b874e65ff267236cab42f57e6d7ba032 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        m_list.cpp
+// Name:        src/html/m_list.cpp
 // Purpose:     wxHtml module for lists
 // Author:      Vaclav Slavik
 // RCS-ID:      $Id$
@@ -9,13 +9,12 @@
 
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
-#if wxUSE_HTML && wxUSE_STREAMS
-
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
+#if wxUSE_HTML && wxUSE_STREAMS
+
 #ifndef WXPRECOMP
     #include "wx/brush.h"
     #include "wx/dc.h"
index 4b5a71c7aa547e13bddf4a6fa0f0469d5d3ceb82..675d916321d83829df17a55e1acd3193f3b0ae8b 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        m_pre.cpp
+// Name:        src/html/m_pre.cpp
 // Purpose:     wxHtml module for <PRE> ... </PRE> tag (code citation)
 // Author:      Vaclav Slavik
 // RCS-ID:      $Id$
@@ -9,12 +9,12 @@
 
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
-#if wxUSE_HTML && wxUSE_STREAMS
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
+#if wxUSE_HTML && wxUSE_STREAMS
+
 #ifndef WXPRECOMP
 #endif
 
index 3934a459902331214b3a6b950f8393b65f760a54..85770ae851d03cb31e0c2b83f7cd83eee5bb7c8f 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        m_style.cpp
+// Name:        src/html/m_style.cpp
 // Purpose:     wxHtml module for parsing <style> tag
 // Author:      Vaclav Slavik
 // RCS-ID:      $Id$
@@ -9,13 +9,12 @@
 
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
-#if wxUSE_HTML && wxUSE_STREAMS
-
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
+#if wxUSE_HTML && wxUSE_STREAMS
+
 #ifndef WXPRECOMP
 #endif
 
index 37db566dc59f13d05f8172abb96b370bb0ba0450..22aa730ef0adb9ab485e477d59c23921a73fd47e 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        m_tables.cpp
+// Name:        src/html/m_tables.cpp
 // Purpose:     wxHtml module for tables
 // Author:      Vaclav Slavik
 // RCS-ID:      $Id$
@@ -9,12 +9,12 @@
 
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
-#if wxUSE_HTML && wxUSE_STREAMS
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
+#if wxUSE_HTML && wxUSE_STREAMS
+
 #ifndef WXPRECOMP
 #endif
 
@@ -275,7 +275,7 @@ void wxHtmlTableCell::AddCell(wxHtmlContainerCell *cell, const wxHtmlTag& tag)
         {
             wxString wd = tag.GetParam(wxT("WIDTH"));
 
-            if (wd[wd.Length()-1] == wxT('%'))
+            if (wd[wd.length()-1] == wxT('%'))
             {
                 wxSscanf(wd.c_str(), wxT("%i%%"), &m_ColsInfo[c].width);
                 m_ColsInfo[c].units = wxHTML_UNITS_PERCENT;
@@ -680,7 +680,7 @@ TAG_HANDLER_BEGIN(TABLE, "TABLE,TR,TD,TH")
                 {
                     wxString wd = tag.GetParam(wxT("WIDTH"));
 
-                    if (wd[wd.Length()-1] == wxT('%'))
+                    if (wd[wd.length()-1] == wxT('%'))
                     {
                         int width = 0;
                         wxSscanf(wd.c_str(), wxT("%i%%"), &width);
index 352ba3e0cc52f560198e46915b4b83d85419f012..e702952b46752f0fe4b7d316939f6450ba2dd26b 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        winpars.cpp
+// Name:        src/html/winpars.cpp
 // Purpose:     wxHtmlParser class (generic parser)
 // Author:      Vaclav Slavik
 // RCS-ID:      $Id$
@@ -9,13 +9,12 @@
 
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
-#if wxUSE_HTML && wxUSE_STREAMS
-
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
+#if wxUSE_HTML && wxUSE_STREAMS
+
 #ifndef WXPRECOMP
     #include "wx/intl.h"
     #include "wx/dc.h"
@@ -602,4 +601,3 @@ void wxHtmlTagsModule::OnExit()
 }
 
 #endif
-