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

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

38 #include <wx/filedlg.h> 39 #include <wx/bmpbuttn.h> 40 #include <wx/hyperlink.h> 74

: m_Workbench(0), m_Simple(

false

)

80

: m_Workbench(workbench), m_Simple(

false

)

88

: m_Workbench(workbench), m_Simple(simple)

102 

wxPanel::Create( parent,

id

, pos,

size

, style );

106

GetSizer()->SetSizeHints(

this

);

155

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

156

itemDialog1->SetSizer(itemBoxSizer2);

158

wxBoxSizer* itemBoxSizer5 =

new

wxBoxSizer(wxHORIZONTAL);

159

itemBoxSizer2->Add(itemBoxSizer5, 0, wxGROW|wxALL, 5);

163  strings

.Add(

_

(

"Do not match case"

));

165

itemBoxSizer5->Add(

m_FindModeCtrl

, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5);

169

itemBoxSizer5->Add(

m_FindText2

, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5);

171

wxBitmapButton* itemButton9 =

new

wxBitmapButton(itemDialog1,

ID_GENERIC_REPORT_FIND2

, wxArtProvider::GetBitmap(

wxT

(

"text_panel::search"

)));

172

itemBoxSizer5->Add(itemButton9, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

176

itemBoxSizer5->Add(

m_RefreshBtn2

, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5);

178

wxButton* itemButton10 =

new

wxButton(itemDialog1,

ID_GENERIC_REPORT_CLOSE2

,

_

(

"Close"

), wxDefaultPosition, wxDefaultSize, 0);

179

itemBoxSizer5->Add(itemButton10, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5);

181

itemBoxSizer5->AddStretchSpacer();

182

wxButton* itemButton11 =

new

wxButton(itemDialog1,

ID_GENERIC_REPORT_EXPORT

,

_

(

"Export..."

), wxDefaultPosition, wxDefaultSize, 0);

183

itemBoxSizer5->Add(itemButton11, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5);

190

itemBoxSizer2->Add(

m_RTCtrl

, 1, wxGROW|wxALL, 5);

193

wxBoxSizer* itemBoxSizer4 =

new

wxBoxSizer(wxHORIZONTAL);

194

itemBoxSizer2->Add(itemBoxSizer4, 0, wxGROW|wxALL, 5);

197

itemBoxSizer4->Add(

m_FindText

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

199

wxBitmapButton* itemButton5 =

new

wxBitmapButton(itemDialog1,

ID_GENERIC_REPORT_FIND

, wxArtProvider::GetBitmap(

wxT

(

"text_panel::search"

)));

200

itemBoxSizer4->Add(itemButton5, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5);

203

itemBoxSizer4->Add(

m_RefreshBtn

, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5);

205

wxButton* itemButton8 =

new

wxButton(itemDialog1,

ID_GENERIC_REPORT_CLOSE

,

_

(

"Close"

), wxDefaultPosition, wxDefaultSize, 0);

206

itemBoxSizer4->Add(itemButton8, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5);

208  m_HelpButton

=

new

wxHyperlinkCtrl( itemDialog1, wxID_HELP,

_

(

"Help"

), wxEmptyString, wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE );

209  m_HelpButton

->SetForegroundColour(wxColour(192, 192, 192));

210

itemBoxSizer4->Add(

m_HelpButton

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

227  m_RTCtrl

->SetInitialSize(wxSize(800*font.GetPointSize()/10,400));

264

wxTextAttr attr(

m_RTCtrl

->GetDefaultStyle());

265

attr.SetLineSpacing(spacing);

353  if

(

val

!= string::npos) {

381  if

(

val

!= string::npos) {

393

GetParent()->Destroy();

398

wxFileDialog dlg(

this

,

wxT

(

"Select a file"

),

m_WorkDir

,

wxT

(

""

),

400

wxFD_SAVE | wxFD_OVERWRITE_PROMPT);

402  if

(dlg.ShowModal() != wxID_OK)

405

wxString path = dlg.GetPath();

406  if

(!path.IsEmpty()) {

445  if

(event.GetActive())

470

wxTextCtrl::ShowPosition(pos);

476  event

.StopPropagation();

static wxString GetDialogFilter(EFileType fileType)

void OnKillFocus(wxFocusEvent &event)

void OnScrollWinTop(wxScrollWinEvent &event)

void OnScroll(wxScrollWinEvent &event)

void ShowPosition(long pos)

void OnSetFocus(wxFocusEvent &event)

void OnActivate(wxActivateEvent &event)

void OnIdle(wxIdleEvent &)

void OnSetChildFocus(wxChildFocusEvent &event)

void OnGenericReportExportClick(wxCommandEvent &event)

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_GENERIC_REPORT_EXPORT

void OnGenericReportFindClick(wxCommandEvent &event)

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_GENERIC_REPORT_FIND

void SetHelpUrl(const wxString &url)

@ ID_GENERIC_REPORT_CLOSE2

@ ID_GENERIC_REPORT_FIND2

@ ID_GENERIC_REPORT_CLOSE

@ ID_GENERIC_REPORT_TEXT_FIND2

@ ID_GENERIC_REPORT_EXPORT

@ ID_GENERIC_REPORT_TEXT_FIND

bool Create(wxWindow *parent, wxWindowID id=ID_CGENERICPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)

Creation.

void SetText(const wxString &text)

void OnGenRptRefreshClick2(wxCommandEvent &event)

void OnCloseButton(wxCommandEvent &event)

void SetFontAsTextPanel()

void OnGenericReportFindClick2(wxCommandEvent &event)

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_GENERIC_REPORT_FIND2

~CGenericPanel()

Destructor.

void SetRefresh(IRefreshCntrl *refresh)

wxChoice * m_FindModeCtrl

void SetLineSpacing(int spacing)

static bool ShowToolTips()

Should we show tooltips?

void OnGenRptRefreshClick(wxCommandEvent &event)

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_GEN_RPT_REFRESH

void CreateControls()

Creates the controls and sizers.

wxHyperlinkCtrl * m_HelpButton

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

wxBitmap GetBitmapResource(const wxString &name)

Retrieves bitmap resources.

void Init()

Initialises member variables.

CGenericPanel()

Constructors.

IRefreshCntrl * m_Refresh

static CGuiRegistry & GetInstance()

access the application-wide singleton

static wxFont GetFont(int size)

virtual void RefreshText(CGenericPanel *text)=0

IWorkbench is the central interface in the application framework.

std::ofstream out("events_result.xml")

main entry point for tests

static const char *const strings[]

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

IO_PREFIX::ofstream CNcbiOfstream

Portable alias for ofstream.

static bool IsBlank(const CTempString str, SIZE_TYPE pos=0)

Check if a string is blank (has no text).

static SIZE_TYPE Find(const CTempString str, const CTempString pattern, ECase use_case=eCase, EDirection direction=eForwardSearch, SIZE_TYPE occurrence=0)

Find the pattern in the string.

ECase

Which type of string comparison.

@ eForwardSearch

Search in a forward direction.

static void text(MDB_val *v)

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

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