X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/957f5ab77abb14c70c60f18196e1e0d39292ee59..ec75509f94fb11322c1c69056d1ec2af8f041fe2:/contrib/samples/foldbar/foldpanelbar/test.cpp diff --git a/contrib/samples/foldbar/foldpanelbar/test.cpp b/contrib/samples/foldbar/foldpanelbar/test.cpp index 710a9f0942..b56eba3292 100644 --- a/contrib/samples/foldbar/foldpanelbar/test.cpp +++ b/contrib/samples/foldbar/foldpanelbar/test.cpp @@ -1,12 +1,12 @@ ///////////////////////////////////////////////////////////////////////////// // Name: test.cpp -// Purpose: +// Purpose: // Author: Jorgen Bodde -// Modified by: -// Created: 06/27/04 13:34:20 -// RCS-ID: -// Copyright: -// Licence: +// Modified by: +// Created: 27/06/2004 +// RCS-ID: $Id$ +// Copyright: (c) Jorgen Bodde +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #if defined(__GNUG__) && !defined(__APPLE__) @@ -82,7 +82,7 @@ bool TestTest::Create( wxWindow* parent, wxWindowID id, const wxString& caption, GetSizer()->SetSizeHints(this); Centre(); ////@end TestTest creation - return TRUE; + return true; } /*! @@ -90,7 +90,7 @@ bool TestTest::Create( wxWindow* parent, wxWindowID id, const wxString& caption, */ void TestTest::CreateControls() -{ +{ ////@begin TestTest content construction TestTest* item1 = this; @@ -99,19 +99,19 @@ void TestTest::CreateControls() item2->AddGrowableRow(0); item2->AddGrowableCol(0); item1->SetSizer(item2); - item1->SetAutoLayout(TRUE); + item1->SetAutoLayout(true); wxPanel* item3 = new wxPanel( item1, ID_PANEL7, wxDefaultPosition, wxSize(100, 50), wxNO_BORDER|wxTAB_TRAVERSAL ); item2->Add(item3, 1, wxGROW|wxGROW|wxADJUST_MINSIZE, 5); wxBoxSizer* item4 = new wxBoxSizer(wxVERTICAL); item3->SetSizer(item4); - item3->SetAutoLayout(TRUE); + item3->SetAutoLayout(true); wxPanel* item5 = new wxPanel( item3, ID_PANEL6, wxDefaultPosition, wxSize(100, 80), wxSUNKEN_BORDER|wxNO_FULL_REPAINT_ON_RESIZE|wxTAB_TRAVERSAL ); item4->Add(item5, 1, wxGROW|wxALL|wxADJUST_MINSIZE, 5); wxFlexGridSizer* item6 = new wxFlexGridSizer(2, 1, 0, 0); item6->AddGrowableRow(1); item6->AddGrowableCol(0); item5->SetSizer(item6); - item5->SetAutoLayout(TRUE); + item5->SetAutoLayout(true); wxStaticText* item7 = new wxStaticText( item5, wxID_STATIC, _("Static text"), wxDefaultPosition, wxDefaultSize, 0 ); item6->Add(item7, 0, wxALIGN_CENTER_HORIZONTAL|wxGROW|wxALL|wxADJUST_MINSIZE, 5); wxPanel* item8 = new wxPanel( item5, ID_PANEL3, wxDefaultPosition, wxSize(100, 80), wxSUNKEN_BORDER|wxTAB_TRAVERSAL ); @@ -119,12 +119,12 @@ void TestTest::CreateControls() wxBoxSizer* item9 = new wxBoxSizer(wxVERTICAL); blaat = item9; item8->SetSizer(item9); - item8->SetAutoLayout(TRUE); + item8->SetAutoLayout(true); wxPanel* item10 = new wxPanel( item8, ID_PANEL, wxDefaultPosition, wxDefaultSize, wxNO_BORDER|wxFULL_REPAINT_ON_RESIZE|wxTAB_TRAVERSAL ); item9->Add(item10, 1, wxGROW, 5); wxBoxSizer* item11 = new wxBoxSizer(wxVERTICAL); item10->SetSizer(item11); - item10->SetAutoLayout(TRUE); + item10->SetAutoLayout(true); wxString item12Strings[] = { _("One"), _("Two"), @@ -133,10 +133,10 @@ void TestTest::CreateControls() wxChoice* item12 = new wxChoice( item10, ID_CHOICE, wxDefaultPosition, wxDefaultSize, 3, item12Strings, 0 ); item11->Add(item12, 0, wxGROW|wxALL, 5); wxRadioButton* item13 = new wxRadioButton( item10, ID_RADIOBUTTON, _("I like this"), wxDefaultPosition, wxDefaultSize, 0 ); - item13->SetValue(TRUE); + item13->SetValue(true); item11->Add(item13, 0, wxALIGN_LEFT|wxALL, 5); wxRadioButton* item14 = new wxRadioButton( item10, ID_RADIOBUTTON1, _("I hate it"), wxDefaultPosition, wxDefaultSize, 0 ); - item14->SetValue(FALSE); + item14->SetValue(false); item11->Add(item14, 0, wxALIGN_LEFT|wxALL, 5); wxPanel* item15 = new wxPanel( item3, ID_PANEL2, wxDefaultPosition, wxSize(100, 80), wxSUNKEN_BORDER|wxNO_FULL_REPAINT_ON_RESIZE|wxTAB_TRAVERSAL ); item4->Add(item15, 1, wxGROW|wxALL|wxADJUST_MINSIZE, 5); @@ -144,7 +144,7 @@ void TestTest::CreateControls() item16->AddGrowableRow(1); item16->AddGrowableCol(0); item15->SetSizer(item16); - item15->SetAutoLayout(TRUE); + item15->SetAutoLayout(true); wxStaticText* item17 = new wxStaticText( item15, wxID_STATIC, _("Static text"), wxDefaultPosition, wxDefaultSize, 0 ); item16->Add(item17, 0, wxALIGN_CENTER_HORIZONTAL|wxGROW|wxALL|wxADJUST_MINSIZE|wxFIXED_MINSIZE, 5); wxPanel* item18 = new wxPanel( item15, ID_PANEL4, wxDefaultPosition, wxSize(100, 80), wxSUNKEN_BORDER|wxTAB_TRAVERSAL ); @@ -152,12 +152,12 @@ void TestTest::CreateControls() wxBoxSizer* item19 = new wxBoxSizer(wxVERTICAL); blaat = item19; item18->SetSizer(item19); - item18->SetAutoLayout(TRUE); + item18->SetAutoLayout(true); wxPanel* item20 = new wxPanel( item18, ID_PANEL5, wxDefaultPosition, wxDefaultSize, wxNO_BORDER|wxFULL_REPAINT_ON_RESIZE|wxTAB_TRAVERSAL ); item19->Add(item20, 1, wxGROW, 5); wxBoxSizer* item21 = new wxBoxSizer(wxVERTICAL); item20->SetSizer(item21); - item20->SetAutoLayout(TRUE); + item20->SetAutoLayout(true); wxString item22Strings[] = { _("One"), _("Two"), @@ -166,10 +166,10 @@ void TestTest::CreateControls() wxChoice* item22 = new wxChoice( item20, ID_CHOICE1, wxDefaultPosition, wxDefaultSize, 3, item22Strings, 0 ); item21->Add(item22, 0, wxGROW|wxALL, 5); wxRadioButton* item23 = new wxRadioButton( item20, ID_RADIOBUTTON2, _("I like this"), wxDefaultPosition, wxDefaultSize, 0 ); - item23->SetValue(TRUE); + item23->SetValue(true); item21->Add(item23, 0, wxALIGN_LEFT|wxALL, 5); wxRadioButton* item24 = new wxRadioButton( item20, ID_RADIOBUTTON3, _("I hate it"), wxDefaultPosition, wxDefaultSize, 0 ); - item24->SetValue(FALSE); + item24->SetValue(false); item21->Add(item24, 0, wxALIGN_LEFT|wxALL, 5); wxPanel* item25 = new wxPanel( item1, ID_PANEL1, wxDefaultPosition, wxSize(100, 20), wxNO_BORDER|wxTAB_TRAVERSAL ); item25->SetBackgroundColour(wxColour(98, 98, 98)); @@ -183,14 +183,14 @@ void TestTest::CreateControls() bool TestTest::ShowToolTips() { - return TRUE; + return true; } /*! * Get bitmap resources */ -wxBitmap TestTest::GetBitmapResource( const wxString& name ) +wxBitmap TestTest::GetBitmapResource( const wxString& WXUNUSED(name) ) { // Bitmap retrieval ////@begin TestTest bitmap retrieval @@ -202,7 +202,7 @@ wxBitmap TestTest::GetBitmapResource( const wxString& name ) * Get icon resources */ -wxIcon TestTest::GetIconResource( const wxString& name ) +wxIcon TestTest::GetIconResource( const wxString& WXUNUSED(name) ) { // Icon retrieval ////@begin TestTest icon retrieval