~ubuntu-branches/ubuntu/lucid/codelite/lucid

« back to all changes in this revision

Viewing changes to LiteEditor/editorsettingsbookmarksbasepanel.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Chow Loong Jin
  • Date: 2009-01-12 15:46:55 UTC
  • Revision ID: james.westby@ubuntu.com-20090112154655-sdynrljcb6u167yw
Tags: upstream-1.0.2674+dfsg
ImportĀ upstreamĀ versionĀ 1.0.2674+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//////////////////////////////////////////////////////////////////////////////
 
2
//////////////////////////////////////////////////////////////////////////////
 
3
//
 
4
// copyright            : (C) 2008 by Eran Ifrah                            
 
5
// file name            : editorsettingsbookmarksbasepanel.cpp              
 
6
//                                                                          
 
7
// -------------------------------------------------------------------------
 
8
// A                                                                        
 
9
//              _____           _      _     _ _                            
 
10
//             /  __ \         | |    | |   (_) |                           
 
11
//             | /  \/ ___   __| | ___| |    _| |_ ___                      
 
12
//             | |    / _ \ / _  |/ _ \ |   | | __/ _ )                     
 
13
//             | \__/\ (_) | (_| |  __/ |___| | ||  __/                     
 
14
//              \____/\___/ \__,_|\___\_____/_|\__\___|                     
 
15
//                                                                          
 
16
//                                                  F i l e                 
 
17
//                                                                          
 
18
//    This program is free software; you can redistribute it and/or modify  
 
19
//    it under the terms of the GNU General Public License as published by  
 
20
//    the Free Software Foundation; either version 2 of the License, or     
 
21
//    (at your option) any later version.                                   
 
22
//                                                                          
 
23
//////////////////////////////////////////////////////////////////////////////
 
24
//////////////////////////////////////////////////////////////////////////////
 
25
 
 
26
///////////////////////////////////////////////////////////////////////////
 
27
// C++ code generated with wxFormBuilder (version Apr 16 2008)
 
28
// http://www.wxformbuilder.org/
 
29
//
 
30
// PLEASE DO "NOT" EDIT THIS FILE!
 
31
///////////////////////////////////////////////////////////////////////////
 
32
 
 
33
#include "editorsettingsbookmarksbasepanel.h"
 
34
 
 
35
///////////////////////////////////////////////////////////////////////////
 
36
 
 
37
EditorSettingsBookmarksBasePanel::EditorSettingsBookmarksBasePanel( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
 
38
{
 
39
        wxBoxSizer* bSizer2;
 
40
        bSizer2 = new wxBoxSizer( wxVERTICAL );
 
41
        
 
42
        m_displaySelection = new wxCheckBox( this, wxID_ANY, wxT("Display Selection / Bookmark margin"), wxDefaultPosition, wxDefaultSize, 0 );
 
43
        m_displaySelection->SetValue(true);
 
44
        
 
45
        bSizer2->Add( m_displaySelection, 0, wxALL, 5 );
 
46
        
 
47
        m_staticText3 = new wxStaticText( this, wxID_ANY, wxT("Bookmark Shape:"), wxDefaultPosition, wxDefaultSize, 0 );
 
48
        m_staticText3->Wrap( -1 );
 
49
        bSizer2->Add( m_staticText3, 0, wxALL, 5 );
 
50
        
 
51
        wxString m_bookMarkShapeChoices[] = { wxT("Small Rectangle"), wxT("Rounded Rectangle"), wxT("Circle"), wxT("Small Arrow") };
 
52
        int m_bookMarkShapeNChoices = sizeof( m_bookMarkShapeChoices ) / sizeof( wxString );
 
53
        m_bookMarkShape = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_bookMarkShapeNChoices, m_bookMarkShapeChoices, 0 );
 
54
        m_bookMarkShape->SetSelection( 0 );
 
55
        bSizer2->Add( m_bookMarkShape, 0, wxALL|wxEXPAND, 5 );
 
56
        
 
57
        wxFlexGridSizer* fgSizer1;
 
58
        fgSizer1 = new wxFlexGridSizer( 2, 2, 0, 0 );
 
59
        fgSizer1->AddGrowableCol( 0 );
 
60
        fgSizer1->AddGrowableCol( 1 );
 
61
        fgSizer1->SetFlexibleDirection( wxBOTH );
 
62
        fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
 
63
        
 
64
        m_staticText4 = new wxStaticText( this, wxID_ANY, wxT("Select the bookmark background colour:"), wxDefaultPosition, wxDefaultSize, 0 );
 
65
        m_staticText4->Wrap( -1 );
 
66
        fgSizer1->Add( m_staticText4, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
 
67
        
 
68
        m_backgroundColor = new wxColourPickerCtrl( this, wxID_ANY, *wxBLACK, wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
 
69
        fgSizer1->Add( m_backgroundColor, 0, wxALIGN_RIGHT|wxALL|wxEXPAND, 5 );
 
70
        
 
71
        m_staticText5 = new wxStaticText( this, wxID_ANY, wxT("Select the bookmark foreground colour:"), wxDefaultPosition, wxDefaultSize, 0 );
 
72
        m_staticText5->Wrap( -1 );
 
73
        fgSizer1->Add( m_staticText5, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
 
74
        
 
75
        m_foregroundColor = new wxColourPickerCtrl( this, wxID_ANY, *wxBLACK, wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
 
76
        fgSizer1->Add( m_foregroundColor, 0, wxALIGN_RIGHT|wxALL|wxEXPAND, 5 );
 
77
        
 
78
        m_staticText6 = new wxStaticText( this, wxID_ANY, wxT("Select word highlight colour:"), wxDefaultPosition, wxDefaultSize, 0 );
 
79
        m_staticText6->Wrap( -1 );
 
80
        fgSizer1->Add( m_staticText6, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
 
81
        
 
82
        m_highlightColor = new wxColourPickerCtrl( this, wxID_ANY, *wxBLACK, wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
 
83
        fgSizer1->Add( m_highlightColor, 0, wxALIGN_RIGHT|wxALL|wxEXPAND, 5 );
 
84
        
 
85
        bSizer2->Add( fgSizer1, 0, wxALL|wxEXPAND, 5 );
 
86
        
 
87
        this->SetSizer( bSizer2 );
 
88
        this->Layout();
 
89
}
 
90
 
 
91
EditorSettingsBookmarksBasePanel::~EditorSettingsBookmarksBasePanel()
 
92
{
 
93
}