summaryrefslogtreecommitdiffstats
path: root/ksirc/charSelector.h
blob: 5f4e1f9a8ffb32b9d200eaa162f44f60d993313d (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
37
38
39
40
41
42
43
/* ascii table for ksirc - Robbie Ward <linuxphreak@gmx.co.uk>*/

#ifndef CHARSELECTOR_H
#define CHARSELECTOR_H

#include <kdialog.h>
#include <kdebug.h>
#include <kcharselect.h>

class TQVBoxLayout;
class TQPushButton;

class charSelector : public KDialog
{
  TQ_OBJECT
  
  public:
    charSelector(TQWidget *parent=0, const char *name=0);
    ~charSelector();

  virtual bool eventFilter ( TQObject * watched, TQEvent * e );

  public slots:
    void insertText();
    TQString currentText() { return charSelect->chr(); }

    void setFont( const TQString &font );

  protected slots:
    virtual void reject();

  signals:
    void clicked();

  protected:
    virtual void keyPressEvent(TQKeyEvent *e);

  private:
    KCharSelect *charSelect;
    TQVBoxLayout* testLayout;
    TQPushButton *insertButton;
};
#endif