Ticket #3377: mythwelcome-setup.diff
File mythwelcome-setup.diff, 2.4 KB (added by , 17 years ago) |
---|
-
programs/mythwelcome/welcomedialog.h
28 28 protected slots: 29 29 void startFrontendClick(void); 30 30 void startFrontend(void); 31 void startSetup(void); 31 32 void updateAll(void); 32 33 void updateStatus(void); 33 34 void updateScreen(void); -
programs/mythwelcome/welcomedialog.cpp
77 77 myth_system(startFECmd.ascii()); 78 78 } 79 79 80 void WelcomeDialog::startSetup(void) 81 { 82 83 cancelPopup(); 84 QString startSUCmd = gContext->GetSetting("MythWelcomeStartSUCmd", 85 m_installDir + "/bin/mythtv-setup"); 86 87 myth_system(startSUCmd.ascii()); 88 } 89 80 90 void WelcomeDialog::startFrontendClick(void) 81 91 { 82 92 // this makes sure the button appears to click properly … … 694 704 SLOT(runEPGGrabber())); 695 705 popup->addButton(tr("Shutdown Now"), this, 696 706 SLOT(shutdownNow())); 707 popup->addButton(tr("Run Setup"), this, 708 SLOT(startSetup())); 697 709 popup->addButton(tr("Exit"), this, 698 710 SLOT(closeDialog())); 699 711 popup->addButton(tr("Cancel"), this, SLOT(cancelPopup())); -
programs/mythwelcome/welcomesettings.cpp
173 173 return gc; 174 174 }; 175 175 176 static HostLineEdit *MythShutdownStartSUCmd() 177 { 178 HostLineEdit *gc = new HostLineEdit("MythWelcomeStartSUCmd"); 179 gc->setLabel(QObject::tr("Command to run to start Setup")); 180 gc->setValue(gContext->GetInstallPrefix() + "/bin/mythtv-setup"); 181 gc->setHelpText(QObject::tr("Command to start mythtv-setup.")); 182 return gc; 183 }; 184 176 185 static HostLineEdit *MythShutdownXTermCmd() 177 186 { 178 187 HostLineEdit *gc = new HostLineEdit("MythShutdownXTermCmd"); … … 197 206 vcg->addChild(MythShutdownPowerOff()); 198 207 vcg->addChild(MythShutdownXTermCmd()); 199 208 vcg->addChild(MythShutdownStartFECmd()); 209 vcg->addChild(MythShutdownStartSUCmd()); 200 210 201 211 addChild(vcg); 202 212 }