summaryrefslogtreecommitdiffstats
path: root/ksirc/puke/ppopmenu.h
blob: 9044b9358940d0974a50e2b80f413675f43b4fad (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
27
28
29
30
31
32
33
34
35
36
#ifndef PPOPMENU_H
#define PPOPMENU_H

class PPopupMenu;

#include <qpopupmenu.h>
#include "pobject.h"
#include "pmessage.h"

#include "ptablevw.h"
#include "pmenudta.h"

class PPopupMenu : public PFrame
{
  Q_OBJECT
public:
  static PObject *createWidget(CreateArgs &ca);

  PPopupMenu(PObject *child);
  virtual ~PPopupMenu();

  virtual void messageHandler(int fd, PukeMessage *pm);

  virtual void setWidget(QObject *_menu);
  virtual QPopupMenu *widget();

protected slots:
  void got_activated ( int itemId );

private:
  QPopupMenu *menu;
  PMenuData *pmd;

};

#endif