void SeafileTrayIcon::createActions() { disable_auto_sync_action_ = new QAction(tr("Disable auto sync"), this); connect(disable_auto_sync_action_, SIGNAL(triggered()), this, SLOT(disableAutoSync())); enable_auto_sync_action_ = new QAction(tr("Enable auto sync"), this); connect(enable_auto_sync_action_, SIGNAL(triggered()), this, SLOT(enableAutoSync())); view_unread_seahub_notifications_action_ = new QAction(tr("View unread notifications"), this); connect(view_unread_seahub_notifications_action_, SIGNAL(triggered()), this, SLOT(viewUnreadNotifications())); quit_action_ = new QAction(tr("&Quit"), this); connect(quit_action_, SIGNAL(triggered()), this, SLOT(quitSeafile())); toggle_main_window_action_ = new QAction(tr("Show main window"), this); connect(toggle_main_window_action_, SIGNAL(triggered()), this, SLOT(toggleMainWindow())); settings_action_ = new QAction(tr("Settings"), this); connect(settings_action_, SIGNAL(triggered()), this, SLOT(showSettingsWindow())); open_log_directory_action_ = new QAction(tr("Open &logs folder"), this); open_log_directory_action_->setStatusTip(tr("open seafile log directory")); connect(open_log_directory_action_, SIGNAL(triggered()), this, SLOT(openLogDirectory())); about_action_ = new QAction(tr("&About"), this); about_action_->setStatusTip(tr("Show the application's About box")); connect(about_action_, SIGNAL(triggered()), this, SLOT(about())); open_help_action_ = new QAction(tr("&Online help"), this); open_help_action_->setStatusTip(tr("open seafile online help")); connect(open_help_action_, SIGNAL(triggered()), this, SLOT(openHelp())); }
void SeafileTrayIcon::createActions() { disable_auto_sync_action_ = new QAction(tr("Disable auto sync"), this); connect(disable_auto_sync_action_, SIGNAL(triggered()), this, SLOT(disableAutoSync())); enable_auto_sync_action_ = new QAction(tr("Enable auto sync"), this); connect(enable_auto_sync_action_, SIGNAL(triggered()), this, SLOT(enableAutoSync())); quit_action_ = new QAction(tr("&Quit"), this); connect(quit_action_, SIGNAL(triggered()), this, SLOT(quitSeafile())); toggle_main_window_action_ = new QAction(tr("Show main window"), this); connect(toggle_main_window_action_, SIGNAL(triggered()), this, SLOT(toggleMainWindow())); settings_action_ = new QAction(tr("Settings"), this); connect(settings_action_, SIGNAL(triggered()), this, SLOT(showSettingsWindow())); about_action_ = new QAction(tr("&About"), this); about_action_->setStatusTip(tr("Show the application's About box")); connect(about_action_, SIGNAL(triggered()), this, SLOT(about())); open_help_action_ = new QAction(tr("&Online help"), this); open_help_action_->setStatusTip(tr("open seafile online help")); connect(open_help_action_, SIGNAL(triggered()), this, SLOT(openHelp())); }
void SeafileTrayIcon::createActions() { disable_auto_sync_action_ = new QAction(tr("Disable auto sync"), this); connect(disable_auto_sync_action_, SIGNAL(triggered()), this, SLOT(disableAutoSync())); enable_auto_sync_action_ = new QAction(tr("Enable auto sync"), this); connect(enable_auto_sync_action_, SIGNAL(triggered()), this, SLOT(enableAutoSync())); quit_action_ = new QAction(tr("&Quit"), this); connect(quit_action_, SIGNAL(triggered()), this, SLOT(quitSeafile())); toggle_main_window_action_ = new QAction(tr("Show main window"), this); connect(toggle_main_window_action_, SIGNAL(triggered()), this, SLOT(toggleMainWindow())); settings_action_ = new QAction(tr("Settings"), this); connect(settings_action_, SIGNAL(triggered()), this, SLOT(showSettingsWindow())); }
void SeafileTrayIcon::createActions() { disable_auto_sync_action_ = new QAction(tr("Disable auto sync"), this); connect(disable_auto_sync_action_, SIGNAL(triggered()), this, SLOT(disableAutoSync())); enable_auto_sync_action_ = new QAction(tr("Enable auto sync"), this); connect(enable_auto_sync_action_, SIGNAL(triggered()), this, SLOT(enableAutoSync())); quit_action_ = new QAction(tr("&Quit"), this); connect(quit_action_, SIGNAL(triggered()), this, SLOT(quitSeafile())); show_main_window_action_ = new QAction(tr("Show main window"), this); connect(show_main_window_action_, SIGNAL(triggered()), this, SLOT(showMainWindow())); settings_action_ = new QAction(tr("Settings"), this); connect(settings_action_, SIGNAL(triggered()), this, SLOT(showSettingsWindow())); open_seafile_folder_action_ = new QAction(tr("Open %1 &folder").arg(getBrand()), this); open_seafile_folder_action_->setStatusTip(tr("open %1 folder").arg(getBrand())); connect(open_seafile_folder_action_, SIGNAL(triggered()), this, SLOT(openSeafileFolder())); #if defined(Q_OS_WIN32) shellext_fix_action_ = new QAction(tr("Repair explorer extension"), this); connect(shellext_fix_action_, SIGNAL(triggered()), this, SLOT(shellExtFix())); #endif open_log_directory_action_ = new QAction(tr("Open &logs folder"), this); open_log_directory_action_->setStatusTip(tr("open %1 log folder").arg(getBrand())); connect(open_log_directory_action_, SIGNAL(triggered()), this, SLOT(openLogDirectory())); upload_log_directory_action_ = new QAction(tr("Upload log files"), this); upload_log_directory_action_->setStatusTip(tr("upload %1 log files").arg(getBrand())); connect(upload_log_directory_action_, SIGNAL(triggered()), this, SLOT(uploadLogDirectory())); show_sync_errors_action_ = new QAction(tr("Show file sync errors"), this); show_sync_errors_action_->setStatusTip(tr("Show file sync errors")); connect(show_sync_errors_action_, SIGNAL(triggered()), this, SLOT(showSyncErrorsDialog())); about_action_ = new QAction(tr("&About"), this); about_action_->setStatusTip(tr("Show the application's About box")); connect(about_action_, SIGNAL(triggered()), this, SLOT(about())); open_help_action_ = new QAction(tr("&Online help"), this); open_help_action_->setStatusTip(tr("open %1 online help").arg(getBrand())); connect(open_help_action_, SIGNAL(triggered()), this, SLOT(openHelp())); }