IMPLEMENT_DYNAMIC_CLASS( ncbi::CClockPanelWMClient, wxPanel )
77wxPanel::Create( parent,
id, pos,
size, style );
89 LOG_POST(
"~CClockPanelWMClient()");
97SetName(
wxT(
"Clock"));
105this->SetToolTip(
wxT(
"Clock View tooltip"));
106wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
107itemPanel1->SetSizer(itemBoxSizer2);
109 longstyle = wxHW_SCROLLBAR_AUTO | wxNO_BORDER |wxHSCROLL | wxVSCROLL;
111wxDefaultSize, style);
124 return "Clock WM Client";
155wxMenu* menu =
newwxMenu();
156wxMenu* edit_submenu =
newwxMenu;
158edit_submenu->Append(wxID_PASTE,
wxT(
"Paste"),
wxT(
""), wxITEM_NORMAL);
159edit_submenu->Append(wxID_COPY,
wxT(
"Copy"),
wxT(
""), wxITEM_NORMAL);
160edit_submenu->Append(
wxID_ANY,
wxT(
"Clock"),
wxT(
""), wxITEM_NORMAL);
161edit_submenu->Append(wxID_CUT,
wxT(
"Cut"),
wxT(
""), wxITEM_NORMAL);
163menu->Append(
wxID_ANY,
wxT(
"Edit"), edit_submenu);
190ncbi::CTime time(ncbi::CTime::eCurrent);
191 strings = time.AsString();
193 stringhtml =
"<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)
217wxString 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)
229SetWindowStyle(wxTR_DEFAULT_STYLE | wxNO_BORDER);
231wxImageList* imglist =
newwxImageList(16, 16,
true, 2);
232imglist->Add(wxArtProvider::GetBitmap(wxART_FOLDER, wxART_OTHER, wxSize(16,16)));
233imglist->Add(wxArtProvider::GetBitmap(wxART_NORMAL_FILE, wxART_OTHER, wxSize(16,16)));
234AssignImageList(imglist);
236wxTreeItemId root = AddRoot(
wxT(
"wxAUI Project"), 0);
237wxArrayTreeItemIds items;
239items.Add(AppendItem(root,
wxT(
"Item 1"), 0));
240items.Add(AppendItem(root,
wxT(
"Item 2"), 0));
241items.Add(AppendItem(root,
wxT(
"Item 3"), 0));
242items.Add(AppendItem(root,
wxT(
"Item 4"), 0));
243items.Add(AppendItem(root,
wxT(
"Item 5"), 0));
246 for(
i= 0,
count= (
int)items.Count();
i<
count; ++
i)
248wxTreeItemId
id= items.Item(
i);
249AppendItem(
id,
wxT(
"Subitem 1"), 1);
250AppendItem(
id,
wxT(
"Subitem 2"), 1);
251AppendItem(
id,
wxT(
"Subitem 3"), 1);
252AppendItem(
id,
wxT(
"Subitem 4"), 1);
253AppendItem(
id,
wxT(
"Subitem 5"), 1);
262BEGIN_EVENT_TABLE(ncbi::CGLTestWMClient,
CGLCanvas)
276glClearColor(0.5, 0.5, 0.5, 1.0);
277glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
281glColor3d(0.5, 0.5, 1.0);
282glRectd(0.1, 0.1, 0.9, 0.9);
290wxSize
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