Full headers, Unicode markup, whitespaces, wxID_ANY, wxDefaultCoord conventions applied with some warning fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: layouttest.cpp
|
||||
// Purpose:
|
||||
// Purpose:
|
||||
// Author: Jorgen Bodde
|
||||
// Modified by:
|
||||
// Created: 06/25/04 19:48:57
|
||||
// RCS-ID:
|
||||
// Copyright:
|
||||
// Licence:
|
||||
// Modified by:
|
||||
// Created: 25/06/2004
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) Jorgen Bodde
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#if defined(__GNUG__) && !defined(__APPLE__)
|
||||
@@ -66,7 +66,7 @@ LayoutTest::LayoutTest( wxWindow* parent, wxWindowID id, const wxString& caption
|
||||
* LayoutTest creator
|
||||
*/
|
||||
|
||||
bool LayoutTest::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
|
||||
bool LayoutTest::Create( wxWindow* parent, wxWindowID id, const wxString& WXUNUSED(caption), const wxPoint& pos, const wxSize& size, long style )
|
||||
{
|
||||
////@begin LayoutTest member initialisation
|
||||
////@end LayoutTest member initialisation
|
||||
@@ -80,7 +80,7 @@ bool LayoutTest::Create( wxWindow* parent, wxWindowID id, const wxString& captio
|
||||
GetSizer()->SetSizeHints(this);
|
||||
Centre();
|
||||
////@end LayoutTest creation
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
/*!
|
||||
@@ -88,14 +88,14 @@ bool LayoutTest::Create( wxWindow* parent, wxWindowID id, const wxString& captio
|
||||
*/
|
||||
|
||||
void LayoutTest::CreateControls()
|
||||
{
|
||||
{
|
||||
////@begin LayoutTest content construction
|
||||
|
||||
LayoutTest* item1 = this;
|
||||
|
||||
wxBoxSizer* item2 = new wxBoxSizer(wxVERTICAL);
|
||||
item1->SetSizer(item2);
|
||||
item1->SetAutoLayout(TRUE);
|
||||
item1->SetAutoLayout(true);
|
||||
wxStaticText* item3 = new wxStaticText( item1, wxID_STATIC, _("lbaaaaaa"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
item3->SetBackgroundColour(wxColour(139, 139, 139));
|
||||
item2->Add(item3, 0, wxGROW|wxALL|wxADJUST_MINSIZE, 5);
|
||||
@@ -103,7 +103,7 @@ void LayoutTest::CreateControls()
|
||||
item2->Add(item4, 0, wxGROW, 5);
|
||||
wxBoxSizer* item5 = new wxBoxSizer(wxVERTICAL);
|
||||
item4->SetSizer(item5);
|
||||
item4->SetAutoLayout(TRUE);
|
||||
item4->SetAutoLayout(true);
|
||||
wxStaticText* item6 = new wxStaticText( item4, wxID_STATIC, _("Static text"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
item5->Add(item6, 0, wxALIGN_LEFT|wxALL|wxADJUST_MINSIZE, 5);
|
||||
wxButton* item7 = new wxButton( item4, ID_BUTTON, _("Button"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
@@ -117,14 +117,14 @@ void LayoutTest::CreateControls()
|
||||
|
||||
bool LayoutTest::ShowToolTips()
|
||||
{
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
/*!
|
||||
* Get bitmap resources
|
||||
*/
|
||||
|
||||
wxBitmap LayoutTest::GetBitmapResource( const wxString& name )
|
||||
wxBitmap LayoutTest::GetBitmapResource( const wxString& WXUNUSED(name) )
|
||||
{
|
||||
// Bitmap retrieval
|
||||
////@begin LayoutTest bitmap retrieval
|
||||
@@ -136,7 +136,7 @@ wxBitmap LayoutTest::GetBitmapResource( const wxString& name )
|
||||
* Get icon resources
|
||||
*/
|
||||
|
||||
wxIcon LayoutTest::GetIconResource( const wxString& name )
|
||||
wxIcon LayoutTest::GetIconResource( const wxString& WXUNUSED(name) )
|
||||
{
|
||||
// Icon retrieval
|
||||
////@begin LayoutTest icon retrieval
|
||||
|
Reference in New Issue
Block a user