diff options
Diffstat (limited to 'muse2')
-rw-r--r-- | muse2/ChangeLog | 2 | ||||
-rw-r--r-- | muse2/muse/app.cpp | 4 | ||||
-rw-r--r-- | muse2/muse/appearance.cpp | 75 | ||||
-rw-r--r-- | muse2/muse/appearance.h | 12 | ||||
-rw-r--r-- | muse2/muse/widgets/CMakeLists.txt | 8 | ||||
-rw-r--r-- | muse2/muse/widgets/appearancebase.ui | 3390 | ||||
-rw-r--r-- | muse2/muse/widgets/mixdowndialog.cpp | 23 | ||||
-rw-r--r-- | muse2/muse/widgets/mixdowndialog.h | 11 | ||||
-rw-r--r-- | muse2/muse/widgets/mixdowndialogbase.ui | 439 | ||||
-rw-r--r-- | muse2/muse/widgets/shortcutcapturedialog.cpp | 12 | ||||
-rw-r--r-- | muse2/muse/widgets/shortcutcapturedialog.h | 10 | ||||
-rw-r--r-- | muse2/muse/widgets/shortcutcapturedialogbase.ui | 258 | ||||
-rw-r--r-- | muse2/muse/widgets/shortcutconfig.cpp | 32 | ||||
-rw-r--r-- | muse2/muse/widgets/shortcutconfig.h | 21 | ||||
-rw-r--r-- | muse2/muse/widgets/shortcutconfigbase.ui | 383 |
15 files changed, 2259 insertions, 2421 deletions
diff --git a/muse2/ChangeLog b/muse2/ChangeLog index 002b3956..839275e7 100644 --- a/muse2/ChangeLog +++ b/muse2/ChangeLog @@ -1,6 +1,8 @@ 20.11.2010 - Remove most wrapper classes around .ui widgets. I was wrapping them too much. Some widgets (e.g. songinfo) still need wrappers though. (Orcan) + - Ported the following .ui widgets to Qt4: appearancebase, mixdowndialogbase, + shortcutcapturedialogbase, shortcutconfigbase (Orcan) 19.11.2010 - Started some conversions of midieditor, pianoroll, drumedit, incl. their QGridLayouts. (Tim) - More icon conversion work (Orcan) diff --git a/muse2/muse/app.cpp b/muse2/muse/app.cpp index 457726e8..fb36c849 100644 --- a/muse2/muse/app.cpp +++ b/muse2/muse/app.cpp @@ -4124,7 +4124,7 @@ void MusE::configMetronome() void MusE::configShortCuts() { if (!shortcutConfig) - shortcutConfig = new ShortcutConfig(this, "shortcutconfig"); + shortcutConfig = new ShortcutConfig(this); shortcutConfig->_config_changed = false; if (shortcutConfig->exec()) changeConfig(true); @@ -4555,7 +4555,7 @@ void MusE::bounceToFile(AudioOutput* ao) if (checkRegionNotNull()) return; - SndFile* sf = getSndFile(0, this, 0); + SndFile* sf = getSndFile(0, this); if (sf == 0) return; diff --git a/muse2/muse/appearance.cpp b/muse2/muse/appearance.cpp index e47653d5..adcc51ba 100644 --- a/muse2/muse/appearance.cpp +++ b/muse2/muse/appearance.cpp @@ -5,27 +5,13 @@ //========================================================= #include <stdio.h> + #include <QAbstractButton> -#include <qstring.h> -#include <qcombobox.h> -#include <qspinbox.h> #include <QButtonGroup> -#include <qradiobutton.h> -#include <qcheckbox.h> -#include <qlabel.h> -#include <qpixmap.h> -#include <qcolor.h> -#include <qcolordialog.h> -#include <q3listbox.h> -#include <qlineedit.h> -#include <qtoolbutton.h> -#include <qfontdialog.h> -#include <qapplication.h> -#include <qstylefactory.h> -#include <q3listview.h> -#include <qslider.h> -#include <qstyle.h> -#include <qtooltip.h> +#include <QColor> +#include <QFontDialog> +#include <QStyleFactory> +#include <QToolTip> #include "icons.h" #include "appearance.h" @@ -44,17 +30,17 @@ // IdListViewItem //--------------------------------------------------------- -class IdListViewItem : public Q3ListViewItem { +class IdListViewItem : public QTreeWidgetItem { int _id; public: - IdListViewItem(int id, Q3ListViewItem* parent, QString s) - : Q3ListViewItem(parent, s) + IdListViewItem(int id, QTreeWidgetItem* parent, QString s) + : QTreeWidgetItem(parent, QStringList(s)) { _id = id; } - IdListViewItem(int id, Q3ListView* parent, QString s) - : Q3ListViewItem(parent, s) + IdListViewItem(int id, QTreeWidget* parent, QString s) + : QTreeWidgetItem(parent, QStringList(s)) { _id = id; } @@ -65,9 +51,10 @@ class IdListViewItem : public Q3ListViewItem { // Appearance //--------------------------------------------------------- -Appearance::Appearance(Arranger* a, QWidget* parent, const char* name) - : AppearanceDialogBase(parent, name) +Appearance::Appearance(Arranger* a, QWidget* parent) + : QDialog(parent) { + setupUi(this); arr = a; color = 0; config = new GlobalConfigValues; @@ -103,6 +90,27 @@ Appearance::Appearance(Arranger* a, QWidget* parent, const char* name) eventButtonGroup->setEnabled(config->canvasShowPartType == 2); arrGrid->setChecked(config->canvasShowGrid); */ + colorframe->setAutoFillBackground(true); + aPalette = new QButtonGroup(aPaletteBox); + + // There must be an easier way to do this by a for loop. No? : + aPalette->addButton(palette0, 0); + aPalette->addButton(palette1, 1); + aPalette->addButton(palette2, 2); + aPalette->addButton(palette3, 3); + aPalette->addButton(palette4, 4); + aPalette->addButton(palette5, 5); + aPalette->addButton(palette6, 6); + aPalette->addButton(palette7, 7); + aPalette->addButton(palette8, 8); + aPalette->addButton(palette9, 9); + aPalette->addButton(palette10, 10); + aPalette->addButton(palette11, 11); + aPalette->addButton(palette12, 12); + aPalette->addButton(palette13, 13); + aPalette->addButton(palette14, 14); + aPalette->addButton(palette15, 15); + aPalette->setExclusive(true); // COLORS IdListViewItem* id; @@ -150,8 +158,8 @@ Appearance::Appearance(Arranger* a, QWidget* parent, const char* name) id = new IdListViewItem(0, itemList, "Wave Editor"); new IdListViewItem(0x300, id, "background"); - connect(itemList, SIGNAL(selectionChanged()), SLOT(colorItemSelectionChanged())); - connect(aPalette, SIGNAL(clicked(int)), SLOT(paletteClicked(int))); + connect(itemList, SIGNAL(itemSelectionChanged()), SLOT(colorItemSelectionChanged())); + connect(aPalette, SIGNAL(buttonClicked(int)), SLOT(paletteClicked(int))); connect(rslider, SIGNAL(valueChanged(int)), SLOT(rsliderChanged(int))); connect(gslider, SIGNAL(valueChanged(int)), SLOT(gsliderChanged(int))); connect(bslider, SIGNAL(valueChanged(int)), SLOT(bsliderChanged(int))); @@ -464,7 +472,7 @@ void Appearance::clearBackground() void Appearance::colorItemSelectionChanged() { - IdListViewItem* item = (IdListViewItem*)itemList->selectedItem(); + IdListViewItem* item = (IdListViewItem*)itemList->selectedItems()[0]; QString txt = item->text(0); int id = item->id(); if (id == 0) { @@ -645,7 +653,8 @@ void Appearance::addToPaletteClicked() { if (!color) return; - QAbstractButton* button = (QAbstractButton*)aPalette->selected(); // ddskrjo + QAbstractButton* button = (QAbstractButton*)aPalette->checkedButton(); // ddskrjo + int r, g, b; QColor c; if (button) { @@ -659,9 +668,9 @@ void Appearance::addToPaletteClicked() c.getRgb(&r, &g, &b); if (r == 0xff && g == 0xff && b == 0xff) { // found empty slot - aPalette->setButton(i); + aPalette->button(i)->toggle(); //aPalette->moveFocus(i); ddskrjo - button = (QAbstractButton*)aPalette->find(i); // ddskrjo + button = (QAbstractButton*)aPalette->button(i); // ddskrjo break; } } @@ -682,7 +691,7 @@ void Appearance::paletteClicked(int id) { if (!color) return; - QAbstractButton* button = (QAbstractButton*)aPalette->find(id); // ddskrjo + QAbstractButton* button = (QAbstractButton*)aPalette->button(id); // ddskrjo if (button) { QColor c = button->paletteBackgroundColor(); int r, g, b; diff --git a/muse2/muse/appearance.h b/muse2/muse/appearance.h index 1225d96a..e2755aef 100644 --- a/muse2/muse/appearance.h +++ b/muse2/muse/appearance.h @@ -1,23 +1,25 @@ #ifndef __APPEARANCE_H__ #define __APPEARANCE_H__ -#include "appearancebase.h" -#include <qfont.h> +#include "ui_appearancebase.h" + +class QColor; +class QDialog; class MusE; class Arranger; -class QColor; class GlobalConfigValues; //--------------------------------------------------------- // Appearance Dialog //--------------------------------------------------------- -class Appearance : public AppearanceDialogBase { +class Appearance : public QDialog, public Ui::AppearanceDialogBase { Arranger* arr; QColor* color; QString currentBg; GlobalConfigValues* config; + QButtonGroup* aPalette; Q_OBJECT void updateFonts(); @@ -48,7 +50,7 @@ class Appearance : public AppearanceDialogBase { void paletteClicked(int); public: - Appearance(Arranger*, QWidget* parent=0, const char* name=0); + Appearance(Arranger*, QWidget* parent=0); ~Appearance(); void resetValues(); }; diff --git a/muse2/muse/widgets/CMakeLists.txt b/muse2/muse/widgets/CMakeLists.txt index f5592990..0b438ea7 100644 --- a/muse2/muse/widgets/CMakeLists.txt +++ b/muse2/muse/widgets/CMakeLists.txt @@ -132,12 +132,16 @@ QT4_WRAP_CPP (widget_mocs ) QT4_WRAP_UI (UIC + appearancebase.ui commentbase.ui fdialogbuttons.ui itransformbase.ui metronomebase.ui mittransposebase.ui + mixdowndialogbase.ui mtrackinfobase.ui + shortcutcapturedialogbase.ui + shortcutconfigbase.ui songinfo.ui transformbase.ui velocitybase.ui @@ -148,9 +152,7 @@ QT4_WRAP_UI (UIC QT4_WRAP_UI3 (widget_ui_headers midisync.ui gensetbase.ui - mixdowndialogbase.ui transposebase.ui - appearancebase.ui synthconfigbase.ui gatetimebase.ui wtrackinfobase.ui @@ -159,8 +161,6 @@ QT4_WRAP_UI3 (widget_ui_headers editnotedialogbase.ui editsysexdialogbase.ui cliplisteditorbase.ui - shortcutconfigbase.ui - shortcutcapturedialogbase.ui aboutbox.ui didyouknow.ui configmidifilebase.ui diff --git a/muse2/muse/widgets/appearancebase.ui b/muse2/muse/widgets/appearancebase.ui index 7c9a3e97..ce046b58 100644 --- a/muse2/muse/widgets/appearancebase.ui +++ b/muse2/muse/widgets/appearancebase.ui @@ -1,1764 +1,1640 @@ -<!DOCTYPE UI><UI version="3.2" stdsetdef="1"> -<class>AppearanceDialogBase</class> -<widget class="QDialog"> - <property name="name"> - <cstring>AppearanceDialogBase</cstring> - </property> - <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>591</width> - <height>597</height> - </rect> - </property> - <property name="caption"> - <string>MusE: Appearance settings</string> - </property> - <vbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <widget class="QTabWidget"> - <property name="name"> - <cstring>TabWidget2</cstring> +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>AppearanceDialogBase</class> + <widget class="QDialog" name="AppearanceDialogBase"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>591</width> + <height>597</height> + </rect> + </property> + <property name="windowTitle"> + <string>MusE: Appearance settings</string> + </property> + <layout class="QVBoxLayout"> + <item> + <widget class="QTabWidget" name="TabWidget2"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <widget class="QWidget" name="tab"> + <attribute name="title"> + <string>Arranger</string> + </attribute> + <layout class="QGridLayout"> + <property name="margin"> + <number>11</number> + </property> + <property name="spacing"> + <number>6</number> + </property> + <item row="0" column="0"> + <widget class="QGroupBox" name="ButtonGroup3"> + <property name="title"> + <string>Parts</string> + </property> + <layout class="QVBoxLayout"> + <property name="spacing"> + <number>6</number> + </property> + <property name="margin"> + <number>11</number> + </property> + <item> + <widget class="QCheckBox" name="partShownames"> + <property name="text"> + <string>show names</string> </property> + </widget> + </item> + <item> + <widget class="QRadioButton" name="partShowevents"> + <property name="text"> + <string>show events</string> + </property> + </widget> + </item> + <item> + <widget class="QRadioButton" name="partShowCakes"> + <property name="text"> + <string>show Cakewalk Style</string> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item row="0" column="1"> + <widget class="QGroupBox" name="eventButtonGroup"> + <property name="title"> + <string>Events</string> + </property> + <layout class="QGridLayout"> + <property name="margin"> + <number>11</number> + </property> + <property name="spacing"> + <number>6</number> + </property> + <item row="0" column="0"> + <widget class="QCheckBox" name="eventNoteon"> + <property name="text"> + <string>note on</string> + </property> + </widget> + </item> + <item row="1" column="0"> + <widget class="QCheckBox" name="eventPolypressure"> + <property name="text"> + <string>poly pressure</string> + </property> + </widget> + </item> + <item row="2" column="0"> + <widget class="QCheckBox" name="eventController"> + <property name="text"> + <string>controller</string> + </property> + </widget> + </item> + <item row="1" column="1"> + <widget class="QCheckBox" name="eventAftertouch"> + <property name="text"> + <string>aftertouch</string> + </property> + </widget> + </item> + <item row="2" column="1"> + <widget class="QCheckBox" name="eventPitchbend"> + <property name="text"> + <string>pitch bend</string> + </property> + </widget> + </item> + <item row="0" column="1"> + <widget class="QCheckBox" name="eventProgramchange"> + <property name="text"> + <string>program change</string> + </property> + </widget> + </item> + <item row="3" column="0"> + <widget class="QCheckBox" name="eventSpecial"> + <property name="text"> + <string>special</string> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item row="1" column="0" colspan="2"> + <widget class="QGroupBox" name="GroupBox2"> + <property name="title"> + <string>Background picture</string> + </property> + <layout class="QHBoxLayout"> + <property name="spacing"> + <number>6</number> + </property> + <property name="margin"> + <number>11</number> + </property> + <item> + <widget class="QLabel" name="currentBgLabel"> <property name="sizePolicy"> - <sizepolicy> - <hsizetype>3</hsizetype> - <vsizetype>7</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <widget class="QWidget"> - <property name="name"> - <cstring>tab</cstring> - </property> - <attribute name="title"> - <string>Arranger</string> - </attribute> - <grid> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <property name="margin"> - <number>11</number> - </property> - <property name="spacing"> - <number>6</number> - </property> - <widget class="QButtonGroup" row="0" column="0"> - <property name="name"> - <cstring>ButtonGroup3</cstring> - </property> - <property name="title"> - <string>Parts</string> - </property> - <property name="radioButtonExclusive"> - <bool>true</bool> - </property> - <vbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <property name="margin"> - <number>11</number> - </property> - <property name="spacing"> - <number>6</number> - </property> - <widget class="QCheckBox"> - <property name="name"> - <cstring>partShownames</cstring> - </property> - <property name="text"> - <string>show names</string> - </property> - </widget> - <widget class="QRadioButton"> - <property name="name"> - <cstring>partShowevents</cstring> - </property> - <property name="text"> - <string>show events</string> - </property> - </widget> - <widget class="QRadioButton"> - <property name="name"> - <cstring>partShowCakes</cstring> - </property> - <property name="text"> - <string>show Cakewalk Style</string> - </property> - </widget> - </vbox> - </widget> - <widget class="QGroupBox" row="0" column="1"> - <property name="name"> - <cstring>eventButtonGroup</cstring> - </property> - <property name="title"> - <string>Events</string> - </property> - <grid> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <property name="margin"> - <number>11</number> - </property> - <property name="spacing"> - <number>6</number> - </property> - <widget class="QCheckBox" row="0" column="0"> - <property name="name"> - <cstring>eventNoteon</cstring> - </property> - <property name="text"> - <string>note on</string> - </property> - </widget> - <widget class="QCheckBox" row="1" column="0"> - <property name="name"> - <cstring>eventPolypressure</cstring> - </property> - <property name="text"> - <string>poly pressure</string> - </property> - </widget> - <widget class="QCheckBox" row="2" column="0"> - <property name="name"> - <cstring>eventController</cstring> - </property> - <property name="text"> - <string>controller</string> - </property> - </widget> - <widget class="QCheckBox" row="1" column="1"> - <property name="name"> - <cstring>eventAftertouch</cstring> - </property> - <property name="text"> - <string>aftertouch</string> - </property> - </widget> - <widget class="QCheckBox" row="2" column="1"> - <property name="name"> - <cstring>eventPitchbend</cstring> - </property> - <property name="text"> - <string>pitch bend</string> - </property> - </widget> - <widget class="QCheckBox" row="0" column="1"> - <property name="name"> - <cstring>eventProgramchange</cstring> - </property> - <property name="text"> - <string>program change</string> - </property> - </widget> - <widget class="QCheckBox" row="3" column="0"> - <property name="name"> - <cstring>eventSpecial</cstring> - </property> - <property name="text"> - <string>special</string> - </property> - </widget> - </grid> - </widget> - <widget class="QGroupBox" row="1" column="0" rowspan="1" colspan="2"> - <property name="name"> - <cstring>GroupBox2</cstring> - </property> - <property name="title"> - <string>Background picture</string> - </property> - <hbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <property name="margin"> - <number>11</number> - </property> - <property name="spacing"> - <number>6</number> - </property> - <widget class="QLabel"> - <property name="name"> - <cstring>currentBgLabel</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>1</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>bg</string> - </property> - <property name="alignment"> - <set>AlignVCenter|AlignLeft</set> - </property> - <property name="indent"> - <number>-1</number> - </property> - <property name="hAlign" stdset="0"> - </property> - </widget> - <widget class="QPushButton"> - <property name="name"> - <cstring>selectBgButton</cstring> - </property> - <property name="text"> - <string>select...</string> - </property> - </widget> - <widget class="QPushButton"> - <property name="name"> - <cstring>clearBgButton</cstring> - </property> - <property name="text"> - <string>clear</string> - </property> - </widget> - </hbox> - </widget> - <widget class="QCheckBox" row="2" column="0" rowspan="1" colspan="2"> - <property name="name"> - <cstring>arrGrid</cstring> - </property> - <property name="text"> - <string>show snap grid</string> - </property> - </widget> - </grid> + <sizepolicy hsizetype="Expanding" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>bg</string> + </property> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + <property name="indent"> + <number>-1</number> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="selectBgButton"> + <property name="text"> + <string>select...</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="clearBgButton"> + <property name="text"> + <string>clear</string> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item row="2" column="0" colspan="2"> + <widget class="QCheckBox" name="arrGrid"> + <property name="text"> + <string>show snap grid</string> + </property> + </widget> + </item> + </layout> + </widget> + <widget class="QWidget" name="tab"> + <attribute name="title"> + <string>Colors</string> + </attribute> + <layout class="QVBoxLayout"> + <item> + <layout class="QGridLayout"> + <item row="0" column="1"> + <widget class="QGroupBox" name="aPaletteBox"> + <property name="focusPolicy"> + <enum>Qt::NoFocus</enum> + </property> + <property name="title"> + <string>Palette</string> + </property> + <property name="selectedId" stdset="0"> + <number>0</number> + </property> + <layout class="QGridLayout"> + <property name="spacing"> + <number>0</number> + </property> + <item row="0" column="0"> + <widget class="QPushButton" name="palette0"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string/> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + <property name="checked"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="1" column="0"> + <widget class="QPushButton" name="palette1"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string/> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="2" column="0"> + <widget class="QPushButton" name="palette2"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string/> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="3" column="0"> + <widget class="QPushButton" name="palette3"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string/> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="4" column="0"> + <widget class="QPushButton" name="palette4"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string/> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="5" column="0"> + <widget class="QPushButton" name="palette5"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string/> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="0" column="1"> + <widget class="QPushButton" name="palette8"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string/> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="1" column="1"> + <widget class="QPushButton" name="palette9"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string/> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="2" column="1"> + <widget class="QPushButton" name="palette10"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string/> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="3" column="1"> + <widget class="QPushButton" name="palette11"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string/> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="4" column="1"> + <widget class="QPushButton" name="palette12"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string/> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="5" column="1"> + <widget class="QPushButton" name="palette13"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string/> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="7" column="0"> + <widget class="QPushButton" name="palette7"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string/> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="6" column="0"> + <widget class="QPushButton" name="palette6"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string/> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="7" column="1"> + <widget class="QPushButton" name="palette15"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string/> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="6" column="1"> + <widget class="QPushButton" name="palette14"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string/> + </property> + <property name="checkable"> + <bool>true</bool> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item row="1" column="1"> + <widget class="QPushButton" name="addToPalette"> + <property name="text"> + <string>add to palette</string> + </property> + </widget> + </item> + <item row="0" column="2" rowspan="2"> + <widget class="QFrame" name="colorframe"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="frameShape"> + <enum>QFrame::StyledPanel</enum> + </property> + <property name="frameShadow"> + <enum>QFrame::Sunken</enum> + </property> + </widget> + </item> + <item row="2" column="1" colspan="2"> + <layout class="QGridLayout"> + <item row="0" column="1"> + <widget class="QSpinBox" name="rval"> + <property name="maximum"> + <number>255</number> + </property> + </widget> + </item> + <item row="3" column="2"> + <widget class="QSlider" name="hslider"> + <property name="maximum"> + <number>255</number> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + </item> + <item row="2" column="0"> + <widget class="QLabel" name="textLabel3_2"> + <property name="text"> + <string>B</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item row="4" column="0"> + <widget class="QLabel" name="textLabel5_2"> + <property name="text"> + <string>S</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item row="3" column="0"> + <widget class="QLabel" name="textLabel4_2"> + <property name="text"> + <string>H</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item row="2" column="1"> + <widget class="QSpinBox" name="bval"> + <property name="maximum"> + <number>255</number> + </property> + </widget> + </item> + <item row="5" column="2"> + <widget class="QSlider" name="vslider"> + <property name="maximum"> + <number>255</number> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + </item> + <item row="5" column="0"> + <widget class="QLabel" name="textLabel6_2"> + <property name="text"> + <string>V</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item row="1" column="0"> + <widget class="QLabel" name="textLabel2_2"> + <property name="text"> + <string>G</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item row="4" column="1"> + <widget class="QSpinBox" name="sval"> + <property name="maximum"> + <number>255</number> + </property> + </widget> + </item> + <item row="1" column="2"> + <widget class="QSlider" name="gslider"> + <property name="maximum"> + <number>255</number> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> </widget> - <widget class="QWidget"> - <property name="name"> - <cstring>tab</cstring> - </property> - <attribute name="title"> - <string>Colors</string> - </attribute> - <vbox> - <grid> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <widget class="QButtonGroup" row="0" column="1"> - <property name="name"> - <cstring>aPalette</cstring> - </property> - <property name="focusPolicy"> - <enum>NoFocus</enum> - </property> - <property name="title"> - <string>Palette</string> - </property> - <property name="exclusive"> - <bool>true</bool> - </property> - <property name="selectedId" stdset="0"> - <number>0</number> - </property> - <grid> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <property name="spacing"> - <number>0</number> - </property> - <widget class="QPushButton" row="0" column="0"> - <property name="name"> - <cstring>palette0</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>7</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string></string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - <property name="on"> - <bool>true</bool> - </property> - </widget> - <widget class="QPushButton" row="1" column="0"> - <property name="name"> - <cstring>palette1</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>7</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string></string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - <property name="buttonGroupId"> - <number>1</number> - </property> - </widget> - <widget class="QPushButton" row="2" column="0"> - <property name="name"> - <cstring>palette2</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>7</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string></string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - <property name="buttonGroupId"> - <number>2</number> - </property> - </widget> - <widget class="QPushButton" row="3" column="0"> - <property name="name"> - <cstring>palette3</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>7</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string></string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - <property name="buttonGroupId"> - <number>3</number> - </property> - </widget> - <widget class="QPushButton" row="4" column="0"> - <property name="name"> - <cstring>palette4</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>7</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string></string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - <property name="buttonGroupId"> - <number>4</number> - </property> - </widget> - <widget class="QPushButton" row="5" column="0"> - <property name="name"> - <cstring>palette5</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>7</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string></string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - <property name="buttonGroupId"> - <number>5</number> - </property> - </widget> - <widget class="QPushButton" row="0" column="1"> - <property name="name"> - <cstring>palette8</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>7</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string></string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - <property name="buttonGroupId"> - <number>8</number> - </property> - </widget> - <widget class="QPushButton" row="1" column="1"> - <property name="name"> - <cstring>palette9</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>7</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string></string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - <property name="buttonGroupId"> - <number>9</number> - </property> - </widget> - <widget class="QPushButton" row="2" column="1"> - <property name="name"> - <cstring>palette10</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>7</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="paletteBackgroundColor"> - <color> - <red>238</red> - <green>222</green> - <blue>222</blue> - </color> - </property> - <property name="text"> - <string></string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - <property name="buttonGroupId"> - <number>10</number> - </property> - </widget> - <widget class="QPushButton" row="3" column="1"> - <property name="name"> - <cstring>palette11</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>7</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string></string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - <property name="buttonGroupId"> - <number>11</number> - </property> - </widget> - <widget class="QPushButton" row="4" column="1"> - <property name="name"> - <cstring>palette12</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>7</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string></string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - <property name="buttonGroupId"> - <number>12</number> - </property> - </widget> - <widget class="QPushButton" row="5" column="1"> - <property name="name"> - <cstring>palette13</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>7</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string></string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - <property name="buttonGroupId"> - <number>13</number> - </property> - </widget> - <widget class="QPushButton" row="7" column="0"> - <property name="name"> - <cstring>palette7</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>7</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string></string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - <property name="buttonGroupId"> - <number>7</number> - </property> - </widget> - <widget class="QPushButton" row="6" column="0"> - <property name="name"> - <cstring>palette6</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>7</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string></string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - <property name="buttonGroupId"> - <number>6</number> - </property> - </widget> - <widget class="QPushButton" row="7" column="1"> - <property name="name"> - <cstring>palette15</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>7</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string></string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - <property name="buttonGroupId"> - <number>15</number> - </property> - </widget> - <widget class="QPushButton" row="6" column="1"> - <property name="name"> - <cstring>palette14</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>7</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string></string> - </property> - <property name="toggleButton"> - <bool>true</bool> - </property> - <property name="buttonGroupId"> - <number>14</number> - </property> - </widget> - </grid> - </widget> - <widget class="QPushButton" row="1" column="1"> - <property name="name"> - <cstring>addToPalette</cstring> - </property> - <property name="text"> - <string>add to palette</string> - </property> - </widget> - <widget class="QFrame" row="0" column="2" rowspan="2" colspan="1"> - <property name="name"> - <cstring>colorframe</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>7</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="frameShape"> - <enum>StyledPanel</enum> - </property> - <property name="frameShadow"> - <enum>Sunken</enum> - </property> - </widget> - <widget class="QLayoutWidget" row="2" column="1" rowspan="1" colspan="2"> - <property name="name"> - <cstring>layout4</cstring> - </property> - <grid> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <widget class="QSpinBox" row="0" column="1"> - <property name="name"> - <cstring>rval</cstring> - </property> - <property name="maxValue"> - <number>255</number> - </property> - </widget> - <widget class="QSlider" row="3" column="2"> - <property name="name"> - <cstring>hslider</cstring> - </property> - <property name="maxValue"> - <number>255</number> - </property> - <property name="orientation"> - <enum>Horizontal</enum> - </property> - </widget> - <widget class="QLabel" row="2" column="0"> - <property name="name"> - <cstring>textLabel3_2</cstring> - </property> - <property name="text"> - <string>B</string> - </property> - <property name="alignment"> - <set>AlignCenter</set> - </property> - </widget> - <widget class="QLabel" row="4" column="0"> - <property name="name"> - <cstring>textLabel5_2</cstring> - </property> - <property name="text"> - <string>S</string> - </property> - <property name="alignment"> - <set>AlignCenter</set> - </property> - </widget> - <widget class="QLabel" row="3" column="0"> - <property name="name"> - <cstring>textLabel4_2</cstring> - </property> - <property name="text"> - <string>H</string> - </property> - <property name="alignment"> - <set>AlignCenter</set> - </property> - </widget> - <widget class="QSpinBox" row="2" column="1"> - <property name="name"> - <cstring>bval</cstring> - </property> - <property name="maxValue"> - <number>255</number> - </property> - </widget> - <widget class="QSlider" row="5" column="2"> - <property name="name"> - <cstring>vslider</cstring> - </property> - <property name="maxValue"> - <number>255</number> - </property> - <property name="orientation"> - <enum>Horizontal</enum> - </property> - </widget> - <widget class="QLabel" row="5" column="0"> - <property name="name"> - <cstring>textLabel6_2</cstring> - </property> - <property name="text"> - <string>V</string> - </property> - <property name="alignment"> - <set>AlignCenter</set> - </property> - </widget> - <widget class="QLabel" row="1" column="0"> - <property name="name"> - <cstring>textLabel2_2</cstring> - </property> - <property name="text"> - <string>G</string> - </property> - <property name="alignment"> - <set>AlignCenter</set> - </property> - </widget> - <widget class="QSpinBox" row="4" column="1"> - <property name="name"> - <cstring>sval</cstring> - </property> - <property name="maxValue"> - <number>255</number> - </property> - </widget> - <widget class="QSlider" row="1" column="2"> - <property name="name"> - <cstring>gslider</cstring> - </property> - <property name="maxValue"> - <number>255</number> - </property> - <property name="orientation"> - <enum>Horizontal</enum> - </property> - </widget> - <widget class="QSlider" row="4" column="2"> - <property name="name"> - <cstring>sslider</cstring> - </property> - <property name="maxValue"> - <number>255</number> - </property> - <property name="orientation"> - <enum>Horizontal</enum> - </property> - </widget> - <widget class="QSlider" row="2" column="2"> - <property name="name"> - <cstring>bslider</cstring> - </property> - <property name="maxValue"> - <number>255</number> - </property> - <property name="orientation"> - <enum>Horizontal</enum> - </property> - </widget> - <widget class="QSpinBox" row="1" column="1"> - <property name="name"> - <cstring>gval</cstring> - </property> - <property name="maxValue"> - <number>255</number> - </property> - </widget> - <widget class="QSlider" row="0" column="2"> - <property name="name"> - <cstring>rslider</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>7</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minValue"> - <number>0</number> - </property> - <property name="maxValue"> - <number>255</number> - </property> - <property name="tracking"> - <bool>true</bool> - </property> - <property name="orientation"> - <enum>Horizontal</enum> - </property> - <property name="tickmarks"> - <enum>NoMarks</enum> - </property> - </widget> - <widget class="QSpinBox" row="5" column="1"> - <property name="name"> - <cstring>vval</cstring> - </property> - <property name="maxValue"> - <number>255</number> - </property> - </widget> - <widget class="QSpinBox" row="3" column="1"> - <property name="name"> - <cstring>hval</cstring> - </property> - <property name="maxValue"> - <number>255</number> - </property> - </widget> - <widget class="QLabel" row="0" column="0"> - <property name="name"> - <cstring>textLabel1</cstring> - </property> - <property name="text"> - <string>R</string> - </property> - <property name="alignment"> - <set>AlignCenter</set> - </property> - </widget> - </grid> - </widget> - <widget class="QListView" row="0" column="0" rowspan="3" colspan="1"> - <column> - <property name="text"> - <string>Items</string> - </property> - <property name="clickable"> - <bool>false</bool> - </property> - <property name="resizable"> - <bool>false</bool> - </property> - </column> - <property name="name"> - <cstring>itemList</cstring> - </property> - <property name="allColumnsShowFocus"> - <bool>true</bool> - </property> - <property name="rootIsDecorated"> - <bool>true</bool> - </property> - <property name="resizeMode"> - <enum>AllColumns</enum> - </property> - </widget> - </grid> - <spacer> - <property name="name"> - <cstring>botColorSpacer</cstring> - </property> - <property name="orientation"> - <enum>Vertical</enum> - </property> - <property name="sizeType"> - <enum>Expanding</enum> - </property> - <property name="sizeHint"> - <size> - <width>20</width> - <height>40</height> - </size> - </property> - </spacer> - </vbox> + </item> + <item row="4" column="2"> + <widget class="QSlider" name="sslider"> + <property name="maximum"> + <number>255</number> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> </widget> - <widget class="QWidget"> - <property name="name"> - <cstring>tab</cstring> - </property> - <attribute name="title"> - <string>Style/Fonts</string> - </attribute> - <vbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <widget class="QGroupBox"> - <property name="name"> - <cstring>GroupBox18</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>5</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="title"> - <string>QT Theme</string> - </property> - <vbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <property name="margin"> - <number>11</number> - </property> - <property name="spacing"> - <number>6</number> - </property> - <widget class="QLayoutWidget"> - <property name="name"> - <cstring>layout4</cstring> - </property> - <hbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <widget class="QComboBox"> - <item> - <property name="text"> - <string>Windows</string> - </property> - </item> - <item> - <property name="text"> - <string>MusE</string> - </property> - </item> - <item> - <property name="text"> - <string>Metal</string> - </property> - </item> - <item> - <property name="text"> - <string>Norwegian Wood</string> - </property> - </item> - <item> - <property name="text"> - <string>Platinum</string> - </property> - </item> - <item> - <property name="text"> - <string>CDE</string> - </property> - </item> - <item> - <property name="text"> - <string>Motif</string> - </property> - </item> - <item> - <property name="text"> - <string>Motif Plus</string> - </property> - </item> - <property name="name"> - <cstring>themeComboBox</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>1</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - </widget> - <spacer> - <property name="name"> - <cstring>Spacer2</cstring> - </property> - <property name="orientation"> - <enum>Horizontal</enum> - </property> - <property name="sizeType"> - <enum>Expanding</enum> - </property> - <property name="sizeHint"> - <size> - <width>190</width> - <height>20</height> - </size> - </property> - </spacer> - </hbox> - </widget> - <spacer> - <property name="name"> - <cstring>spacer3</cstring> - </property> - <property name="orientation"> - <enum>Vertical</enum> - </property> - <property name="sizeType"> - <enum>Expanding</enum> - </property> - <property name="sizeHint"> - <size> - <width>20</width> - <height>40</height> - </size> - </property> - </spacer> - </vbox> - </widget> - <widget class="QGroupBox"> - <property name="name"> - <cstring>GroupBox6</cstring> - </property> - <property name="title"> - <string>Fonts</string> - </property> - <grid> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <property name="margin"> - <number>11</number> - </property> - <property name="spacing"> - <number>6</number> - </property> - <widget class="QLabel" row="0" column="1"> - <property name="name"> - <cstring>textLabel2</cstring> - </property> - <property name="text"> - <string>Family</string> - </property> - </widget> - <widget class="QLabel" row="0" column="2"> - <property name="name"> - <cstring>TextLabel1_1</cstring> - </property> - <property name="text"> - <string>Size</string> - </property> - </widget> - <widget class="QLabel" row="2" column="0"> - <property name="name"> - <cstring>textLabel4</cstring> - </property> - <property name="text"> - <string>Font 1</string> - </property> - </widget> - <widget class="QLabel" row="3" column="0"> - <property name="name"> - <cstring>textLabel5</cstring> - </property> - <property name="text"> - <string>Font 2</string> - </property> - </widget> - <widget class="QLabel" row="4" column="0"> - <property name="name"> - <cstring>textLabel6</cstring> - </property> - <property name="text"> - <string>Font 3</string> - </property> - </widget> - <widget class="QLineEdit" row="1" column="1"> - <property name="name"> - <cstring>fontName0</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - </widget> - <widget class="QLineEdit" row="2" column="1"> - <property name="name"> - <cstring>fontName1</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - </widget> - <widget class="QLineEdit" row="3" column="1"> - <property name="name"> - <cstring>fontName2</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - </widget> - <widget class="QLineEdit" row="4" column="1"> - <property name="name"> - <cstring>fontName3</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - </widget> - <widget class="QLabel" row="1" column="0"> - <property name="name"> - <cstring>textLabel3</cstring> - </property> - <property name="text"> - <string>Font 0</string> - </property> - </widget> - <widget class="QSpinBox" row="1" column="2"> - <property name="name"> - <cstring>fontSize0</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>4</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - </widget> - <widget class="QSpinBox" row="2" column="2"> - <property name="name"> - <cstring>fontSize1</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>4</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - </widget> - <widget class="QSpinBox" row="3" column="2"> - <property name="name"> - <cstring>fontSize2</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>4</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - </widget> - <widget class="QSpinBox" row="4" column="2"> - <property name="name"> - <cstring>fontSize3</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>4</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - </widget> - <widget class="QCheckBox" row="2" column="3"> - <property name="name"> - <cstring>bold1</cstring> - </property> - <property name="text"> - <string>Bold</string> - </property> - </widget> - <widget class="QCheckBox" row="3" column="3"> - <property name="name"> - <cstring>bold2</cstring> - </property> - <property name="text"> - <string>Bold</string> - </property> - </widget> - <widget class="QCheckBox" row="4" column="3"> - <property name="name"> - <cstring>bold3</cstring> - </property> - <property name="text"> - <string>Bold</string> - </property> - </widget> - <widget class="QCheckBox" row="1" column="3"> - <property name="name"> - <cstring>bold0</cstring> - </property> - <property name="text"> - <string>Bold</string> - </property> - </widget> - <widget class="QCheckBox" row="3" column="4"> - <property name="name"> - <cstring>italic2</cstring> - </property> - <property name="text"> - <string>Italic</string> - </property> - </widget> - <widget class="QCheckBox" row="4" column="4"> - <property name="name"> - <cstring>italic3</cstring> - </property> - <property name="text"> - <string>Italic</string> - </property> - </widget> - <widget class="QCheckBox" row="2" column="4"> - <property name="name"> - <cstring>italic1</cstring> - </property> - <property name="text"> - <string>Italic</string> - </property> - </widget> - <widget class="QCheckBox" row="1" column="4"> - <property name="name"> - <cstring>italic0</cstring> - </property> - <property name="text"> - <string>Italic</string> - </property> - </widget> - <widget class="QToolButton" row="1" column="5"> - <property name="name"> - <cstring>fontBrowse0</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>4</hsizetype> - <vsizetype>1</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>...</string> - </property> - </widget> - <widget class="QToolButton" row="2" column="5"> - <property name="name"> - <cstring>fontBrowse1</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>4</hsizetype> - <vsizetype>1</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>...</string> - </property> - </widget> - <widget class="QToolButton" row="3" column="5"> - <property name="name"> - <cstring>fontBrowse2</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>4</hsizetype> - <vsizetype>1</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>...</string> - </property> - </widget> - <widget class="QToolButton" row="4" column="5"> - <property name="name"> - <cstring>fontBrowse3</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>4</hsizetype> - <vsizetype>1</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>...</string> - </property> - </widget> - <widget class="QLabel" row="5" column="0"> - <property name="name"> - <cstring>textLabel7</cstring> - </property> - <property name="text"> - <string>Font 4</string> - </property> - </widget> - <widget class="QLineEdit" row="5" column="1"> - <property name="name"> - <cstring>fontName4</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - </widget> - <widget class="QLabel" row="6" column="0"> - <property name="name"> - <cstring>textLabel7_2</cstring> - </property> - <property name="text"> - <string>Font 5</string> - </property> - </widget> - <widget class="QLineEdit" row="6" column="1"> - <property name="name"> - <cstring>fontName5</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - </widget> - <widget class="QLabel" row="7" column="0"> - <property name="name"> - <cstring>textLabel7_3</cstring> - </property> - <property name="text"> - <string>Font 6</string> - </property> - </widget> - <widget class="QLineEdit" row="7" column="1"> - <property name="name"> - <cstring>fontName6</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - </widget> - <widget class="QSpinBox" row="7" column="2"> - <property name="name"> - <cstring>fontSize6</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>4</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - </widget> - <widget class="QCheckBox" row="7" column="3"> - <property name="name"> - <cstring>bold6</cstring> - </property> - <property name="text"> - <string>Bold</string> - </property> - </widget> - <widget class="QCheckBox" row="7" column="4"> - <property name="name"> - <cstring>italic6</cstring> - </property> - <property name="text"> - <string>Italic</string> - </property> - </widget> - <widget class="QToolButton" row="7" column="5"> - <property name="name"> - <cstring>fontBrowse6</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>4</hsizetype> - <vsizetype>1</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>...</string> - </property> - </widget> - <widget class="QSpinBox" row="5" column="2"> - <property name="name"> - <cstring>fontSize4</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>4</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - </widget> - <widget class="QSpinBox" row="6" column="2"> - <property name="name"> - <cstring>fontSize5</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>4</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - </widget> - <widget class="QCheckBox" row="5" column="3"> - <property name="name"> - <cstring>bold4</cstring> - </property> - <property name="text"> - <string>Bold</string> - </property> - </widget> - <widget class="QCheckBox" row="6" column="3"> - <property name="name"> - <cstring>bold5</cstring> - </property> - <property name="text"> - <string>Bold</string> - </property> - </widget> - <widget class="QCheckBox" row="5" column="4"> - <property name="name"> - <cstring>italic4</cstring> - </property> - <property name="text"> - <string>Italic</string> - </property> - </widget> - <widget class="QCheckBox" row="6" column="4"> - <property name="name"> - <cstring>italic5</cstring> - </property> - <property name="text"> - <string>Italic</string> - </property> - </widget> - <widget class="QToolButton" row="5" column="5"> - <property name="name"> - <cstring>fontBrowse4</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>4</hsizetype> - <vsizetype>1</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>...</string> - </property> - </widget> - <widget class="QToolButton" row="6" column="5"> - <property name="name"> - <cstring>fontBrowse5</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>4</hsizetype> - <vsizetype>1</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>...</string> - </property> - </widget> - </grid> - </widget> - </vbox> + </item> + <item row="2" column="2"> + <widget class="QSlider" name="bslider"> + <property name="maximum"> + <number>255</number> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> </widget> + </item> + <item row="1" column="1"> + <widget class="QSpinBox" name="gval"> + <property name="maximum"> + <number>255</number> + </property> + </widget> + </item> + <item row="0" column="2"> + <widget class="QSlider" name="rslider"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimum"> + <number>0</number> + </property> + <property name="maximum"> + <number>255</number> + </property> + <property name="tracking"> + <bool>true</bool> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="tickPosition"> + <enum>QSlider::NoTicks</enum> + </property> + </widget> + </item> + <item row="5" column="1"> + <widget class="QSpinBox" name="vval"> + <property name="maximum"> + <number>255</number> + </property> + </widget> + </item> + <item row="3" column="1"> + <widget class="QSpinBox" name="hval"> + <property name="maximum"> + <number>255</number> + </property> + </widget> + </item> + <item row="0" column="0"> + <widget class="QLabel" name="textLabel1"> + <property name="text"> + <string>R</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + </layout> + </item> + <item row="0" column="0" rowspan="3"> + <widget class="QTreeWidget" name="itemList"> + <property name="allColumnsShowFocus"> + <bool>true</bool> + </property> + <property name="rootIsDecorated"> + <bool>true</bool> + </property> + <column> + <property name="text"> + <string>Items</string> + </property> + <property name="clickable"> + <bool>false</bool> + </property> + <property name="resizable"> + <bool>false</bool> + </property> + </column> + </widget> + </item> + </layout> + </item> + <item> + <spacer name="botColorSpacer"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Expanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + </layout> + </widget> + <widget class="QWidget" name="tab"> + <attribute name="title"> + <string>Style/Fonts</string> + </attribute> + <layout class="QVBoxLayout"> + <item> + <widget class="Q3GroupBox" name="GroupBox18"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="title"> + <string>QT Theme</string> + </property> + <layout class="QVBoxLayout"> + <property name="spacing"> + <number>6</number> + </property> + <property name="margin"> + <number>11</number> + </property> + <item> + <layout class="QHBoxLayout"> + <item> + <widget class="QComboBox" name="themeComboBox"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <item> + <property name="text"> + <string>Windows</string> + </property> + </item> + <item> + <property name="text"> + <string>MusE</string> + </property> + </item> + <item> + <property name="text"> + <string>Metal</string> + </property> + </item> + <item> + <property name="text"> + <string>Norwegian Wood</string> + </property> + </item> + <item> + <property name="text"> + <string>Platinum</string> + </property> + </item> + <item> + <property name="text"> + <string>CDE</string> + </property> + </item> + <item> + <property name="text"> + <string>Motif</string> + </property> + </item> + <item> + <property name="text"> + <string>Motif Plus</string> + </property> + </item> + </widget> + </item> + <item> + <spacer name="Spacer2"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Expanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>190</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + <item> + <spacer name="spacer3"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Expanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + </layout> </widget> - <widget class="QLayoutWidget"> - <property name="name"> - <cstring>Layout2</cstring> - </property> - <hbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <property name="margin"> - <number>0</number> - </property> - <property name="spacing"> - <number>6</number> - </property> - <spacer> - <property name="name"> - <cstring>Spacer1</cstring> - </property> - <property name="orientation"> - <enum>Horizontal</enum> - </property> - <property name="sizeType"> - <enum>Expanding</enum> - </property> - <property name="sizeHint"> - <size> - <width>20</width> - <height>20</height> - </size> - </property> - </spacer> - <widget class="QPushButton"> - <property name="name"> - <cstring>applyButton</cstring> - </property> - <property name="text"> - <string>Apply</string> - </property> - </widget> - <widget class="QPushButton"> - <property name="name"> - <cstring>okButton</cstring> - </property> - <property name="text"> - <string>Ok</string> - </property> - <property name="default"> - <bool>true</bool> - </property> - </widget> - <widget class="QPushButton"> - <property name="name"> - <cstring>cancelButton</cstring> - </property> - <property name="text"> - <string>Cancel</string> - </property> - </widget> - </hbox> + </item> + <item> + <widget class="Q3GroupBox" name="GroupBox6"> + <property name="title"> + <string>Fonts</string> + </property> + <layout class="QGridLayout"> + <property name="margin"> + <number>11</number> + </property> + <property name="spacing"> + <number>6</number> + </property> + <item row="0" column="1"> + <widget class="QLabel" name="textLabel2"> + <property name="text"> + <string>Family</string> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item row="0" column="2"> + <widget class="QLabel" name="TextLabel1_1"> + <property name="text"> + <string>Size</string> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item row="2" column="0"> + <widget class="QLabel" name="textLabel4"> + <property name="text"> + <string>Font 1</string> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item row="3" column="0"> + <widget class="QLabel" name="textLabel5"> + <property name="text"> + <string>Font 2</string> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item row="4" column="0"> + <widget class="QLabel" name="textLabel6"> + <property name="text"> + <string>Font 3</string> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item row="1" column="1"> + <widget class="QLineEdit" name="fontName0"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + </widget> + </item> + <item row="2" column="1"> + <widget class="QLineEdit" name="fontName1"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + </widget> + </item> + <item row="3" column="1"> + <widget class="QLineEdit" name="fontName2"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + </widget> + </item> + <item row="4" column="1"> + <widget class="QLineEdit" name="fontName3"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + </widget> + </item> + <item row="1" column="0"> + <widget class="QLabel" name="textLabel3"> + <property name="text"> + <string>Font 0</string> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item row="1" column="2"> + <widget class="QSpinBox" name="fontSize0"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Maximum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + </widget> + </item> + <item row="2" column="2"> + <widget class="QSpinBox" name="fontSize1"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Maximum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + </widget> + </item> + <item row="3" column="2"> + <widget class="QSpinBox" name="fontSize2"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Maximum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + </widget> + </item> + <item row="4" column="2"> + <widget class="QSpinBox" name="fontSize3"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Maximum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + </widget> + </item> + <item row="2" column="3"> + <widget class="QCheckBox" name="bold1"> + <property name="text"> + <string>Bold</string> + </property> + </widget> + </item> + <item row="3" column="3"> + <widget class="QCheckBox" name="bold2"> + <property name="text"> + <string>Bold</string> + </property> + </widget> + </item> + <item row="4" column="3"> + <widget class="QCheckBox" name="bold3"> + <property name="text"> + <string>Bold</string> + </property> + </widget> + </item> + <item row="1" column="3"> + <widget class="QCheckBox" name="bold0"> + <property name="text"> + <string>Bold</string> + </property> + </widget> + </item> + <item row="3" column="4"> + <widget class="QCheckBox" name="italic2"> + <property name="text"> + <string>Italic</string> + </property> + </widget> + </item> + <item row="4" column="4"> + <widget class="QCheckBox" name="italic3"> + <property name="text"> + <string>Italic</string> + </property> + </widget> + </item> + <item row="2" column="4"> + <widget class="QCheckBox" name="italic1"> + <property name="text"> + <string>Italic</string> + </property> + </widget> + </item> + <item row="1" column="4"> + <widget class="QCheckBox" name="italic0"> + <property name="text"> + <string>Italic</string> + </property> + </widget> + </item> + <item row="1" column="5"> + <widget class="QToolButton" name="fontBrowse0"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Maximum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>...</string> + </property> + </widget> + </item> + <item row="2" column="5"> + <widget class="QToolButton" name="fontBrowse1"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Maximum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>...</string> + </property> + </widget> + </item> + <item row="3" column="5"> + <widget class="QToolButton" name="fontBrowse2"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Maximum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>...</string> + </property> + </widget> + </item> + <item row="4" column="5"> + <widget class="QToolButton" name="fontBrowse3"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Maximum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>...</string> + </property> + </widget> + </item> + <item row="5" column="0"> + <widget class="QLabel" name="textLabel7"> + <property name="text"> + <string>Font 4</string> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item row="5" column="1"> + <widget class="QLineEdit" name="fontName4"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + </widget> + </item> + <item row="6" column="0"> + <widget class="QLabel" name="textLabel7_2"> + <property name="text"> + <string>Font 5</string> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item row="6" column="1"> + <widget class="QLineEdit" name="fontName5"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + </widget> + </item> + <item row="7" column="0"> + <widget class="QLabel" name="textLabel7_3"> + <property name="text"> + <string>Font 6</string> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item row="7" column="1"> + <widget class="QLineEdit" name="fontName6"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + </widget> + </item> + <item row="7" column="2"> + <widget class="QSpinBox" name="fontSize6"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Maximum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + </widget> + </item> + <item row="7" column="3"> + <widget class="QCheckBox" name="bold6"> + <property name="text"> + <string>Bold</string> + </property> + </widget> + </item> + <item row="7" column="4"> + <widget class="QCheckBox" name="italic6"> + <property name="text"> + <string>Italic</string> + </property> + </widget> + </item> + <item row="7" column="5"> + <widget class="QToolButton" name="fontBrowse6"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Maximum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>...</string> + </property> + </widget> + </item> + <item row="5" column="2"> + <widget class="QSpinBox" name="fontSize4"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Maximum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + </widget> + </item> + <item row="6" column="2"> + <widget class="QSpinBox" name="fontSize5"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Maximum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + </widget> + </item> + <item row="5" column="3"> + <widget class="QCheckBox" name="bold4"> + <property name="text"> + <string>Bold</string> + </property> + </widget> + </item> + <item row="6" column="3"> + <widget class="QCheckBox" name="bold5"> + <property name="text"> + <string>Bold</string> + </property> + </widget> + </item> + <item row="5" column="4"> + <widget class="QCheckBox" name="italic4"> + <property name="text"> + <string>Italic</string> + </property> + </widget> + </item> + <item row="6" column="4"> + <widget class="QCheckBox" name="italic5"> + <property name="text"> + <string>Italic</string> + </property> + </widget> + </item> + <item row="5" column="5"> + <widget class="QToolButton" name="fontBrowse4"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Maximum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>...</string> + </property> + </widget> + </item> + <item row="6" column="5"> + <widget class="QToolButton" name="fontBrowse5"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Maximum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>...</string> + </property> + </widget> + </item> + </layout> </widget> - </vbox> -</widget> -<connections> - <connection> - <sender>rslider</sender> - <signal>valueChanged(int)</signal> - <receiver>rval</receiver> - <slot>setValue(int)</slot> - </connection> - <connection> - <sender>gslider</sender> - <signal>valueChanged(int)</signal> - <receiver>gval</receiver> - <slot>setValue(int)</slot> - </connection> - <connection> - <sender>bslider</sender> - <signal>valueChanged(int)</signal> - <receiver>bval</receiver> - <slot>setValue(int)</slot> - </connection> - <connection> - <sender>hslider</sender> - <signal>valueChanged(int)</signal> - <receiver>hval</receiver> - <slot>setValue(int)</slot> - </connection> - <connection> - <sender>sslider</sender> - <signal>valueChanged(int)</signal> - <receiver>sval</receiver> - <slot>setValue(int)</slot> - </connection> - <connection> - <sender>vslider</sender> - <signal>valueChanged(int)</signal> - <receiver>vval</receiver> - <slot>setValue(int)</slot> - </connection> - <connection> - <sender>rval</sender> - <signal>valueChanged(int)</signal> - <receiver>rslider</receiver> - <slot>setValue(int)</slot> - </connection> - <connection> - <sender>gval</sender> - <signal>valueChanged(int)</signal> - <receiver>gslider</receiver> - <slot>setValue(int)</slot> - </connection> - <connection> - <sender>bval</sender> - <signal>valueChanged(int)</signal> - <receiver>bslider</receiver> - <slot>setValue(int)</slot> - </connection> - <connection> - <sender>hval</sender> - <signal>valueChanged(int)</signal> - <receiver>hslider</receiver> - <slot>setValue(int)</slot> - </connection> - <connection> - <sender>sval</sender> - <signal>valueChanged(int)</signal> - <receiver>sslider</receiver> - <slot>setValue(int)</slot> - </connection> - <connection> - <sender>vval</sender> - <signal>valueChanged(int)</signal> - <receiver>vslider</receiver> - <slot>setValue(int)</slot> - </connection> -</connections> -<tabstops> - <tabstop>TabWidget2</tabstop> - <tabstop>itemList</tabstop> - <tabstop>palette0</tabstop> - <tabstop>palette1</tabstop> - <tabstop>palette2</tabstop> - <tabstop>palette3</tabstop> - <tabstop>palette4</tabstop> - <tabstop>palette5</tabstop> - <tabstop>palette6</tabstop> - <tabstop>palette7</tabstop> - <tabstop>palette8</tabstop> - <tabstop>palette9</tabstop> - <tabstop>palette10</tabstop> - <tabstop>palette11</tabstop> - <tabstop>palette12</tabstop> - <tabstop>palette13</tabstop> - <tabstop>palette14</tabstop> - <tabstop>palette15</tabstop> - <tabstop>addToPalette</tabstop> - <tabstop>rval</tabstop> - <tabstop>rslider</tabstop> - <tabstop>gval</tabstop> - <tabstop>gslider</tabstop> - <tabstop>bval</tabstop> - <tabstop>bslider</tabstop> - <tabstop>hval</tabstop> - <tabstop>hslider</tabstop> - <tabstop>sval</tabstop> - <tabstop>sslider</tabstop> - <tabstop>vval</tabstop> - <tabstop>vslider</tabstop> - <tabstop>applyButton</tabstop> - <tabstop>okButton</tabstop> - <tabstop>cancelButton</tabstop> - <tabstop>partShownames</tabstop> - <tabstop>partShowevents</tabstop> - <tabstop>partShowCakes</tabstop> - <tabstop>eventNoteon</tabstop> - <tabstop>eventPolypressure</tabstop> - <tabstop>eventController</tabstop> - <tabstop>eventAftertouch</tabstop> - <tabstop>eventPitchbend</tabstop> - <tabstop>eventProgramchange</tabstop> - <tabstop>eventSpecial</tabstop> - <tabstop>selectBgButton</tabstop> - <tabstop>arrGrid</tabstop> - <tabstop>themeComboBox</tabstop> - <tabstop>fontName0</tabstop> - <tabstop>fontName1</tabstop> - <tabstop>fontName2</tabstop> - <tabstop>fontName3</tabstop> - <tabstop>fontSize0</tabstop> - <tabstop>fontSize1</tabstop> - <tabstop>fontSize2</tabstop> - <tabstop>fontSize3</tabstop> - <tabstop>bold1</tabstop> - <tabstop>bold2</tabstop> - <tabstop>bold3</tabstop> - <tabstop>bold0</tabstop> - <tabstop>italic2</tabstop> - <tabstop>italic3</tabstop> - <tabstop>italic1</tabstop> - <tabstop>italic0</tabstop> - <tabstop>fontName4</tabstop> - <tabstop>fontName5</tabstop> - <tabstop>fontSize4</tabstop> - <tabstop>fontSize5</tabstop> - <tabstop>bold4</tabstop> - <tabstop>bold5</tabstop> - <tabstop>italic4</tabstop> - <tabstop>italic5</tabstop> -</tabstops> -<slots> - <slot>new_slot()</slot> -</slots> -<layoutdefaults spacing="6" margin="11"/> -</UI> + </item> + </layout> + </widget> + </widget> + </item> + <item> + <layout class="QHBoxLayout"> + <property name="spacing"> + <number>6</number> + </property> + <property name="margin"> + <number>0</number> + </property> + <item> + <spacer name="Spacer1"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Expanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="applyButton"> + <property name="text"> + <string>Apply</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="okButton"> + <property name="text"> + <string>Ok</string> + </property> + <property name="default"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="cancelButton"> + <property name="text"> + <string>Cancel</string> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + <layoutdefault spacing="6" margin="11"/> + <pixmapfunction>qPixmapFromMimeSource</pixmapfunction> + <customwidgets> + <customwidget> + <class>Q3GroupBox</class> + <extends>QGroupBox</extends> + <header>Qt3Support/Q3GroupBox</header> + <container>1</container> + </customwidget> + <customwidget> + <class>Q3Frame</class> + <extends>QFrame</extends> + <header>Qt3Support/Q3Frame</header> + <container>1</container> + </customwidget> + <customwidget> + <class>Q3ButtonGroup</class> + <extends>Q3GroupBox</extends> + <header>Qt3Support/Q3ButtonGroup</header> + <container>1</container> + </customwidget> + <customwidget> + <class>Q3ListView</class> + <extends>Q3Frame</extends> + <header>q3listview.h</header> + </customwidget> + </customwidgets> + <tabstops> + <tabstop>TabWidget2</tabstop> + <tabstop>itemList</tabstop> + <tabstop>palette0</tabstop> + <tabstop>palette1</tabstop> + <tabstop>palette2</tabstop> + <tabstop>palette3</tabstop> + <tabstop>palette4</tabstop> + <tabstop>palette5</tabstop> + <tabstop>palette6</tabstop> + <tabstop>palette7</tabstop> + <tabstop>palette8</tabstop> + <tabstop>palette9</tabstop> + <tabstop>palette10</tabstop> + <tabstop>palette11</tabstop> + <tabstop>palette12</tabstop> + <tabstop>palette13</tabstop> + <tabstop>palette14</tabstop> + <tabstop>palette15</tabstop> + <tabstop>addToPalette</tabstop> + <tabstop>rval</tabstop> + <tabstop>rslider</tabstop> + <tabstop>gval</tabstop> + <tabstop>gslider</tabstop> + <tabstop>bval</tabstop> + <tabstop>bslider</tabstop> + <tabstop>hval</tabstop> + <tabstop>hslider</tabstop> + <tabstop>sval</tabstop> + <tabstop>sslider</tabstop> + <tabstop>vval</tabstop> + <tabstop>vslider</tabstop> + <tabstop>applyButton</tabstop> + <tabstop>okButton</tabstop> + <tabstop>cancelButton</tabstop> + <tabstop>partShownames</tabstop> + <tabstop>partShowevents</tabstop> + <tabstop>partShowCakes</tabstop> + <tabstop>eventNoteon</tabstop> + <tabstop>eventPolypressure</tabstop> + <tabstop>eventController</tabstop> + <tabstop>eventAftertouch</tabstop> + <tabstop>eventPitchbend</tabstop> + <tabstop>eventProgramchange</tabstop> + <tabstop>eventSpecial</tabstop> + <tabstop>selectBgButton</tabstop> + <tabstop>arrGrid</tabstop> + <tabstop>themeComboBox</tabstop> + <tabstop>fontName0</tabstop> + <tabstop>fontName1</tabstop> + <tabstop>fontName2</tabstop> + <tabstop>fontName3</tabstop> + <tabstop>fontSize0</tabstop> + <tabstop>fontSize1</tabstop> + <tabstop>fontSize2</tabstop> + <tabstop>fontSize3</tabstop> + <tabstop>bold1</tabstop> + <tabstop>bold2</tabstop> + <tabstop>bold3</tabstop> + <tabstop>bold0</tabstop> + <tabstop>italic2</tabstop> + <tabstop>italic3</tabstop> + <tabstop>italic1</tabstop> + <tabstop>italic0</tabstop> + <tabstop>fontName4</tabstop> + <tabstop>fontName5</tabstop> + <tabstop>fontSize4</tabstop> + <tabstop>fontSize5</tabstop> + <tabstop>bold4</tabstop> + <tabstop>bold5</tabstop> + <tabstop>italic4</tabstop> + <tabstop>italic5</tabstop> + </tabstops> + <resources/> + <connections> + <connection> + <sender>rslider</sender> + <signal>valueChanged(int)</signal> + <receiver>rval</receiver> + <slot>setValue(int)</slot> + <hints> + <hint type="sourcelabel"> + <x>20</x> + <y>20</y> + </hint> + <hint type="destinationlabel"> + <x>20</x> + <y>20</y> + </hint> + </hints> + </connection> + <connection> + <sender>gslider</sender> + <signal>valueChanged(int)</signal> + <receiver>gval</receiver> + <slot>setValue(int)</slot> + <hints> + <hint type="sourcelabel"> + <x>20</x> + <y>20</y> + </hint> + <hint type="destinationlabel"> + <x>20</x> + <y>20</y> + </hint> + </hints> + </connection> + <connection> + <sender>bslider</sender> + <signal>valueChanged(int)</signal> + <receiver>bval</receiver> + <slot>setValue(int)</slot> + <hints> + <hint type="sourcelabel"> + <x>20</x> + <y>20</y> + </hint> + <hint type="destinationlabel"> + <x>20</x> + <y>20</y> + </hint> + </hints> + </connection> + <connection> + <sender>hslider</sender> + <signal>valueChanged(int)</signal> + <receiver>hval</receiver> + <slot>setValue(int)</slot> + <hints> + <hint type="sourcelabel"> + <x>20</x> + <y>20</y> + </hint> + <hint type="destinationlabel"> + <x>20</x> + <y>20</y> + </hint> + </hints> + </connection> + <connection> + <sender>sslider</sender> + <signal>valueChanged(int)</signal> + <receiver>sval</receiver> + <slot>setValue(int)</slot> + <hints> + <hint type="sourcelabel"> + <x>20</x> + <y>20</y> + </hint> + <hint type="destinationlabel"> + <x>20</x> + <y>20</y> + </hint> + </hints> + </connection> + <connection> + <sender>vslider</sender> + <signal>valueChanged(int)</signal> + <receiver>vval</receiver> + <slot>setValue(int)</slot> + <hints> + <hint type="sourcelabel"> + <x>20</x> + <y>20</y> + </hint> + <hint type="destinationlabel"> + <x>20</x> + <y>20</y> + </hint> + </hints> + </connection> + <connection> + <sender>rval</sender> + <signal>valueChanged(int)</signal> + <receiver>rslider</receiver> + <slot>setValue(int)</slot> + <hints> + <hint type="sourcelabel"> + <x>20</x> + <y>20</y> + </hint> + <hint type="destinationlabel"> + <x>20</x> + <y>20</y> + </hint> + </hints> + </connection> + <connection> + <sender>gval</sender> + <signal>valueChanged(int)</signal> + <receiver>gslider</receiver> + <slot>setValue(int)</slot> + <hints> + <hint type="sourcelabel"> + <x>20</x> + <y>20</y> + </hint> + <hint type="destinationlabel"> + <x>20</x> + <y>20</y> + </hint> + </hints> + </connection> + <connection> + <sender>bval</sender> + <signal>valueChanged(int)</signal> + <receiver>bslider</receiver> + <slot>setValue(int)</slot> + <hints> + <hint type="sourcelabel"> + <x>20</x> + <y>20</y> + </hint> + <hint type="destinationlabel"> + <x>20</x> + <y>20</y> + </hint> + </hints> + </connection> + <connection> + <sender>hval</sender> + <signal>valueChanged(int)</signal> + <receiver>hslider</receiver> + <slot>setValue(int)</slot> + <hints> + <hint type="sourcelabel"> + <x>20</x> + <y>20</y> + </hint> + <hint type="destinationlabel"> + <x>20</x> + <y>20</y> + </hint> + </hints> + </connection> + <connection> + <sender>sval</sender> + <signal>valueChanged(int)</signal> + <receiver>sslider</receiver> + <slot>setValue(int)</slot> + <hints> + <hint type="sourcelabel"> + <x>20</x> + <y>20</y> + </hint> + <hint type="destinationlabel"> + <x>20</x> + <y>20</y> + </hint> + </hints> + </connection> + <connection> + <sender>vval</sender> + <signal>valueChanged(int)</signal> + <receiver>vslider</receiver> + <slot>setValue(int)</slot> + <hints> + <hint type="sourcelabel"> + <x>20</x> + <y>20</y> + </hint> + <hint type="destinationlabel"> + <x>20</x> + <y>20</y> + </hint> + </hints> + </connection> + </connections> +</ui> diff --git a/muse2/muse/widgets/mixdowndialog.cpp b/muse2/muse/widgets/mixdowndialog.cpp index 0681ca2e..1e2ecc5b 100644 --- a/muse2/muse/widgets/mixdowndialog.cpp +++ b/muse2/muse/widgets/mixdowndialog.cpp @@ -5,13 +5,10 @@ // (C) Copyright 2001 Werner Schweer (ws@seh.de) //========================================================= -#include "mixdowndialog.h" +#include <QFileDialog> + #include "globals.h" -#include <qtoolbutton.h> -#include <qpushbutton.h> -#include <q3filedialog.h> -#include <qcombobox.h> -#include <qlineedit.h> +#include "mixdowndialog.h" #include "wave.h" //--------------------------------------------------------- @@ -19,10 +16,9 @@ // sf - old soundfile, used to preset file parameters //--------------------------------------------------------- -SndFile* getSndFile(const SndFile* sf, QWidget* parent, const char* name) +SndFile* getSndFile(const SndFile* sf, QWidget* parent) { - MixdownFileDialog* dialog = new MixdownFileDialog(sf, parent, - name, true); + MixdownFileDialog* dialog = new MixdownFileDialog(sf, parent); dialog->exec(); SndFile* sndFile = dialog->sndFile(); delete dialog; @@ -34,9 +30,10 @@ SndFile* getSndFile(const SndFile* sf, QWidget* parent, const char* name) //--------------------------------------------------------- MixdownFileDialog::MixdownFileDialog(const SndFile* _sf, - QWidget* parent, const char* name, bool /*modal*/, Qt::WFlags fl) - : MixdownFileDialogBase(parent, name, true, fl) + QWidget* parent, Qt::WFlags fl) + : QDialog(parent, fl) { + setupUi(this); sf = 0; connect(buttonPath, SIGNAL(clicked()), SLOT(fdialog())); if (_sf) { @@ -100,8 +97,8 @@ void MixdownFileDialog::fdialog() QString oldpath; if (sf) oldpath = sf->path(); - QString path = Q3FileDialog::getSaveFileName( - oldpath, tr("Wave Files (*.wav);;All Files (*)"), this, "MixdownFileDialog"); + QString path = QFileDialog::getSaveFileName( + this, 0, oldpath, tr("Wave Files (*.wav);;All Files (*)")); if (!path.isEmpty()) editPath->setText(path); } diff --git a/muse2/muse/widgets/mixdowndialog.h b/muse2/muse/widgets/mixdowndialog.h index 95440b38..750acd28 100644 --- a/muse2/muse/widgets/mixdowndialog.h +++ b/muse2/muse/widgets/mixdowndialog.h @@ -8,18 +8,19 @@ #ifndef __MIXDOWNDIALOG_H__ #define __MIXDOWNDIALOG_H__ -#include "mixdowndialogbase.h" +#include "ui_mixdowndialogbase.h" + +class QWidget; class SndFile; -extern SndFile* getSndFile(const SndFile* sf, QWidget* parent, - const char* name); +extern SndFile* getSndFile(const SndFile* sf, QWidget* parent); //--------------------------------------------------------- // MixdownFileDialog //--------------------------------------------------------- -class MixdownFileDialog : public MixdownFileDialogBase { +class MixdownFileDialog : public QDialog, public Ui::MixdownFileDialogBase { Q_OBJECT SndFile* sf; @@ -29,7 +30,7 @@ class MixdownFileDialog : public MixdownFileDialogBase { public: MixdownFileDialog(const SndFile* f, QWidget* parent = 0, - const char* name = 0, bool modal = false, Qt::WFlags fl = 0); + Qt::WFlags fl = 0); SndFile* sndFile() { return sf; } }; diff --git a/muse2/muse/widgets/mixdowndialogbase.ui b/muse2/muse/widgets/mixdowndialogbase.ui index 830d2a8e..486518fb 100644 --- a/muse2/muse/widgets/mixdowndialogbase.ui +++ b/muse2/muse/widgets/mixdowndialogbase.ui @@ -1,224 +1,217 @@ -<!DOCTYPE UI><UI version="3.0" stdsetdef="1"> -<class>MixdownFileDialogBase</class> -<widget class="QDialog"> - <property name="name"> - <cstring>MixdownFileDialogBase</cstring> - </property> - <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>381</width> - <height>116</height> - </rect> - </property> - <property name="caption"> - <string>MusE: Set Mixdown Wavefile</string> - </property> - <property name="sizeGripEnabled"> +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>MixdownFileDialogBase</class> + <widget class="QDialog" name="MixdownFileDialogBase"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>381</width> + <height>116</height> + </rect> + </property> + <property name="windowTitle"> + <string>MusE: Set Mixdown Wavefile</string> + </property> + <property name="sizeGripEnabled"> + <bool>true</bool> + </property> + <layout class="QGridLayout"> + <property name="margin"> + <number>11</number> + </property> + <property name="spacing"> + <number>6</number> + </property> + <item row="2" column="0" colspan="5"> + <layout class="QHBoxLayout"> + <property name="spacing"> + <number>6</number> + </property> + <property name="margin"> + <number>0</number> + </property> + <item> + <spacer name="Horizontal Spacing2"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Expanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="buttonOk"> + <property name="text"> + <string>&OK</string> + </property> + <property name="autoDefault"> <bool>true</bool> - </property> - <grid> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <property name="margin"> - <number>11</number> - </property> - <property name="spacing"> - <number>6</number> - </property> - <widget class="QLayoutWidget" row="2" column="0" rowspan="1" colspan="5"> - <property name="name"> - <cstring>Layout1</cstring> - </property> - <hbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <property name="margin"> - <number>0</number> - </property> - <property name="spacing"> - <number>6</number> - </property> - <spacer> - <property name="name" stdset="0"> - <cstring>Horizontal Spacing2</cstring> - </property> - <property name="orientation"> - <enum>Horizontal</enum> - </property> - <property name="sizeType"> - <enum>Expanding</enum> - </property> - <property name="sizeHint"> - <size> - <width>20</width> - <height>20</height> - </size> - </property> - </spacer> - <widget class="QPushButton"> - <property name="name"> - <cstring>buttonOk</cstring> - </property> - <property name="text"> - <string>&OK</string> - </property> - <property name="autoDefault"> - <bool>true</bool> - </property> - <property name="default"> - <bool>true</bool> - </property> - </widget> - <widget class="QPushButton"> - <property name="name"> - <cstring>buttonCancel</cstring> - </property> - <property name="text"> - <string>&Cancel</string> - </property> - <property name="autoDefault"> - <bool>true</bool> - </property> - </widget> - </hbox> - </widget> - <widget class="QLabel" row="0" column="0"> - <property name="name"> - <cstring>TextLabel1</cstring> - </property> - <property name="text"> - <string>File Path</string> - </property> - </widget> - <widget class="QLabel" row="1" column="0"> - <property name="name"> - <cstring>TextLabel2</cstring> - </property> - <property name="text"> - <string>Channel</string> - </property> - </widget> - <widget class="QLayoutWidget" row="0" column="1" rowspan="1" colspan="4"> - <property name="name"> - <cstring>Layout5</cstring> - </property> - <hbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <property name="margin"> - <number>0</number> - </property> - <property name="spacing"> - <number>6</number> - </property> - <widget class="QLineEdit"> - <property name="name"> - <cstring>editPath</cstring> - </property> - </widget> - <widget class="QToolButton"> - <property name="name"> - <cstring>buttonPath</cstring> - </property> - <property name="text"> - <string></string> - </property> - <property name="pixmap"> - <pixmap>image0</pixmap> - </property> - </widget> - </hbox> - </widget> - <widget class="QComboBox" row="1" column="1"> - <item> - <property name="text"> - <string>Stereo</string> - </property> - </item> - <item> - <property name="text"> - <string>Mono</string> - </property> - </item> - <item> - <property name="text"> - <string>5.1</string> - </property> - </item> - <property name="name"> - <cstring>comboChannel</cstring> - </property> - </widget> - <widget class="QComboBox" row="1" column="4"> - <item> - <property name="text"> - <string>wav,16 Bit</string> - </property> - </item> - <item> - <property name="text"> - <string>wav, 24 Bit</string> - </property> - </item> - <item> - <property name="text"> - <string>wav, 32 Bit (float)</string> - </property> - </item> - <property name="name"> - <cstring>comboFormat</cstring> - </property> - </widget> - <widget class="QLabel" row="1" column="3"> - <property name="name"> - <cstring>TextLabel3</cstring> - </property> - <property name="text"> - <string>Format</string> - </property> - </widget> - <spacer row="1" column="2"> - <property name="name" stdset="0"> - <cstring>Spacer1</cstring> - </property> - <property name="orientation"> - <enum>Horizontal</enum> - </property> - <property name="sizeType"> - <enum>Expanding</enum> - </property> - <property name="sizeHint"> - <size> - <width>20</width> - <height>20</height> - </size> - </property> - </spacer> - </grid> -</widget> -<images> - <image name="image0"> - <data format="XPM.GZ" length="469">789c5d8fb10ac2301040f77c45e86d45ac955607f1131447411c2e97141daaa07510f1dfcd256992fadae1de23e9d1aa94c7c34e9695780e385c49d2051fb2d4afbe7f9fcedb8f28ea95b4ef5ad6c54c147349727fbf199ec1ceb070b01a566cb0c68655b3524b4b6a5989551b7e5891b5eb105b64555eb541725b1c60f1536c36b80aa9417636dd1de37fcbcea5cfc71d804a2178625316f4406a90e31b02254203d216f7db06c20ed77c1adb34a516526cd314ce6570fb6ec40ff56a68fe</data> - </image> -</images> -<connections> - <connection> - <sender>buttonOk</sender> - <signal>clicked()</signal> - <receiver>MixdownFileDialogBase</receiver> - <slot>accept()</slot> - </connection> - <connection> - <sender>buttonCancel</sender> - <signal>clicked()</signal> - <receiver>MixdownFileDialogBase</receiver> - <slot>reject()</slot> - </connection> -</connections> -<layoutdefaults spacing="6" margin="11"/> -</UI> + </property> + <property name="default"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="buttonCancel"> + <property name="text"> + <string>&Cancel</string> + </property> + <property name="autoDefault"> + <bool>true</bool> + </property> + </widget> + </item> + </layout> + </item> + <item row="0" column="0"> + <widget class="QLabel" name="TextLabel1"> + <property name="text"> + <string>File Path</string> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item row="1" column="0"> + <widget class="QLabel" name="TextLabel2"> + <property name="text"> + <string>Channel</string> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item row="0" column="1" colspan="4"> + <layout class="QHBoxLayout"> + <property name="spacing"> + <number>6</number> + </property> + <property name="margin"> + <number>0</number> + </property> + <item> + <widget class="QLineEdit" name="editPath"/> + </item> + <item> + <widget class="QToolButton" name="buttonPath"> + <property name="text"> + <string/> + </property> + </widget> + </item> + </layout> + </item> + <item row="1" column="1"> + <widget class="QComboBox" name="comboChannel"> + <item> + <property name="text"> + <string>Stereo</string> + </property> + </item> + <item> + <property name="text"> + <string>Mono</string> + </property> + </item> + <item> + <property name="text"> + <string>5.1</string> + </property> + </item> + </widget> + </item> + <item row="1" column="4"> + <widget class="QComboBox" name="comboFormat"> + <item> + <property name="text"> + <string>wav,16 Bit</string> + </property> + </item> + <item> + <property name="text"> + <string>wav, 24 Bit</string> + </property> + </item> + <item> + <property name="text"> + <string>wav, 32 Bit (float)</string> + </property> + </item> + </widget> + </item> + <item row="1" column="3"> + <widget class="QLabel" name="TextLabel3"> + <property name="text"> + <string>Format</string> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item row="1" column="2"> + <spacer name="Spacer1"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Expanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </widget> + <layoutdefault spacing="6" margin="11"/> + <resources/> + <connections> + <connection> + <sender>buttonOk</sender> + <signal>clicked()</signal> + <receiver>MixdownFileDialogBase</receiver> + <slot>accept()</slot> + <hints> + <hint type="sourcelabel"> + <x>20</x> + <y>20</y> + </hint> + <hint type="destinationlabel"> + <x>20</x> + <y>20</y> + </hint> + </hints> + </connection> + <connection> + <sender>buttonCancel</sender> + <signal>clicked()</signal> + <receiver>MixdownFileDialogBase</receiver> + <slot>reject()</slot> + <hints> + <hint type="sourcelabel"> + <x>20</x> + <y>20</y> + </hint> + <hint type="destinationlabel"> + <x>20</x> + <y>20</y> + </hint> + </hints> + </connection> + </connections> +</ui> diff --git a/muse2/muse/widgets/shortcutcapturedialog.cpp b/muse2/muse/widgets/shortcutcapturedialog.cpp index c33b32bf..07482bbd 100644 --- a/muse2/muse/widgets/shortcutcapturedialog.cpp +++ b/muse2/muse/widgets/shortcutcapturedialog.cpp @@ -11,16 +11,14 @@ // #include "shortcutcapturedialog.h" #include "shortcuts.h" -#include <qkeysequence.h> -#include <qlabel.h> -#include <qevent.h> -#include <qpushbutton.h> -//Added by qt3to4: + #include <QKeyEvent> +#include <QKeySequence> -ShortcutCaptureDialog::ShortcutCaptureDialog(QWidget* parent, const char* name, int index) - : ShortcutCaptureDialogBase(parent, name, true) +ShortcutCaptureDialog::ShortcutCaptureDialog(QWidget* parent, int index) + : QDialog(parent) { + setupUi(this); QKeySequence q = QKeySequence(shortcuts[index].key); oshrtLabel->setText(q); connect(okButton, SIGNAL( clicked() ), this, SLOT( apply() ) ); diff --git a/muse2/muse/widgets/shortcutcapturedialog.h b/muse2/muse/widgets/shortcutcapturedialog.h index 5a16a90f..a7ba69c7 100644 --- a/muse2/muse/widgets/shortcutcapturedialog.h +++ b/muse2/muse/widgets/shortcutcapturedialog.h @@ -12,11 +12,11 @@ #include "shortcuts.h" #include "filedialog.h" -#include "shortcutcapturedialogbase.h" -//Added by qt3to4: -#include <QKeyEvent> +#include "ui_shortcutcapturedialogbase.h" -class ShortcutCaptureDialog : public ShortcutCaptureDialogBase +class QKeyEvent; + +class ShortcutCaptureDialog : public QDialog, public Ui::ShortcutCaptureDialogBase { Q_OBJECT private: @@ -29,7 +29,7 @@ class ShortcutCaptureDialog : public ShortcutCaptureDialogBase void cancel() { reject(); }; public: - ShortcutCaptureDialog(QWidget* parent, const char* name = 0, int index=0); + ShortcutCaptureDialog(QWidget* parent, int index=0); ~ShortcutCaptureDialog(); }; diff --git a/muse2/muse/widgets/shortcutcapturedialogbase.ui b/muse2/muse/widgets/shortcutcapturedialogbase.ui index 031c86e1..2bcbc798 100644 --- a/muse2/muse/widgets/shortcutcapturedialogbase.ui +++ b/muse2/muse/widgets/shortcutcapturedialogbase.ui @@ -1,134 +1,124 @@ -<!DOCTYPE UI><UI version="3.2" stdsetdef="1"> -<class>ShortcutCaptureDialogBase</class> -<widget class="QDialog"> - <property name="name"> - <cstring>ShortcutCaptureDialogBase</cstring> - </property> - <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>323</width> - <height>285</height> - </rect> - </property> - <property name="caption"> - <string>Enter shortcut sequence</string> - </property> - <property name="modal"> - <bool>true</bool> - </property> - <vbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <widget class="QLabel"> - <property name="name"> - <cstring>descrLabel</cstring> - </property> - <property name="text"> - <string>Press keys to enter shortcut sequence!</string> - </property> - <property name="alignment"> - <set>AlignCenter</set> - </property> - </widget> - <widget class="QLabel"> - <property name="name"> - <cstring>messageLabel</cstring> - </property> - <property name="text"> - <string></string> - </property> - </widget> - <widget class="QLayoutWidget"> - <property name="name"> - <cstring>layout11</cstring> - </property> - <hbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <widget class="QLabel"> - <property name="name"> - <cstring>oshrtTextLabel</cstring> - </property> - <property name="text"> - <string>Old shortcut:</string> - </property> - </widget> - <widget class="QLabel"> - <property name="name"> - <cstring>oshrtLabel</cstring> - </property> - <property name="text"> - <string>Undefined</string> - </property> - </widget> - </hbox> - </widget> - <widget class="QLayoutWidget"> - <property name="name"> - <cstring>layout12</cstring> - </property> - <hbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <widget class="QLabel"> - <property name="name"> - <cstring>nshrtTextLabel</cstring> - </property> - <property name="text"> - <string>New shortcut:</string> - </property> - </widget> - <widget class="QLabel"> - <property name="name"> - <cstring>nshrtLabel</cstring> - </property> - <property name="text"> - <string>Undefined</string> - </property> - </widget> - </hbox> - </widget> - <widget class="QLayoutWidget"> - <property name="name"> - <cstring>layout7</cstring> - </property> - <hbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <widget class="QPushButton"> - <property name="name"> - <cstring>okButton</cstring> - </property> - <property name="enabled"> - <bool>false</bool> - </property> - <property name="text"> - <string>OK</string> - </property> - <property name="accel"> - <string></string> - </property> - </widget> - <widget class="QPushButton"> - <property name="name"> - <cstring>cancelButton</cstring> - </property> - <property name="text"> - <string>Cancel</string> - </property> - <property name="accel"> - <string></string> - </property> - </widget> - </hbox> - </widget> - </vbox> -</widget> -<layoutdefaults spacing="6" margin="11"/> -</UI> +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>ShortcutCaptureDialogBase</class> + <widget class="QDialog" name="ShortcutCaptureDialogBase"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>323</width> + <height>285</height> + </rect> + </property> + <property name="windowTitle"> + <string>Enter shortcut sequence</string> + </property> + <property name="modal"> + <bool>true</bool> + </property> + <layout class="QVBoxLayout"> + <item> + <widget class="QLabel" name="descrLabel"> + <property name="text"> + <string>Press keys to enter shortcut sequence!</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="messageLabel"> + <property name="text"> + <string/> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item> + <layout class="QHBoxLayout"> + <item> + <widget class="QLabel" name="oshrtTextLabel"> + <property name="text"> + <string>Old shortcut:</string> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="oshrtLabel"> + <property name="text"> + <string>Undefined</string> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout"> + <item> + <widget class="QLabel" name="nshrtTextLabel"> + <property name="text"> + <string>New shortcut:</string> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="nshrtLabel"> + <property name="text"> + <string>Undefined</string> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout"> + <item> + <widget class="QPushButton" name="okButton"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="text"> + <string>OK</string> + </property> + <property name="shortcut"> + <string/> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="cancelButton"> + <property name="text"> + <string>Cancel</string> + </property> + <property name="shortcut"> + <string/> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + <layoutdefault spacing="6" margin="11"/> + <pixmapfunction>qPixmapFromMimeSource</pixmapfunction> + <resources/> + <connections/> +</ui> diff --git a/muse2/muse/widgets/shortcutconfig.cpp b/muse2/muse/widgets/shortcutconfig.cpp index b3288e6d..b41250e1 100644 --- a/muse2/muse/widgets/shortcutconfig.cpp +++ b/muse2/muse/widgets/shortcutconfig.cpp @@ -9,27 +9,28 @@ // Copyright: Mathias Lundgren (lunar_shuttle@users.sourceforge.net) (C) 2003 // // -#include <qpushbutton.h> -#include <qkeysequence.h> -//Added by qt3to4: #include <QCloseEvent> +#include <QKeySequence> + #include "shortcutconfig.h" #include "shortcutcapturedialog.h" #include "shortcuts.h" -ShortcutConfig::ShortcutConfig(QWidget* parent, const char* name) - : ShortcutConfigBase(parent, name, true) +ShortcutConfig::ShortcutConfig(QWidget* parent) + : QDialog(parent) { - connect(cgListView, SIGNAL(selectionChanged(Q3ListViewItem* )), - this, SLOT(categorySelChanged(Q3ListViewItem*))); - connect(scListView, SIGNAL(selectionChanged(Q3ListViewItem* )), - this, SLOT(shortcutSelChanged(Q3ListViewItem*))); + setupUi(this); + connect(cgListView, SIGNAL(itemActivated(QTreeWidgetItem*, int )), + this, SLOT(categorySelChanged(QTreeWidgetItem*, int))); + connect(scListView, SIGNAL(itemActivated(QTreeWidgetItem*, int )), + this, SLOT(shortcutSelChanged(QTreeWidgetItem*, int))); + connect(defineButton, SIGNAL(pressed()), this, SLOT(assignShortcut())); connect(clearButton, SIGNAL(pressed()), this, SLOT(clearShortcut())); connect(applyButton, SIGNAL(pressed()), this, SLOT(assignAll())); current_category = ALL_SHRT; - cgListView->setSorting(SHRT_CATEGORY_COL, -1); + cgListView->sortItems(SHRT_CATEGORY_COL, Qt::AscendingOrder); _config_changed = false; //Fill up category listview: @@ -37,7 +38,6 @@ ShortcutConfig::ShortcutConfig(QWidget* parent, const char* name) for (int i=0; i < SHRT_NUM_OF_CATEGORIES; i++) { newItem = new SCListViewItem(cgListView, i); newItem->setText(SHRT_CATEGORY_COL, shortcut_category[i].name); - cgListView->insertItem(newItem); } updateSCListView(); } @@ -58,9 +58,9 @@ void ShortcutConfig::updateSCListView(int category) void ShortcutConfig::assignShortcut() { - SCListViewItem* active = (SCListViewItem*) scListView->selectedItem(); + SCListViewItem* active = (SCListViewItem*) scListView->selectedItems()[0]; int shortcutindex = active->getIndex(); - ShortcutCaptureDialog* sc = new ShortcutCaptureDialog(this, "sccapture", shortcutindex); + ShortcutCaptureDialog* sc = new ShortcutCaptureDialog(this, shortcutindex); int key = sc->exec(); delete(sc); if (key != Rejected) { @@ -75,7 +75,7 @@ void ShortcutConfig::assignShortcut() void ShortcutConfig::clearShortcut() { - SCListViewItem* active = (SCListViewItem*) scListView->selectedItem(); + SCListViewItem* active = (SCListViewItem*) scListView->selectedItems()[0]; int shortcutindex = active->getIndex(); shortcuts[shortcutindex].key = 0; //Cleared active->setText(SHRT_SHRTCUT_COL,""); @@ -84,14 +84,14 @@ void ShortcutConfig::clearShortcut() _config_changed = true; } -void ShortcutConfig::categorySelChanged(Q3ListViewItem* i) +void ShortcutConfig::categorySelChanged(QTreeWidgetItem* i, int /*column*/) { SCListViewItem* item = (SCListViewItem*) i; current_category = shortcut_category[item->getIndex()].id_flag; updateSCListView(current_category); } -void ShortcutConfig::shortcutSelChanged(Q3ListViewItem* in_item) +void ShortcutConfig::shortcutSelChanged(QTreeWidgetItem* in_item, int /*column*/) { defineButton->setEnabled(true); SCListViewItem* active = (SCListViewItem*) in_item; diff --git a/muse2/muse/widgets/shortcutconfig.h b/muse2/muse/widgets/shortcutconfig.h index b1f2857f..0cc11dd7 100644 --- a/muse2/muse/widgets/shortcutconfig.h +++ b/muse2/muse/widgets/shortcutconfig.h @@ -12,10 +12,9 @@ #ifndef __SHORTCUTCONFIG_H #define __SHORTCUTCONFIG_H -#include "shortcutconfigbase.h" -#include <q3listview.h> -//Added by qt3to4: -#include <QCloseEvent> +class QCloseEvent; + +#include "ui_shortcutconfigbase.h" #define SHRT_CATEGORY_COL 0 enum @@ -24,19 +23,19 @@ enum SHRT_SHRTCUT_COL }; -class SCListViewItem : public Q3ListViewItem { +class SCListViewItem : public QTreeWidgetItem { private: int index; public: - SCListViewItem(Q3ListView* parent, int i) - : Q3ListViewItem(parent), index(i) { } + SCListViewItem(QTreeWidget* parent, int i) + : QTreeWidgetItem(parent), index(i) { } int getIndex() { return index; } }; -class ShortcutConfig : public ShortcutConfigBase { +class ShortcutConfig : public QDialog, public Ui::ShortcutConfigBase { Q_OBJECT private: int current_category; @@ -45,15 +44,15 @@ class ShortcutConfig : public ShortcutConfigBase { void closeEvent(QCloseEvent *e); private slots: - void categorySelChanged(Q3ListViewItem*); - void shortcutSelChanged(Q3ListViewItem*); + void categorySelChanged(QTreeWidgetItem*, int); + void shortcutSelChanged(QTreeWidgetItem*, int); void assignShortcut(); void clearShortcut(); void assignAll(); public: - ShortcutConfig(QWidget* parent, const char* name = 0); + ShortcutConfig(QWidget* parent); bool _config_changed; }; diff --git a/muse2/muse/widgets/shortcutconfigbase.ui b/muse2/muse/widgets/shortcutconfigbase.ui index 2947106c..f91fda1c 100644 --- a/muse2/muse/widgets/shortcutconfigbase.ui +++ b/muse2/muse/widgets/shortcutconfigbase.ui @@ -1,207 +1,178 @@ -<!DOCTYPE UI><UI version="3.2" stdsetdef="1"> -<class>ShortcutConfigBase</class> -<widget class="QDialog"> - <property name="name"> - <cstring>ShortcutConfigBase</cstring> - </property> - <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>466</width> - <height>403</height> - </rect> - </property> - <property name="caption"> - <string>Configure Keyboard Shortcuts</string> - </property> - <property name="sizeGripEnabled"> - <bool>true</bool> - </property> - <vbox> - <property name="name"> - <cstring>unnamed</cstring> +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>ShortcutConfigBase</class> + <widget class="QDialog" name="ShortcutConfigBase"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>466</width> + <height>403</height> + </rect> + </property> + <property name="windowTitle"> + <string>Configure Keyboard Shortcuts</string> + </property> + <property name="sizeGripEnabled"> + <bool>true</bool> + </property> + <layout class="QVBoxLayout"> + <item> + <widget class="QGroupBox" name="groupBox3"> + <property name="title"> + <string/> + </property> + <layout class="QHBoxLayout"> + <property name="spacing"> + <number>3</number> + </property> + <property name="margin"> + <number>0</number> + </property> + <item> + <widget class="QTreeWidget" name="cgListView"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Expanding"> + <horstretch>1</horstretch> + <verstretch>0</verstretch> + </sizepolicy> </property> - <widget class="QGroupBox"> - <property name="name"> - <cstring>groupBox3</cstring> - </property> - <property name="margin"> - <number>0</number> - </property> - <property name="midLineWidth"> - <number>0</number> - </property> - <property name="title"> - <string></string> - </property> - <hbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <property name="margin"> - <number>0</number> - </property> - <property name="spacing"> - <number>3</number> - </property> - <widget class="QListView"> - <column> - <property name="text"> - <string>Shortcut Category</string> - </property> - <property name="clickable"> - <bool>true</bool> - </property> - <property name="resizable"> - <bool>false</bool> - </property> - </column> - <property name="name"> - <cstring>cgListView</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>1</hsizetype> - <vsizetype>7</vsizetype> - <horstretch>1</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>105</width> - <height>200</height> - </size> - </property> - </widget> - <widget class="QListView"> - <column> - <property name="text"> - <string>Description</string> - </property> - <property name="clickable"> - <bool>true</bool> - </property> - <property name="resizable"> - <bool>true</bool> - </property> - </column> - <column> - <property name="text"> - <string>Shortcut</string> - </property> - <property name="clickable"> - <bool>true</bool> - </property> - <property name="resizable"> - <bool>true</bool> - </property> - </column> - <property name="name"> - <cstring>scListView</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>5</hsizetype> - <vsizetype>7</vsizetype> - <horstretch>2</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>170</width> - <height>230</height> - </size> - </property> - </widget> - </hbox> - </widget> - <widget class="QLayoutWidget"> - <property name="name"> - <cstring>layout5</cstring> - </property> - <hbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <spacer> - <property name="name"> - <cstring>spacer3</cstring> - </property> - <property name="orientation"> - <enum>Horizontal</enum> - </property> - <property name="sizeType"> - <enum>Expanding</enum> - </property> - <property name="sizeHint"> - <size> - <width>150</width> - <height>21</height> - </size> - </property> - </spacer> - <widget class="QPushButton"> - <property name="name"> - <cstring>clearButton</cstring> - </property> - <property name="enabled"> - <bool>false</bool> - </property> - <property name="text"> - <string>&Clear</string> - </property> - <property name="accel"> - <string>Alt+C</string> - </property> - </widget> - <widget class="QPushButton"> - <property name="name"> - <cstring>defineButton</cstring> - </property> - <property name="enabled"> - <bool>false</bool> - </property> - <property name="text"> - <string>&Define</string> - </property> - <property name="accel"> - <string>Alt+D</string> - </property> - </widget> - <spacer> - <property name="name"> - <cstring>spacer2</cstring> - </property> - <property name="orientation"> - <enum>Horizontal</enum> - </property> - <property name="sizeType"> - <enum>Expanding</enum> - </property> - <property name="sizeHint"> - <size> - <width>30</width> - <height>21</height> - </size> - </property> - </spacer> - <widget class="QPushButton"> - <property name="name"> - <cstring>applyButton</cstring> - </property> - <property name="text"> - <string>&Apply</string> - </property> - <property name="accel"> - <string>Alt+A</string> - </property> - </widget> - </hbox> - </widget> - </vbox> -</widget> -<layoutdefaults spacing="6" margin="11"/> -</UI> + <property name="minimumSize"> + <size> + <width>105</width> + <height>200</height> + </size> + </property> + <column> + <property name="text"> + <string>Shortcut Category</string> + </property> + <property name="clickable"> + <bool>true</bool> + </property> + <property name="resizable"> + <bool>false</bool> + </property> + </column> + </widget> + </item> + <item> + <widget class="QTreeWidget" name="scListView"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Expanding"> + <horstretch>2</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>170</width> + <height>230</height> + </size> + </property> + <column> + <property name="text"> + <string>Description</string> + </property> + <property name="clickable"> + <bool>true</bool> + </property> + <property name="resizable"> + <bool>true</bool> + </property> + </column> + <column> + <property name="text"> + <string>Shortcut</string> + </property> + <property name="clickable"> + <bool>true</bool> + </property> + <property name="resizable"> + <bool>true</bool> + </property> + </column> + </widget> + </item> + </layout> + </widget> + </item> + <item> + <layout class="QHBoxLayout"> + <item> + <spacer name="spacer3"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Expanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>150</width> + <height>21</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="clearButton"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="text"> + <string>&Clear</string> + </property> + <property name="shortcut"> + <string>Alt+C</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="defineButton"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="text"> + <string>&Define</string> + </property> + <property name="shortcut"> + <string>Alt+D</string> + </property> + </widget> + </item> + <item> + <spacer name="spacer2"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Expanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>30</width> + <height>21</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="applyButton"> + <property name="text"> + <string>&Apply</string> + </property> + <property name="shortcut"> + <string>Alt+A</string> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + <layoutdefault spacing="6" margin="11"/> + <pixmapfunction>qPixmapFromMimeSource</pixmapfunction> + <resources/> + <connections/> +</ui> |