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.
tdeedu/kwordquiz/src/dlgspecchar.h

65 lines
1.8 KiB

/***************************************************************************
dlglspecchar.h - description
-------------------
copyright : (C) 2003 by Peter Hedlund
email : peter.hedlund@kdemail.net
***************************************************************************/
/***************************************************************************
* *
* 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. *
* *
***************************************************************************/
#ifndef DLGSPECCHAR_H
#define DLGSPECCHAR_H
#include <kdialogbase.h>
class TQWidget;
class TQGridLayout;
class TQPushButton;
class KCharSelect;
class KButtonBox;
/**
@author Peter Hedlund
*/
class DlgSpecChar : public KDialogBase
{
Q_OBJECT
public:
//constructor when you want to insert multi char
DlgSpecChar( TQWidget *parent, const char *name, const TQString &_font,
const TQChar &_chr, bool _modal=true );
~DlgSpecChar();
// internal
TQChar chr();
void closeDialog();
private:
void initDialog(const TQChar &_chr, const TQString &_font, bool _enableFont);
private slots:
void slotUser1();
void slotDoubleClicked();
protected:
// dialog objects
TQGridLayout *grid;
KButtonBox *bbox;
TQPushButton *bOk, *bCancel;
KCharSelect *charSelect;
signals:
void insertChar(TQChar);
};
#endif