|
|
@ -271,7 +271,7 @@ Knowit::Knowit(TQWidget*, const char *name) : KMainWindow(0, name),
|
|
|
|
/* System tray */
|
|
|
|
/* System tray */
|
|
|
|
systray = new KnowitTray(this, "Systray");
|
|
|
|
systray = new KnowitTray(this, "Systray");
|
|
|
|
systray->setPixmap(Notes.Pixmaps[1]);
|
|
|
|
systray->setPixmap(Notes.Pixmaps[1]);
|
|
|
|
systray->tqsetAlignment(TQt::AlignHCenter | TQt::AlignVCenter);
|
|
|
|
systray->setAlignment(TQt::AlignHCenter | TQt::AlignVCenter);
|
|
|
|
|
|
|
|
|
|
|
|
/* Autosave */
|
|
|
|
/* Autosave */
|
|
|
|
AutosaveTimer = new TQTimer(this);
|
|
|
|
AutosaveTimer = new TQTimer(this);
|
|
|
@ -926,7 +926,7 @@ void Knowit::slotFilePrint()
|
|
|
|
TQRect view(body);
|
|
|
|
TQRect view(body);
|
|
|
|
int page = 1;
|
|
|
|
int page = 1;
|
|
|
|
while (true) {
|
|
|
|
while (true) {
|
|
|
|
richText.draw(&p, body.left(), body.top(), view, tqcolorGroup());
|
|
|
|
richText.draw(&p, body.left(), body.top(), view, colorGroup());
|
|
|
|
view.moveBy(0, body.height());
|
|
|
|
view.moveBy(0, body.height());
|
|
|
|
p.translate( 0 , -body.height());
|
|
|
|
p.translate( 0 , -body.height());
|
|
|
|
p.setFont(Edit->font());
|
|
|
|
p.setFont(Edit->font());
|
|
|
@ -1031,22 +1031,22 @@ void Knowit::slotEditNormal()
|
|
|
|
|
|
|
|
|
|
|
|
void Knowit::slotEditAlignLeft()
|
|
|
|
void Knowit::slotEditAlignLeft()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Edit->tqsetAlignment(TQt::AlignLeft);
|
|
|
|
Edit->setAlignment(TQt::AlignLeft);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Knowit::slotEditAlignRight()
|
|
|
|
void Knowit::slotEditAlignRight()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Edit->tqsetAlignment(TQt::AlignRight);
|
|
|
|
Edit->setAlignment(TQt::AlignRight);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Knowit::slotEditAlignJustify()
|
|
|
|
void Knowit::slotEditAlignJustify()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Edit->tqsetAlignment(TQt::AlignJustify);
|
|
|
|
Edit->setAlignment(TQt::AlignJustify);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Knowit::slotEditAlignCenter()
|
|
|
|
void Knowit::slotEditAlignCenter()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Edit->tqsetAlignment(TQt::AlignCenter);
|
|
|
|
Edit->setAlignment(TQt::AlignCenter);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Knowit::slotEditListBullet()
|
|
|
|
void Knowit::slotEditListBullet()
|
|
|
@ -1114,7 +1114,7 @@ void Knowit::slotEditInsertDate()
|
|
|
|
Edit->setUnderline(Options.insertDateUnderline);
|
|
|
|
Edit->setUnderline(Options.insertDateUnderline);
|
|
|
|
Edit->setColor(TQColor(Options.insertDateColor));
|
|
|
|
Edit->setColor(TQColor(Options.insertDateColor));
|
|
|
|
Edit->insert(TQString("%1")
|
|
|
|
Edit->insert(TQString("%1")
|
|
|
|
.tqarg(TQDateTime::tqcurrentDateTime().toString(Options.insertDateFormat)));
|
|
|
|
.tqarg(TQDateTime::currentDateTime().toString(Options.insertDateFormat)));
|
|
|
|
Edit->setItalic(ii);
|
|
|
|
Edit->setItalic(ii);
|
|
|
|
Edit->setBold(ib);
|
|
|
|
Edit->setBold(ib);
|
|
|
|
Edit->setUnderline(iu);
|
|
|
|
Edit->setUnderline(iu);
|
|
|
|