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

NCBI C++ ToolKit: src/gui/widgets/edit/gene_panel.cpp Source File

42 #include <wx/stattext.h> 43 #include <wx/textctrl.h> 44 #include <wx/bitmap.h> 58

IMPLEMENT_DYNAMIC_CLASS(

CGenePanel

, wxPanel )

82

wxWindowID

id

,

const

wxPoint& pos,

const

wxSize&

size

,

long

style )

99 

wxPanel::Create( parent,

id

, pos,

size

, style );

104

GetSizer()->SetSizeHints(

this

);

143

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

144

itemPanel1->SetSizer(itemBoxSizer2);

146

wxFlexGridSizer* itemFlexGridSizer3 =

new

wxFlexGridSizer(0, 2, 0, 0);

147

itemBoxSizer2->Add(itemFlexGridSizer3, 0, wxALIGN_LEFT|wxALL, 5);

149

wxStaticText* itemStaticText4 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Locus"

), wxDefaultPosition, wxDefaultSize, 0 );

150

itemFlexGridSizer3->Add(itemStaticText4, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 1);

152

wxTextCtrl* itemTextCtrl5 =

new

wxTextCtrl( itemPanel1,

ID_TEXT1_GENEPNL

, wxEmptyString, wxDefaultPosition, wxSize(itemPanel1->ConvertDialogToPixels(wxSize(150, -1)).x, -1), 0 );

153

itemFlexGridSizer3->Add(itemTextCtrl5, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 1);

155

wxStaticText* itemStaticText6 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Allele"

), wxDefaultPosition, wxDefaultSize, 0 );

156

itemFlexGridSizer3->Add(itemStaticText6, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 1);

158

wxTextCtrl* itemTextCtrl7 =

new

wxTextCtrl( itemPanel1,

ID_TEXT2_GENEPNL

, wxEmptyString, wxDefaultPosition, wxSize(itemPanel1->ConvertDialogToPixels(wxSize(150, -1)).x, -1), 0 );

159

itemFlexGridSizer3->Add(itemTextCtrl7, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 1);

161

wxStaticText* itemStaticText8 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Description"

), wxDefaultPosition, wxDefaultSize, 0 );

162

itemFlexGridSizer3->Add(itemStaticText8, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 1);

164

wxTextCtrl* itemTextCtrl9 =

new

wxTextCtrl( itemPanel1,

ID_TEXT3_GENEPNL

, wxEmptyString, wxDefaultPosition, wxSize(itemPanel1->ConvertDialogToPixels(wxSize(150, -1)).x, -1), 0 );

165

itemFlexGridSizer3->Add(itemTextCtrl9, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 1);

167

wxStaticText* itemStaticText12 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Locus Tag"

), wxDefaultPosition, wxDefaultSize, 0 );

168

itemFlexGridSizer3->Add(itemStaticText12, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 1);

170

wxTextCtrl* itemTextCtrl13 =

new

wxTextCtrl( itemPanel1,

ID_TEXT5_GENEPNL

, wxEmptyString, wxDefaultPosition, wxSize(itemPanel1->ConvertDialogToPixels(wxSize(150, -1)).x, -1), 0 );

171

itemFlexGridSizer3->Add(itemTextCtrl13, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 1);

173

wxStaticText* itemStaticText10 =

new

wxStaticText(itemPanel1, wxID_STATIC,

_

(

"Map Location"

), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT);

174

itemFlexGridSizer3->Add(itemStaticText10, 0, wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL | wxALL, 1);

176

wxTextCtrl* itemTextCtrl11 =

new

wxTextCtrl(itemPanel1,

ID_TEXT4_GENEPNL

, wxEmptyString, wxDefaultPosition, wxSize(itemPanel1->ConvertDialogToPixels(wxSize(150, -1)).x, -1), 0);

177

itemFlexGridSizer3->Add(itemTextCtrl11, 0, wxALIGN_CENTER_HORIZONTAL | wxALIGN_CENTER_VERTICAL | wxALL, 1);

179

objects::CGene_ref *gene =

dynamic_cast<

objects::CGene_ref*

>

(

m_Object

);

180  if

(gene->IsSetLocus())

181

itemTextCtrl5->SetValue(gene->GetLocus());

182  if

(gene->IsSetAllele())

183

itemTextCtrl7->SetValue(gene->GetAllele());

184  if

(gene->IsSetDesc())

185

itemTextCtrl9->SetValue(gene->GetDesc());

186  if

(gene->IsSetLocus_tag())

187

itemTextCtrl13->SetValue(gene->GetLocus_tag());

188  if

(gene->IsSetMaploc()) {

189

itemTextCtrl11->SetValue(gene->GetMaploc());

191

itemTextCtrl11->Show(

false

);

192

itemStaticText10->Show(

false

);

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

Creation.

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

~CGenePanel()

Destructor.

wxBitmap GetBitmapResource(const wxString &name)

Retrieves bitmap resources.

void CreateControls()

Creates the controls and sizers.

void Init()

Initialises member variables.

CGenePanel()

Constructors.

static bool ShowToolTips()

Should we show tooltips?

Base class for all serializable objects.

virtual const CTypeInfo * GetThisTypeInfo(void) const =0

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

const string & GetName(void) const

Get name of this type.

const struct ncbi::grid::netcache::search::fields::SIZE size


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