: m_ShowNoButton(
false)
92: m_Wrapped(
false), m_WS(0)
102 Create(parent,
id, caption, pos,
size, style);
106 bool CSaveDlg::Create( wxWindow* parent, wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
109SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
110CDialog::Create( parent,
id, caption, pos,
size, style );
115GetSizer()->SetSizeHints(
this);
162wxBoxSizer* itemBoxSizer3 =
newwxBoxSizer(wxHORIZONTAL);
163 m_RootSizer->Add(itemBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
165 m_DescrText=
newwxStaticText( itemCDialog1, wxID_STATIC, wxEmptyString, wxDefaultPosition, wxSize(itemCDialog1->ConvertDialogToPixels(wxSize(200, -1)).x, -1), 0 );
166itemBoxSizer3->Add(
m_DescrText, 0, wxGROW|wxALL, 5);
168wxStaticBox* itemStaticBoxSizer5Static =
newwxStaticBox(itemCDialog1,
wxID_ANY,
_(
"Projects to save:"));
169wxStaticBoxSizer* itemStaticBoxSizer5 =
newwxStaticBoxSizer(itemStaticBoxSizer5Static, wxVERTICAL);
170 m_RootSizer->Add(itemStaticBoxSizer5, 1, wxGROW|wxALL, 5);
172wxArrayString m_ProjectListStrings;
173 m_ProjectList=
newwxCheckListBox( itemStaticBoxSizer5->GetStaticBox(),
ID_PRJ_LIST, wxDefaultPosition, wxSize(-1, itemStaticBoxSizer5->GetStaticBox()->ConvertDialogToPixels(wxSize(-1, 48)).y), m_ProjectListStrings, wxLB_EXTENDED );
174itemStaticBoxSizer5->Add(
m_ProjectList, 1, wxGROW|wxALL, 5);
176wxBoxSizer* itemBoxSizer7 =
newwxBoxSizer(wxHORIZONTAL);
177itemStaticBoxSizer5->Add(itemBoxSizer7, 0, wxALIGN_RIGHT, 5);
179wxButton* itemButton8 =
newwxButton( itemStaticBoxSizer5->GetStaticBox(),
ID_SELECT_CHANGED,
_(
"Select Changed"), wxDefaultPosition, wxDefaultSize, 0 );
180itemBoxSizer7->Add(itemButton8, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
182wxButton* itemButton9 =
newwxButton( itemStaticBoxSizer5->GetStaticBox(),
ID_SELECT_ALL,
_(
"Select All"), wxDefaultPosition, wxDefaultSize, 0 );
183itemBoxSizer7->Add(itemButton9, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
185wxButton* itemButton10 =
newwxButton( itemStaticBoxSizer5->GetStaticBox(),
ID_CLEAR_ALL,
_(
"Clear All"), wxDefaultPosition, wxDefaultSize, 0 );
186itemBoxSizer7->Add(itemButton10, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
191wxButton* itemButton12 =
newwxButton( itemCDialog1, wxID_CANCEL,
_(
"&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
194 m_SaveBtn=
newwxButton( itemCDialog1, wxID_SAVE,
_(
"&Save Selected"), wxDefaultPosition, wxDefaultSize, 0 );
197wxButton* itemButton14 =
newwxButton( itemCDialog1, wxID_NO,
_(
"&No"), wxDefaultPosition, wxDefaultSize, 0 );
224 strings = doc->GetDescr().GetTitle();
225 if(doc->IsDirty()) {
226s += (doc->GetFilename().empty() ? +
"* (New)":
"* (Modified)");
233FindWindow(wxID_NO)->Hide();
238wxDialog::OnInitDialog(event);
240 intw =
m_DescrText->ConvertDialogToPixels(wxPoint(200, 0)).x;
249TransferDataFromWindow();
262 if(doc->IsDirty()) {
267TransferDataToWindow();
277 for(
size_t i= 0;
i<
n;
i++ ) {
281TransferDataToWindow();
290TransferDataToWindow();
297TransferDataFromWindow();
User-defined methods of the data storage class.
User-defined methods of the data storage class.
virtual void EndModal(int retCode)
CSaveDlg - a dialog for saving workspace and projects.
void OnPrjListToggled(wxCommandEvent &event)
void OnSelectChangedClick(wxCommandEvent &event)
objects::CGBWorkspace * m_WS
wxIcon GetIconResource(const wxString &name)
wxBitmap GetBitmapResource(const wxString &name)
wxStdDialogButtonSizer * m_BtnSizer
void OnSelectAllClick(wxCommandEvent &event)
wxCheckListBox * m_ProjectList
void SetParams(const SSaveProjectsDlgParams &value)
wxStaticText * m_DescrText
SSaveProjectsDlgParams m_Params
void OnSaveClick(wxCommandEvent &event)
const SSaveProjectsDlgParams & GetParams() const
void OnClearAllClick(wxCommandEvent &event)
static bool ShowToolTips()
void OnInitDialog(wxInitDialogEvent &event)
void OnNoClick(wxCommandEvent &event)
bool Create(wxWindow *parent, wxWindowID id=ID_CSAVEDLG, const wxString &caption=_("Save"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
wxArrayInt m_ProjectsToSave
indices of the projects to save (checked items)
vector< objects::CGBProjectHandle::TId > m_ProjectIds
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const struct ncbi::grid::netcache::search::fields::SIZE size
wxString ToWxString(const string &s)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4