OSDN Git Service

Make sure that the current configuration can be saved to a template, even if it equal...
authorlordmulder <mulder2@gmx.de>
Mon, 13 Feb 2012 15:44:50 +0000 (16:44 +0100)
committerlordmulder <mulder2@gmx.de>
Mon, 13 Feb 2012 15:44:50 +0000 (16:44 +0100)
gui/win_help.ui
gui/win_main.ui
res/images/avisynth.png [new file with mode: 0644]
res/resources.qrc
src/version.h
src/win_addJob.cpp
src/win_help.cpp
src/win_main.cpp

index b59b7f0..ced1461 100644 (file)
       <number>12</number>
      </property>
      <item>
-      <widget class="QLabel" name="label">
-       <property name="text">
-        <string/>
-       </property>
-       <property name="pixmap">
-        <pixmap resource="../res/resources.qrc">:/images/x264.png</pixmap>
-       </property>
-       <property name="scaledContents">
-        <bool>false</bool>
-       </property>
-       <property name="alignment">
-        <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
-       </property>
-      </widget>
+      <layout class="QVBoxLayout" name="verticalLayout_2">
+       <item>
+        <widget class="QLabel" name="logo_x264">
+         <property name="minimumSize">
+          <size>
+           <width>48</width>
+           <height>40</height>
+          </size>
+         </property>
+         <property name="maximumSize">
+          <size>
+           <width>48</width>
+           <height>40</height>
+          </size>
+         </property>
+         <property name="text">
+          <string/>
+         </property>
+         <property name="pixmap">
+          <pixmap resource="../res/resources.qrc">:/images/x264.png</pixmap>
+         </property>
+         <property name="scaledContents">
+          <bool>false</bool>
+         </property>
+         <property name="alignment">
+          <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
+         </property>
+        </widget>
+       </item>
+       <item>
+        <widget class="QLabel" name="logo_avisynth">
+         <property name="minimumSize">
+          <size>
+           <width>48</width>
+           <height>67</height>
+          </size>
+         </property>
+         <property name="maximumSize">
+          <size>
+           <width>48</width>
+           <height>67</height>
+          </size>
+         </property>
+         <property name="text">
+          <string/>
+         </property>
+         <property name="pixmap">
+          <pixmap resource="../res/resources.qrc">:/images/avisynth.png</pixmap>
+         </property>
+         <property name="scaledContents">
+          <bool>true</bool>
+         </property>
+         <property name="alignment">
+          <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
+         </property>
+        </widget>
+       </item>
+       <item>
+        <spacer name="verticalSpacer">
+         <property name="orientation">
+          <enum>Qt::Vertical</enum>
+         </property>
+         <property name="sizeHint" stdset="0">
+          <size>
+           <width>20</width>
+           <height>40</height>
+          </size>
+         </property>
+        </spacer>
+       </item>
+      </layout>
      </item>
      <item>
       <widget class="QPlainTextEdit" name="plainTextEdit">
index 66e8bdb..0cd8b8e 100644 (file)
@@ -37,7 +37,7 @@
         <enum>Qt::ActionsContextMenu</enum>
        </property>
        <property name="alternatingRowColors">
-        <bool>true</bool>
+        <bool>false</bool>
        </property>
        <property name="selectionMode">
         <enum>QAbstractItemView::SingleSelection</enum>
     <addaction name="separator"/>
     <addaction name="actionWebWiki"/>
     <addaction name="actionWebBluRay"/>
+    <addaction name="actionWebAvsWiki"/>
     <addaction name="actionWebSecret"/>
     <addaction name="separator"/>
     <addaction name="actionAbout"/>
     <string>Secret Recipe (Shush!)</string>
    </property>
   </action>
+  <action name="actionWebAvsWiki">
+   <property name="icon">
+    <iconset resource="../res/resources.qrc">
+     <normaloff>:/buttons/book_open.png</normaloff>:/buttons/book_open.png</iconset>
+   </property>
+   <property name="text">
+    <string>Avisynth Usage Wiki</string>
+   </property>
+  </action>
  </widget>
  <tabstops>
   <tabstop>buttonAddJob</tabstop>
diff --git a/res/images/avisynth.png b/res/images/avisynth.png
new file mode 100644 (file)
index 0000000..fe10be3
Binary files /dev/null and b/res/images/avisynth.png differ
index 310bd19..f425826 100644 (file)
@@ -32,6 +32,7 @@
     <file>buttons/trash.png</file>
     <file>buttons/world_link.png</file>
     <file>buttons/wrench.png</file>
+    <file>images/avisynth.png</file>
     <file>images/movie.png</file>
     <file>images/update.png</file>
     <file>images/x264.png</file>
index aa3d650..6dbcc59 100644 (file)
@@ -22,7 +22,7 @@
 #define VER_X264_MAJOR 2
 #define VER_X264_MINOR 0
 #define VER_X264_PATCH 2
-#define VER_X264_BUILD 147
+#define VER_X264_BUILD 164
 
 #define VER_X264_MINIMUM_REV 2146
 #define VER_X264_CURRENT_API 120
index 660bb46..6b26743 100644 (file)
@@ -531,6 +531,11 @@ void AddJobDialog::saveTemplateButtonClicked(void)
 
        for(int i = 0; i < cbxTemplate->count(); i++)
        {
+               const QString tempName = cbxTemplate->itemText(i);
+               if(tempName.contains('<') || tempName.contains('>'))
+               {
+                       continue;
+               }
                OptionsModel* test = reinterpret_cast<OptionsModel*>(cbxTemplate->itemData(i).value<void*>());
                if(test != NULL)
                {
index 723b71d..8959059 100644 (file)
@@ -65,8 +65,11 @@ HelpDialog::~HelpDialog(void)
 
 void HelpDialog::showEvent(QShowEvent *event)
 {
+       logo_x264->setHidden(m_avs2yuv);
+       logo_avisynth->setVisible(m_avs2yuv);
+       
        QDialog::showEvent(event);
-
+       
        m_startAgain = true;
 
        if(!m_avs2yuv)
index 2b4c5af..e6f2ec5 100644 (file)
@@ -38,6 +38,7 @@
 #include <QLibrary>
 #include <QProcess>
 #include <QProgressDialog>
+#include <QScrollBar>
 
 #include <Mmsystem.h>
 
@@ -139,6 +140,7 @@ MainWindow::MainWindow(const x264_cpu_t *const cpuFeatures)
        connect(actionWebAvisynth64, SIGNAL(triggered()), this, SLOT(showWebLink()));
        connect(actionWebWiki, SIGNAL(triggered()), this, SLOT(showWebLink()));
        connect(actionWebBluRay, SIGNAL(triggered()), this, SLOT(showWebLink()));
+       connect(actionWebAvsWiki, SIGNAL(triggered()), this, SLOT(showWebLink()));
        connect(actionWebSecret, SIGNAL(triggered()), this, SLOT(showWebLink()));
        connect(actionPreferences, SIGNAL(triggered()), this, SLOT(showPreferences()));
 
@@ -395,6 +397,7 @@ void MainWindow::showAbout(void)
        aboutBox.setWindowTitle(tr("About..."));
        aboutBox.setText(text.replace("-", "&minus;"));
        aboutBox.addButton(tr("About x264"), QMessageBox::NoRole);
+       aboutBox.addButton(tr("About AVS"), QMessageBox::NoRole);
        aboutBox.addButton(tr("About Qt"), QMessageBox::NoRole);
        aboutBox.setEscapeButton(aboutBox.addButton(tr("Close"), QMessageBox::NoRole));
                
@@ -409,7 +412,8 @@ void MainWindow::showAbout(void)
                                text2 += tr("<nobr><tt>x264 - the best H.264/AVC encoder. Copyright (c) 2003-2012 x264 project.<br>");
                                text2 += tr("Free software library for encoding video streams into the H.264/MPEG-4 AVC format.<br>");
                                text2 += tr("Released under the terms of the GNU General Public License.<br><br>");
-                               text2 += tr("Please visit <a href=\"%1\">%1</a> for obtaining a <u>commercial</u> x264 license!<br></tt></nobr>").arg("http://x264licensing.com/");
+                               text2 += tr("Please visit <a href=\"%1\">%1</a> for obtaining a commercial x264 license.<br>").arg("http://x264licensing.com/");
+                               text2 += tr("Read the <a href=\"%1\">user's manual</a> to get started and use the <a href=\"%2\">support forum</a> for help!<br></tt></nobr>").arg("http://mewiki.project357.com/wiki/X264_Settings", "http://forum.doom9.org/forumdisplay.php?f=77");
 
                                QMessageBox x264Box(this);
                                x264Box.setIconPixmap(QIcon(":/images/x264.png").pixmap(48,48));
@@ -421,6 +425,24 @@ void MainWindow::showAbout(void)
                        }
                        break;
                case 1:
+                       {
+                               QString text2;
+                               text2 += tr("<nobr><tt>Avisynth - powerful tool for video post-production.<br>");
+                               text2 += tr("Copyright (c) 2000 Ben Rudiak-Gould and all subsequent developers.<br>");
+                               text2 += tr("Released under the terms of the GNU General Public License.<br><br>");
+                               text2 += tr("Please visit the web-site <a href=\"%1\">%1</a> for more information.<br>").arg("http://avisynth.org/");
+                               text2 += tr("Read the <a href=\"%1\">guide</a> to get started and use the <a href=\"%2\">support forum</a> for help!<br></tt></nobr>").arg("http://avisynth.org/mediawiki/First_script", "http://forum.doom9.org/forumdisplay.php?f=33");
+
+                               QMessageBox x264Box(this);
+                               x264Box.setIconPixmap(QIcon(":/images/avisynth.png").pixmap(48,67));
+                               x264Box.setWindowTitle(tr("About Avisynth"));
+                               x264Box.setText(text2.replace("-", "&minus;"));
+                               x264Box.setEscapeButton(x264Box.addButton(tr("Close"), QMessageBox::NoRole));
+                               MessageBeep(MB_ICONINFORMATION);
+                               x264Box.exec();
+                       }
+                       break;
+               case 2:
                        QMessageBox::aboutQt(this);
                        break;
                default:
@@ -443,6 +465,7 @@ void MainWindow::showWebLink(void)
        if(QObject::sender() == actionWebAvisynth64) QDesktopServices::openUrl(QUrl("http://code.google.com/p/avisynth64/downloads/list"));
        if(QObject::sender() == actionWebWiki)       QDesktopServices::openUrl(QUrl("http://mewiki.project357.com/wiki/X264_Settings"));
        if(QObject::sender() == actionWebBluRay)     QDesktopServices::openUrl(QUrl("http://www.x264bluray.com/"));
+       if(QObject::sender() == actionWebAvsWiki)    QDesktopServices::openUrl(QUrl("http://avisynth.org/mediawiki/Main_Page#Usage"));
        if(QObject::sender() == actionWebSecret)     QDesktopServices::openUrl(QUrl("http://www.youtube.com/watch_popup?v=AXIeHY-OYNI"));
 }