1.8.55 New history window and showtextwindow
authorinsilmaril
Wed Sep 06 12:47:06 2006 +0000 (2006-09-06)
changeset 379a62478df8d46
parent 378 1ab7353f8f44
child 380 5f6e176e9718
1.8.55 New history window and showtextwindow
showtextdialog.cpp
showtextdialog.h
showtextdialog.ui
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/showtextdialog.cpp	Wed Sep 06 12:47:06 2006 +0000
     1.3 @@ -0,0 +1,19 @@
     1.4 +#include "showtextdialog.h"
     1.5 +
     1.6 +
     1.7 +ShowTextDialog::ShowTextDialog (QWidget *parent):QDialog (parent)
     1.8 +{
     1.9 +	ui.setupUi (this);
    1.10 +}
    1.11 +
    1.12 +void ShowTextDialog::append  (const QString &s)
    1.13 +{
    1.14 +	ui.textEdit->append (s);
    1.15 +}
    1.16 +
    1.17 +void ShowTextDialog::setText (const QString &s)
    1.18 +{
    1.19 +	ui.textEdit->setText (s);
    1.20 +}
    1.21 +
    1.22 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/showtextdialog.h	Wed Sep 06 12:47:06 2006 +0000
     2.3 @@ -0,0 +1,19 @@
     2.4 +#ifndef SHOWTEXTDIALOG_H
     2.5 +#define SHOWTEXTDIALOG_H
     2.6 +
     2.7 +#include "ui_showtextdialog.h"
     2.8 +
     2.9 +class ShowTextDialog:public QDialog
    2.10 +{
    2.11 +	Q_OBJECT
    2.12 +public:
    2.13 +	ShowTextDialog (QWidget *parent=0);
    2.14 +	void append     (const QString &);
    2.15 +	void setText    (const QString &);
    2.16 +	
    2.17 +private:
    2.18 +	Ui::ShowTextDialog ui;
    2.19 +};
    2.20 +
    2.21 +#endif // SHOWTEXTDIALOG_H
    2.22 +
     3.1 --- a/showtextdialog.ui	Wed Sep 06 12:47:06 2006 +0000
     3.2 +++ b/showtextdialog.ui	Wed Sep 06 12:47:06 2006 +0000
     3.3 @@ -1,136 +1,80 @@
     3.4 -<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
     3.5 -<class>ShowTextDialog</class>
     3.6 -<author>Uwe Drechsel</author>
     3.7 -<widget class="QDialog">
     3.8 -    <property name="name">
     3.9 -        <cstring>ShowTextDialog</cstring>
    3.10 -    </property>
    3.11 -    <property name="enabled">
    3.12 -        <bool>true</bool>
    3.13 -    </property>
    3.14 -    <property name="geometry">
    3.15 -        <rect>
    3.16 -            <x>0</x>
    3.17 -            <y>0</y>
    3.18 -            <width>560</width>
    3.19 -            <height>383</height>
    3.20 -        </rect>
    3.21 -    </property>
    3.22 -    <property name="sizePolicy">
    3.23 -        <sizepolicy>
    3.24 -            <hsizetype>5</hsizetype>
    3.25 -            <vsizetype>5</vsizetype>
    3.26 -            <horstretch>0</horstretch>
    3.27 -            <verstretch>0</verstretch>
    3.28 -        </sizepolicy>
    3.29 -    </property>
    3.30 -    <property name="backgroundOrigin">
    3.31 -        <enum>WidgetOrigin</enum>
    3.32 -    </property>
    3.33 -    <property name="caption">
    3.34 -        <string>VYM - Info</string>
    3.35 -    </property>
    3.36 -    <property name="sizeGripEnabled">
    3.37 -        <bool>false</bool>
    3.38 -    </property>
    3.39 -    <vbox>
    3.40 -        <property name="name">
    3.41 -            <cstring>unnamed</cstring>
    3.42 -        </property>
    3.43 -        <widget class="QLayoutWidget">
    3.44 -            <property name="name">
    3.45 -                <cstring>layout9</cstring>
    3.46 -            </property>
    3.47 -            <vbox>
    3.48 -                <property name="name">
    3.49 -                    <cstring>unnamed</cstring>
    3.50 -                </property>
    3.51 -                <widget class="QTextEdit">
    3.52 -                    <property name="name">
    3.53 -                        <cstring>textEdit1</cstring>
    3.54 -                    </property>
    3.55 -                    <property name="sizePolicy">
    3.56 -                        <sizepolicy>
    3.57 -                            <hsizetype>7</hsizetype>
    3.58 -                            <vsizetype>7</vsizetype>
    3.59 -                            <horstretch>0</horstretch>
    3.60 -                            <verstretch>0</verstretch>
    3.61 -                        </sizepolicy>
    3.62 -                    </property>
    3.63 -                </widget>
    3.64 -                <widget class="QLayoutWidget">
    3.65 -                    <property name="name">
    3.66 -                        <cstring>layout8</cstring>
    3.67 -                    </property>
    3.68 -                    <hbox>
    3.69 -                        <property name="name">
    3.70 -                            <cstring>unnamed</cstring>
    3.71 -                        </property>
    3.72 -                        <spacer>
    3.73 -                            <property name="name">
    3.74 -                                <cstring>spacer4</cstring>
    3.75 -                            </property>
    3.76 -                            <property name="orientation">
    3.77 -                                <enum>Horizontal</enum>
    3.78 -                            </property>
    3.79 -                            <property name="sizeType">
    3.80 -                                <enum>Expanding</enum>
    3.81 -                            </property>
    3.82 -                            <property name="sizeHint">
    3.83 -                                <size>
    3.84 -                                    <width>141</width>
    3.85 -                                    <height>21</height>
    3.86 -                                </size>
    3.87 -                            </property>
    3.88 -                        </spacer>
    3.89 -                        <widget class="QPushButton">
    3.90 -                            <property name="name">
    3.91 -                                <cstring>pushButton4</cstring>
    3.92 -                            </property>
    3.93 -                            <property name="sizePolicy">
    3.94 -                                <sizepolicy>
    3.95 -                                    <hsizetype>7</hsizetype>
    3.96 -                                    <vsizetype>0</vsizetype>
    3.97 -                                    <horstretch>0</horstretch>
    3.98 -                                    <verstretch>0</verstretch>
    3.99 -                                </sizepolicy>
   3.100 -                            </property>
   3.101 -                            <property name="maximumSize">
   3.102 -                                <size>
   3.103 -                                    <width>150</width>
   3.104 -                                    <height>32767</height>
   3.105 -                                </size>
   3.106 -                            </property>
   3.107 -                            <property name="text">
   3.108 -                                <string>Close</string>
   3.109 -                            </property>
   3.110 -                            <property name="default">
   3.111 -                                <bool>true</bool>
   3.112 -                            </property>
   3.113 -                        </widget>
   3.114 -                    </hbox>
   3.115 -                </widget>
   3.116 -            </vbox>
   3.117 -        </widget>
   3.118 -    </vbox>
   3.119 -</widget>
   3.120 -<connections>
   3.121 -    <connection>
   3.122 -        <sender>pushButton4</sender>
   3.123 -        <signal>clicked()</signal>
   3.124 -        <receiver>ShowTextDialog</receiver>
   3.125 -        <slot>accept()</slot>
   3.126 -    </connection>
   3.127 -</connections>
   3.128 -<includes>
   3.129 -    <include location="local" impldecl="in implementation">showtextdialog.ui.h</include>
   3.130 -</includes>
   3.131 -<slots>
   3.132 -    <slot access="private">init()</slot>
   3.133 -    <slot>setCaption( const QString &amp; t )</slot>
   3.134 -    <slot>setText( const QString &amp; t )</slot>
   3.135 -    <slot>append( const QString &amp; t )</slot>
   3.136 -</slots>
   3.137 -<pixmapinproject/>
   3.138 -<layoutdefaults spacing="6" margin="11"/>
   3.139 -</UI>
   3.140 +<ui version="4.0" >
   3.141 + <author></author>
   3.142 + <comment></comment>
   3.143 + <exportmacro></exportmacro>
   3.144 + <class>ShowTextDialog</class>
   3.145 + <widget class="QDialog" name="ShowTextDialog" >
   3.146 +  <property name="geometry" >
   3.147 +   <rect>
   3.148 +    <x>0</x>
   3.149 +    <y>0</y>
   3.150 +    <width>689</width>
   3.151 +    <height>370</height>
   3.152 +   </rect>
   3.153 +  </property>
   3.154 +  <property name="windowTitle" >
   3.155 +   <string>Dialog</string>
   3.156 +  </property>
   3.157 +  <layout class="QGridLayout" >
   3.158 +   <property name="margin" >
   3.159 +    <number>9</number>
   3.160 +   </property>
   3.161 +   <property name="spacing" >
   3.162 +    <number>6</number>
   3.163 +   </property>
   3.164 +   <item row="0" column="0" >
   3.165 +    <widget class="QTextEdit" name="textEdit" />
   3.166 +   </item>
   3.167 +   <item row="1" column="0" >
   3.168 +    <layout class="QHBoxLayout" >
   3.169 +     <property name="margin" >
   3.170 +      <number>0</number>
   3.171 +     </property>
   3.172 +     <property name="spacing" >
   3.173 +      <number>6</number>
   3.174 +     </property>
   3.175 +     <item>
   3.176 +      <spacer>
   3.177 +       <property name="orientation" >
   3.178 +        <enum>Qt::Horizontal</enum>
   3.179 +       </property>
   3.180 +       <property name="sizeHint" >
   3.181 +        <size>
   3.182 +         <width>131</width>
   3.183 +         <height>31</height>
   3.184 +        </size>
   3.185 +       </property>
   3.186 +      </spacer>
   3.187 +     </item>
   3.188 +     <item>
   3.189 +      <widget class="QPushButton" name="okButton" >
   3.190 +       <property name="text" >
   3.191 +        <string>Close</string>
   3.192 +       </property>
   3.193 +      </widget>
   3.194 +     </item>
   3.195 +    </layout>
   3.196 +   </item>
   3.197 +  </layout>
   3.198 + </widget>
   3.199 + <pixmapfunction></pixmapfunction>
   3.200 + <resources/>
   3.201 + <connections>
   3.202 +  <connection>
   3.203 +   <sender>okButton</sender>
   3.204 +   <signal>clicked()</signal>
   3.205 +   <receiver>ShowTextDialog</receiver>
   3.206 +   <slot>accept()</slot>
   3.207 +   <hints>
   3.208 +    <hint type="sourcelabel" >
   3.209 +     <x>278</x>
   3.210 +     <y>253</y>
   3.211 +    </hint>
   3.212 +    <hint type="destinationlabel" >
   3.213 +     <x>96</x>
   3.214 +     <y>254</y>
   3.215 +    </hint>
   3.216 +   </hints>
   3.217 +  </connection>
   3.218 + </connections>
   3.219 +</ui>