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

NCBI C++ ToolKit: src/gui/widgets/wx/test_clients.cpp Source File

47 #include <wx/artprov.h> 48 #include <wx/imaglist.h> 51

IMPLEMENT_DYNAMIC_CLASS( ncbi::CClockPanelWMClient, wxPanel )

77

wxPanel::Create( parent,

id

, pos,

size

, style );

89  LOG_POST

(

"~CClockPanelWMClient()"

);

97

SetName(

wxT

(

"Clock"

));

105

this->SetToolTip(

wxT

(

"Clock View tooltip"

));

106

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

107

itemPanel1->SetSizer(itemBoxSizer2);

109  long

style = wxHW_SCROLLBAR_AUTO | wxNO_BORDER |wxHSCROLL | wxVSCROLL;

111

wxDefaultSize, style);

124  return "Clock WM Client"

;

155

wxMenu* menu =

new

wxMenu();

156

wxMenu* edit_submenu =

new

wxMenu;

158

edit_submenu->Append(wxID_PASTE,

wxT

(

"Paste"

),

wxT

(

""

), wxITEM_NORMAL);

159

edit_submenu->Append(wxID_COPY,

wxT

(

"Copy"

),

wxT

(

""

), wxITEM_NORMAL);

160

edit_submenu->Append(

wxID_ANY

,

wxT

(

"Clock"

),

wxT

(

""

), wxITEM_NORMAL);

161

edit_submenu->Append(wxID_CUT,

wxT

(

"Cut"

),

wxT

(

""

), wxITEM_NORMAL);

163

menu->Append(

wxID_ANY

,

wxT

(

"Edit"

), edit_submenu);

190

ncbi::CTime time(ncbi::CTime::eCurrent);

191  string

s = time.AsString();

193  string

html =

"<h1>My Clock</h1></br><p>Local time : <b>"

+ s +

"</b>.</p>"

;

202  bool ok

= wxPanel::Show(show);

214

: wxHtmlWindow(parent,

wxID_ANY

, wxDefaultPosition, wxSize(0,0), wxNO_BORDER)

217

wxString s =

wxT

(

"<h1>"

) + title +

wxT

(

"</h1><p> This is test view.</p>"

);

227

: wxTreeCtrl(parent,

wxID_ANY

, wxDefaultPosition, wxSize(0,0), wxTR_HAS_BUTTONS | wxNO_BORDER)

229

SetWindowStyle(wxTR_DEFAULT_STYLE | wxNO_BORDER);

231

wxImageList* imglist =

new

wxImageList(16, 16,

true

, 2);

232

imglist->Add(wxArtProvider::GetBitmap(wxART_FOLDER, wxART_OTHER, wxSize(16,16)));

233

imglist->Add(wxArtProvider::GetBitmap(wxART_NORMAL_FILE, wxART_OTHER, wxSize(16,16)));

234

AssignImageList(imglist);

236

wxTreeItemId root = AddRoot(

wxT

(

"wxAUI Project"

), 0);

237

wxArrayTreeItemIds items;

239

items.Add(AppendItem(root,

wxT

(

"Item 1"

), 0));

240

items.Add(AppendItem(root,

wxT

(

"Item 2"

), 0));

241

items.Add(AppendItem(root,

wxT

(

"Item 3"

), 0));

242

items.Add(AppendItem(root,

wxT

(

"Item 4"

), 0));

243

items.Add(AppendItem(root,

wxT

(

"Item 5"

), 0));

246  for

(

i

= 0,

count

= (

int

)items.Count();

i

<

count

; ++

i

)

248

wxTreeItemId

id

= items.Item(

i

);

249

AppendItem(

id

,

wxT

(

"Subitem 1"

), 1);

250

AppendItem(

id

,

wxT

(

"Subitem 2"

), 1);

251

AppendItem(

id

,

wxT

(

"Subitem 3"

), 1);

252

AppendItem(

id

,

wxT

(

"Subitem 4"

), 1);

253

AppendItem(

id

,

wxT

(

"Subitem 5"

), 1);

262

BEGIN_EVENT_TABLE(ncbi::CGLTestWMClient,

CGLCanvas

)

276

glClearColor(0.5, 0.5, 0.5, 1.0);

277

glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

281

glColor3d(0.5, 0.5, 1.0);

282

glRectd(0.1, 0.1, 0.9, 0.9);

290

wxSize

size

=

event

.GetSize();

virtual const CRgbaColor * GetColor() const

returns a color associated with the client, n/a if NULL

void Init()

Initialises member variables.

virtual string GetClientLabel(IWMClient::ELabel ltype) const

returns the client label (name) to be displayed in UI

virtual CFingerprint GetFingerprint() const

returns a fingerprint identifying the client

void OnTimer(wxTimerEvent &event)

virtual string GetIconAlias() const

returns an icon alias that can be used to retrieve the client's icon

bool Create(wxWindow *parent, wxWindowID id=10010, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=0)

Creation.

void CreateControls()

Creates the controls and sizers.

virtual const wxMenu * GetMenu()

returns a menu (must be deleted by the caller) menu injections should follow a separator named "Contr...

virtual void SetColor(const CRgbaColor &color)

returns a color associated with the client

virtual wxWindow * GetWindow()

returns a pointer to the wxWindow representing the client

static bool ShowToolTips()

Should we show tooltips?

~CClockPanelWMClient()

Destructor.

CClockPanelWMClient()

Constructors.

wxHtmlWindow * m_HTMLWindow

virtual bool Show(bool show=true)

virtual void UpdateMenu(wxMenu &root_menu)

void OnSize(wxSizeEvent &event)

static int m_Count

CHTMLWMClient.

CHTMLWMClient(wxWindow *parent)

class CRgbaColor provides a simple abstraction for managing colors.

CTreeWMClient(wxWindow *parent)

CTreeWMClient.

CFingerprint identifies an instance of IWMClient and is used for labeling layout positions.

ELabel

Different flavors of label types for different GUI aspects.

@ eDetailed

Detailed name.

#define LOG_POST(message)

This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...

void SetViewport(const TVPRect &R)

CGlRect< TModelUnit > TModelRect

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

unsigned short m_Port

TCP port to listen on.

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

Defines: CTimeFormat - storage class for time format.

Standard mechanism to include OpenGL headers for all platforms.

wxColour ConvertColor(const CRgbaColor &color)

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