Initial commit
[tietoopcom] / src / TocUi / TocChatWidget.ui
1 <!--
2  * Tieto Open Communicator - Client for the Telepathy communications framework.
3  * Copyright (c) 2010, Tieto Corporation
4  *
5  * All rights reserved.
6  * Redistribution and use in source and binary forms, with or without modification,
7  * are permitted provided that the following conditions are met:
8  *
9  *      Redistributions of source code must retain the above copyright notice,
10  *      this list of conditions and the following disclaimer.
11  *      Redistributions in binary form must reproduce the above copyright notice,
12  *      this list of conditions and the following disclaimer in the documentation
13  *      and/or other materials provided with the distribution.
14  *      Neither the name of the Tieto Corporation nor the names of its contributors 
15  *      may be used to endorse or promote products derived from this software without
16  *      specific prior written permission.
17  *
18  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
20  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21  * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
22  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  * 
28  *
29 -->
30
31 <ui version="4.0" >
32  <class>TocChatWidgetClass</class>
33  <widget class="QWidget" name="TocChatWidgetClass" >
34   <property name="geometry" >
35    <rect>
36     <x>0</x>
37     <y>0</y>
38     <width>718</width>
39     <height>431</height>
40    </rect>
41   </property>
42   <property name="windowTitle" >
43    <string>Form</string>
44   </property>
45   <property name="styleSheet" >
46    <string notr="true" />
47   </property>
48   <layout class="QVBoxLayout" name="verticalLayout" >
49    <item>
50     <widget class="QFrame" name="chatFrame" >
51      <property name="frameShape" >
52       <enum>QFrame::StyledPanel</enum>
53      </property>
54      <property name="frameShadow" >
55       <enum>QFrame::Raised</enum>
56      </property>
57      <layout class="QVBoxLayout" name="verticalLayout_2" >
58       <property name="spacing" >
59        <number>0</number>
60       </property>
61       <item>
62        <widget class="QFrame" name="frame" >
63         <property name="styleSheet" >
64          <string notr="true" />
65         </property>
66         <property name="frameShape" >
67          <enum>QFrame::StyledPanel</enum>
68         </property>
69         <property name="frameShadow" >
70          <enum>QFrame::Plain</enum>
71         </property>
72         <layout class="QGridLayout" name="gridLayout" >
73          <property name="margin" >
74           <number>3</number>
75          </property>
76          <property name="verticalSpacing" >
77           <number>-1</number>
78          </property>
79          <item row="0" column="0" >
80           <widget class="QTextEdit" name="chatTextEdit" >
81            <property name="sizePolicy" >
82             <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
83              <horstretch>0</horstretch>
84              <verstretch>0</verstretch>
85             </sizepolicy>
86            </property>
87            <property name="styleSheet" >
88             <string notr="true" >QTextEdit {
89         background-color: none;
90 }</string>
91            </property>
92            <property name="frameShape" >
93             <enum>QFrame::Box</enum>
94            </property>
95            <property name="frameShadow" >
96             <enum>QFrame::Sunken</enum>
97            </property>
98            <property name="lineWidth" >
99             <number>1</number>
100            </property>
101            <property name="horizontalScrollBarPolicy" >
102             <enum>Qt::ScrollBarAlwaysOff</enum>
103            </property>
104            <property name="readOnly" >
105             <bool>true</bool>
106            </property>
107           </widget>
108          </item>
109         </layout>
110        </widget>
111       </item>
112       <item>
113        <layout class="QHBoxLayout" name="horizontalLayout_2" >
114         <property name="spacing" >
115          <number>4</number>
116         </property>
117         <property name="leftMargin" >
118          <number>0</number>
119         </property>
120         <property name="topMargin" >
121          <number>0</number>
122         </property>
123         <item>
124          <widget class="QPushButton" name="smileButton" >
125           <property name="font" >
126            <font>
127             <pointsize>14</pointsize>
128             <weight>75</weight>
129             <bold>true</bold>
130            </font>
131           </property>
132           <property name="styleSheet" >
133            <string notr="true" >QPushButton{
134         border-radius: 5px;
135         min-height: 80px;
136         min-width: 80px;
137         max-height: 80px;
138         max-width: 80px;
139 }</string>
140           </property>
141           <property name="text" >
142            <string>Smile</string>
143           </property>
144          </widget>
145         </item>
146         <item>
147          <widget class="QTextEdit" name="messageTextEdit" >
148           <property name="sizePolicy" >
149            <sizepolicy vsizetype="MinimumExpanding" hsizetype="MinimumExpanding" >
150             <horstretch>0</horstretch>
151             <verstretch>0</verstretch>
152            </sizepolicy>
153           </property>
154           <property name="maximumSize" >
155            <size>
156             <width>16777215</width>
157             <height>80</height>
158            </size>
159           </property>
160           <property name="styleSheet" >
161            <string notr="true" >QTextEdit {
162         background-color: none;
163 }</string>
164           </property>
165           <property name="frameShape" >
166            <enum>QFrame::Box</enum>
167           </property>
168           <property name="verticalScrollBarPolicy" >
169            <enum>Qt::ScrollBarAsNeeded</enum>
170           </property>
171           <property name="horizontalScrollBarPolicy" >
172            <enum>Qt::ScrollBarAlwaysOff</enum>
173           </property>
174          </widget>
175         </item>
176         <item>
177          <widget class="QPushButton" name="sendButton" >
178           <property name="sizePolicy" >
179            <sizepolicy vsizetype="MinimumExpanding" hsizetype="Preferred" >
180             <horstretch>0</horstretch>
181             <verstretch>0</verstretch>
182            </sizepolicy>
183           </property>
184           <property name="maximumSize" >
185            <size>
186             <width>80</width>
187             <height>80</height>
188            </size>
189           </property>
190           <property name="font" >
191            <font>
192             <pointsize>14</pointsize>
193             <weight>75</weight>
194             <bold>true</bold>
195            </font>
196           </property>
197           <property name="styleSheet" >
198            <string notr="true" >QPushButton{
199         border-radius: 5px;
200         min-height: 80px;
201         min-width: 80px;
202         max-height: 80px;
203         max-width: 80px;
204 }
205 </string>
206           </property>
207           <property name="text" >
208            <string>Send</string>
209           </property>
210          </widget>
211         </item>
212        </layout>
213       </item>
214      </layout>
215     </widget>
216    </item>
217   </layout>
218  </widget>
219  <resources/>
220  <connections>
221   <connection>
222    <sender>sendButton</sender>
223    <signal>clicked()</signal>
224    <receiver>TocChatWidgetClass</receiver>
225    <slot>pressedSendButton()</slot>
226    <hints>
227     <hint type="sourcelabel" >
228      <x>672</x>
229      <y>318</y>
230     </hint>
231     <hint type="destinationlabel" >
232      <x>715</x>
233      <y>285</y>
234     </hint>
235    </hints>
236   </connection>
237   <connection>
238    <sender>sendButton</sender>
239    <signal>clicked()</signal>
240    <receiver>messageTextEdit</receiver>
241    <slot>setFocus()</slot>
242    <hints>
243     <hint type="sourcelabel" >
244      <x>620</x>
245      <y>328</y>
246     </hint>
247     <hint type="destinationlabel" >
248      <x>516</x>
249      <y>337</y>
250     </hint>
251    </hints>
252   </connection>
253  </connections>
254  <slots>
255   <slot>pressedSendButton()</slot>
256  </slots>
257 </ui>