MCPcopy Create free account
hub / github.com/GrapheneCt/NetStream / OnListButton

Method OnListButton

NetStream/source/menus/menu_first.cpp:114–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114void menu::First::OnListButton(ui::Widget *self)
115{
116 switch (self->GetName().GetIDHash())
117 {
118 case tex_fpmenu_icon_youtube:
119 menu::YouTube *ymenu = new menu::YouTube();
120 break;
121 case tex_fpmenu_icon_hvdb:
122 menu::HVDB *hvdbmenu = new menu::HVDB();
123 break;
124 case tex_fpmenu_icon_http:
125 menu::Http *hmenu = new menu::Http();
126 hmenu->PushBrowserPage(NULL);
127 break;
128 case tex_fpmenu_icon_ftp:
129 menu::Ftp *fmenu = new menu::Ftp();
130 fmenu->PushBrowserPage(NULL);
131 break;
132 case tex_fpmenu_icon_local:
133 menu::Local *lmenu = new menu::Local();
134 if (s_afterBoot)
135 {
136 string ref = utils::SafememRead();
137 lmenu->PushBrowserPage(&ref);
138 s_afterBoot = false;
139 }
140 else
141 {
142 lmenu->PushBrowserPage(NULL);
143 }
144 break;
145 }
146}
147
148void menu::First::SetOfflineMode()
149{

Callers 1

CreateListItemMethod · 0.45

Calls 1

PushBrowserPageMethod · 0.80

Tested by

no test coverage detected