summaryrefslogtreecommitdiffstats
path: root/src/app/actions.h
blob: 4d8a121537cdef6925398eb74284e8f75eb9fc70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// (c) 2004 Max Howell (max.howell@methylblue.com)
// See COPYING file for licensing information

#ifndef CODEINEACTIONS_H
#define CODEINEACTIONS_H

#include <kactionclasses.h>    //baseclass
#include <kactioncollection.h> //convenience

namespace Codeine
{
   KActionCollection *actionCollection(); ///defined in mainWindow.cpp
   KAction *action( const char* ); ///defined in mainWindow.cpp
   inline KToggleAction *toggleAction( const char *name ) { return (KToggleAction*)action( name ); }

   class PlayAction : public KToggleAction
   {
   public:
      PlayAction( TQObject *receiver, const char *slot, KActionCollection* );

   protected:
      virtual void setChecked( bool );
   };
}

#endif