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

NCBI C++ ToolKit: src/app/cn3d/multitext_dialog.cpp Source File

54

wxDialog(parent,

id

, title, wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER),

59  int

posX, posY, sizeW, sizeH;

65  ERRORMSG

(

"Failed to get dialog position+size from registry, using default"

);

66

SetSize(100, 100, 500, 400);

68

SetSize(posX, posY, sizeW, sizeH);

101

textCtrl =

new

wxTextCtrl(

this

, -1,

""

, wxDefaultPosition, wxSize(500, 450), wxTE_MULTILINE | wxHSCROLL);

102

bDone =

new

wxButton(

this

, -1,

"Done"

);

103

bRevert =

new

wxButton(

this

, -1,

"Revert"

);

105

wxBoxSizer* textSizer =

new

wxBoxSizer(wxVERTICAL | wxHORIZONTAL);

106

textSizer->Add(textCtrl, 1, wxEXPAND | wxALL, 5);

108

wxBoxSizer* buttonSizer =

new

wxBoxSizer(wxHORIZONTAL);

109

buttonSizer->Add(bRevert);

110

buttonSizer->Add(bDone);

112

wxBoxSizer* mainSizer =

new

wxBoxSizer(wxVERTICAL);

113

mainSizer->Add(textSizer, wxSizerFlags(1).Expand().Border(wxALL, 5));

114

mainSizer->Add(buttonSizer, 0, wxALIGN_RIGHT | wxRIGHT | wxBOTTOM, 10);

116

this->SetSizer(mainSizer);

117

SetSizerAndFit(mainSizer);

121

SetAutoLayout(

true

);

129  int

posX, posY, sizeW, sizeH;

130

GetPosition(&posX, &posY);

131

GetSize(&sizeW, &sizeH);

137  ERRORMSG

(

"Failed to set dialog position+size in registry"

);

177  bool

retval = Show(show);

185  if

(event.GetEventObject() ==

bDone

)

187  else if

(event.GetEventObject() ==

bRevert

)

198  if

(!lines)

return false

;

200  for

(

int i

=0;

i

<

textCtrl

->GetNumberOfLines(); ++

i

)

202  if

(i < textCtrl->GetNumberOfLines() - 1 ||

textCtrl

->GetLineText(

i

).size() > 0)

209

singleString->erase();

210  for

(

int i

=0;

i

<

textCtrl

->GetNumberOfLines(); ++

i

) {

212  if

(i < textCtrl->GetNumberOfLines() - 1 ||

textCtrl

->GetLineText(

i

).size() > 0) {

213  if

(

i

> 0) singleString->append(1,

' '

);

214

singleString->append(

WX_TO_STD

(

textCtrl

->GetLineText(

i

).Strip(wxString::both)));

virtual void DialogDestroyed(const MultiTextDialog *destroyed)=0

virtual void DialogTextChanged(const MultiTextDialog *changed)=0

const TextLines initialText

bool GetLine(std::string *singleString) const

void SetToInitialText(void)

void OnButton(wxCommandEvent &event)

bool GetLines(TextLines *lines) const

std::vector< std::string > TextLines

void OnCloseWindow(wxCloseEvent &event)

MultiTextDialogOwner * myOwner

void OnTextChange(wxCommandEvent &event)

int ShowModalDialog(void)

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

#define END_SCOPE(ns)

End the previously defined scope.

#define BEGIN_SCOPE(ns)

Define a new scope.


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