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

NCBI C++ ToolKit: src/gui/widgets/seq_graphic/wx_seqmarker_set_dlg.cpp Source File

37 #include <wx/bitmap.h> 75 

SetExtraStyle(wxWS_EX_BLOCK_EVENTS|wxDIALOG_EX_CONTEXTHELP);

76

wxDialog::Create( parent,

id

, caption, pos,

size

, style );

81

GetSizer()->SetSizeHints(

this

);

109

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

110

itemDialog1->SetSizer(itemBoxSizer2);

112

wxFlexGridSizer* itemFlexGridSizer3 =

new

wxFlexGridSizer(0, 2, 0, 0);

113

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

115

wxStaticText* itemStaticText4 =

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

"Name:"

), wxDefaultPosition, wxDefaultSize, 0 );

116

itemFlexGridSizer3->Add(itemStaticText4, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

119

itemFlexGridSizer3->Add(

m_MarkerName

, 1, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);

121

wxStaticText* itemStaticText6 =

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

"Position:"

), wxDefaultPosition, wxDefaultSize, 0 );

122

itemFlexGridSizer3->Add(itemStaticText6, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

124  m_MarkerPos

=

new

wxTextCtrl( itemDialog1,

ID_TEXTCTRL1

, wxEmptyString, wxDefaultPosition, wxSize(200, -1), 0 );

125

itemFlexGridSizer3->Add(

m_MarkerPos

, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

127

wxStaticText* itemStaticText8 =

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

"Color:"

), wxDefaultPosition, wxDefaultSize, 0 );

128

itemFlexGridSizer3->Add(itemStaticText8, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

130

wxColourPickerCtrl* itemColourPickerCtrl9 =

new

wxColourPickerCtrl( itemDialog1,

ID_COLOURCTRL

);

131

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

133

wxStdDialogButtonSizer* itemStdDialogButtonSizer10 =

new

wxStdDialogButtonSizer;

135

itemBoxSizer2->Add(itemStdDialogButtonSizer10, 0, wxALIGN_RIGHT|wxALL, 5);

136

wxButton* itemButton11 =

new

wxButton( itemDialog1, wxID_OK,

_

(

"&OK"

), wxDefaultPosition, wxDefaultSize, 0 );

137

itemButton11->SetDefault();

138

itemStdDialogButtonSizer10->AddButton(itemButton11);

140

wxButton* itemButton12 =

new

wxButton( itemDialog1, wxID_CANCEL,

_

(

"&Cancel"

), wxDefaultPosition, wxDefaultSize, 0 );

141

itemStdDialogButtonSizer10->AddButton(itemButton12);

143

itemStdDialogButtonSizer10->Realize();

199  return

(

m_ToPos

!= (

unsigned int

)-1);

216  string

goto_from, goto_to;

218  bool

k_from =

false

, m_from =

false

;

219  bool

k_to =

false

, m_to =

false

;

221  bool

bad_input =

false

;

226  case '0'

:

case '1'

:

case '2'

:

case '3'

:

227  case '4'

:

case '5'

:

case '6'

:

case '7'

:

228  case '8'

:

case '9'

:

229

pos_e ? goto_to += ch : goto_from += ch;

231  case 'k'

:

case 'K'

:

232

pos_e ? k_to =

true

: k_from =

true

;

234  case 'm'

:

case 'M'

:

235

pos_e ? m_to =

true

: m_from =

true

;

237  case ':'

:

case '-'

:

case '.'

:

249  if

(bad_input || goto_from==

""

) {

250  NcbiErrorBox

(

"Not a valid sequence position"

,

"Set Marker To Position"

);

255  if

(k_from) goto_from +=

"000"

;

256  else if

(m_from) goto_from +=

"000000"

;

258  if

(k_to) goto_to +=

"000"

;

259  else if

(m_to) goto_to +=

"000000"

;

265  if

(goto_to !=

""

) {

276  NcbiErrorBox

(

"Not a valid sequence position"

,

"Set Marker To Position"

);

class CRgbaColor provides a simple abstraction for managing colors.

TSeqPos GetMarkerPos() const

wxBitmap GetBitmapResource(const wxString &name)

void SetMarkerRange(TSeqRange range)

void SetDlgTitle(const string &title)

void OnOkClick(wxCommandEvent &event)

const CRgbaColor GetMarkerColor() const

wxTextCtrl * m_MarkerName

void SetMarkerPos(TSeqPos pos)

static bool ShowToolTips()

wxIcon GetIconResource(const wxString &name)

void SetMarkerColor(const CRgbaColor &color)

bool CreateX(wxWindow *parent, wxWindowID id=10013, const wxString &caption=_("New Marker"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)

TSeqRange GetMarkerRange() const

void SetMarkerName(const string &name)

string GetMarkerName() const

unsigned int TSeqPos

Type for sequence locations and lengths.

#define ITERATE(Type, Var, Cont)

ITERATE macro to sequence through container elements.

void NcbiErrorBox(const string &message, const string &title="Error")

specialized Message Box function for reporting critical errors

position_type GetToOpen(void) const

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static int StringToInt(const CTempString str, TStringToNumFlags flags=0, int base=10)

Convert string to int.

static string IntToString(int value, TNumToStringFlags flags=0, int base=10)

Convert int to string.

static enable_if< is_arithmetic< TNumeric >::value||is_convertible< TNumeric, Int8 >::value, string >::type NumericToString(TNumeric value, TNumToStringFlags flags=0, int base=10)

Convert numeric value to string.

TFrom GetFrom(void) const

Get the From member data.

unsigned int

A callback function used to compare two keys in a database.

where boath are integers</td > n< td ></td > n</tr > n< tr > n< td > tse</td > n< td > optional</td > n< td > String</td > n< td class=\"description\"> TSE option controls what blob is orig

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

const GenericPointer< typename T::ValueType > T2 value

double r(size_t dimension_, const Int4 *score_, const double *prob_, double theta_)

static void SetTitle(CRef< CSeq_entry > entry, string title)

wxString ToWxString(const string &s)

string ToStdString(const wxString &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