* extended.hpp : Extended controls - Undocked
****************************************************************************
* Copyright (C) 2006 the VideoLAN team
- * $Id: streaminfo.hpp 16687 2006-09-17 12:15:42Z jb $
+ * $Id$
*
* Authors: Clément Stenac <zorglub@videolan.org>
*
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
-#ifndef _EXTENDED_DIALOG_H_
-#define _EXTENDED_DIALOG_H_
+#ifndef QVLC_EXTENDED_DIALOG_H_
+#define QVLC_EXTENDED_DIALOG_H_ 1
#include "util/qvlcframe.hpp"
-class ExtendedDialog : public QVLCFrame
+#include "components/extended_panels.hpp"
+#include "util/singleton.hpp"
+
+class QTabWidget;
+
+class ExtendedDialog : public QVLCDialog, public Singleton<ExtendedDialog>
{
- Q_OBJECT;
+ Q_OBJECT
public:
- static ExtendedDialog * getInstance( intf_thread_t *p_intf )
+ enum
{
- if( !instance)
- instance = new ExtendedDialog( p_intf );
- return instance;
- }
- virtual ~ExtendedDialog();
+ AUDIO_TAB = 0,
+ VIDEO_TAB,
+ SYNCHRO_TAB,
+ V4L2_TAB
+ };
+ void showTab( int i );
+ int currentTab();
private:
ExtendedDialog( intf_thread_t * );
- static ExtendedDialog *instance;
-public slots:
+ virtual ~ExtendedDialog();
+
+ SyncControls *syncW;
+ ExtVideo *videoEffect;
+ Equalizer *equal;
+ QTabWidget *mainTabW;
+ QCheckBox *writeChangesBox;
+private slots:
+ void changedItem( int );
+ void currentTabChanged( int );
+
+ friend class Singleton<ExtendedDialog>;
};
#endif
+