diff options
author | Michele Calgaro <[email protected]> | 2013-11-25 02:26:00 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2013-11-25 02:26:00 +0100 |
commit | 02977208626ba8be4d8a16dccea1b1bca42cc60a (patch) | |
tree | c0cda98b8cc3853f5e05ecc3b7def56482f577ff | |
parent | 34a73b1c98a0b3f15f5841f40762aff7c42d66e6 (diff) | |
download | kaffeine-02977208626ba8be4d8a16dccea1b1bca42cc60a.tar.gz kaffeine-02977208626ba8be4d8a16dccea1b1bca42cc60a.zip |
Add menu item to run installation wizard
This resolves Bug 1089
-rw-r--r-- | kaffeine/src/kaffeine.cpp | 14 | ||||
-rw-r--r-- | kaffeine/src/kaffeine.h | 4 | ||||
-rw-r--r-- | kaffeine/src/kaffeineui.rc | 1 |
3 files changed, 18 insertions, 1 deletions
diff --git a/kaffeine/src/kaffeine.cpp b/kaffeine/src/kaffeine.cpp index 54d9df1..a3db1a9 100644 --- a/kaffeine/src/kaffeine.cpp +++ b/kaffeine/src/kaffeine.cpp @@ -683,6 +683,8 @@ void Kaffeine::setupActions() m_autoResizeTriple = new TDEToggleAction(i18n("Triple Size"), 0, ALT|Key_3, TQT_TQOBJECT(this), TQT_SLOT(slotAutoresizeTriple()), actionCollection(), "view_auto_resize_triple"); m_playersMenu = new TDEActionMenu(i18n("&Player Engine"), actionCollection(), "options_player"); + m_instWizard = new TDEAction(i18n("Installation &Wizard"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotInstWizard()), actionCollection(), "inst_wizard"); + KStdAction::keyBindings(TQT_TQOBJECT(this), TQT_SLOT(optionsConfigureKeys()), actionCollection()); KStdAction::configureToolbars(TQT_TQOBJECT(this), TQT_SLOT(optionsConfigureToolbars()), actionCollection()); KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(slotPreferences()), actionCollection(), "options_preferences"); @@ -1619,6 +1621,18 @@ void Kaffeine::slotMute() mute(); } +void Kaffeine::slotInstWizard() +{ + TQString stamp = locateLocal("appdata", "wizard_stamp_v0.7.1"); + InstWizard::showWizard(); + + TDEProcess process; + process << "touch" << stamp; + process.start(TDEProcess::Block, TDEProcess::Stderr); + process.clearArguments(); +} + + /********* DCOP INTERFACE *********/ void Kaffeine::openURL(TQString url) diff --git a/kaffeine/src/kaffeine.h b/kaffeine/src/kaffeine.h index 85136dc..86477a1 100644 --- a/kaffeine/src/kaffeine.h +++ b/kaffeine/src/kaffeine.h @@ -193,6 +193,7 @@ private slots: void slotDvbClient(bool,const TQString&,int,int,const TQString&); void slotNumKeyInput( int ); void slotDVBNextBack( int ); + void slotInstWizard(); private: void autoresize(); @@ -258,7 +259,8 @@ private: TDEToggleAction* m_autoResizeTriple; TDEToggleAction* m_originalAspect; TDEToggleAction* m_toggleLayout; - TDEActionMenu* m_playersMenu; + TDEActionMenu* m_playersMenu; + TDEAction* m_instWizard; TDEToggleAction* m_sleepAfterPlay; TDEToggleAction* m_quitAfterPlay; TDEToggleAction* m_quitAfterPlaylist; diff --git a/kaffeine/src/kaffeineui.rc b/kaffeine/src/kaffeineui.rc index f65f541..a827bba 100644 --- a/kaffeine/src/kaffeineui.rc +++ b/kaffeine/src/kaffeineui.rc @@ -34,6 +34,7 @@ <Merge/> <Menu noMerge="1" name="settings"><text>&Settings</text> <Action name="options_player"/> + <Action name="inst_wizard"/> <Separator/> <Merge name="StandardToolBarMenuHandler"/> <Action name="options_show_statusbar"/> |