X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fqt4%2Fdialogs%2Finteraction.hpp;h=fce2dd6003087360f8cfd9a15e5fa63025551c68;hb=efecf95f446cbe0652123f0210e07feb4e6c5f0f;hp=99cf035fd5f6b49f47ee93532449d55247f49ded;hpb=14e11ab1c8a1579bfd177dd3813e7c77b30eba51;p=vlc diff --git a/modules/gui/qt4/dialogs/interaction.hpp b/modules/gui/qt4/dialogs/interaction.hpp index 99cf035fd5..fce2dd6003 100644 --- a/modules/gui/qt4/dialogs/interaction.hpp +++ b/modules/gui/qt4/dialogs/interaction.hpp @@ -18,45 +18,46 @@ * * 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 _INTERACTION_H_ #define _INTERACTION_H_ #include -#include -#undef Q_ -#include -#undef Q_ -#include -#undef Q_ -#include -#undef Q_ -#include -#undef Q_ -#include -#undef Q_ +#include -class InteractionDialog : public QWidget +#include + +class QPushButton; +class QLabel; +class QProgressBar; +class QLineEdit; + +class InteractionDialog : public QObject { Q_OBJECT public: InteractionDialog( intf_thread_t *, interaction_dialog_t * ); virtual ~InteractionDialog(); - void Update(); + void update(); + void show() { if( dialog ) dialog->show(); } + void hide() { if( dialog ) dialog->hide(); } private: + QWidget *panel; + QWidget *dialog; intf_thread_t *p_intf; interaction_dialog_t *p_dialog; - Ui::LoginDialog *uiLogin; - Ui::InputDialog *uiInput; - Ui::ProgressDialog *uiProgress; QPushButton *defaultButton, *otherButton, *altButton; QLabel *description; + QProgressBar *progressBar; + QLineEdit *inputEdit, *loginEdit, *passwordEdit; void Finish( int ); + private slots: void defaultB(); void altB();