# HG changeset patch # User insilmaril # Date 1157546826 0 # Node ID a62478df8d464143a5baf2f8b03c63c3617ca3f5 # Parent 1ab7353f8f4405dc5ba78008657ba1ad1457604b 1.8.55 New history window and showtextwindow diff -r 1ab7353f8f44 -r a62478df8d46 showtextdialog.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/showtextdialog.cpp Wed Sep 06 12:47:06 2006 +0000 @@ -0,0 +1,19 @@ +#include "showtextdialog.h" + + +ShowTextDialog::ShowTextDialog (QWidget *parent):QDialog (parent) +{ + ui.setupUi (this); +} + +void ShowTextDialog::append (const QString &s) +{ + ui.textEdit->append (s); +} + +void ShowTextDialog::setText (const QString &s) +{ + ui.textEdit->setText (s); +} + + diff -r 1ab7353f8f44 -r a62478df8d46 showtextdialog.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/showtextdialog.h Wed Sep 06 12:47:06 2006 +0000 @@ -0,0 +1,19 @@ +#ifndef SHOWTEXTDIALOG_H +#define SHOWTEXTDIALOG_H + +#include "ui_showtextdialog.h" + +class ShowTextDialog:public QDialog +{ + Q_OBJECT +public: + ShowTextDialog (QWidget *parent=0); + void append (const QString &); + void setText (const QString &); + +private: + Ui::ShowTextDialog ui; +}; + +#endif // SHOWTEXTDIALOG_H + diff -r 1ab7353f8f44 -r a62478df8d46 showtextdialog.ui --- a/showtextdialog.ui Wed Sep 06 12:47:06 2006 +0000 +++ b/showtextdialog.ui Wed Sep 06 12:47:06 2006 +0000 @@ -1,136 +1,80 @@ - -ShowTextDialog -Uwe Drechsel - - - ShowTextDialog - - - true - - - - 0 - 0 - 560 - 383 - - - - - 5 - 5 - 0 - 0 - - - - WidgetOrigin - - - VYM - Info - - - false - - - - unnamed - - - - layout9 - - - - unnamed - - - - textEdit1 - - - - 7 - 7 - 0 - 0 - - - - - - layout8 - - - - unnamed - - - - spacer4 - - - Horizontal - - - Expanding - - - - 141 - 21 - - - - - - pushButton4 - - - - 7 - 0 - 0 - 0 - - - - - 150 - 32767 - - - - Close - - - true - - - - - - - - - - - pushButton4 - clicked() - ShowTextDialog - accept() - - - - showtextdialog.ui.h - - - init() - setCaption( const QString & t ) - setText( const QString & t ) - append( const QString & t ) - - - - + + + + + ShowTextDialog + + + + 0 + 0 + 689 + 370 + + + + Dialog + + + + 9 + + + 6 + + + + + + + + 0 + + + 6 + + + + + Qt::Horizontal + + + + 131 + 31 + + + + + + + + Close + + + + + + + + + + + + okButton + clicked() + ShowTextDialog + accept() + + + 278 + 253 + + + 96 + 254 + + + + +