]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/dialogs/help.hpp
Qt4 - minwidth of dropdown inside settings dialogs, patch by André Weber
[vlc] / modules / gui / qt4 / dialogs / help.hpp
index 050cc9b43ff6f19a31955faf347e0aaee08cb791..e8bf68ffe02450c6f1932ffa21bdab46c040a627 100644 (file)
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+ *****************************************************************************/
 
 #ifndef _HELP_DIALOG_H_
 #define _HELP_DIALOG_H_
 
+#include <vlc_update.h>
+
 #include "util/qvlcframe.hpp"
 
+class QPushButton;
+class QCheckBox;
+
 class HelpDialog : public QVLCFrame
 {
     Q_OBJECT;
@@ -32,7 +38,7 @@ public:
     static HelpDialog * getInstance( intf_thread_t *p_intf )
     {
         if( !instance)
-            instance = new HelpDialog( p_intf);
+            instance = new HelpDialog( p_intf );
         return instance;
     }
     virtual ~HelpDialog();
@@ -64,4 +70,33 @@ public slots:
     void close();
 };
 
+
+class UpdateDialog : public QVLCFrame
+{
+    Q_OBJECT;
+public:
+    static UpdateDialog * getInstance( intf_thread_t *p_intf )
+    {
+        if( !instance)
+            instance = new UpdateDialog( p_intf);
+        return instance;
+    }
+    virtual ~UpdateDialog();
+
+private:
+    UpdateDialog( intf_thread_t *);
+    static UpdateDialog *instance;
+    QPushButton *updateButton;
+    QCheckBox *checkInfo;
+    QCheckBox *checkSource;
+    QCheckBox *checkBinary;
+    QCheckBox *checkPlugin;
+    update_t *p_update;
+    bool b_updated;
+private slots:
+    void close();
+    void updateOrUpload();
+};
+
+
 #endif