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.
tdeaddons/noatun-plugins/dub/dub/dubapp.h

84 lines
1.9 KiB

//
// C++ Interface for module: DubApp
//
// Description: KDE application entry point for dub playlist
// Stripped down main window code from kapptemplate
//
// Author: Eray (exa) Ozkural, (C) 2003
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef DubApp_Interface
#define DubApp_Interface
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
// include files for KDE
#include <tdeapplication.h>
#include <tdemainwindow.h>
#include <tdeaccel.h>
#include <tdeaction.h>
// forward declaration of the Dub classes
class DubView;
// Application stuff
class DubApp : public TDEMainWindow
{
Q_OBJECT
friend class DubView;
public:
/** construtor of DubApp, calls all init functions to create the application.
*/
DubApp(TQWidget* parent, const char* name="Dub Playlist");
~DubApp();
void initActions();
/** sets up the statusbar for the main window by initialzing a statuslabel.
*/
void initStatusBar();
/** initializes the document object of the main window that is connected to the view in initView().
* @see initView();
*/
void initView();
DubView *view;
DubView* getView() {
return view;
}
protected:
virtual void closeEvent(TQCloseEvent*e);
private:
TDEConfig *config;
/** view is the main widget which represents your working area. The View
* class should handle all events of the view widget. It is kept empty so
* you can create your view according to your application's needs by
* changing the view class.
*/
// TDEAction pointers to enable/disable actions
//TDEAction* fileQuit;
TDEAction* fileClose;
// signals and slots
public slots:
/** changes the statusbar contents for the standard label permanently, used to indicate current actions.
* @param text the text that is displayed in the statusbar
*/
void slotStatusMsg(const TQString &text);
/** get a pointer to view object */
};
#endif