summaryrefslogtreecommitdiffstats
path: root/src/document
diff options
context:
space:
mode:
Diffstat (limited to 'src/document')
-rw-r--r--src/document/RoseXmlHandler.cpp2
-rw-r--r--src/document/RosegardenGUIDoc.cpp20
-rw-r--r--src/document/RosegardenGUIDoc.h4
-rw-r--r--src/document/io/CsoundExporter.cpp4
-rw-r--r--src/document/io/CsoundExporter.h2
-rw-r--r--src/document/io/HydrogenLoader.cpp4
-rw-r--r--src/document/io/HydrogenLoader.h2
-rw-r--r--src/document/io/LilyPondExporter.cpp12
-rw-r--r--src/document/io/LilyPondExporter.h4
-rw-r--r--src/document/io/MupExporter.cpp4
-rw-r--r--src/document/io/MupExporter.h2
-rw-r--r--src/document/io/MusicXmlExporter.cpp4
-rw-r--r--src/document/io/MusicXmlExporter.h2
-rw-r--r--src/document/io/RG21Loader.cpp4
-rw-r--r--src/document/io/RG21Loader.h2
15 files changed, 36 insertions, 36 deletions
diff --git a/src/document/RoseXmlHandler.cpp b/src/document/RoseXmlHandler.cpp
index c378687..99718f3 100644
--- a/src/document/RoseXmlHandler.cpp
+++ b/src/document/RoseXmlHandler.cpp
@@ -1046,7 +1046,7 @@ RoseXmlHandler::startElement(const TQString& namespaceURI,
do {
- FileLocateDialog fL((RosegardenGUIApp *)m_doc->tqparent(),
+ FileLocateDialog fL((RosegardenGUIApp *)m_doc->parent(),
file,
TQString(getAudioFileManager().getAudioPath().c_str()));
int result = fL.exec();
diff --git a/src/document/RosegardenGUIDoc.cpp b/src/document/RosegardenGUIDoc.cpp
index 71c3c2a..9f2bcd6 100644
--- a/src/document/RosegardenGUIDoc.cpp
+++ b/src/document/RosegardenGUIDoc.cpp
@@ -117,11 +117,11 @@ namespace Rosegarden
using namespace BaseProperties;
-RosegardenGUIDoc::RosegardenGUIDoc(TQWidget *tqparent,
+RosegardenGUIDoc::RosegardenGUIDoc(TQWidget *parent,
AudioPluginManager *pluginManager,
bool skipAutoload,
const char *name)
- : TQObject(tqparent, name),
+ : TQObject(parent, name),
m_modified(false),
m_autoSaved(false),
m_audioPreviewThread(&m_audioFileManager),
@@ -321,7 +321,7 @@ bool RosegardenGUIDoc::saveIfModified()
return completed;
- RosegardenGUIApp *win = (RosegardenGUIApp *)tqparent();
+ RosegardenGUIApp *win = (RosegardenGUIApp *)parent();
int wantSave = KMessageBox::warningYesNoCancel
(win,
@@ -584,7 +584,7 @@ bool RosegardenGUIDoc::openDocument(const TQString& filename,
ProgressDialog progressDlg(i18n("Reading file..."),
100,
- (TQWidget*)tqparent());
+ (TQWidget*)parent());
connect(&progressDlg, TQT_SIGNAL(cancelClicked()),
&m_audioFileManager, TQT_SLOT(slotStopPreview()));
@@ -1224,7 +1224,7 @@ bool RosegardenGUIDoc::saveDocumentActual(const TQString& filename,
progressDlg = new ProgressDialog(i18n("Saving file..."),
100,
- (TQWidget*)tqparent());
+ (TQWidget*)parent());
progress = progressDlg->progressBar();
progressDlg->setMinimumDuration(500);
@@ -1232,7 +1232,7 @@ bool RosegardenGUIDoc::saveDocumentActual(const TQString& filename,
} else {
- progress = ((RosegardenGUIApp *)tqparent())->getProgressBar();
+ progress = ((RosegardenGUIApp *)parent())->getProgressBar();
}
// Send out Composition (this includes Tracks, Instruments, Tempo
@@ -1556,7 +1556,7 @@ void RosegardenGUIDoc::saveSegment(TQTextStream& outStream, Segment *segment,
bool RosegardenGUIDoc::isSequencerRunning()
{
- RosegardenGUIApp* parentApp = dynamic_cast<RosegardenGUIApp*>(tqparent());
+ RosegardenGUIApp* parentApp = dynamic_cast<RosegardenGUIApp*>(parent());
if (!parentApp) {
RG_DEBUG << "RosegardenGUIDoc::isSequencerRunning() : parentApp == 0\n";
return false;
@@ -2317,7 +2317,7 @@ RosegardenGUIDoc::syncDevices()
}
delete proc;
- RosegardenGUIApp *app = (RosegardenGUIApp*)tqparent();
+ RosegardenGUIApp *app = (RosegardenGUIApp*)parent();
app->slotSequencerExited(0);
return ;
}
@@ -2786,7 +2786,7 @@ RosegardenGUIDoc::finalizeAudioFile(InstrumentId iid)
// Create a progress dialog
//
ProgressDialog *progressDlg = new ProgressDialog
- (i18n("Generating audio preview..."), 100, (TQWidget*)tqparent());
+ (i18n("Generating audio preview..."), 100, (TQWidget*)parent());
progressDlg->setAutoClose(false);
progressDlg->setAutoReset(false);
progressDlg->show();
@@ -3070,7 +3070,7 @@ RosegardenGUIDoc::clearAllPlugins()
Clipboard*
RosegardenGUIDoc::getClipboard()
{
- RosegardenGUIApp *app = (RosegardenGUIApp*)tqparent();
+ RosegardenGUIApp *app = (RosegardenGUIApp*)parent();
return app->getClipboard();
}
diff --git a/src/document/RosegardenGUIDoc.h b/src/document/RosegardenGUIDoc.h
index 85cd484..a7d972e 100644
--- a/src/document/RosegardenGUIDoc.h
+++ b/src/document/RosegardenGUIDoc.h
@@ -96,7 +96,7 @@ public:
/**
* Constructor for the fileclass of the application
*/
- RosegardenGUIDoc(TQWidget *tqparent,
+ RosegardenGUIDoc(TQWidget *parent,
AudioPluginManager *audioPluginManager = 0,
bool skipAutoload = false,
const char *name=0);
@@ -426,7 +426,7 @@ public:
// Get the sequence manager from the app
//
SequenceManager* getSequenceManager()
- { return (dynamic_cast<RosegardenGUIApp*>(tqparent()))
+ { return (dynamic_cast<RosegardenGUIApp*>(parent()))
->getSequenceManager(); }
//Obsolete: multitrack MIDI recording. plcl 06/2006.
diff --git a/src/document/io/CsoundExporter.cpp b/src/document/io/CsoundExporter.cpp
index 9316de6..70f1e51 100644
--- a/src/document/io/CsoundExporter.cpp
+++ b/src/document/io/CsoundExporter.cpp
@@ -40,10 +40,10 @@
namespace Rosegarden
{
-CsoundExporter::CsoundExporter(TQObject *tqparent,
+CsoundExporter::CsoundExporter(TQObject *parent,
Composition *composition,
std::string fileName) :
- ProgressReporter(tqparent, "csoundExporter"),
+ ProgressReporter(parent, "csoundExporter"),
m_composition(composition),
m_fileName(fileName)
{
diff --git a/src/document/io/CsoundExporter.h b/src/document/io/CsoundExporter.h
index a2476e0..f179fb6 100644
--- a/src/document/io/CsoundExporter.h
+++ b/src/document/io/CsoundExporter.h
@@ -46,7 +46,7 @@ class Composition;
class CsoundExporter : public ProgressReporter
{
public:
- CsoundExporter(TQObject *tqparent, Composition *, std::string fileName);
+ CsoundExporter(TQObject *parent, Composition *, std::string fileName);
~CsoundExporter();
bool write();
diff --git a/src/document/io/HydrogenLoader.cpp b/src/document/io/HydrogenLoader.cpp
index 4a4876c..984527d 100644
--- a/src/document/io/HydrogenLoader.cpp
+++ b/src/document/io/HydrogenLoader.cpp
@@ -41,8 +41,8 @@ namespace Rosegarden
{
HydrogenLoader::HydrogenLoader(Studio *studio,
- TQObject *tqparent, const char *name):
- ProgressReporter(tqparent, name),
+ TQObject *parent, const char *name):
+ ProgressReporter(parent, name),
m_studio(studio)
{}
diff --git a/src/document/io/HydrogenLoader.h b/src/document/io/HydrogenLoader.h
index e4975ad..bd3cffb 100644
--- a/src/document/io/HydrogenLoader.h
+++ b/src/document/io/HydrogenLoader.h
@@ -54,7 +54,7 @@ class HydrogenLoader : public ProgressReporter
{
public:
HydrogenLoader(Studio *,
- TQObject *tqparent = 0, const char *name = 0);
+ TQObject *parent = 0, const char *name = 0);
/**
* Load and parse the Hydrogen file \a fileName, and write it into the
diff --git a/src/document/io/LilyPondExporter.cpp b/src/document/io/LilyPondExporter.cpp
index b445a41..f2d6008 100644
--- a/src/document/io/LilyPondExporter.cpp
+++ b/src/document/io/LilyPondExporter.cpp
@@ -85,26 +85,26 @@ using namespace BaseProperties;
const PropertyName LilyPondExporter::SKIP_PROPERTY
= "LilyPondExportSkipThisEvent";
-LilyPondExporter::LilyPondExporter(RosegardenGUIApp *tqparent,
+LilyPondExporter::LilyPondExporter(RosegardenGUIApp *parent,
RosegardenGUIDoc *doc,
std::string fileName) :
- ProgressReporter((TQObject *)tqparent, "lilypondExporter"),
+ ProgressReporter((TQObject *)parent, "lilypondExporter"),
m_doc(doc),
m_fileName(fileName),
m_lastClefFound(Clef::Treble)
{
m_composition = &m_doc->getComposition();
m_studio = &m_doc->getStudio();
- m_view = ((RosegardenGUIApp *)tqparent)->getView();
+ m_view = ((RosegardenGUIApp *)parent)->getView();
m_notationView = NULL;
readConfigVariables();
}
-LilyPondExporter::LilyPondExporter(NotationView *tqparent,
+LilyPondExporter::LilyPondExporter(NotationView *parent,
RosegardenGUIDoc *doc,
std::string fileName) :
- ProgressReporter((TQObject *)tqparent, "lilypondExporter"),
+ ProgressReporter((TQObject *)parent, "lilypondExporter"),
m_doc(doc),
m_fileName(fileName),
m_lastClefFound(Clef::Treble)
@@ -113,7 +113,7 @@ LilyPondExporter::LilyPondExporter(NotationView *tqparent,
m_composition = &m_doc->getComposition();
m_studio = &m_doc->getStudio();
m_view = NULL;
- m_notationView = ((NotationView *)tqparent);
+ m_notationView = ((NotationView *)parent);
readConfigVariables();
}
diff --git a/src/document/io/LilyPondExporter.h b/src/document/io/LilyPondExporter.h
index 5656f77..6ba3a21 100644
--- a/src/document/io/LilyPondExporter.h
+++ b/src/document/io/LilyPondExporter.h
@@ -87,8 +87,8 @@ public:
typedef std::multiset<Event*, Event::EventEndCmp> eventendlist;
public:
- LilyPondExporter(RosegardenGUIApp *tqparent, RosegardenGUIDoc *, std::string fileName);
- LilyPondExporter(NotationView *tqparent, RosegardenGUIDoc *, std::string fileName);
+ LilyPondExporter(RosegardenGUIApp *parent, RosegardenGUIDoc *, std::string fileName);
+ LilyPondExporter(NotationView *parent, RosegardenGUIDoc *, std::string fileName);
~LilyPondExporter();
bool write();
diff --git a/src/document/io/MupExporter.cpp b/src/document/io/MupExporter.cpp
index f17a8a3..6207512 100644
--- a/src/document/io/MupExporter.cpp
+++ b/src/document/io/MupExporter.cpp
@@ -45,10 +45,10 @@ namespace Rosegarden
{
using namespace BaseProperties;
-MupExporter::MupExporter(TQObject *tqparent,
+MupExporter::MupExporter(TQObject *parent,
Composition *composition,
string fileName) :
- ProgressReporter(tqparent, "mupExporter"),
+ ProgressReporter(parent, "mupExporter"),
m_composition(composition),
m_fileName(fileName)
{
diff --git a/src/document/io/MupExporter.h b/src/document/io/MupExporter.h
index 781080d..1ba8d5d 100644
--- a/src/document/io/MupExporter.h
+++ b/src/document/io/MupExporter.h
@@ -55,7 +55,7 @@ class Composition;
class MupExporter : public ProgressReporter
{
public:
- MupExporter(TQObject *tqparent, Composition *, std::string fileName);
+ MupExporter(TQObject *parent, Composition *, std::string fileName);
~MupExporter();
bool write();
diff --git a/src/document/io/MusicXmlExporter.cpp b/src/document/io/MusicXmlExporter.cpp
index febd911..365a792 100644
--- a/src/document/io/MusicXmlExporter.cpp
+++ b/src/document/io/MusicXmlExporter.cpp
@@ -46,10 +46,10 @@ namespace Rosegarden
using namespace BaseProperties;
-MusicXmlExporter::MusicXmlExporter(TQObject *tqparent,
+MusicXmlExporter::MusicXmlExporter(TQObject *parent,
RosegardenGUIDoc *doc,
std::string fileName) :
- ProgressReporter(tqparent, "musicXmlExporter"),
+ ProgressReporter(parent, "musicXmlExporter"),
m_doc(doc),
m_fileName(fileName)
{
diff --git a/src/document/io/MusicXmlExporter.h b/src/document/io/MusicXmlExporter.h
index f2da943..7d8287d 100644
--- a/src/document/io/MusicXmlExporter.h
+++ b/src/document/io/MusicXmlExporter.h
@@ -60,7 +60,7 @@ public:
typedef std::multiset<Event*, Event::EventCmp> eventstartlist;
typedef std::multiset<Event*, Event::EventEndCmp> eventendlist;
public:
- MusicXmlExporter(TQObject *tqparent, RosegardenGUIDoc *, std::string fileName);
+ MusicXmlExporter(TQObject *parent, RosegardenGUIDoc *, std::string fileName);
~MusicXmlExporter();
bool write();
diff --git a/src/document/io/RG21Loader.cpp b/src/document/io/RG21Loader.cpp
index 78950de..c36a228 100644
--- a/src/document/io/RG21Loader.cpp
+++ b/src/document/io/RG21Loader.cpp
@@ -58,8 +58,8 @@ using namespace Accidentals;
using namespace Marks;
RG21Loader::RG21Loader(Studio *studio,
- TQObject *tqparent, const char* name)
- : ProgressReporter(tqparent, name),
+ TQObject *parent, const char* name)
+ : ProgressReporter(parent, name),
m_stream(0),
m_studio(studio),
m_composition(0),
diff --git a/src/document/io/RG21Loader.h b/src/document/io/RG21Loader.h
index 51e663b..236d6c6 100644
--- a/src/document/io/RG21Loader.h
+++ b/src/document/io/RG21Loader.h
@@ -58,7 +58,7 @@ class RG21Loader : public ProgressReporter
{
public:
RG21Loader(Studio *,
- TQObject *tqparent = 0, const char *name = 0);
+ TQObject *parent = 0, const char *name = 0);
~RG21Loader();
/**