void roadmap_help_about (void) { #ifdef IPHONE_NATIVE roadmap_main_show_root(0); #endif //IPHONE_NATIVE char about[700]; sprintf (about, "Waze Qt port " PORT_RELEASE "\nDone by [email protected]\nhttp://code.google.com/p/waze-qt/\nBased on Waze(c) release %s\n%s\n%s", roadmap_start_version(), roadmap_lang_get("www.waze.com"), roadmap_lang_get("Licensed under the terms of the\nGPL v2")); about_dialog(about); }
void roadmap_help_about (void) { #ifdef IPHONE_NATIVE roadmap_main_show_root(0); #endif //IPHONE_NATIVE char about[500]; sprintf (about, "Waze port to WP7 by Meir tsvi\nUses Cibyl, NBidi, SharpBox, ZlibWP7 libs\nRefer any support questions to\[email protected]"); /* sprintf (about, "Release %s\n%s\n%s\n%s", roadmap_start_version(), "(c)waze inc.", roadmap_lang_get("www.waze.com"), roadmap_lang_get("Licensed under the terms of the\nGPL v2"));*/ about_dialog(about); }
NotificationIcon::NotificationIcon() { currentState = STARTING; consumptionTraffic = 0; alertWasShowed = false; p_settingsData = new ApplicationSettings(); p_settingsData ->restoreSaved(); p_settingsDialog = new FullSettingsDialog(); QObject::connect(p_settingsDialog, SIGNAL(new_settings()), this, SIGNAL(new_settings())); QAction *showSettings = new QAction("Settings", this); QAction *showAuthors = new QAction("About" , this); QAction *appExit = new QAction("Exit" , this); p_trayMenu = new QMenu(); p_trayMenu ->addAction(showSettings); p_trayMenu ->addAction(showAuthors); p_trayMenu ->addAction(appExit); QObject::connect(showSettings, SIGNAL(triggered()), this, SLOT(SettingsDialog())); QObject::connect(showAuthors , SIGNAL(triggered()), this, SLOT(about_dialog()) ); QObject::connect(appExit , SIGNAL(triggered()), this, SLOT(ApplicationExit())); p_iconImage = new QPixmap; p_iconImage->load(AttentionPath); p_toolTipText = new QString("Starting..."); p_trayIcon = new QSystemTrayIcon(this); p_trayIcon->setContextMenu(p_trayMenu); p_trayIcon->setIcon( *p_iconImage ); p_trayIcon->setToolTip( *p_toolTipText ); p_trayIcon->show(); }
void about(GtkWidget *widget,gpointer data) { about_dialog(widget,data); }
void MainWindow::showAbout() { AboutDialog about_dialog(this); about_dialog.exec(); }