diff options
-rw-r--r-- | muse2/ChangeLog | 2 | ||||
-rw-r--r-- | muse2/muse/plugin.cpp | 8 | ||||
-rw-r--r-- | muse2/share/plugins/1050.ui | 16 | ||||
-rw-r--r-- | muse2/share/plugins/2142.ui | 16 |
4 files changed, 22 insertions, 20 deletions
diff --git a/muse2/ChangeLog b/muse2/ChangeLog index 5d306791..506f3629 100644 --- a/muse2/ChangeLog +++ b/muse2/ChangeLog @@ -1,3 +1,5 @@ +12.10.2011: + - Made the plugins aware of namespaces. (Orcan) 11.10.2011: - Fixed the build of experimental rhythm generator. (Orcan) 09.10.2011: diff --git a/muse2/muse/plugin.cpp b/muse2/muse/plugin.cpp index 63e65f2e..2bdd0317 100644 --- a/muse2/muse/plugin.cpp +++ b/muse2/muse/plugin.cpp @@ -3546,7 +3546,7 @@ PluginGui::PluginGui(MusECore::PluginIBase* p) gw[nobj].param = parameter; gw[nobj].type = -1; - if (strcmp(obj->metaObject()->className(), "Slider") == 0) { + if (strcmp(obj->metaObject()->className(), "MusEGui::Slider") == 0) { gw[nobj].type = GuiWidgets::SLIDER; ((Slider*)obj)->setId(nobj); ((Slider*)obj)->setCursorHoming(true); @@ -3561,7 +3561,7 @@ PluginGui::PluginGui(MusECore::PluginIBase* p) connect(obj, SIGNAL(sliderReleased(int)), SLOT(guiSliderReleased(int))); connect(obj, SIGNAL(sliderRightClicked(const QPoint &, int)), SLOT(guiSliderRightClicked(const QPoint &, int))); } - else if (strcmp(obj->metaObject()->className(), "DoubleLabel") == 0) { + else if (strcmp(obj->metaObject()->className(), "MusEGui::DoubleLabel") == 0) { gw[nobj].type = GuiWidgets::DOUBLE_LABEL; ((DoubleLabel*)obj)->setId(nobj); //for(int i = 0; i < nobj; i++) @@ -4611,9 +4611,9 @@ void PluginGui::guiSliderRightClicked(const QPoint &p, int idx) //--------------------------------------------------------- QWidget* PluginLoader::createWidget(const QString & className, QWidget * parent, const QString & name) { - if(className == QString("DoubleLabel")) + if(className == QString("MusEGui::DoubleLabel")) return new DoubleLabel(parent, name.toLatin1().constData()); - if(className == QString("Slider")) + if(className == QString("MusEGui::Slider")) return new Slider(parent, name.toLatin1().constData(), Qt::Horizontal); return QUiLoader::createWidget(className, parent, name); diff --git a/muse2/share/plugins/1050.ui b/muse2/share/plugins/1050.ui index bc478810..cd3f8689 100644 --- a/muse2/share/plugins/1050.ui +++ b/muse2/share/plugins/1050.ui @@ -43,7 +43,7 @@ </widget> </item> <item row="1" column="2"> - <widget class="Slider" name="P1slider" native="true"> + <widget class="MusEGui::Slider" name="P1slider" native="true"> <property name="sizePolicy"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <horstretch>10</horstretch> @@ -59,7 +59,7 @@ </widget> </item> <item row="0" column="1"> - <widget class="DoubleLabel" name="P0label" native="true"> + <widget class="MusEGui::DoubleLabel" name="P0label" native="true"> <property name="sizePolicy"> <sizepolicy hsizetype="Maximum" vsizetype="Fixed"> <horstretch>0</horstretch> @@ -87,7 +87,7 @@ </widget> </item> <item row="1" column="1"> - <widget class="DoubleLabel" name="P1label" native="true"> + <widget class="MusEGui::DoubleLabel" name="P1label" native="true"> <property name="sizePolicy"> <sizepolicy hsizetype="Maximum" vsizetype="Fixed"> <horstretch>0</horstretch> @@ -131,7 +131,7 @@ </widget> </item> <item row="2" column="2"> - <widget class="Slider" name="P2slider" native="true"> + <widget class="MusEGui::Slider" name="P2slider" native="true"> <property name="sizePolicy"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <horstretch>10</horstretch> @@ -147,7 +147,7 @@ </widget> </item> <item row="2" column="1"> - <widget class="DoubleLabel" name="P2label" native="true"> + <widget class="MusEGui::DoubleLabel" name="P2label" native="true"> <property name="sizePolicy"> <sizepolicy hsizetype="Maximum" vsizetype="Fixed"> <horstretch>0</horstretch> @@ -191,7 +191,7 @@ </widget> </item> <item row="0" column="2"> - <widget class="Slider" name="P0slider" native="true"> + <widget class="MusEGui::Slider" name="P0slider" native="true"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>10</horstretch> @@ -211,12 +211,12 @@ <layoutdefault spacing="6" margin="11"/> <customwidgets> <customwidget> - <class>Slider</class> + <class>MusEGui::Slider</class> <extends>QWidget</extends> <header>slider.h</header> </customwidget> <customwidget> - <class>DoubleLabel</class> + <class>MusEGui::DoubleLabel</class> <extends>QWidget</extends> <header>doublelabel.h</header> </customwidget> diff --git a/muse2/share/plugins/2142.ui b/muse2/share/plugins/2142.ui index 82b9b73d..a1ee7def 100644 --- a/muse2/share/plugins/2142.ui +++ b/muse2/share/plugins/2142.ui @@ -37,7 +37,7 @@ </widget> </item> <item row="0" column="1"> - <widget class="DoubleLabel" name="P0label" native="true"> + <widget class="MusEGui::DoubleLabel" name="P0label" native="true"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> @@ -65,7 +65,7 @@ </widget> </item> <item row="1" column="1"> - <widget class="DoubleLabel" name="P1label" native="true"> + <widget class="MusEGui::DoubleLabel" name="P1label" native="true"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> @@ -106,7 +106,7 @@ </widget> </item> <item row="2" column="1"> - <widget class="DoubleLabel" name="P2label" native="true"> + <widget class="MusEGui::DoubleLabel" name="P2label" native="true"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> @@ -147,7 +147,7 @@ </widget> </item> <item row="1" column="2" colspan="2"> - <widget class="Slider" name="P1Slider" native="true"> + <widget class="MusEGui::Slider" name="P1Slider" native="true"> <property name="sizePolicy"> <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> <horstretch>10</horstretch> @@ -166,7 +166,7 @@ </widget> </item> <item row="2" column="2" colspan="2"> - <widget class="Slider" name="P2Slider" native="true"> + <widget class="MusEGui::Slider" name="P2Slider" native="true"> <property name="sizePolicy"> <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> <horstretch>10</horstretch> @@ -185,7 +185,7 @@ </widget> </item> <item row="0" column="2" colspan="2"> - <widget class="Slider" name="P0Slider" native="true"> + <widget class="MusEGui::Slider" name="P0Slider" native="true"> <property name="sizePolicy"> <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> <horstretch>10</horstretch> @@ -478,12 +478,12 @@ <layoutdefault spacing="6" margin="11"/> <customwidgets> <customwidget> - <class>DoubleLabel</class> + <class>MusEGui::DoubleLabel</class> <extends>QWidget</extends> <header>doublelabel.h</header> </customwidget> <customwidget> - <class>Slider</class> + <class>MusEGui::Slider</class> <extends>QWidget</extends> <header>slider.h</header> </customwidget> |