1
//////////////////////////////////////////////////////////////////////////////
2
//////////////////////////////////////////////////////////////////////////////
4
// copyright : (C) 2008 by Eran Ifrah
5
// file name : editorsettingsbookmarksbasepanel.cpp
7
// -------------------------------------------------------------------------
10
// / __ \ | | | | (_) |
11
// | / \/ ___ __| | ___| | _| |_ ___
12
// | | / _ \ / _ |/ _ \ | | | __/ _ )
13
// | \__/\ (_) | (_| | __/ |___| | || __/
14
// \____/\___/ \__,_|\___\_____/_|\__\___|
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.
23
//////////////////////////////////////////////////////////////////////////////
24
//////////////////////////////////////////////////////////////////////////////
26
///////////////////////////////////////////////////////////////////////////
27
// C++ code generated with wxFormBuilder (version Apr 16 2008)
28
// http://www.wxformbuilder.org/
30
// PLEASE DO "NOT" EDIT THIS FILE!
31
///////////////////////////////////////////////////////////////////////////
33
#include "editorsettingsbookmarksbasepanel.h"
35
///////////////////////////////////////////////////////////////////////////
37
EditorSettingsBookmarksBasePanel::EditorSettingsBookmarksBasePanel( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
40
bSizer2 = new wxBoxSizer( wxVERTICAL );
42
m_displaySelection = new wxCheckBox( this, wxID_ANY, wxT("Display Selection / Bookmark margin"), wxDefaultPosition, wxDefaultSize, 0 );
43
m_displaySelection->SetValue(true);
45
bSizer2->Add( m_displaySelection, 0, wxALL, 5 );
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 );
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 );
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 );
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 );
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 );
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 );
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 );
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 );
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 );
85
bSizer2->Add( fgSizer1, 0, wxALL|wxEXPAND, 5 );
87
this->SetSizer( bSizer2 );
91
EditorSettingsBookmarksBasePanel::~EditorSettingsBookmarksBasePanel()