]> git.sesse.net Git - vlc/blob - modules/gui/qt4/dialogs/interaction.hpp
Qt4 - Strings changes by tonsofpcs.
[vlc] / modules / gui / qt4 / dialogs / interaction.hpp
1 /*****************************************************************************
2  * interaction.hpp : Interaction dialogs
3  ****************************************************************************
4  * Copyright (C) 2006 the VideoLAN team
5  * $Id$
6  *
7  * Authors: ClĂ©ment Stenac <zorglub@videolan.org>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23
24 #ifndef _INTERACTION_H_
25 #define _INTERACTION_H_
26
27 #include <vlc/vlc.h>
28 #include <vlc_interface.h>
29
30 #include <QWidget>
31
32 class QPushButton;
33 class QLabel;
34 class QProgressBar;
35 class QLineEdit;
36
37 class InteractionDialog : public QObject
38 {
39     Q_OBJECT
40 public:
41     InteractionDialog( intf_thread_t *, interaction_dialog_t * );
42     virtual ~InteractionDialog();
43
44     void update();
45     void show() { if( dialog ) dialog->show(); }
46     void hide() { if( dialog ) dialog->hide(); }
47
48 private:
49     QWidget *panel;
50     QWidget *dialog;
51     intf_thread_t *p_intf;
52     interaction_dialog_t *p_dialog;
53
54     QPushButton *defaultButton, *otherButton, *altButton;
55     QLabel *description;
56     QProgressBar *progressBar;
57     QLineEdit *inputEdit, *loginEdit, *passwordEdit;
58
59     void Finish( int );
60 private slots:
61     void defaultB();
62     void altB();
63     void otherB();
64 };
65
66 #endif