diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
commit | 11f31c37e5fa4889d9989f10272f44845449cb7b (patch) | |
tree | 4383da04a76c497950d957fc6120b0fd0d9082c2 /src/document/RosegardenGUIDoc.h | |
parent | 832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff) | |
download | rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.tar.gz rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.zip |
Initial TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/document/RosegardenGUIDoc.h')
-rw-r--r-- | src/document/RosegardenGUIDoc.h | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/src/document/RosegardenGUIDoc.h b/src/document/RosegardenGUIDoc.h index 1cdc88e..46eb805 100644 --- a/src/document/RosegardenGUIDoc.h +++ b/src/document/RosegardenGUIDoc.h @@ -37,16 +37,16 @@ #include "gui/editors/segment/segmentcanvas/AudioPreviewThread.h" #include <map> #include "sound/AudioFileManager.h" -// #include <qlist.h> (fixes problem for Adam Dingle) -#include <qobject.h> -#include <qstring.h> -#include <qstringlist.h> +// #include <tqlist.h> (fixes problem for Adam Dingle) +#include <tqobject.h> +#include <tqstring.h> +#include <tqstringlist.h> #include <vector> #include "base/Event.h" -class QWidget; -class QTextStream; +class TQWidget; +class TQTextStream; class NoteOnRecSet; class KProgress; @@ -95,7 +95,7 @@ public: /** * Constructor for the fileclass of the application */ - RosegardenGUIDoc(QWidget *parent, + RosegardenGUIDoc(TQWidget *parent, AudioPluginManager *audioPluginManager = 0, bool skipAutoload = false, const char *name=0); @@ -184,7 +184,7 @@ public: * with the sequencer will be carried out. If permanent is false, * the sequencer's device list will be left alone. */ - bool openDocument(const QString &filename, bool permanent = true, + bool openDocument(const TQString &filename, bool permanent = true, const char *format=0); /** @@ -197,36 +197,36 @@ public: * * errMsg will be set to a user-readable error message if save fails */ - bool saveDocument(const QString &filename, QString& errMsg, + bool saveDocument(const TQString &filename, TQString& errMsg, bool autosave = false); /** * exports all or part of the studio to a file. If devices is * empty, exports all devices. */ - bool exportStudio(const QString &filename, + bool exportStudio(const TQString &filename, std::vector<DeviceId> devices = std::vector<DeviceId>()); /** * sets the path to the file connected with the document */ - void setAbsFilePath(const QString &filename); + void setAbsFilePath(const TQString &filename); /** * returns the pathname of the current document file */ - const QString &getAbsFilePath() const; + const TQString &getAbsFilePath() const; /** * sets the filename of the document */ - void setTitle(const QString &_t); + void setTitle(const TQString &_t); /** * returns the title of the document */ - const QString &getTitle() const; + const TQString &getTitle() const; /** * Returns true if the file is a regular Rosegarden ".rg" file, @@ -386,8 +386,8 @@ public: // doesn't want to keep it. We can offer to delete these files // permanently when the document is saved. // - void addOrphanedRecordedAudioFile(QString fileName); - void addOrphanedDerivedAudioFile(QString fileName); + void addOrphanedRecordedAudioFile(TQString fileName); + void addOrphanedDerivedAudioFile(TQString fileName); // Consider whether to orphan the given audio file which is about // to be removed from the audio file manager. @@ -431,9 +431,9 @@ public: //Obsolete: multitrack MIDI recording. plcl 06/2006. //Segment *getRecordMIDISegment() { return m_recordMIDISegment; } - QStringList getTimers(); - QString getCurrentTimer(); - void setCurrentTimer(QString); + TQStringList getTimers(); + TQString getCurrentTimer(); + void setCurrentTimer(TQString); /** * return the list of the views currently connected to the document @@ -536,7 +536,7 @@ protected: * @return false if parsing failed * @see RoseXmlHandler */ - bool xmlParse(QString fileContents, QString &errMsg, + bool xmlParse(TQString fileContents, TQString &errMsg, ProgressDialog *progress, unsigned int elementCount, bool permanent, @@ -557,7 +557,7 @@ protected: /** * Returns the name of the autosave file */ - QString getAutoSaveFileName(); + TQString getAutoSaveFileName(); /** * Save document to the given file. This function does the actual @@ -566,15 +566,15 @@ protected: * required file, so as not to lose the original if a failure * occurs during overwriting. */ - bool saveDocumentActual(const QString &filename, QString& errMsg, + bool saveDocumentActual(const TQString &filename, TQString& errMsg, bool autosave = false); /** * Save one segment to the given text stream */ - void saveSegment(QTextStream&, Segment*, KProgress*, + void saveSegment(TQTextStream&, Segment*, KProgress*, long totalNbOfEvents, long &count, - QString extraAttributes = QString::null); + TQString extraAttributes = TQString::null); bool deleteOrphanedAudioFiles(bool documentWillNotBeSaved); @@ -636,12 +636,12 @@ protected: /** * the title of the current document */ - QString m_title; + TQString m_title; /** * absolute file path of the current document */ - QString m_absFilePath; + TQString m_absFilePath; /** * the composition this document is wrapping @@ -716,8 +716,8 @@ protected: timeT m_quickMarkerTime; - std::vector<QString> m_orphanedRecordedAudioFiles; - std::vector<QString> m_orphanedDerivedAudioFiles; + std::vector<TQString> m_orphanedRecordedAudioFiles; + std::vector<TQString> m_orphanedDerivedAudioFiles; // Autosave period for this document in seconds // |