You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
135 lines
3.5 KiB
135 lines
3.5 KiB
15 years ago
|
/**************************************************************************
|
||
|
|
||
12 years ago
|
tdemidframe.h - The main widget of KMid
|
||
15 years ago
|
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
|
||
15 years ago
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||
15 years ago
|
|
||
|
Send comments and bug fixes to larrosa@kde.org
|
||
|
or to Antonio Larrosa, Rio Arnoya, 10 5B, 29006 Malaga, Spain
|
||
|
|
||
|
***************************************************************************/
|
||
|
#ifndef _KMIDFRAME_H
|
||
|
#define _KMIDFRAME_H
|
||
|
|
||
|
#include <kmainwindow.h>
|
||
|
#include <kmenubar.h>
|
||
12 years ago
|
#include <libtdemid/midiout.h>
|
||
|
#include <libtdemid/player.h>
|
||
|
#include <libtdemid/track.h>
|
||
14 years ago
|
#include <tqtimer.h>
|
||
13 years ago
|
#include <tdelibs_export.h>
|
||
15 years ago
|
|
||
12 years ago
|
class TDEApplication;
|
||
12 years ago
|
class TDEConfig;
|
||
12 years ago
|
class tdemidClient;
|
||
15 years ago
|
class KToolBar;
|
||
13 years ago
|
class TQDragEvent;
|
||
15 years ago
|
class KAccel;
|
||
|
|
||
12 years ago
|
class KDE_EXPORT tdemidFrame : public KMainWindow
|
||
15 years ago
|
{
|
||
|
Q_OBJECT
|
||
13 years ago
|
|
||
15 years ago
|
private:
|
||
|
#ifdef KMidDEBUG
|
||
|
long passcount;
|
||
|
#endif
|
||
|
|
||
|
MidiOut *Midi;
|
||
|
MidiPlayer *Player;
|
||
|
/*
|
||
|
int playerProcessID;
|
||
|
PlayerController *pctl;
|
||
|
|
||
|
int donttoggle;
|
||
|
|
||
14 years ago
|
TQPopupMenu *m_file;
|
||
|
TQPopupMenu *m_song;
|
||
|
TQPopupMenu *m_collections;
|
||
|
TQPopupMenu *m_options;
|
||
|
TQPopupMenu *m_help;
|
||
15 years ago
|
*/
|
||
|
KAccel *kKeysAccel;
|
||
|
protected:
|
||
13 years ago
|
int autoAddSongToCollection(const TQString& filename=TQString(),int setactive=1);
|
||
15 years ago
|
|
||
|
|
||
12 years ago
|
virtual void saveProperties(TDEConfig *kcfg);
|
||
|
virtual void readProperties(TDEConfig *kcfg);
|
||
15 years ago
|
|
||
14 years ago
|
// virtual void closeEvent(TQCloseEvent *e);
|
||
15 years ago
|
|
||
14 years ago
|
void dragEnterEvent(TQDragEnterEvent* e);
|
||
|
void dropEvent ( TQDropEvent * event );
|
||
15 years ago
|
|
||
|
|
||
|
public:
|
||
12 years ago
|
tdemidFrame(const char *name=0);
|
||
|
virtual ~tdemidFrame();
|
||
15 years ago
|
|
||
|
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();
|
||
|
|
||
|
|
||
14 years ago
|
virtual void openURL( const TQString s );
|
||
15 years ago
|
/* 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);
|
||
|
*/
|
||
14 years ago
|
void urlDrop_slot(class TQDropEvent *);
|
||
15 years ago
|
|
||
|
void rechooseTextEvent();
|
||
|
|
||
|
void channelViewDestroyed();
|
||
|
void shuttingDown();
|
||
|
|
||
|
private:
|
||
12 years ago
|
tdemidClient *tdemidclient;
|
||
15 years ago
|
};
|
||
|
|
||
|
#endif
|