15PANEL_GIT_REPOS_BASE::PANEL_GIT_REPOS_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) :
RESETTABLE_PANEL( parent, id, pos, size, style,
name )
17 wxBoxSizer* bPanelSizer;
18 bPanelSizer =
new wxBoxSizer( wxHORIZONTAL );
20 wxBoxSizer* bLeftSizer;
21 bLeftSizer =
new wxBoxSizer( wxVERTICAL );
23 m_staticText12 =
new wxStaticText(
this, wxID_ANY,
_(
"Git Commit Data"), wxDefaultPosition, wxDefaultSize, 0 );
27 wxFlexGridSizer* fgSizer1;
28 fgSizer1 =
new wxFlexGridSizer( 0, 2, 0, 0 );
29 fgSizer1->AddGrowableCol( 1 );
30 fgSizer1->SetFlexibleDirection( wxBOTH );
31 fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
33 m_cbDefault =
new wxCheckBox(
this, wxID_ANY,
_(
"Use default values"), wxDefaultPosition, wxDefaultSize, 0 );
38 fgSizer1->Add( 0, 0, 0, wxEXPAND, 5 );
40 m_authorLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Author name:"), wxDefaultPosition, wxDefaultSize, 0 );
46 m_author =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
49 fgSizer1->Add(
m_author, 0, wxALL|wxEXPAND, 5 );
51 m_authorEmailLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Author e-mail:"), wxDefaultPosition, wxDefaultSize, 0 );
57 m_authorEmail =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
63 bLeftSizer->Add( fgSizer1, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxTOP, 13 );
65 m_staticline3 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
68 m_staticText20 =
new wxStaticText(
this, wxID_ANY,
_(
"Git Repositories"), wxDefaultPosition, wxDefaultSize, 0 );
72 wxBoxSizer* bAntialiasingSizer;
73 bAntialiasingSizer =
new wxBoxSizer( wxVERTICAL );
75 m_grid =
new WX_GRID(
this, wxID_ANY, wxDefaultPosition, wxSize( 820,200 ), 0 );
78 m_grid->CreateGrid( 0, 10 );
79 m_grid->EnableEditing(
false );
80 m_grid->EnableGridLines(
true );
81 m_grid->EnableDragGridSize(
false );
82 m_grid->SetMargins( 0, 0 );
85 m_grid->SetColSize( 0, 60 );
86 m_grid->SetColSize( 1, 200 );
87 m_grid->SetColSize( 2, 500 );
88 m_grid->SetColSize( 3, 60 );
89 m_grid->SetColSize( 4, 0 );
90 m_grid->SetColSize( 5, 0 );
91 m_grid->SetColSize( 6, 0 );
92 m_grid->SetColSize( 7, 0 );
93 m_grid->SetColSize( 8, 0 );
94 m_grid->SetColSize( 9, 0 );
95 m_grid->EnableDragColMove(
false );
96 m_grid->EnableDragColSize(
true );
97 m_grid->SetColLabelValue( 0,
_(
"Active") );
98 m_grid->SetColLabelValue( 1,
_(
"Name") );
99 m_grid->SetColLabelValue( 2,
_(
"Path") );
100 m_grid->SetColLabelValue( 3,
_(
"Status") );
102 m_grid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
105 m_grid->EnableDragRowSize(
true );
106 m_grid->SetRowLabelSize( 0 );
107 m_grid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
112 m_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
113 bAntialiasingSizer->Add(
m_grid, 5, wxALL|wxEXPAND, 5 );
116 bLeftSizer->Add( bAntialiasingSizer, 0, wxEXPAND|wxLEFT|wxTOP, 5 );
118 wxBoxSizer* bButtonsSizer;
119 bButtonsSizer =
new wxBoxSizer( wxHORIZONTAL );
132 bButtonsSizer->Add( 0, 0, 1, wxEXPAND, 5 );
137 bButtonsSizer->Add(
m_btnDelete, 0, wxBOTTOM|wxRIGHT|wxTOP, 5 );
140 bLeftSizer->Add( bButtonsSizer, 1, wxALL|wxEXPAND, 5 );
143 bPanelSizer->Add( bLeftSizer, 0, wxRIGHT, 20 );
146 this->SetSizer( bPanelSizer );
148 bPanelSizer->Fit(
this );
wxStaticLine * m_staticline3
wxStaticText * m_staticText20
STD_BITMAP_BUTTON * m_btnAddRepo
wxStaticText * m_authorLabel
STD_BITMAP_BUTTON * m_btnEditRepo
virtual void onDeleteClick(wxCommandEvent &event)
wxStaticText * m_authorEmailLabel
virtual void onEditClick(wxCommandEvent &event)
wxStaticText * m_staticText12
virtual void onGridDClick(wxGridEvent &event)
STD_BITMAP_BUTTON * m_btnDelete
PANEL_GIT_REPOS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
wxTextCtrl * m_authorEmail
virtual void onAddClick(wxCommandEvent &event)
virtual void onDefaultClick(wxCommandEvent &event)
A wxPanel that is designed to be reset in a standard manner.
void SetColLabelSize(int aHeight)
Hide wxGrid's SetColLabelSize() method with one which makes sure the size is tall enough for the syst...