A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/save__dlg_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/core/save_dlg.cpp Source File

49 #include <wx/checkbox.h> 50 #include <wx/stattext.h> 51 #include <wx/statbox.h> 52 #include <wx/bitmap.h> 54 #include <wx/checklst.h> 55 #include <wx/button.h> 56 #include <wx/wupdlock.h> 57 #include <wx/msgdlg.h> 65

: 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

,

const

wxString& caption,

const

wxPoint& pos,

const

wxSize&

size

,

long

style )

109 

SetExtraStyle(wxWS_EX_BLOCK_EVENTS);

110

CDialog::Create( parent,

id

, caption, pos,

size

, style );

115

GetSizer()->SetSizeHints(

this

);

162

wxBoxSizer* itemBoxSizer3 =

new

wxBoxSizer(wxHORIZONTAL);

163  m_RootSizer

->Add(itemBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

165  m_DescrText

=

new

wxStaticText( itemCDialog1, wxID_STATIC, wxEmptyString, wxDefaultPosition, wxSize(itemCDialog1->ConvertDialogToPixels(wxSize(200, -1)).x, -1), 0 );

166

itemBoxSizer3->Add(

m_DescrText

, 0, wxGROW|wxALL, 5);

168

wxStaticBox* itemStaticBoxSizer5Static =

new

wxStaticBox(itemCDialog1,

wxID_ANY

,

_

(

"Projects to save:"

));

169

wxStaticBoxSizer* itemStaticBoxSizer5 =

new

wxStaticBoxSizer(itemStaticBoxSizer5Static, wxVERTICAL);

170  m_RootSizer

->Add(itemStaticBoxSizer5, 1, wxGROW|wxALL, 5);

172

wxArrayString m_ProjectListStrings;

173  m_ProjectList

=

new

wxCheckListBox( itemStaticBoxSizer5->GetStaticBox(),

ID_PRJ_LIST

, wxDefaultPosition, wxSize(-1, itemStaticBoxSizer5->GetStaticBox()->ConvertDialogToPixels(wxSize(-1, 48)).y), m_ProjectListStrings, wxLB_EXTENDED );

174

itemStaticBoxSizer5->Add(

m_ProjectList

, 1, wxGROW|wxALL, 5);

176

wxBoxSizer* itemBoxSizer7 =

new

wxBoxSizer(wxHORIZONTAL);

177

itemStaticBoxSizer5->Add(itemBoxSizer7, 0, wxALIGN_RIGHT, 5);

179

wxButton* itemButton8 =

new

wxButton( itemStaticBoxSizer5->GetStaticBox(),

ID_SELECT_CHANGED

,

_

(

"Select Changed"

), wxDefaultPosition, wxDefaultSize, 0 );

180

itemBoxSizer7->Add(itemButton8, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

182

wxButton* itemButton9 =

new

wxButton( itemStaticBoxSizer5->GetStaticBox(),

ID_SELECT_ALL

,

_

(

"Select All"

), wxDefaultPosition, wxDefaultSize, 0 );

183

itemBoxSizer7->Add(itemButton9, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

185

wxButton* itemButton10 =

new

wxButton( itemStaticBoxSizer5->GetStaticBox(),

ID_CLEAR_ALL

,

_

(

"Clear All"

), wxDefaultPosition, wxDefaultSize, 0 );

186

itemBoxSizer7->Add(itemButton10, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

191

wxButton* itemButton12 =

new

wxButton( itemCDialog1, wxID_CANCEL,

_

(

"&Cancel"

), wxDefaultPosition, wxDefaultSize, 0 );

194  m_SaveBtn

=

new

wxButton( itemCDialog1, wxID_SAVE,

_

(

"&Save Selected"

), wxDefaultPosition, wxDefaultSize, 0 );

197

wxButton* itemButton14 =

new

wxButton( itemCDialog1, wxID_NO,

_

(

"&No"

), wxDefaultPosition, wxDefaultSize, 0 );

224  string

s = doc->GetDescr().GetTitle();

225  if

(doc->IsDirty()) {

226

s += (doc->GetFilename().empty() ? +

"* (New)"

:

"* (Modified)"

);

233

FindWindow(wxID_NO)->Hide();

238

wxDialog::OnInitDialog(event);

240  int

w =

m_DescrText

->ConvertDialogToPixels(wxPoint(200, 0)).x;

249

TransferDataFromWindow();

262  if

(doc->IsDirty()) {

267

TransferDataToWindow();

277  for

(

size_t i

= 0;

i

<

n

;

i

++ ) {

281

TransferDataToWindow();

290

TransferDataToWindow();

297

TransferDataFromWindow();

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