[vlmc-devel] commit: EffectInstanceWidget: Adding an author and version fields. ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Sun Aug 22 22:54:23 CEST 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Sun Aug 22 21:38:53 2010 +0200| [a12e297f1b5504427458039c2789c7370b468b85] | committer: Hugo Beauzée-Luyssen 

EffectInstanceWidget: Adding an author and version fields.

Rearange the GUI a little.

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=a12e297f1b5504427458039c2789c7370b468b85
---

 src/Gui/effectsengine/EffectInstanceWidget.cpp   |    5 ++-
 src/Gui/effectsengine/ui/EffectInstanceWidget.ui |   44 ++++++++++++++++++----
 2 files changed, 40 insertions(+), 9 deletions(-)

diff --git a/src/Gui/effectsengine/EffectInstanceWidget.cpp b/src/Gui/effectsengine/EffectInstanceWidget.cpp
index 0e7f052..80d0b5a 100644
--- a/src/Gui/effectsengine/EffectInstanceWidget.cpp
+++ b/src/Gui/effectsengine/EffectInstanceWidget.cpp
@@ -42,7 +42,10 @@ EffectInstanceWidget::EffectInstanceWidget( EffectInstance *effect, QWidget *par
     m_ui->nameValueLabel->setText( effect->effect()->name() );
     m_ui->descValueLabel->setText( effect->effect()->description() );
     m_ui->typeValueLabel->setText( nameFromType( effect->effect()->type() ) );
-
+    m_ui->authorValueLabel->setText( effect->effect()->author() );
+    QString version = QString::number( effect->effect()->getMajor() ) + '.' +
+                      QString::number( effect->effect()->getMinor() );
+    m_ui->versionValueLabel->setText( version );
     EffectInstance::ParamList::iterator         it = effect->params().begin();
     EffectInstance::ParamList::iterator         ite = effect->params().end();
     while ( it != ite )
diff --git a/src/Gui/effectsengine/ui/EffectInstanceWidget.ui b/src/Gui/effectsengine/ui/EffectInstanceWidget.ui
index c3ceec8..07bf68d 100644
--- a/src/Gui/effectsengine/ui/EffectInstanceWidget.ui
+++ b/src/Gui/effectsengine/ui/EffectInstanceWidget.ui
@@ -19,7 +19,7 @@
      <property name="title">
       <string>Overview</string>
      </property>
-     <layout class="QFormLayout" name="formLayout">
+     <layout class="QGridLayout" name="gridLayout">
       <item row="0" column="0">
        <widget class="QLabel" name="nameLabel">
         <property name="text">
@@ -34,34 +34,62 @@
         </property>
        </widget>
       </item>
-      <item row="1" column="0">
-       <widget class="QLabel" name="descLabel">
+      <item row="0" column="2">
+       <widget class="QLabel" name="authorLabel">
         <property name="text">
-         <string>Description</string>
+         <string>Author</string>
         </property>
        </widget>
       </item>
-      <item row="1" column="1">
-       <widget class="QLabel" name="descValueLabel">
+      <item row="0" column="3">
+       <widget class="QLabel" name="authorValueLabel">
         <property name="text">
          <string/>
         </property>
        </widget>
       </item>
-      <item row="2" column="0">
+      <item row="1" column="0">
        <widget class="QLabel" name="typeLabel">
         <property name="text">
          <string>Type</string>
         </property>
        </widget>
       </item>
-      <item row="2" column="1">
+      <item row="1" column="1">
        <widget class="QLabel" name="typeValueLabel">
         <property name="text">
          <string/>
         </property>
        </widget>
       </item>
+      <item row="1" column="2">
+       <widget class="QLabel" name="versionLabel">
+        <property name="text">
+         <string>Version</string>
+        </property>
+       </widget>
+      </item>
+      <item row="1" column="3">
+       <widget class="QLabel" name="versionValueLabel">
+        <property name="text">
+         <string/>
+        </property>
+       </widget>
+      </item>
+      <item row="2" column="0">
+       <widget class="QLabel" name="descLabel">
+        <property name="text">
+         <string>Description</string>
+        </property>
+       </widget>
+      </item>
+      <item row="2" column="1" colspan="3">
+       <widget class="QLabel" name="descValueLabel">
+        <property name="text">
+         <string/>
+        </property>
+       </widget>
+      </item>
      </layout>
     </widget>
    </item>



More information about the Vlmc-devel mailing list