#include <QProgressDialog>
#include <QMutex>
-DialogHandler::DialogHandler (intf_thread_t *intf)
- : intf (intf),
+DialogHandler::DialogHandler (intf_thread_t *intf, QObject *_parent)
+ : intf (intf), QObject( _parent ),
message (VLC_OBJECT(intf), "dialog-fatal", VLC_VAR_ADDRESS),
login (VLC_OBJECT(intf), "dialog-login", VLC_VAR_ADDRESS),
question (VLC_OBJECT(intf), "dialog-question", VLC_VAR_ADDRESS),
friend class QVLCProgressDialog;
public:
- DialogHandler (intf_thread_t *);
+ DialogHandler (intf_thread_t *, QObject *parent);
~DialogHandler (void);
private:
#include "dialogs/podcast_configuration.hpp"
#include "dialogs/toolbar.hpp"
#include "dialogs/plugins.hpp"
+#include "dialogs/external.hpp"
#include <QEvent>
#include <QApplication>
SDMapper = new QSignalMapper();
CONNECT( SDMapper, mapped (QString), this, SDMenuAction( QString ) );
+
+ DialogHandler *dialogHandler = new DialogHandler (p_intf, this );
}
DialogsProvider::~DialogsProvider()
/* END CONNECTS ON IM */
- dialogHandler = new DialogHandler (p_intf);
-
/************
* Callbacks
************/
{
msg_Dbg( p_intf, "Destroying the main interface" );
- delete dialogHandler;
-
/* Unsure we hide the videoWidget before destroying it */
if( videoIsActive ) videoWidget->hide();
class SpeedControlWidget;
class QMenu;
class QSize;
-class DialogHandler;
enum {
CONTROLS_VISIBLE = 0x1,
ControlsWidget *controls;
InputControlsWidget *inputC;
FullscreenControllerWidget *fullscreenControls;
- DialogHandler *dialogHandler;
void createMainWidget( QSettings* );
void createStatusBar();