Mercurial > mercurial > hgweb_searcher03.cgi
comparison src/hhsdb.cpp @ 21:a2ad87cad48b
Enhanced the convenience of Cache dialog.
author | pyon@macmini |
---|---|
date | Wed, 17 Dec 2014 00:52:43 +0900 |
parents | bbd65edf71d4 |
children |
comparison
equal
deleted
inserted
replaced
20:226774bf49fc | 21:a2ad87cad48b |
---|---|
1 // Filename : hhsdb.cpp | 1 // Filename : hhsdb.cpp |
2 // Last Change: 23-May-2014. | 2 // Last Change: 12-Dec-2014. |
3 // | 3 // |
4 | 4 |
5 #include "hhsdb.h" | 5 #include "hhsdb.h" |
6 #include "db.h" | 6 #include "db.h" |
7 | 7 |
9 : wxDialog( parent, id, title, pos, size, style ) | 9 : wxDialog( parent, id, title, pos, size, style ) |
10 { | 10 { |
11 this->SetSizeHints( wxDefaultSize, wxDefaultSize ); | 11 this->SetSizeHints( wxDefaultSize, wxDefaultSize ); |
12 this->SetBackgroundColour( wxColour( wxT("WHEAT") ) ); | 12 this->SetBackgroundColour( wxColour( wxT("WHEAT") ) ); |
13 | 13 |
14 wxBoxSizer* bSizerTop; | 14 wxBoxSizer* bSizerTop = new wxBoxSizer( wxVERTICAL ); |
15 bSizerTop = new wxBoxSizer( wxVERTICAL ); | |
16 | 15 |
17 m_filePicker = new wxFilePickerCtrl( this, ID_FPICKR, wxEmptyString, wxT("Select a file"), wxT("*.*"), wxDefaultPosition, wxDefaultSize, wxFLP_FILE_MUST_EXIST|wxFLP_OPEN|wxFLP_USE_TEXTCTRL ); | 16 m_filePicker = new wxFilePickerCtrl( this, wxID_ANY, wxEmptyString, wxT("Select a file"), wxT("*.*"), wxDefaultPosition, wxDefaultSize, wxFLP_FILE_MUST_EXIST|wxFLP_OPEN|wxFLP_USE_TEXTCTRL ); |
18 bSizerTop->Add( m_filePicker, 0, wxALL|wxEXPAND, 5 ); | 17 bSizerTop->Add( m_filePicker, 0, wxALL|wxEXPAND, 5 ); |
19 | 18 |
20 wxBoxSizer* bSizerButton; | 19 wxBoxSizer* bSizerButton = new wxBoxSizer( wxHORIZONTAL ); |
21 bSizerButton = new wxBoxSizer( wxHORIZONTAL ); | |
22 | 20 |
23 m_buttonUpdate = new wxButton( this, ID_UPDATE, wxT("更新処理開始"), wxDefaultPosition, wxDefaultSize, 0 ); | 21 m_buttonUpdate = new wxButton( this, ID_UPDATE, wxT("更新処理開始"), wxDefaultPosition, wxDefaultSize, 0 ); |
24 bSizerButton->Add( m_buttonUpdate, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 ); | 22 bSizerButton->Add( m_buttonUpdate, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 ); |
25 | 23 |
26 m_buttonCancel = new wxButton( this, wxID_CANCEL, wxT("閉じる"), wxDefaultPosition, wxDefaultSize, 0 ); | 24 m_buttonCancel = new wxButton( this, wxID_CANCEL, wxT("閉じる"), wxDefaultPosition, wxDefaultSize, 0 ); |