DcpWidget * AboutApplet::constructWidget ( int widgetId) { SYS_DEBUG ("-----------------------------------"); SYS_DEBUG ("*** widgetId = %d", widgetId); return pageMain (widgetId); }
DcpWidget * ThemeApplet::constructWidget ( int widgetId) { static int i = 0; Q_UNUSED(widgetId); SYS_DEBUG ("We are called: %d", i); ++i; return pageMain (); }
// general purpose return code, true by default, false in case of some failure bool UI::drawPage(uint16_t id) { m_page = id; m_butCount = 0; switch (id) { case PAGE_INIT: return pageInit(); case PAGE_MAIN: pageMain(); break; case PAGE_MEASURE: pageMeasure(); break; case PAGE_MONITOR: pageMonitor(); break; case PAGE_SETTINGS: pageSettings(); break; case PAGE_CALIBRATE: pageCalibrate(); break; case PAGE_WLAN: pageWLAN(); break; } return true; }
QVector<MAction*> ResetApplet::viewMenuItems() { MAction *helpAction; QVector<MAction*> vector; SYS_DEBUG (""); helpAction = new MAction ( //% "User Guide" qtTrId ("qtn_comm_userguide"), pageMain (0)); helpAction->setLocation (MAction::ApplicationMenuLocation); connect (helpAction, SIGNAL (triggered (bool)), this, SLOT (userGuide ())); vector.append(helpAction); return vector; }