~ubuntu-branches/ubuntu/raring/codeblocks/raring-proposed

« back to all changes in this revision

Viewing changes to src/plugins/contrib/codesnippets/Search/MainPanel.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Cosme Domínguez Díaz
  • Date: 2010-08-09 04:38:38 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20100809043838-a59ygguym4eg0jgw
Tags: 10.05-0ubuntu1
* New upstream release. Closes (LP: #322350)
 - Switch to dpkg-source 3.0 (quilt) format
 - Remove unneeded README.source
 - Add debian/get-source-orig script that removes all
   Windows prebuilt binaries
* Bump Standards-Version to 3.9.1
 - Stop shipping *.la files
* debian/control
 - Add cdbs package as Build-Depend
 - Add libbz2-dev and zlib1g-dev packages as
   Build-Depends (needed by libhelp_plugin.so)
 - Remove dpatch package of Build-Depends
 - Add codeblocks-contrib-debug package
 - Split architecture-independent files of codeblocks
   package in codeblocks-common package
* debian/rules
 - Switch to CDBS rules system
 - Add parallel build support
 - Add a call to debian/get-source-orig script
 - Use lzma compression (saves 23,5 MB of free space)
* debian/patches
 - Refresh 01_codeblocks_plugin_path
 - Add 02_no_Makefiles_in_debian_dir to remove any link
   in codeblocks build system to deleted Makefiles of debian directory
 - Drop 02_ftbfs_gcc44 and 03_ftbfs_glib221 (merged in upstream)
* debian/watch
 - Update to use the new host (berlios.de)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
///////////////////////////////////////////////////////////////////////////
 
2
// C++ code generated with wxFormBuilder (version Dec 17 2007)
 
3
// http://www.wxformbuilder.org/
 
4
//
 
5
// PLEASE DO "NOT" EDIT THIS FILE!
 
6
///////////////////////////////////////////////////////////////////////////
 
7
 
 
8
#include "MainPanel.h"
 
9
 
 
10
///////////////////////////////////////////////////////////////////////////
 
11
 
 
12
MainPanel::MainPanel( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style )
 
13
            : wxPanel( parent, id, pos, size, style )
 
14
{
 
15
        m_pMainSizer = new wxBoxSizer( wxVERTICAL );
 
16
 
 
17
        wxBoxSizer* SplitterSizer;
 
18
        SplitterSizer = new wxBoxSizer( wxVERTICAL );
 
19
 
 
20
        m_pSplitterWindow = new wxSplitterWindow( this, wxID_ANY, wxDefaultPosition, wxSize(1,1), wxSP_3D|wxSP_BORDER  );
 
21
        //-m_pSplitterWindow->Connect( wxEVT_IDLE, wxIdleEventHandler( MainPanel::SplitterWindowOnIdle ), NULL, this );
 
22
 
 
23
        m_pSearchPanel = new wxPanel( m_pSplitterWindow, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL,_T("MySearchPanel") );
 
24
        m_pSearchSizer = new wxBoxSizer( wxVERTICAL );
 
25
    m_pSearchPanel->SetSizer( m_pSearchSizer );
 
26
        m_pSearchPanel->Layout();
 
27
        //m_pSearchSizer->Fit( m_pSearchPanel );
 
28
 
 
29
        m_pNotebkPanel = new wxPanel( m_pSplitterWindow, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL,_T("MyNotebkPanel") );
 
30
        m_pNotebkSizer = new wxBoxSizer( wxVERTICAL );
 
31
    m_pNotebkPanel->SetSizer( m_pNotebkSizer );
 
32
        m_pNotebkPanel->Layout();
 
33
        //m_pNotebkSizer->Fit( m_pNotebkPanel );
 
34
 
 
35
        m_pSplitterWindow->SplitHorizontally( m_pSearchPanel, m_pNotebkPanel, 100 );
 
36
        SplitterSizer->Add( m_pSplitterWindow, 1, wxEXPAND, 5 );
 
37
 
 
38
        m_pMainSizer->Add( SplitterSizer, 1, wxEXPAND, 5 );
 
39
 
 
40
        this->SetSizer( m_pMainSizer );
 
41
        this->Layout();
 
42
}
 
43
 
 
44
MainPanel::~MainPanel()
 
45
{
 
46
}
 
47
//Note:
 
48
//If you have a sizer for your frame that you want to
 
49
// add a panel to, make sure that you add it after
 
50
// you add everything to the panel and call
 
51
// panel->SetSizerAndFit( panelsizer ). If you first
 
52
// add the panel, then add controls to it, the
 
53
// window will not size correctly.
 
54
//
 
55
//Or you can call panel->GetSizer()->Fit(panel)
 
56
//after you add the panels controls to re-fit the
 
57
//sizer.
 
58
//[edit]
 
59
//
 
60
//
 
61
//http://www.wxwidgets.org/wiki/index.php/WxSplitterWindow
 
62
//WxSplitterWindow - WxWiki
 
63