]> git.saurik.com Git - wxWidgets.git/commitdiff
Include wx/checklst.h according to precompiled headers of wx/wx.h (with other minor...
authorWłodzimierz Skiba <abx@abx.art.pl>
Mon, 29 May 2006 21:26:35 +0000 (21:26 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Mon, 29 May 2006 21:26:35 +0000 (21:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/cocoa/checklst.mm
src/common/valgen.cpp
src/gtk/listbox.cpp
src/gtk1/listbox.cpp
src/msw/checklst.cpp
src/msw/wince/checklst.cpp
src/palmos/checklst.cpp
src/univ/checklst.cpp
src/xrc/xh_chckl.cpp

index 80dbda3c3d1b122671b3d80f0a0b0244eb0e76ca..5865461756f63bce52cc79d8984fae1f5faba0a0 100644 (file)
 
 #if wxUSE_CHECKLISTBOX
 
+#include "wx/checklst.h"
+
 #ifndef WX_PRECOMP
     #include "wx/log.h"
     #include "wx/app.h"
-    #include "wx/checklst.h"
 #endif //WX_PRECOMP
 
 IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox, wxListBox)
index 3d77628f4a9ae81312f60ae97fb0144865615120..4b05f6d4f29d1ea31c7dd7f1e0dd94122ea8a651 100644 (file)
@@ -34,6 +34,7 @@
     #include "wx/button.h"
     #include "wx/listbox.h"
     #include "wx/slider.h"
+    #include "wx/checklst.h"
 #endif
 
 #include "wx/spinctrl.h"
@@ -41,9 +42,6 @@
 #if wxUSE_SPINBTN
     #include "wx/spinbutt.h"
 #endif
-#if wxUSE_CHECKLISTBOX
-    #include "wx/checklst.h"
-#endif
 #if wxUSE_TOGGLEBTN
     #include "wx/tglbtn.h"
 #endif
index e20ebc219e1ab137e996f5191ccbffe945798f83..f0fba8492d31fc9a071e6f1496cecca3d2f06792 100644 (file)
     #include "wx/log.h"
     #include "wx/utils.h"
     #include "wx/settings.h"
+    #include "wx/checklst.h"
 #endif
 
 #include "wx/arrstr.h"
-#include "wx/checklst.h"
 #include "wx/gtk/private.h"
 #include "wx/gtk/treeentry_gtk.h"
 
@@ -880,8 +880,8 @@ int wxListBox::FindString( const wxString &item, bool bCase ) const
 
 int wxListBox::GetSelection() const
 {
-    wxCHECK_MSG( m_treeview != NULL, -1, wxT("invalid listbox"));
-    wxCHECK_MSG( HasFlag(wxLB_SINGLE), -1,
+    wxCHECK_MSG( m_treeview != NULL, wxNOT_FOUND, wxT("invalid listbox"));
+    wxCHECK_MSG( HasFlag(wxLB_SINGLE), wxNOT_FOUND,
                     wxT("must be single selection listbox"));
 
     GtkTreeIter iter;
@@ -889,7 +889,7 @@ int wxListBox::GetSelection() const
 
     // only works on single-sel
     if (!gtk_tree_selection_get_selected(selection, NULL, &iter))
-        return -1;
+        return wxNOT_FOUND;
 
     GtkTreePath* path =
         gtk_tree_model_get_path(GTK_TREE_MODEL(m_liststore), &iter);
@@ -903,7 +903,7 @@ int wxListBox::GetSelection() const
 
 int wxListBox::GetSelections( wxArrayInt& aSelections ) const
 {
-    wxCHECK_MSG( m_treeview != NULL, -1, wxT("invalid listbox") );
+    wxCHECK_MSG( m_treeview != NULL, wxNOT_FOUND, wxT("invalid listbox") );
 
     aSelections.Empty();
 
index 38eee5c8d36693b0edbb5ff1d47022d15e561c19..f9503fa3c436aa8dbe80c264f9e94adbcede8d80 100644 (file)
     #include "wx/intl.h"
     #include "wx/utils.h"
     #include "wx/settings.h"
+    #include "wx/checklst.h"
 #endif
 
 #include "wx/arrstr.h"
-#include "wx/checklst.h"
 #include "wx/gtk1/private.h"
 
 #if wxUSE_TOOLTIPS
@@ -976,7 +976,7 @@ int wxListBox::FindString( const wxString &item, bool bCase ) const
 
 int wxListBox::GetSelection() const
 {
-    wxCHECK_MSG( m_list != NULL, -1, wxT("invalid listbox") );
+    wxCHECK_MSG( m_list != NULL, wxNOT_FOUND, wxT("invalid listbox") );
 
     GList *child = m_list->children;
     int count = 0;
@@ -986,12 +986,12 @@ int wxListBox::GetSelection() const
         count++;
         child = child->next;
     }
-    return -1;
+    return wxNOT_FOUND;
 }
 
 int wxListBox::GetSelections( wxArrayInt& aSelections ) const
 {
-    wxCHECK_MSG( m_list != NULL, -1, wxT("invalid listbox") );
+    wxCHECK_MSG( m_list != NULL, wxNOT_FOUND, wxT("invalid listbox") );
 
     // get the number of selected items first
     GList *child = m_list->children;
index 91c20b20b01d9be8aab3a184790a1a1b510b8233..0a9a7154885dc4edcb19e3ac1ff3728fad2eced4 100644 (file)
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
 #if wxUSE_CHECKLISTBOX && wxUSE_OWNER_DRAWN
 
+#include "wx/checklst.h"
+
 #ifndef WX_PRECOMP
     #include "wx/object.h"
     #include "wx/colour.h"
@@ -41,7 +43,6 @@
 #endif
 
 #include "wx/ownerdrw.h"
-#include "wx/checklst.h"
 
 #include "wx/msw/wrapwin.h"
 #include <windowsx.h>
index b0044c84439f0409b7339624a475988040b56e68..d2ce744d1f22c658a70ea89b5479dfbbce36223c 100644 (file)
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
 #if wxUSE_CHECKLISTBOX
 
+#include "wx/checklst.h"
+
 #ifndef WX_PRECOMP
 #endif
 
-#include "wx/checklst.h"
-
 // include <commctrl.h> "properly"
 #include "wx/msw/wrapcctl.h"
 
index fe75aeae4d7e7b3e0f7f7c7698b22d5df83a234b..358a423dc641fe32401797607e97b6eeae9f5d31 100644 (file)
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
-#if wxUSE_OWNER_DRAWN
+#if wxUSE_CHECKLISTBOX && wxUSE_OWNER_DRAWN
+
+#include "wx/checklst.h"
 
 #ifndef WX_PRECOMP
     #include "wx/object.h"
@@ -41,7 +43,6 @@
 #endif
 
 #include "wx/ownerdrw.h"
-#include "wx/checklst.h"
 
 #include "wx/palmos/wrapwin.h"
 
@@ -283,4 +284,4 @@ int wxCheckListBox::DoHitTestItem(wxCoord x, wxCoord y) const
     return wxNOT_FOUND;
 }
 
-#endif
+#endif // wxUSE_CHECKLISTBOX && wxUSE_OWNER_DRAWN
index a69725f51065a78a0877eab2f11de8f9999b63fb..5633b9d24c4e38e1bb3e209b7c5acb5965848609 100644 (file)
 
 #if wxUSE_CHECKLISTBOX
 
+#include "wx/checklst.h"
+
 #ifndef WX_PRECOMP
     #include "wx/log.h"
-
     #include "wx/dcclient.h"
-    #include "wx/checklst.h"
     #include "wx/validate.h"
 #endif
 
index 067f3cf7c09555659513686d7c771aa4ed73ddd1..d3a8257cd3bf9efb69cd2140daac85274fc0b8a4 100644 (file)
 #ifndef WX_PRECOMP
     #include "wx/intl.h"
     #include "wx/log.h"
+    #include "wx/checklst.h"
 #endif
 
-#include "wx/checklst.h"
-
 IMPLEMENT_DYNAMIC_CLASS(wxCheckListBoxXmlHandler, wxXmlResourceHandler)
 
 wxCheckListBoxXmlHandler::wxCheckListBoxXmlHandler()