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

NCBI C++ ToolKit: src/algo/structure/wx_tools/wx_tools.cpp Source File

45 #define SEND_CHANGED_EVENT do { \ 46  wxCommandEvent notify(WX_TOOLS_NOTIFY_CHANGED); \ 47  AddPendingEvent(notify); } while (0) 83  const

wxValidator& validator,

const

wxString& name) :

84

wxTextCtrl(parent,

id

,

value

, pos,

size

, style | wxTE_PROCESS_ENTER, validator, name),

92

SetBackgroundColour(*wxWHITE);

94

SetBackgroundColour(*wxRED);

114  if

(!GetValue().ToLong(&longVal))

return false

;

115

intVal = (

int

) longVal;

125  int min

,

int max

,

int

increment,

int

initial,

126  const

wxPoint& textCtrlPos,

const

wxSize& textCtrlSize,

long

textCtrlStyle,

127  const

wxPoint& spinCtrlPos,

const

wxSize& spinCtrlSize) :

128

minVal(

min

), maxVal(

max

), incrVal(increment)

138  if

(initial <

min

) initial =

min

;

139  if

(initial >

max

) initial =

max

;

146  if

(value < minVal || value >

maxVal

)

return false

;

149

strVal.Printf(

wxT

(

"%i"

),

value

);

176  if

(!

iTextCtrl

->GetValue().ToLong(&longValue))

return false

;

184  if

(!

iTextCtrl

->GetValue().ToLong(&longValue))

return false

;

186  ERR_POST

(

Warning

<<

"IntegerSpinCtrl::GetUnsignedInteger() - possible signed/unsigned mismatch"

);

187

*

value

= (

unsigned int

) longValue;

203  const

wxValidator& validator,

const

wxString& name) :

204

wxTextCtrl(parent,

id

,

value

, pos,

size

, style | wxTE_PROCESS_ENTER, validator, name),

212

SetBackgroundColour(*wxWHITE);

214

SetBackgroundColour(*wxRED);

232  return

(GetValue().ToDouble(&doubleVal) && doubleVal >=

minVal

&& doubleVal <=

maxVal

);

241  double min

,

double max

,

double

increment,

double

initial,

242  const

wxPoint& textCtrlPos,

const

wxSize& textCtrlSize,

long

textCtrlStyle,

243  const

wxPoint& spinCtrlPos,

const

wxSize& spinCtrlSize) :

244

minVal(

min

), maxVal(

max

), incrVal(increment)

254  if

(initial <

min

) initial =

min

;

255  if

(initial >

max

) initial =

max

;

262  if

(value < minVal || value >

maxVal

)

return false

;

265

strVal.Printf(

wxT

(

"%g"

),

value

);

305  const

wxString& message,

const

wxString& title,

306  double min

,

double max

,

double

increment,

double

initial) :

307

wxDialog(parent, -1, title, wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE)

310

wxPanel *panel =

new

wxPanel(

this

, -1);

311

wxBoxSizer *item0 =

new

wxBoxSizer(wxVERTICAL);

312

wxStaticText *item1 =

new

wxStaticText(panel, -1, message, wxDefaultPosition, wxDefaultSize, 0);

313

item0->Add(item1, 0, wxALIGN_CENTRE|wxALL, 5);

314

wxFlexGridSizer *

grid

=

new

wxFlexGridSizer(1, 0, 0, 0);

315  grid

->AddGrowableCol(1);

317

buttonOK =

new

wxButton(panel, -1,

wxT

(

"OK"

), wxDefaultPosition, wxDefaultSize, 0);

318  grid

->Add(buttonOK, 0, wxGROW|wxALIGN_CENTER_HORIZONTAL|wxRIGHT, 5);

321  min

,

max

, increment, initial,

322

wxDefaultPosition, wxSize(80, SPIN_CTRL_HEIGHT), 0,

323

wxDefaultPosition, wxSize(-1, SPIN_CTRL_HEIGHT));

324  grid

->Add(fpSpinCtrl->GetTextCtrl(), 0, wxGROW|wxALIGN_CENTER_VERTICAL, 5);

327

item0->Add(

grid

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

328

panel->SetAutoLayout(

true

);

329

panel->SetSizer(item0);

332

item0->SetSizeHints(

this

);

349  if

(event.GetEventObject() ==

buttonOK

) {

virtual void OnSpinButtonDown(wxSpinEvent &event)=0

bool GetDouble(double *value) const

void OnSpinButtonDown(wxSpinEvent &event)

FloatingPointSpinCtrl(wxWindow *parent, double min, double max, double increment, double initial, const wxPoint &textCtrlPos, const wxSize &textCtrlSize, long textCtrlStyle, const wxPoint &spinCtrlPos, const wxSize &spinCtrlSize)

void OnSpinButtonUp(wxSpinEvent &event)

FloatingPointTextCtrl * fpTextCtrl

bool SetDouble(double value)

void SetAllowedRange(double min, double max)

bool IsValidDouble(void) const

void OnChange(wxCommandEvent &event)

void DoValidate(wxCommandEvent &event)

FloatingPointSpinCtrl * fpSpinCtrl

~GetFloatingPointDialog(void)

void OnButton(wxCommandEvent &event)

void OnCloseWindow(wxCloseEvent &event)

IntegerTextCtrl * iTextCtrl

IntegerSpinCtrl(wxWindow *parent, int min, int max, int increment, int initial, const wxPoint &textCtrlPos, const wxSize &textCtrlSize, long textCtrlStyle, const wxPoint &spinCtrlPos, const wxSize &spinCtrlSize)

bool GetUnsignedInteger(unsigned int *value) const

bool GetInteger(int *value) const

void OnSpinButtonUp(wxSpinEvent &event)

bool SetInteger(int value)

void OnSpinButtonDown(wxSpinEvent &event)

void SetAllowedRange(int min, int max, int incr)

bool IsValidInteger(void) const

void DoValidate(wxCommandEvent &event)

void OnChange(wxCommandEvent &event)

void OnSpinButtonUp(wxSpinEvent &event)

void OnSpinButtonDown(wxSpinEvent &event)

Include a standard set of the NCBI C++ Toolkit most basic headers.

#define test(a, b, c, d, e)

#define ERR_POST(message)

Error posting with file, line number information but without error codes.

void Warning(CExceptionArgs_Base &args)

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

unsigned int

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

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

const GenericPointer< typename T::ValueType > T2 value


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