<file alias="oxygen/16x16/actions/im-user-offline.png">oxygen_kde/16x16/actions/im-user-offline.png</file>
<file alias="oxygen/16x16/actions/format-text-underline.png">oxygen_kde/16x16/actions/format-text-underline.png</file>
<file alias="oxygen/16x16/actions/view-refresh.png">oxygen_kde/16x16/actions/view-refresh.png</file>
+ <file alias="oxygen/16x16/actions/window_fullscreen.png">oxygen_kde/16x16/actions/window_fullscreen.png</file>
+ <file alias="oxygen/16x16/actions/window_nofullscreen.png">oxygen_kde/16x16/actions/window_nofullscreen.png</file>
</qresource>
</RCC>
setupNickWidget();
setupInputWidget();
setupChatMonitor();
+ setupViewMenuTail();
setupStatusBar();
setupToolBars();
setupSystray();
coll->addAction("ToggleStatusBar", new Action(tr("Show Status &Bar"), coll,
0, 0))->setCheckable(true);
+ coll->addAction("ToggleFullscreen", new Action(SmallIcon("window_fullscreen"), tr("&Fullscreen mode"), coll,
+ this, SLOT(toggleFullscreen()), QKeySequence(Qt::Key_F11)));
// Settings
coll->addAction("ConfigureShortcuts", new Action(SmallIcon("configure-shortcuts"), tr("Configure &Shortcuts..."), coll,
dock->toggleViewAction()->setText(tr("Show Topic Line"));
}
+void MainWin::setupViewMenuTail() {
+ _viewMenu->addSeparator();
+ _viewMenu->addAction(QtUi::actionCollection("General")->action("ToggleFullscreen"));
+}
+
void MainWin::setupTitleSetter() {
_titleSetter.setModel(Client::bufferModel());
_titleSetter.setSelectionModel(Client::bufferModel()->standardSelectionModel());
#endif
}
+void MainWin::toggleFullscreen() {
+ QAction *action = QtUi::actionCollection("General")->action("ToggleFullscreen");
+
+ if(isFullScreen()) {
+ showNormal();
+ action->setIcon(SmallIcon("window_fullscreen"));
+ action->setText(tr("&Fullscreen mode"));
+ }
+ else {
+ showFullScreen();
+ action->setIcon(SmallIcon("window_nofullscreen"));
+ action->setText(tr("&Normal mode"));
+ }
+}
+
/********************************************************************************************************/
bool MainWin::event(QEvent *event) {
void showNotificationsDlg();
void showIgnoreList(QString newRule = QString());
void showShortcutsDlg();
+ void toggleFullscreen();
void handleCoreConnectionError(const QString &errorMsg);
void userAuthenticationRequired(CoreAccount *, bool *valid, const QString &errorMessage);
void setupChatMonitor();
void setupInputWidget();
void setupTopicWidget();
+ void setupViewMenuTail();
void setupStatusBar();
void setupSystray();
void setupTitleSetter();