summaryrefslogtreecommitdiffstats
path: root/src/app/mainWindow.h
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2020-06-13 22:45:28 +0900
committerMichele Calgaro <[email protected]>2020-06-13 22:45:28 +0900
commit5f44f7b187093ef290315b7f8766b540a31de35f (patch)
tree27ffb7b218199ca04f240c390c52426c65f45dce /src/app/mainWindow.h
downloadcodeine-5f44f7b187093ef290315b7f8766b540a31de35f.tar.gz
codeine-5f44f7b187093ef290315b7f8766b540a31de35f.zip
Initial code import from debian snapshot
https://snapshot.debian.org/package/codeine/1.0.1-3.dfsg-3.1/ Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/app/mainWindow.h')
-rw-r--r--src/app/mainWindow.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/src/app/mainWindow.h b/src/app/mainWindow.h
new file mode 100644
index 0000000..63d8468
--- /dev/null
+++ b/src/app/mainWindow.h
@@ -0,0 +1,75 @@
+// (c) 2004 Max Howell ([email protected])
+// See COPYING file for licensing information
+
+#ifndef CODEINEMAINWINDOW_H
+#define CODEINEMAINWINDOW_H
+
+#include "codeine.h"
+#include <kmainwindow.h>
+
+class KURL;
+class QLabel;
+class QPopupMenu;
+class QSlider;
+
+
+namespace Codeine
+{
+ class MainWindow : public KMainWindow
+ {
+ Q_OBJECT
+
+ MainWindow();
+ ~MainWindow();
+
+ friend int ::main( int, char** );
+
+ enum { SubtitleChannelsMenuItemId = 2000, AudioChannelsMenuItemId, AspectRatioMenuItemId };
+
+ public slots:
+ void play();
+ void playMedia( bool show_welcome_dialog = false );
+
+ void configure();
+ void streamInformation();
+ void captureFrame();
+
+ private slots:
+ void engineMessage( const QString& );
+ void engineStateChanged( Engine::State );
+ void init();
+ void showTime( int = -1 );
+ void setChannels( const QStringList& );
+ void aboutToShowMenu();
+ void fullScreenToggled( bool );
+
+ private:
+ void setupActions();
+
+ bool load( const KURL& );
+ bool open( const KURL& );
+
+ QPopupMenu *menu( const char *name );
+
+ virtual void timerEvent( QTimerEvent* );
+ virtual void dragEnterEvent( QDragEnterEvent* );
+ virtual void dropEvent( QDropEvent* );
+ virtual void keyPressEvent( QKeyEvent* );
+
+ virtual void saveProperties( KConfig* );
+ virtual void readProperties( KConfig* );
+
+ virtual bool queryExit();
+
+ QSlider *m_positionSlider;
+ QLabel *m_timeLabel;
+ QLabel *m_titleLabel;
+ QWidget *m_analyzer;
+
+ //undefined
+ MainWindow( const MainWindow& );
+ MainWindow &operator=( const MainWindow& );
+ };
+}
+
+#endif