15DIALOG_MANAGE_REPOSITORIES_BASE::DIALOG_MANAGE_REPOSITORIES_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
17 this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
19 wxBoxSizer* m_MainSizer;
20 m_MainSizer =
new wxBoxSizer( wxVERTICAL );
22 wxBoxSizer* m_TopSizer;
23 m_TopSizer =
new wxBoxSizer( wxVERTICAL );
25 m_grid =
new WX_GRID(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
28 m_grid->CreateGrid( 5, 2 );
29 m_grid->EnableEditing(
false );
30 m_grid->EnableGridLines(
true );
31 m_grid->EnableDragGridSize(
false );
32 m_grid->SetMargins( 0, 0 );
35 m_grid->SetColSize( 0, 200 );
36 m_grid->SetColSize( 1, 400 );
37 m_grid->EnableDragColMove(
false );
38 m_grid->EnableDragColSize(
true );
39 m_grid->SetColLabelValue( 0,
_(
"Name") );
40 m_grid->SetColLabelValue( 1,
_(
"URL") );
42 m_grid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
45 m_grid->EnableDragRowSize(
true );
46 m_grid->SetRowLabelSize( 0 );
47 m_grid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
52 m_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
53 m_TopSizer->Add(
m_grid, 1, wxEXPAND|wxALL, 5 );
55 wxBoxSizer* bButtonsSizer;
56 bButtonsSizer =
new wxBoxSizer( wxHORIZONTAL );
74 bButtonsSizer->Add( 20, 0, 0, wxEXPAND, 5 );
82 m_TopSizer->Add( bButtonsSizer, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
85 m_MainSizer->Add( m_TopSizer, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
94 m_MainSizer->Add(
m_sdbSizer1, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
97 this->SetSizer( m_MainSizer );
99 m_MainSizer->Fit(
this );
101 this->Centre( wxBOTH );
wxButton * m_sdbSizer1Save
wxStdDialogButtonSizer * m_sdbSizer1
virtual void OnMoveUpButtonClicked(wxCommandEvent &event)
SPLIT_BUTTON * m_buttonAdd
STD_BITMAP_BUTTON * m_buttonRemove
virtual void OnRemoveButtonClicked(wxCommandEvent &event)
virtual void OnSaveClicked(wxCommandEvent &event)
~DIALOG_MANAGE_REPOSITORIES_BASE()
wxButton * m_sdbSizer1Cancel
STD_BITMAP_BUTTON * m_buttonMoveDown
STD_BITMAP_BUTTON * m_buttonMoveUp
virtual void OnMoveDownButtonClicked(wxCommandEvent &event)
DIALOG_MANAGE_REPOSITORIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Manage Repositories"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnGridCellClicked(wxGridEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
void SetColLabelSize(int aHeight)
Hide wxGrid's SetColLabelSize() method with one which makes sure the size is tall enough for the syst...