Add menu item to run installation wizard

This resolves Bug 1089
pull/1/head
Michele Calgaro 11 years ago committed by Slávek Banko
parent 34a73b1c98
commit 0297720862

@ -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)

@ -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;

@ -34,6 +34,7 @@
<Merge/>
<Menu noMerge="1" name="settings"><text>&amp;Settings</text>
<Action name="options_player"/>
<Action name="inst_wizard"/>
<Separator/>
<Merge name="StandardToolBarMenuHandler"/>
<Action name="options_show_statusbar"/>

Loading…
Cancel
Save