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.
50 lines
1.2 KiB
50 lines
1.2 KiB
15 years ago
|
/****************************************************************************
|
||
|
** ui.h extension file, included from the uic-generated form implementation.
|
||
|
**
|
||
14 years ago
|
** If you wish to add, delete or rename slots use TQt Designer which will
|
||
15 years ago
|
** update this file, preserving your code. Create an init() slot in place of
|
||
|
** a constructor, and a destroy() slot in place of a destructor.
|
||
|
*****************************************************************************/
|
||
15 years ago
|
#include <tqcolordialog.h>
|
||
|
#include <tqfontdatabase.h>
|
||
15 years ago
|
|
||
|
void RichTextFontDialog::init()
|
||
|
{
|
||
15 years ago
|
TQFontDatabase *db = new TQFontDatabase();
|
||
13 years ago
|
fontCombo->insertStringList( db->families() );
|
||
15 years ago
|
}
|
||
|
|
||
|
void RichTextFontDialog::selectColor()
|
||
|
{
|
||
14 years ago
|
color = TQColorDialog::getColor( "", this );
|
||
15 years ago
|
if( color.isValid() )
|
||
|
colorButton->setPaletteBackgroundColor( color );
|
||
|
}
|
||
|
|
||
|
void RichTextFontDialog::accept()
|
||
|
{
|
||
|
size = fontSizeCombo->currentText();
|
||
|
font = fontCombo->currentText();
|
||
|
done( Accepted );
|
||
|
}
|
||
|
|
||
|
void RichTextFontDialog::reject()
|
||
|
{
|
||
|
done( Rejected );
|
||
|
}
|
||
|
|
||
15 years ago
|
TQString RichTextFontDialog::getSize()
|
||
15 years ago
|
{
|
||
|
return size;
|
||
|
}
|
||
|
|
||
15 years ago
|
TQString RichTextFontDialog::getColor()
|
||
15 years ago
|
{
|
||
|
return color.name();
|
||
|
}
|
||
|
|
||
15 years ago
|
TQString RichTextFontDialog::getFont()
|
||
15 years ago
|
{
|
||
|
return font;
|
||
|
}
|