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

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

40 #include <wx/stattext.h> 41 #include <wx/scrolwin.h> 42 #include <wx/button.h> 91 

wxPanel::Create( parent,

id

, pos,

size

, style );

96

GetSizer()->SetSizeHints(

this

);

134

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

135

itemPanel1->SetSizer(itemBoxSizer2);

137

wxBoxSizer* itemBoxSizer3 =

new

wxBoxSizer(wxHORIZONTAL);

138

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

140

wxStaticText* itemStaticText4 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"First name"

), wxDefaultPosition, wxSize(80, -1), 0 );

141

itemBoxSizer3->Add(itemStaticText4, 0, wxALIGN_LEFT|wxALL, 5);

143

wxStaticText* itemStaticText5 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Middle initials"

), wxDefaultPosition, wxSize(90, -1), 0 );

144

itemBoxSizer3->Add(itemStaticText5, 0, wxALIGN_LEFT |wxALL, 5);

146

wxStaticText* itemStaticText6 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Last name"

), wxDefaultPosition, wxSize(90, -1), 0 );

147

itemBoxSizer3->Add(itemStaticText6, 0, wxALIGN_LEFT |wxALL, 5);

149

wxStaticText* itemStaticText7 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Suffix"

), wxDefaultPosition, wxSize(170, -1), 0 );

150

itemBoxSizer3->Add(itemStaticText7, 0, wxALIGN_LEFT |wxALL, 5);

153

itemBoxSizer2->Add(

m_ScrolledWindow

, 0, wxALIGN_CENTER_HORIZONTAL |wxALL, 5);

156

wxButton* itemButton11 =

new

wxButton( itemPanel1,

ID_IMPORTAUTHORSBTN

,

_

(

"Import authors"

), wxDefaultPosition, wxDefaultSize, 0 );

157

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

159  m_Sizer

=

new

wxFlexGridSizer(0, 2, 0, 0);

162  for

(

size_t

index = 0; index <

m_Rows

; ++index) {

182  m_Sizer

->Add(

row

, 0, wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL | wxALL, 0);

184

itemHyperLink->SetVisitedColour(itemHyperLink->GetNormalColour());

185  m_Sizer

->Add(itemHyperLink, 0, wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT, 0);

193  if

(wnd ==

nullptr

) {

197

wxSizerItem* auth =

nullptr

;

198  for

(wxSizerItemList::iterator it = itemList.begin(); it != itemList.end(); ++it) {

199

wxWindow* child = (**it).GetWindow();

211 static bool s_IsLastRow

(wxWindow* wnd, wxSizerItemList& itemList)

213  bool

is_last =

false

;

217  for

(wxSizerItemList::iterator it = itemList.begin(); it != itemList.end(); ++it)

219

wxWindow* child = (**it).GetWindow();

229  if

(auth1 && is_last)

245

wxSizerItemList& itemList =

m_Sizer

->GetChildren();

292

wxSizerItemList::iterator node =

m_Sizer

->GetChildren().begin();

293  for

(; node !=

m_Sizer

->GetChildren().end(); ++node) {

294  if

(wxWindow *w = (*node)->GetWindow()) {

296  if

(singleauth_panel) {

297

m_AuthorNames.push_back(

305  return

m_AuthorNames;

315  if

(event.GetURL() !=

wxT

(

"delete"

)) {

319  DeleteRow

((wxWindow*)event.GetEventObject());

327  while

(

m_Sizer

->GetItemCount() > 0) {

329  m_Sizer

->GetItem(pos)->DeleteWindows();

335  for

(

auto

& it : non_const_authlist.

SetNames

().SetStd()) {

340

wxPanel::TransferDataToWindow();

348

wxSizerItemList::iterator it =

m_Sizer

->GetChildren().begin();

349  while

(it !=

m_Sizer

->GetChildren().end()) {

350

wxWindow *win = (**it).GetWindow();

352  if

(auth && link == win)

363  row

->MoveBeforeInTabOrder(link);

371

wxSizerItemList::iterator it =

m_Sizer

->GetChildren().begin();

372  while

(it !=

m_Sizer

->GetChildren().end())

374

wxWindow *win = (**it).GetWindow();

376  if

(auth && link == win)

383  while

(it !=

m_Sizer

->GetChildren().end())

385

wxWindow *win = (**it).GetWindow();

395  if

(index ==

m_Sizer

->GetChildren().size()) {

404  row

->MoveAfterInTabOrder(link);

410  m_Sizer

->Insert(index,

row

, 0, wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL | wxALL, 0);

412

itemHyperLink->SetVisitedColour(itemHyperLink->GetNormalColour());

413  m_Sizer

->Insert(index + 1, itemHyperLink, 0, wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT, 0);

424

wxSizerItemList& itemList =

m_Sizer

->GetChildren();

427

wxSizerItemList::iterator it = itemList.begin();

428

wxSizerItemList::iterator before = itemList.end();

430  while

(it != itemList.end())

435  if

(

row

== row_num - 1)

441  if

(row_num ==

row

- 1)

444  if

(before != itemList.end())

446

wxSizerItemList::iterator after = before;

448  while

(after != itemList.end())

456  if

(after != itemList.end())

458  swap

(*before, *after);

459

(**before).GetWindow()->MoveBeforeInTabOrder((**after).GetWindow());

474  for

(wxSizerItemList::iterator it = itemList.begin(); it != itemList.end(); ++it)

476

wxWindow* child = (**it).GetWindow();

@Auth_list.hpp User-defined methods of the data storage class.

wxScrolledWindow * m_ScrolledWindow

void DeleteRow(wxWindow *wnd)

wxFlexGridSizer * m_Sizer

void ImportAuthorsFromFile()

void OnImportAuthorsClicked(wxCommandEvent &event)

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_IMPORTAUTHORSBTN

virtual wxSizerItem * x_FindSingleAuthor(wxWindow *wnd, wxSizerItemList &itemList)

virtual void SetAuthors(const objects::CAuth_list &auth_list)

virtual void x_InsertRowtoWindow(wxWindow *row, size_t index)

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

Creation.

virtual int x_FindRow(wxWindow *wnd, wxSizerItemList &itemList)

void OnDelete(wxHyperlinkEvent &event)

virtual void InsertAuthorAfter(wxWindow *link)

TAuthorsVec GetAuthorNames() const

@end CMacroAuthorNamesPanel event handler declarations

~CMacroAuthorNamesPanel()

Destructor.

void CreateControls()

Creates the controls and sizers.

virtual void x_MoveRowUp(int row_num)

virtual void x_AddRowToWindow(wxWindow *row)

CMacroAuthorNamesPanel()

Constructors.

void Init()

Initialises member variables.

virtual void AddLastAuthor(wxWindow *link)

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

wxBitmap GetBitmapResource(const wxString &name)

Retrieves bitmap resources.

vector< TNameTuple > TAuthorsVec

@ ID_MACROAUTHORSSCROLLEDWND

virtual void InsertAuthorBefore(wxWindow *link)

static bool ShowToolTips()

Should we show tooltips?

wxTextCtrl * m_FirstNameCtrl

wxTextCtrl * m_MiddleInitial

wxTextCtrl * m_LastNameCtrl

void swap(NCBI_NS_NCBI::pair_base_member< T1, T2 > &pair1, NCBI_NS_NCBI::pair_base_member< T1, T2 > &pair2)

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

bool IsSetNames(void) const

Check if a value has been assigned to Names data member.

void SetNames(TNames &value)

Assign a value to Names data member.

const TNames & GetNames(void) const

Get the Names member data.

bool IsStd(void) const

Check if variant Std is selected.

static bool s_IsLastRow(wxWindow *wnd, wxSizerItemList &itemList)

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

#define row(bind, expected)

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