summaryrefslogtreecommitdiffstats
path: root/kmid/kmidframe.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commite2de64d6f1beb9e492daf5b886e19933c1fa41dd (patch)
tree9047cf9e6b5c43878d5bf82660adae77ceee097a /kmid/kmidframe.h
downloadtdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.tar.gz
tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmid/kmidframe.h')
-rw-r--r--kmid/kmidframe.h133
1 files changed, 133 insertions, 0 deletions
diff --git a/kmid/kmidframe.h b/kmid/kmidframe.h
new file mode 100644
index 00000000..e88c902a
--- /dev/null
+++ b/kmid/kmidframe.h
@@ -0,0 +1,133 @@
+/**************************************************************************
+
+ kmidframe.h - The main widget of KMid
+ Copyright (C) 1997,98 Antonio Larrosa Jimenez
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ Send comments and bug fixes to [email protected]
+ or to Antonio Larrosa, Rio Arnoya, 10 5B, 29006 Malaga, Spain
+
+***************************************************************************/
+#ifndef _KMIDFRAME_H
+#define _KMIDFRAME_H
+
+#include <kmainwindow.h>
+#include <kmenubar.h>
+#include <libkmid/midiout.h>
+#include <libkmid/player.h>
+#include <libkmid/track.h>
+#include <qtimer.h>
+#include <kdelibs_export.h>
+
+class KApplication;
+class KConfig;
+class kmidClient;
+class KToolBar;
+class QDragEvent;
+class KAccel;
+
+class KDE_EXPORT kmidFrame : public KMainWindow
+{
+ Q_OBJECT
+private:
+#ifdef KMidDEBUG
+ long passcount;
+#endif
+
+ MidiOut *Midi;
+ MidiPlayer *Player;
+/*
+ int playerProcessID;
+ PlayerController *pctl;
+
+ int donttoggle;
+
+ QPopupMenu *m_file;
+ QPopupMenu *m_song;
+ QPopupMenu *m_collections;
+ QPopupMenu *m_options;
+ QPopupMenu *m_help;
+*/
+ KAccel *kKeysAccel;
+protected:
+ int autoAddSongToCollection(const QString& filename=QString::null,int setactive=1);
+
+
+ virtual void saveProperties(KConfig *kcfg);
+ virtual void readProperties(KConfig *kcfg);
+
+// virtual void closeEvent(QCloseEvent *e);
+
+ void dragEnterEvent(QDragEnterEvent* e);
+ void dropEvent ( QDropEvent * event );
+
+
+public:
+ kmidFrame(const char *name=0);
+ virtual ~kmidFrame();
+
+public slots:
+
+ void file_Open();
+ void file_SaveLyrics();
+ void song_stopPause(); // release the pause button and quit the pause mode
+ void song_Loop();
+ void collect_organize();
+ void collect_PlayOrder(int i);
+ void collect_AutoAdd();
+ void options_FileType(int i);
+ void options_DisplayEvents(int i);
+ void options_AutomaticText();
+ void options_ShowVolumeBar();
+ void options_ShowChannelView();
+ void options_ChannelViewOptions();
+ void options_FontChange();
+
+ void options_MidiSetup();
+ void spacePressed();
+
+
+ virtual void openURL( const QString s );
+/* virtual void play();
+ virtual void pause();
+ virtual void stop();
+ virtual void rewind();
+ virtual void forward();
+ virtual void seek(int ms);
+ virtual void prevSong();
+ virtual void nextSong();
+ virtual void setSongLoop(int i);
+ virtual void setVolume(int i);
+ virtual void setTempo(int i);
+ virtual void setSongType( int i );
+ virtual void setLyricEvents( int i );
+ virtual void selectSong(int i);
+ virtual void setActiveCollection( int i );
+ virtual void setCollectionPlayMode(int i);
+ virtual void setMidiDevice(int i);
+*/
+ void urlDrop_slot(class QDropEvent *);
+
+ void rechooseTextEvent();
+
+ void channelViewDestroyed();
+ void shuttingDown();
+
+private:
+ kmidClient *kmidclient;
+};
+
+#endif