|
|
@ -383,9 +383,9 @@ RosegardenGUIApp::RosegardenGUIApp(bool useSequencer,
|
|
|
|
// Lookup the configuration parameter that specifies the default
|
|
|
|
// Lookup the configuration parameter that specifies the default
|
|
|
|
// arrangement, and instantiate it.
|
|
|
|
// arrangement, and instantiate it.
|
|
|
|
|
|
|
|
|
|
|
|
kapp->config()->setGroup(GeneralOptionsConfigGroup);
|
|
|
|
tdeApp->config()->setGroup(GeneralOptionsConfigGroup);
|
|
|
|
m_parameterArea->setArrangement((RosegardenParameterArea::Arrangement)
|
|
|
|
m_parameterArea->setArrangement((RosegardenParameterArea::Arrangement)
|
|
|
|
kapp->config()->readUnsignedNumEntry("sidebarstyle",
|
|
|
|
tdeApp->config()->readUnsignedNumEntry("sidebarstyle",
|
|
|
|
RosegardenParameterArea::CLASSIC_STYLE));
|
|
|
|
RosegardenParameterArea::CLASSIC_STYLE));
|
|
|
|
|
|
|
|
|
|
|
|
m_dockLeft->update();
|
|
|
|
m_dockLeft->update();
|
|
|
@ -1534,13 +1534,13 @@ void RosegardenGUIApp::setDocument(RosegardenGUIDoc* newDocument)
|
|
|
|
return ;
|
|
|
|
return ;
|
|
|
|
|
|
|
|
|
|
|
|
emit documentAboutToChange();
|
|
|
|
emit documentAboutToChange();
|
|
|
|
kapp->processEvents(); // to make sure all opened dialogs (mixer, midi devices...) are closed
|
|
|
|
tdeApp->processEvents(); // to make sure all opened dialogs (mixer, midi devices...) are closed
|
|
|
|
|
|
|
|
|
|
|
|
// Take care of all subparts which depend on the document
|
|
|
|
// Take care of all subparts which depend on the document
|
|
|
|
|
|
|
|
|
|
|
|
// Caption
|
|
|
|
// Caption
|
|
|
|
//
|
|
|
|
//
|
|
|
|
TQString caption = kapp->caption();
|
|
|
|
TQString caption = tdeApp->caption();
|
|
|
|
setCaption(caption + ": " + newDocument->getTitle());
|
|
|
|
setCaption(caption + ": " + newDocument->getTitle());
|
|
|
|
|
|
|
|
|
|
|
|
// // reset AudioManagerDialog
|
|
|
|
// // reset AudioManagerDialog
|
|
|
@ -1685,8 +1685,8 @@ RosegardenGUIApp::openFile(TQString filePath, ImportType type)
|
|
|
|
RG_DEBUG << "RosegardenGUIApp::openFile(): calling slotDocColoursChanged() in doc" << endl;
|
|
|
|
RG_DEBUG << "RosegardenGUIApp::openFile(): calling slotDocColoursChanged() in doc" << endl;
|
|
|
|
doc->slotDocColoursChanged();
|
|
|
|
doc->slotDocColoursChanged();
|
|
|
|
|
|
|
|
|
|
|
|
kapp->config()->setGroup(GeneralOptionsConfigGroup);
|
|
|
|
tdeApp->config()->setGroup(GeneralOptionsConfigGroup);
|
|
|
|
if (kapp->config()->readBoolEntry("alwaysusedefaultstudio", false)) {
|
|
|
|
if (tdeApp->config()->readBoolEntry("alwaysusedefaultstudio", false)) {
|
|
|
|
|
|
|
|
|
|
|
|
TQString autoloadFile =
|
|
|
|
TQString autoloadFile =
|
|
|
|
TDEGlobal::dirs()->findResource("appdata", "autoload.rg");
|
|
|
|
TDEGlobal::dirs()->findResource("appdata", "autoload.rg");
|
|
|
@ -1780,7 +1780,7 @@ RosegardenGUIApp::createDocumentFromRGFile(TQString filePath)
|
|
|
|
// Check for an autosaved file to recover
|
|
|
|
// Check for an autosaved file to recover
|
|
|
|
TQString effectiveFilePath = filePath;
|
|
|
|
TQString effectiveFilePath = filePath;
|
|
|
|
bool canRecover = false;
|
|
|
|
bool canRecover = false;
|
|
|
|
TQString autoSaveFileName = kapp->checkRecoverFile(filePath, canRecover);
|
|
|
|
TQString autoSaveFileName = tdeApp->checkRecoverFile(filePath, canRecover);
|
|
|
|
|
|
|
|
|
|
|
|
if (canRecover) {
|
|
|
|
if (canRecover) {
|
|
|
|
// First check if the auto-save file is more recent than the doc
|
|
|
|
// First check if the auto-save file is more recent than the doc
|
|
|
@ -1852,32 +1852,32 @@ void RosegardenGUIApp::slotSaveOptions()
|
|
|
|
_settingLog(TQString("SETTING 2 : show track labels = %1").arg(m_viewTrackLabels->isChecked()));
|
|
|
|
_settingLog(TQString("SETTING 2 : show track labels = %1").arg(m_viewTrackLabels->isChecked()));
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
kapp->config()->setGroup(GeneralOptionsConfigGroup);
|
|
|
|
tdeApp->config()->setGroup(GeneralOptionsConfigGroup);
|
|
|
|
kapp->config()->writeEntry("Show Transport", m_viewTransport->isChecked());
|
|
|
|
tdeApp->config()->writeEntry("Show Transport", m_viewTransport->isChecked());
|
|
|
|
kapp->config()->writeEntry("Expanded Transport", m_transport ? getTransport()->isExpanded() : true);
|
|
|
|
tdeApp->config()->writeEntry("Expanded Transport", m_transport ? getTransport()->isExpanded() : true);
|
|
|
|
kapp->config()->writeEntry("Show Track labels", m_viewTrackLabels->isChecked());
|
|
|
|
tdeApp->config()->writeEntry("Show Track labels", m_viewTrackLabels->isChecked());
|
|
|
|
kapp->config()->writeEntry("Show Rulers", m_viewRulers->isChecked());
|
|
|
|
tdeApp->config()->writeEntry("Show Rulers", m_viewRulers->isChecked());
|
|
|
|
kapp->config()->writeEntry("Show Tempo Ruler", m_viewTempoRuler->isChecked());
|
|
|
|
tdeApp->config()->writeEntry("Show Tempo Ruler", m_viewTempoRuler->isChecked());
|
|
|
|
kapp->config()->writeEntry("Show Chord Name Ruler", m_viewChordNameRuler->isChecked());
|
|
|
|
tdeApp->config()->writeEntry("Show Chord Name Ruler", m_viewChordNameRuler->isChecked());
|
|
|
|
kapp->config()->writeEntry("Show Previews", m_viewPreviews->isChecked());
|
|
|
|
tdeApp->config()->writeEntry("Show Previews", m_viewPreviews->isChecked());
|
|
|
|
kapp->config()->writeEntry("Show Segment Labels", m_viewSegmentLabels->isChecked());
|
|
|
|
tdeApp->config()->writeEntry("Show Segment Labels", m_viewSegmentLabels->isChecked());
|
|
|
|
kapp->config()->writeEntry("Show Parameters", m_dockVisible);
|
|
|
|
tdeApp->config()->writeEntry("Show Parameters", m_dockVisible);
|
|
|
|
kapp->config()->writeEntry("MIDI Thru Routing", m_enableMIDIrouting->isChecked());
|
|
|
|
tdeApp->config()->writeEntry("MIDI Thru Routing", m_enableMIDIrouting->isChecked());
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef SETTING_LOG_DEBUG
|
|
|
|
#ifdef SETTING_LOG_DEBUG
|
|
|
|
|
|
|
|
|
|
|
|
RG_DEBUG << "SHOW PARAMETERS = " << m_dockVisible << endl;
|
|
|
|
RG_DEBUG << "SHOW PARAMETERS = " << m_dockVisible << endl;
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
m_fileRecent->saveEntries(kapp->config());
|
|
|
|
m_fileRecent->saveEntries(tdeApp->config());
|
|
|
|
|
|
|
|
|
|
|
|
// saveMainWindowSettings(kapp->config(), RosegardenGUIApp::MainWindowConfigGroup); - no need to, done by TDEMainWindow
|
|
|
|
// saveMainWindowSettings(tdeApp->config(), RosegardenGUIApp::MainWindowConfigGroup); - no need to, done by TDEMainWindow
|
|
|
|
kapp->config()->sync();
|
|
|
|
tdeApp->config()->sync();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void RosegardenGUIApp::setupFileDialogSpeedbar()
|
|
|
|
void RosegardenGUIApp::setupFileDialogSpeedbar()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TDEConfig *config = kapp->config();
|
|
|
|
TDEConfig *config = tdeApp->config();
|
|
|
|
|
|
|
|
|
|
|
|
config->setGroup("KFileDialog Speedbar");
|
|
|
|
config->setGroup("KFileDialog Speedbar");
|
|
|
|
|
|
|
|
|
|
|
@ -1908,9 +1908,9 @@ void RosegardenGUIApp::setupFileDialogSpeedbar()
|
|
|
|
|
|
|
|
|
|
|
|
void RosegardenGUIApp::readOptions()
|
|
|
|
void RosegardenGUIApp::readOptions()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
applyMainWindowSettings(kapp->config(), MainWindowConfigGroup);
|
|
|
|
applyMainWindowSettings(tdeApp->config(), MainWindowConfigGroup);
|
|
|
|
|
|
|
|
|
|
|
|
kapp->config()->reparseConfiguration();
|
|
|
|
tdeApp->config()->reparseConfiguration();
|
|
|
|
|
|
|
|
|
|
|
|
// Statusbar and toolbars toggling action status
|
|
|
|
// Statusbar and toolbars toggling action status
|
|
|
|
//
|
|
|
|
//
|
|
|
@ -1924,13 +1924,13 @@ void RosegardenGUIApp::readOptions()
|
|
|
|
|
|
|
|
|
|
|
|
bool opt;
|
|
|
|
bool opt;
|
|
|
|
|
|
|
|
|
|
|
|
kapp->config()->setGroup(GeneralOptionsConfigGroup);
|
|
|
|
tdeApp->config()->setGroup(GeneralOptionsConfigGroup);
|
|
|
|
|
|
|
|
|
|
|
|
opt = kapp->config()->readBoolEntry("Show Transport", true);
|
|
|
|
opt = tdeApp->config()->readBoolEntry("Show Transport", true);
|
|
|
|
m_viewTransport->setChecked(opt);
|
|
|
|
m_viewTransport->setChecked(opt);
|
|
|
|
slotToggleTransport();
|
|
|
|
slotToggleTransport();
|
|
|
|
|
|
|
|
|
|
|
|
opt = kapp->config()->readBoolEntry("Expanded Transport", true);
|
|
|
|
opt = tdeApp->config()->readBoolEntry("Expanded Transport", true);
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef SETTING_LOG_DEBUG
|
|
|
|
#ifdef SETTING_LOG_DEBUG
|
|
|
|
|
|
|
|
|
|
|
@ -1942,7 +1942,7 @@ void RosegardenGUIApp::readOptions()
|
|
|
|
else
|
|
|
|
else
|
|
|
|
getTransport()->slotPanelCloseButtonClicked();
|
|
|
|
getTransport()->slotPanelCloseButtonClicked();
|
|
|
|
|
|
|
|
|
|
|
|
opt = kapp->config()->readBoolEntry("Show Track labels", true);
|
|
|
|
opt = tdeApp->config()->readBoolEntry("Show Track labels", true);
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef SETTING_LOG_DEBUG
|
|
|
|
#ifdef SETTING_LOG_DEBUG
|
|
|
|
|
|
|
|
|
|
|
@ -1952,27 +1952,27 @@ void RosegardenGUIApp::readOptions()
|
|
|
|
m_viewTrackLabels->setChecked(opt);
|
|
|
|
m_viewTrackLabels->setChecked(opt);
|
|
|
|
slotToggleTrackLabels();
|
|
|
|
slotToggleTrackLabels();
|
|
|
|
|
|
|
|
|
|
|
|
opt = kapp->config()->readBoolEntry("Show Rulers", true);
|
|
|
|
opt = tdeApp->config()->readBoolEntry("Show Rulers", true);
|
|
|
|
m_viewRulers->setChecked(opt);
|
|
|
|
m_viewRulers->setChecked(opt);
|
|
|
|
slotToggleRulers();
|
|
|
|
slotToggleRulers();
|
|
|
|
|
|
|
|
|
|
|
|
opt = kapp->config()->readBoolEntry("Show Tempo Ruler", true);
|
|
|
|
opt = tdeApp->config()->readBoolEntry("Show Tempo Ruler", true);
|
|
|
|
m_viewTempoRuler->setChecked(opt);
|
|
|
|
m_viewTempoRuler->setChecked(opt);
|
|
|
|
slotToggleTempoRuler();
|
|
|
|
slotToggleTempoRuler();
|
|
|
|
|
|
|
|
|
|
|
|
opt = kapp->config()->readBoolEntry("Show Chord Name Ruler", false);
|
|
|
|
opt = tdeApp->config()->readBoolEntry("Show Chord Name Ruler", false);
|
|
|
|
m_viewChordNameRuler->setChecked(opt);
|
|
|
|
m_viewChordNameRuler->setChecked(opt);
|
|
|
|
slotToggleChordNameRuler();
|
|
|
|
slotToggleChordNameRuler();
|
|
|
|
|
|
|
|
|
|
|
|
opt = kapp->config()->readBoolEntry("Show Previews", true);
|
|
|
|
opt = tdeApp->config()->readBoolEntry("Show Previews", true);
|
|
|
|
m_viewPreviews->setChecked(opt);
|
|
|
|
m_viewPreviews->setChecked(opt);
|
|
|
|
slotTogglePreviews();
|
|
|
|
slotTogglePreviews();
|
|
|
|
|
|
|
|
|
|
|
|
opt = kapp->config()->readBoolEntry("Show Segment Labels", true);
|
|
|
|
opt = tdeApp->config()->readBoolEntry("Show Segment Labels", true);
|
|
|
|
m_viewSegmentLabels->setChecked(opt);
|
|
|
|
m_viewSegmentLabels->setChecked(opt);
|
|
|
|
slotToggleSegmentLabels();
|
|
|
|
slotToggleSegmentLabels();
|
|
|
|
|
|
|
|
|
|
|
|
opt = kapp->config()->readBoolEntry("Show Parameters", true);
|
|
|
|
opt = tdeApp->config()->readBoolEntry("Show Parameters", true);
|
|
|
|
if (!opt) {
|
|
|
|
if (!opt) {
|
|
|
|
m_dockLeft->undock();
|
|
|
|
m_dockLeft->undock();
|
|
|
|
m_dockLeft->hide();
|
|
|
|
m_dockLeft->hide();
|
|
|
@ -1981,13 +1981,13 @@ void RosegardenGUIApp::readOptions()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// MIDI Thru routing
|
|
|
|
// MIDI Thru routing
|
|
|
|
opt = kapp->config()->readBoolEntry("MIDI Thru Routing", true);
|
|
|
|
opt = tdeApp->config()->readBoolEntry("MIDI Thru Routing", true);
|
|
|
|
m_enableMIDIrouting->setChecked(opt);
|
|
|
|
m_enableMIDIrouting->setChecked(opt);
|
|
|
|
slotEnableMIDIThruRouting();
|
|
|
|
slotEnableMIDIThruRouting();
|
|
|
|
|
|
|
|
|
|
|
|
// initialise the recent file list
|
|
|
|
// initialise the recent file list
|
|
|
|
//
|
|
|
|
//
|
|
|
|
m_fileRecent->loadEntries(kapp->config());
|
|
|
|
m_fileRecent->loadEntries(tdeApp->config());
|
|
|
|
|
|
|
|
|
|
|
|
m_actionsSetup = true;
|
|
|
|
m_actionsSetup = true;
|
|
|
|
|
|
|
|
|
|
|
@ -2002,7 +2002,7 @@ void RosegardenGUIApp::saveGlobalProperties(TDEConfig *cfg)
|
|
|
|
cfg->writeEntry("filename", filename);
|
|
|
|
cfg->writeEntry("filename", filename);
|
|
|
|
cfg->writeEntry("modified", m_doc->isModified());
|
|
|
|
cfg->writeEntry("modified", m_doc->isModified());
|
|
|
|
|
|
|
|
|
|
|
|
TQString tempname = kapp->tempSaveName(filename);
|
|
|
|
TQString tempname = tdeApp->tempSaveName(filename);
|
|
|
|
TQString errMsg;
|
|
|
|
TQString errMsg;
|
|
|
|
bool res = m_doc->saveDocument(tempname, errMsg);
|
|
|
|
bool res = m_doc->saveDocument(tempname, errMsg);
|
|
|
|
if (!res) {
|
|
|
|
if (!res) {
|
|
|
@ -2023,7 +2023,7 @@ void RosegardenGUIApp::readGlobalProperties(TDEConfig* _cfg)
|
|
|
|
|
|
|
|
|
|
|
|
if (modified) {
|
|
|
|
if (modified) {
|
|
|
|
bool canRecover;
|
|
|
|
bool canRecover;
|
|
|
|
TQString tempname = kapp->checkRecoverFile(filename, canRecover);
|
|
|
|
TQString tempname = tdeApp->checkRecoverFile(filename, canRecover);
|
|
|
|
|
|
|
|
|
|
|
|
if (canRecover) {
|
|
|
|
if (canRecover) {
|
|
|
|
slotEnableTransport(false);
|
|
|
|
slotEnableTransport(false);
|
|
|
@ -2042,7 +2042,7 @@ void RosegardenGUIApp::readGlobalProperties(TDEConfig* _cfg)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
TQString caption = kapp->caption();
|
|
|
|
TQString caption = tdeApp->caption();
|
|
|
|
setCaption(caption + ": " + m_doc->getTitle());
|
|
|
|
setCaption(caption + ": " + m_doc->getTitle());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -2176,10 +2176,10 @@ void RosegardenGUIApp::slotFileOpen()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
slotStatusHelpMsg(i18n("Opening file..."));
|
|
|
|
slotStatusHelpMsg(i18n("Opening file..."));
|
|
|
|
|
|
|
|
|
|
|
|
kapp->config()->setGroup(GeneralOptionsConfigGroup);
|
|
|
|
tdeApp->config()->setGroup(GeneralOptionsConfigGroup);
|
|
|
|
|
|
|
|
|
|
|
|
TQString lastOpenedVersion =
|
|
|
|
TQString lastOpenedVersion =
|
|
|
|
kapp->config()->readEntry("Last File Opened Version", "none");
|
|
|
|
tdeApp->config()->readEntry("Last File Opened Version", "none");
|
|
|
|
|
|
|
|
|
|
|
|
if (lastOpenedVersion != VERSION) {
|
|
|
|
if (lastOpenedVersion != VERSION) {
|
|
|
|
|
|
|
|
|
|
|
@ -2187,9 +2187,9 @@ void RosegardenGUIApp::slotFileOpen()
|
|
|
|
// program before. Default to the examples directory.
|
|
|
|
// program before. Default to the examples directory.
|
|
|
|
|
|
|
|
|
|
|
|
TQString examplesDir = TDEGlobal::dirs()->findResource("appdata", "examples/");
|
|
|
|
TQString examplesDir = TDEGlobal::dirs()->findResource("appdata", "examples/");
|
|
|
|
kapp->config()->setGroup("Recent Dirs");
|
|
|
|
tdeApp->config()->setGroup("Recent Dirs");
|
|
|
|
TQString recentString = kapp->config()->readEntry("ROSEGARDEN", "");
|
|
|
|
TQString recentString = tdeApp->config()->readEntry("ROSEGARDEN", "");
|
|
|
|
kapp->config()->writeEntry
|
|
|
|
tdeApp->config()->writeEntry
|
|
|
|
("ROSEGARDEN", TQString("file:%1,%2").arg(examplesDir).arg(recentString));
|
|
|
|
("ROSEGARDEN", TQString("file:%1,%2").arg(examplesDir).arg(recentString));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -2204,8 +2204,8 @@ void RosegardenGUIApp::slotFileOpen()
|
|
|
|
if (m_doc && !m_doc->saveIfModified())
|
|
|
|
if (m_doc && !m_doc->saveIfModified())
|
|
|
|
return ;
|
|
|
|
return ;
|
|
|
|
|
|
|
|
|
|
|
|
kapp->config()->setGroup(GeneralOptionsConfigGroup);
|
|
|
|
tdeApp->config()->setGroup(GeneralOptionsConfigGroup);
|
|
|
|
kapp->config()->writeEntry("Last File Opened Version", VERSION);
|
|
|
|
tdeApp->config()->writeEntry("Last File Opened Version", VERSION);
|
|
|
|
|
|
|
|
|
|
|
|
openURL(url);
|
|
|
|
openURL(url);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2383,7 +2383,7 @@ bool RosegardenGUIApp::slotFileSaveAs()
|
|
|
|
|
|
|
|
|
|
|
|
m_fileRecent->addURL(newName);
|
|
|
|
m_fileRecent->addURL(newName);
|
|
|
|
|
|
|
|
|
|
|
|
TQString caption = kapp->caption();
|
|
|
|
TQString caption = tdeApp->caption();
|
|
|
|
setCaption(caption + ": " + m_doc->getTitle());
|
|
|
|
setCaption(caption + ": " + m_doc->getTitle());
|
|
|
|
// update the edit view's captions too
|
|
|
|
// update the edit view's captions too
|
|
|
|
emit compositionStateUpdate();
|
|
|
|
emit compositionStateUpdate();
|
|
|
@ -4631,7 +4631,7 @@ bool RosegardenGUIApp::launchSequencer(bool useExisting)
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// User mode should clear down sequencer processes.
|
|
|
|
// User mode should clear down sequencer processes.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
if (kapp->dcopClient()->isApplicationRegistered(
|
|
|
|
if (tdeApp->dcopClient()->isApplicationRegistered(
|
|
|
|
TQCString(ROSEGARDEN_SEQUENCER_APP_NAME))) {
|
|
|
|
TQCString(ROSEGARDEN_SEQUENCER_APP_NAME))) {
|
|
|
|
RG_DEBUG << "RosegardenGUIApp::launchSequencer() - "
|
|
|
|
RG_DEBUG << "RosegardenGUIApp::launchSequencer() - "
|
|
|
|
<< "existing DCOP registered sequencer found\n";
|
|
|
|
<< "existing DCOP registered sequencer found\n";
|
|
|
@ -4656,7 +4656,7 @@ bool RosegardenGUIApp::launchSequencer(bool useExisting)
|
|
|
|
|
|
|
|
|
|
|
|
sleep(1);
|
|
|
|
sleep(1);
|
|
|
|
|
|
|
|
|
|
|
|
if (kapp->dcopClient()->isApplicationRegistered(
|
|
|
|
if (tdeApp->dcopClient()->isApplicationRegistered(
|
|
|
|
TQCString(ROSEGARDEN_SEQUENCER_APP_NAME))) {
|
|
|
|
TQCString(ROSEGARDEN_SEQUENCER_APP_NAME))) {
|
|
|
|
RG_DEBUG << "RosegardenGUIApp::launchSequencer() - "
|
|
|
|
RG_DEBUG << "RosegardenGUIApp::launchSequencer() - "
|
|
|
|
<< "failed to kill existing sequencer\n";
|
|
|
|
<< "failed to kill existing sequencer\n";
|
|
|
@ -4690,7 +4690,7 @@ bool RosegardenGUIApp::launchSequencer(bool useExisting)
|
|
|
|
|
|
|
|
|
|
|
|
// Command line arguments
|
|
|
|
// Command line arguments
|
|
|
|
//
|
|
|
|
//
|
|
|
|
TDEConfig *config = kapp->config();
|
|
|
|
TDEConfig *config = tdeApp->config();
|
|
|
|
config->setGroup(SequencerOptionsConfigGroup);
|
|
|
|
config->setGroup(SequencerOptionsConfigGroup);
|
|
|
|
TQString options = config->readEntry("commandlineoptions");
|
|
|
|
TQString options = config->readEntry("commandlineoptions");
|
|
|
|
if (!options.isEmpty()) {
|
|
|
|
if (!options.isEmpty()) {
|
|
|
@ -4775,7 +4775,7 @@ bool RosegardenGUIApp::launchSequencer(bool useExisting)
|
|
|
|
#ifdef HAVE_LIBJACK
|
|
|
|
#ifdef HAVE_LIBJACK
|
|
|
|
bool RosegardenGUIApp::launchJack()
|
|
|
|
bool RosegardenGUIApp::launchJack()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TDEConfig* config = kapp->config();
|
|
|
|
TDEConfig* config = tdeApp->config();
|
|
|
|
config->setGroup(SequencerOptionsConfigGroup);
|
|
|
|
config->setGroup(SequencerOptionsConfigGroup);
|
|
|
|
|
|
|
|
|
|
|
|
bool startJack = config->readBoolEntry("jackstart", false);
|
|
|
|
bool startJack = config->readBoolEntry("jackstart", false);
|
|
|
@ -5403,7 +5403,7 @@ void RosegardenGUIApp::slotPlay()
|
|
|
|
|
|
|
|
|
|
|
|
// Send the controllers at start of playback if required
|
|
|
|
// Send the controllers at start of playback if required
|
|
|
|
//
|
|
|
|
//
|
|
|
|
TDEConfig *config = kapp->config();
|
|
|
|
TDEConfig *config = tdeApp->config();
|
|
|
|
config->setGroup(SequencerOptionsConfigGroup);
|
|
|
|
config->setGroup(SequencerOptionsConfigGroup);
|
|
|
|
bool sendControllers = config->readBoolEntry("alwayssendcontrollers", false);
|
|
|
|
bool sendControllers = config->readBoolEntry("alwayssendcontrollers", false);
|
|
|
|
|
|
|
|
|
|
|
@ -5641,7 +5641,7 @@ void RosegardenGUIApp::slotConfigure()
|
|
|
|
RG_DEBUG << "RosegardenGUIApp::slotConfigure\n";
|
|
|
|
RG_DEBUG << "RosegardenGUIApp::slotConfigure\n";
|
|
|
|
|
|
|
|
|
|
|
|
ConfigureDialog *configDlg =
|
|
|
|
ConfigureDialog *configDlg =
|
|
|
|
new ConfigureDialog(m_doc, kapp->config(), this);
|
|
|
|
new ConfigureDialog(m_doc, tdeApp->config(), this);
|
|
|
|
|
|
|
|
|
|
|
|
connect(configDlg, TQ_SIGNAL(updateAutoSaveInterval(unsigned int)),
|
|
|
|
connect(configDlg, TQ_SIGNAL(updateAutoSaveInterval(unsigned int)),
|
|
|
|
this, TQ_SLOT(slotUpdateAutoSaveInterval(unsigned int)));
|
|
|
|
this, TQ_SLOT(slotUpdateAutoSaveInterval(unsigned int)));
|
|
|
@ -7577,7 +7577,7 @@ RosegardenGUIApp::slotTutorial()
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQString tutorialURL = i18n("http://rosegarden.sourceforge.net/tutorial/en/chapter-0.html");
|
|
|
|
TQString tutorialURL = i18n("http://rosegarden.sourceforge.net/tutorial/en/chapter-0.html");
|
|
|
|
kapp->invokeBrowser(tutorialURL);
|
|
|
|
tdeApp->invokeBrowser(tutorialURL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -7599,7 +7599,7 @@ RosegardenGUIApp::slotBugGuidelines()
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQString tutorialURL = i18n("http://rosegarden.sourceforge.net/tutorial/bug-guidelines.html");
|
|
|
|
TQString tutorialURL = i18n("http://rosegarden.sourceforge.net/tutorial/bug-guidelines.html");
|
|
|
|
kapp->invokeBrowser(tutorialURL);
|
|
|
|
tdeApp->invokeBrowser(tutorialURL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -7944,7 +7944,7 @@ RosegardenGUIApp::slotAutoSave()
|
|
|
|
m_seqManager->getTransportStatus() == RECORDING)
|
|
|
|
m_seqManager->getTransportStatus() == RECORDING)
|
|
|
|
return ;
|
|
|
|
return ;
|
|
|
|
|
|
|
|
|
|
|
|
TDEConfig* config = kapp->config();
|
|
|
|
TDEConfig* config = tdeApp->config();
|
|
|
|
config->setGroup(GeneralOptionsConfigGroup);
|
|
|
|
config->setGroup(GeneralOptionsConfigGroup);
|
|
|
|
if (!config->readBoolEntry("autosave", true))
|
|
|
|
if (!config->readBoolEntry("autosave", true))
|
|
|
|
return ;
|
|
|
|
return ;
|
|
|
@ -8025,7 +8025,7 @@ RosegardenGUIApp::awaitDialogClearance()
|
|
|
|
// std::cerr << "RosegardenGUIApp::awaitDialogClearance: have dialog = "
|
|
|
|
// std::cerr << "RosegardenGUIApp::awaitDialogClearance: have dialog = "
|
|
|
|
// << haveDialog << std::endl;
|
|
|
|
// << haveDialog << std::endl;
|
|
|
|
|
|
|
|
|
|
|
|
if (haveDialog) kapp->processEvents();
|
|
|
|
if (haveDialog) tdeApp->processEvents();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
std::cerr << "RosegardenGUIApp::awaitDialogClearance: exiting" << std::endl;
|
|
|
|
std::cerr << "RosegardenGUIApp::awaitDialogClearance: exiting" << std::endl;
|
|
|
|