summaryrefslogtreecommitdiffstats
path: root/src/gui/configuration/DocumentMetaConfigurationPage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/configuration/DocumentMetaConfigurationPage.cpp')
-rw-r--r--src/gui/configuration/DocumentMetaConfigurationPage.cpp92
1 files changed, 46 insertions, 46 deletions
diff --git a/src/gui/configuration/DocumentMetaConfigurationPage.cpp b/src/gui/configuration/DocumentMetaConfigurationPage.cpp
index 9f5064b..b6479cc 100644
--- a/src/gui/configuration/DocumentMetaConfigurationPage.cpp
+++ b/src/gui/configuration/DocumentMetaConfigurationPage.cpp
@@ -44,22 +44,22 @@
#include "TabbedConfigurationPage.h"
#include <kconfig.h>
#include <klistview.h>
-#include <qframe.h>
-#include <qlabel.h>
-#include <qlistview.h>
-#include <qpixmap.h>
-#include <qpushbutton.h>
-#include <qstring.h>
-#include <qtable.h>
-#include <qtabwidget.h>
-#include <qwidget.h>
-#include <qlayout.h>
+#include <tqframe.h>
+#include <tqlabel.h>
+#include <tqlistview.h>
+#include <tqpixmap.h>
+#include <tqpushbutton.h>
+#include <tqstring.h>
+#include <tqtable.h>
+#include <tqtabwidget.h>
+#include <tqwidget.h>
+#include <tqlayout.h>
namespace Rosegarden
{
-static QString durationToString(Rosegarden::Composition &comp,
+static TQString durationToString(Rosegarden::Composition &comp,
Rosegarden::timeT absTime,
Rosegarden::timeT duration,
Rosegarden::RealTime rt)
@@ -74,11 +74,11 @@ static QString durationToString(Rosegarden::Composition &comp,
class SegmentDataItem : public QTableItem
{
public:
- SegmentDataItem(QTable *t, QString s) :
- QTableItem(t, QTableItem::Never, s) { }
+ SegmentDataItem(TQTable *t, TQString s) :
+ TQTableItem(t, TQTableItem::Never, s) { }
virtual int alignment() const { return Qt::AlignCenter; }
- virtual QString key() const {
+ virtual TQString key() const {
// It doesn't seem to be possible to specify a comparator so
// as to get the right sorting for numeric items (what am I
@@ -94,9 +94,9 @@ public:
// assumption should hold for all current uses of this class,
// but may need checking for future uses...
- QString s(text());
+ TQString s(text());
if (s[0].digitValue() >= 0) {
- return QString("%1%2").arg(s.length()).arg(s);
+ return TQString("%1%2").arg(s.length()).arg(s);
} else {
return s;
}
@@ -104,7 +104,7 @@ public:
};
DocumentMetaConfigurationPage::DocumentMetaConfigurationPage(RosegardenGUIDoc *doc,
- QWidget *parent,
+ TQWidget *parent,
const char *name) :
TabbedConfigurationPage(doc, parent, name)
{
@@ -125,32 +125,32 @@ DocumentMetaConfigurationPage::DocumentMetaConfigurationPage(RosegardenGUIDoc *d
++internalSegments;
}
- QFrame *frame = new QFrame(m_tabWidget);
- QGridLayout *layout = new QGridLayout(frame,
+ TQFrame *frame = new TQFrame(m_tabWidget);
+ TQGridLayout *layout = new TQGridLayout(frame,
6, 2,
10, 5);
- layout->addWidget(new QLabel(i18n("Filename:"), frame), 0, 0);
- layout->addWidget(new QLabel(doc->getTitle(), frame), 0, 1);
+ layout->addWidget(new TQLabel(i18n("Filename:"), frame), 0, 0);
+ layout->addWidget(new TQLabel(doc->getTitle(), frame), 0, 1);
- layout->addWidget(new QLabel(i18n("Formal duration (to end marker):"), frame), 1, 0);
+ layout->addWidget(new TQLabel(i18n("Formal duration (to end marker):"), frame), 1, 0);
timeT d = comp.getEndMarker();
RealTime rtd = comp.getElapsedRealTime(d);
- layout->addWidget(new QLabel(durationToString(comp, 0, d, rtd), frame), 1, 1);
+ layout->addWidget(new TQLabel(durationToString(comp, 0, d, rtd), frame), 1, 1);
- layout->addWidget(new QLabel(i18n("Playing duration:"), frame), 2, 0);
+ layout->addWidget(new TQLabel(i18n("Playing duration:"), frame), 2, 0);
d = comp.getDuration();
rtd = comp.getElapsedRealTime(d);
- layout->addWidget(new QLabel(durationToString(comp, 0, d, rtd), frame), 2, 1);
+ layout->addWidget(new TQLabel(durationToString(comp, 0, d, rtd), frame), 2, 1);
- layout->addWidget(new QLabel(i18n("Tracks:"), frame), 3, 0);
- layout->addWidget(new QLabel(i18n("%1 used, %2 total")
+ layout->addWidget(new TQLabel(i18n("Tracks:"), frame), 3, 0);
+ layout->addWidget(new TQLabel(i18n("%1 used, %2 total")
.arg(usedTracks.size())
.arg(comp.getNbTracks()),
frame), 3, 1);
- layout->addWidget(new QLabel(i18n("Segments:"), frame), 4, 0);
- layout->addWidget(new QLabel(i18n("%1 MIDI, %2 audio, %3 total")
+ layout->addWidget(new TQLabel(i18n("Segments:"), frame), 4, 0);
+ layout->addWidget(new TQLabel(i18n("%1 MIDI, %2 audio, %3 total")
.arg(internalSegments)
.arg(audioSegments)
.arg(internalSegments + audioSegments),
@@ -160,11 +160,11 @@ DocumentMetaConfigurationPage::DocumentMetaConfigurationPage(RosegardenGUIDoc *d
addTab(frame, i18n("Statistics"));
- frame = new QFrame(m_tabWidget);
- layout = new QGridLayout(frame, 1, 1, 10, 5);
+ frame = new TQFrame(m_tabWidget);
+ layout = new TQGridLayout(frame, 1, 1, 10, 5);
- QTable *table = new QTable(1, 11, frame, "Segment Table");
- table->setSelectionMode(QTable::NoSelection);
+ TQTable *table = new TQTable(1, 11, frame, "Segment Table");
+ table->setSelectionMode(TQTable::NoSelection);
table->setSorting(true);
table->horizontalHeader()->setLabel(0, i18n("Type"));
table->horizontalHeader()->setLabel(1, i18n("Track"));
@@ -205,25 +205,25 @@ DocumentMetaConfigurationPage::DocumentMetaConfigurationPage(RosegardenGUIDoc *d
table->setItem(i, 1, new SegmentDataItem
(table,
- QString("%1").arg(s->getTrack() + 1)));
+ TQString("%1").arg(s->getTrack() + 1)));
- QPixmap colourPixmap(16, 16);
+ TQPixmap colourPixmap(16, 16);
Colour colour =
comp.getSegmentColourMap().getColourByIndex(s->getColourIndex());
colourPixmap.fill(GUIPalette::convertColour(colour));
table->setItem(i, 2,
- new QTableItem(table, QTableItem::Never,
+ new TQTableItem(table, TQTableItem::Never,
strtoqstr(s->getLabel()),
colourPixmap));
table->setItem(i, 3, new SegmentDataItem
(table,
- QString("%1").arg(s->getStartTime())));
+ TQString("%1").arg(s->getStartTime())));
table->setItem(i, 4, new SegmentDataItem
(table,
- QString("%1").arg(s->getEndMarkerTime() -
+ TQString("%1").arg(s->getEndMarkerTime() -
s->getStartTime())));
std::set<long> notesOn;
@@ -254,11 +254,11 @@ DocumentMetaConfigurationPage::DocumentMetaConfigurationPage(RosegardenGUIDoc *d
table->setItem(i, 5, new SegmentDataItem
(table,
- QString("%1").arg(events)));
+ TQString("%1").arg(events)));
table->setItem(i, 6, new SegmentDataItem
(table,
- QString("%1").arg(maxPoly)));
+ TQString("%1").arg(maxPoly)));
table->setItem(i, 7, new SegmentDataItem
(table,
@@ -280,13 +280,13 @@ DocumentMetaConfigurationPage::DocumentMetaConfigurationPage(RosegardenGUIDoc *d
table->setItem(i, 9, new SegmentDataItem
(table,
- QString("%1").arg(s->getTranspose())));
+ TQString("%1").arg(s->getTranspose())));
if (s->getDelay() != 0) {
if (s->getRealTimeDelay() != RealTime::zeroTime) {
table->setItem(i, 10, new SegmentDataItem
(table,
- QString("%1 + %2 ms")
+ TQString("%1 + %2 ms")
.arg(NotationStrings::makeNoteMenuLabel
(s->getDelay(), true, discard, false))
.arg(s->getRealTimeDelay().sec * 1000 +
@@ -300,7 +300,7 @@ DocumentMetaConfigurationPage::DocumentMetaConfigurationPage(RosegardenGUIDoc *d
} else if (s->getRealTimeDelay() != RealTime::zeroTime) {
table->setItem(i, 10, new SegmentDataItem
(table,
- QString("%2 ms")
+ TQString("%2 ms")
.arg(s->getRealTimeDelay().sec * 1000 +
s->getRealTimeDelay().msec())));
} else {
@@ -328,13 +328,13 @@ DocumentMetaConfigurationPage::apply()
/* hjj: WHAT TO DO WITH THIS ?
void
-DocumentMetaConfigurationPage::selectMetadata(QString name)
+DocumentMetaConfigurationPage::selectMetadata(TQString name)
{
std::vector<PropertyName> fixedKeys =
CompositionMetadataKeys::getFixedKeys();
std::vector<PropertyName>::iterator i = fixedKeys.begin();
- for (QListViewItem *item = m_fixed->firstChild();
+ for (TQListViewItem *item = m_fixed->firstChild();
item != 0; item = item->nextSibling()) {
if (i == fixedKeys.end())
@@ -349,7 +349,7 @@ DocumentMetaConfigurationPage::selectMetadata(QString name)
++i;
}
- for (QListViewItem *item = m_metadata->firstChild();
+ for (TQListViewItem *item = m_metadata->firstChild();
item != 0; item = item->nextSibling()) {
if (item->text(0).lower() != name)