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/assembly__sel__panel_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/widgets/loaders/assembly_sel_panel.cpp Source File

44 #include <wx/button.h> 46 #include <wx/bitmap.h> 47 #include <wx/stattext.h> 48 #include <wx/textctrl.h> 49 #include <wx/statbox.h> 50 #include <wx/checkbox.h> 51 #include <wx/msgdlg.h> 57

DEFINE_EVENT_TYPE(wxEVT_ASSEMBLY_CHANGED_EVENT)

84 

wxPanel::Create( parent,

id

, pos,

size

, style );

89

GetSizer()->SetSizeHints(

this

);

116

wxStaticBox* itemStaticBoxSizer2Static =

new

wxStaticBox(itemPanel1,

wxID_ANY

,

_

(

"Assembly to Map IDs to their Correct NCBI Accessions"

));

117

wxStaticBoxSizer* itemStaticBoxSizer2 =

new

wxStaticBoxSizer(itemStaticBoxSizer2Static, wxVERTICAL);

118

itemPanel1->SetSizer(itemStaticBoxSizer2);

120  m_UseMappingCtrl

=

new

wxCheckBox( itemStaticBoxSizer2->GetStaticBox(),

ID_CHECKBOX6

,

_

(

"Use Mapping"

), wxDefaultPosition, wxDefaultSize, 0 );

122

itemStaticBoxSizer2->Add(

m_UseMappingCtrl

, 0, wxALIGN_LEFT|wxALL, wxDLG_UNIT(itemStaticBoxSizer2->GetStaticBox(), wxSize(5, -1)).x);

124

wxStaticText* itemStaticText4 =

new

wxStaticText( itemStaticBoxSizer2->GetStaticBox(), wxID_STATIC,

_

(

"Assembly name:"

), wxDefaultPosition, wxDefaultSize, 0 );

125

itemStaticBoxSizer2->Add(itemStaticText4, 0, wxALIGN_LEFT|wxLEFT|wxRIGHT|wxTOP, wxDLG_UNIT(itemStaticBoxSizer2->GetStaticBox(), wxSize(5, -1)).x);

127

wxBoxSizer* itemBoxSizer5 =

new

wxBoxSizer(wxHORIZONTAL);

128

itemStaticBoxSizer2->Add(itemBoxSizer5, 0, wxGROW|wxALL, 0);

130  m_AssemblyName

=

new

wxStaticText( itemStaticBoxSizer2->GetStaticBox(), wxID_STATIC, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSTATIC_BORDER );

131

itemBoxSizer5->Add(

m_AssemblyName

, 1, wxALIGN_CENTER_VERTICAL|wxALL, wxDLG_UNIT(itemStaticBoxSizer2->GetStaticBox(), wxSize(5, -1)).x);

133

wxButton* itemButton7 =

new

wxButton( itemStaticBoxSizer2->GetStaticBox(),

ID_BUTTON1

,

_

(

"Find Assembly..."

), wxDefaultPosition, wxDefaultSize, 0 );

134

itemBoxSizer5->Add(itemButton7, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, wxDLG_UNIT(itemStaticBoxSizer2->GetStaticBox(), wxSize(5, -1)).x);

136

wxStaticText* itemStaticText8 =

new

wxStaticText( itemStaticBoxSizer2->GetStaticBox(), wxID_STATIC,

_

(

"Accession:"

), wxDefaultPosition, wxDefaultSize, 0 );

137

itemStaticBoxSizer2->Add(itemStaticText8, 0, wxALIGN_LEFT|wxLEFT|wxRIGHT|wxTOP, wxDLG_UNIT(itemStaticBoxSizer2->GetStaticBox(), wxSize(5, -1)).x);

139  m_AssemblyAccession

=

new

wxStaticText( itemStaticBoxSizer2->GetStaticBox(), wxID_STATIC, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT|wxSTATIC_BORDER );

140

itemStaticBoxSizer2->Add(

m_AssemblyAccession

, 0, wxGROW|wxALL, wxDLG_UNIT(itemStaticBoxSizer2->GetStaticBox(), wxSize(5, -1)).x);

142

wxStaticText* itemStaticText10 =

new

wxStaticText( itemStaticBoxSizer2->GetStaticBox(), wxID_STATIC,

_

(

"Description:"

), wxDefaultPosition, wxDefaultSize, 0 );

143

itemStaticBoxSizer2->Add(itemStaticText10, 0, wxALIGN_LEFT|wxLEFT|wxRIGHT|wxTOP, wxDLG_UNIT(itemStaticBoxSizer2->GetStaticBox(), wxSize(5, -1)).x);

145  m_AssemblyDescription

=

new

wxStaticText( itemStaticBoxSizer2->GetStaticBox(), wxID_STATIC,

_

(

" \"\n\n \"\n "

), wxDefaultPosition, wxDLG_UNIT(itemStaticBoxSizer2->GetStaticBox(), wxSize(213, -1)), wxALIGN_LEFT|wxST_NO_AUTORESIZE|wxSTATIC_BORDER );

146

itemStaticBoxSizer2->Add(

m_AssemblyDescription

, 1, wxGROW|wxALL, wxDLG_UNIT(itemStaticBoxSizer2->GetStaticBox(), wxSize(5, -1)).x);

166  if

(!wxPanel::TransferDataToWindow())

203  if

(dlg.ShowModal() == wxID_OK) {

208

wxCommandEvent evt( wxEVT_ASSEMBLY_CHANGED_EVENT );

209

evt.SetEventObject(

this

);

210

GetEventHandler()->ProcessEvent( evt );

230

wxCommandEvent evt( wxEVT_ASSEMBLY_CHANGED_EVENT );

231

evt.SetEventObject(

this

);

232

GetEventHandler()->ProcessEvent( evt );

253  if

(!wxPanel::TransferDataFromWindow())

256  if

(

GetData

().m_UseMapping &&

GetData

().m_AssemblyAcc.empty()) {

257

wxMessageBox(

wxT

(

"Please, select assembly for Mapping."

),

wxT

(

"Error"

),

258

wxOK | wxICON_ERROR,

this

);

EVT_CHECKBOX(ID_CADJUSTFEATURES_CHECKBOX, CAdjustFeaturesForGaps::OnKnownUnknownSelected) EVT_CHECKBOX(ID_CADJUSTFEATURES_CHECKBOX1

wxBitmap GetBitmapResource(const wxString &name)

Retrieves bitmap resources.

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

void OnSelectAssemBtnClick(wxCommandEvent &event)

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON1

CMapAssemblyParams & GetData()

Data access.

wxStaticText * m_AssemblyName

wxStaticText * m_AssemblyDescription

bool Create(wxWindow *parent, wxWindowID id=ID_CASSEMBLYSELPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)

wxCheckBox * m_UseMappingCtrl

void SetUseMapping(bool mapping=true)

virtual bool TransferDataFromWindow()

virtual bool TransferDataToWindow()

void EnableUseMapping(bool enable=true)

wxStaticText * m_AssemblyAccession

void OnUseMappingClick(wxCommandEvent &event)

wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX6

static bool ShowToolTips()

string GetSelectedAssembly(string &name, string &description) const

Get selected assemblies, if any.

string GetAssmSearchTerm() const

Get assembly query search term.

void SetRegistryPath(const string &path)

void SetAssmSearchTerm(const string &str)

Set assembly query search term.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static string TruncateSpaces(const string &str, ETrunc where=eTrunc_Both)

Truncate whitespace in a string.

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