tests/auto/uic3/baseline/richedit.ui.4
author Alex Gilkes <alex.gilkes@nokia.com>
Mon, 11 Jan 2010 14:00:40 +0000
changeset 0 1918ee327afb
permissions -rw-r--r--
Revision: 200952

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0" stdsetdef="1">
  <author></author>
  <comment></comment>
  <exportmacro></exportmacro>
  <class>EditorForm</class>
  <widget class="Q3MainWindow" name="EditorForm">
    <property name="geometry">
      <rect>
        <x>0</x>
        <y>0</y>
        <width>646</width>
        <height>436</height>
      </rect>
    </property>
    <property name="windowTitle">
      <string>Rich Edit</string>
    </property>
    <widget class="QWidget">
      <layout class="QHBoxLayout">
        <property name="margin">
          <number>11</number>
        </property>
        <property name="spacing">
          <number>6</number>
        </property>
        <item>
          <widget class="Q3TextEdit" name="textEdit">
            <property name="sizePolicy">
              <sizepolicy>
                <hsizetype>7</hsizetype>
                <vsizetype>7</vsizetype>
                <horstretch>0</horstretch>
                <verstretch>0</verstretch>
              </sizepolicy>
            </property>
            <property name="textFormat">
              <enum>Qt::RichText</enum>
            </property>
          </widget>
        </item>
      </layout>
    </widget>
    <widget class="Q3ToolBar" name="toolBar">
      <property name="label">
        <string>Tools</string>
      </property>
      <addaction name="fileNewAction"/>
      <addaction name="fileOpenAction"/>
      <addaction name="fileSaveAction"/>
      <addaction name="separator"/>
      <addaction name="editUndoAction"/>
      <addaction name="editRedoAction"/>
      <addaction name="editCutAction"/>
      <addaction name="editCopyAction"/>
      <addaction name="editPasteAction"/>
    </widget>
    <widget class="Q3ToolBar" name="Toolbar">
      <property name="label">
        <string>Toolbar</string>
      </property>
      <widget class="QComboBox" name="fontComboBox"/>
      <widget class="QSpinBox" name="SpinBox2">
        <property name="minimum">
          <number>6</number>
        </property>
        <property name="value">
          <number>10</number>
        </property>
      </widget>
      <addaction name="leftAlignAction"/>
      <addaction name="centerAlignAction"/>
      <addaction name="rightAlignAction"/>
      <addaction name="separator"/>
      <addaction name="boldAction"/>
      <addaction name="italicAction"/>
      <addaction name="underlineAction"/>
      <addaction name="separator"/>
      <addaction name="fontComboBox"/>
      <addaction name="SpinBox2"/>
    </widget>
    <widget class="QMenuBar" name="menubar">
      <widget class="QMenu" name="fileMenu">
        <property name="title">
          <string>&amp;File</string>
        </property>
        <addaction name="fileNewAction"/>
        <addaction name="fileOpenAction"/>
        <addaction name="fileSaveAction"/>
        <addaction name="fileSaveAsAction"/>
        <addaction name="separator"/>
        <addaction name="fileExitAction"/>
      </widget>
      <widget class="QMenu" name="editMenu">
        <property name="title">
          <string>&amp;Edit</string>
        </property>
        <addaction name="editUndoAction"/>
        <addaction name="editRedoAction"/>
        <addaction name="separator"/>
        <addaction name="editCutAction"/>
        <addaction name="editCopyAction"/>
        <addaction name="editPasteAction"/>
      </widget>
      <widget class="QMenu" name="PopupMenu_2">
        <property name="title">
          <string>F&amp;ormat</string>
        </property>
        <addaction name="leftAlignAction"/>
        <addaction name="rightAlignAction"/>
        <addaction name="centerAlignAction"/>
        <addaction name="separator"/>
        <addaction name="boldAction"/>
        <addaction name="italicAction"/>
        <addaction name="underlineAction"/>
      </widget>
      <widget class="QMenu" name="helpMenu">
        <property name="title">
          <string>&amp;Help</string>
        </property>
        <addaction name="helpContentsAction"/>
        <addaction name="helpIndexAction"/>
        <addaction name="separator"/>
        <addaction name="helpAboutAction"/>
      </widget>
      <addaction name="fileMenu"/>
      <addaction name="editMenu"/>
      <addaction name="PopupMenu_2"/>
      <addaction name="helpMenu"/>
    </widget>
    <action name="fileNewAction">
      <property name="name">
        <cstring>fileNewAction</cstring>
      </property>
      <property name="icon">
        <iconset>filenew.png</iconset>
      </property>
      <property name="iconText">
        <string>New</string>
      </property>
      <property name="text">
        <string>&amp;New</string>
      </property>
      <property name="shortcut">
        <number>4194382</number>
      </property>
    </action>
    <action name="fileOpenAction">
      <property name="name">
        <cstring>fileOpenAction</cstring>
      </property>
      <property name="icon">
        <iconset>fileopen.png</iconset>
      </property>
      <property name="iconText">
        <string>Open</string>
      </property>
      <property name="text">
        <string>&amp;Open...</string>
      </property>
      <property name="shortcut">
        <number>4194383</number>
      </property>
    </action>
    <action name="fileSaveAction">
      <property name="name">
        <cstring>fileSaveAction</cstring>
      </property>
      <property name="icon">
        <iconset>filesave.png</iconset>
      </property>
      <property name="iconText">
        <string>Save</string>
      </property>
      <property name="text">
        <string>&amp;Save</string>
      </property>
      <property name="shortcut">
        <number>4194387</number>
      </property>
    </action>
    <action name="fileSaveAsAction">
      <property name="name">
        <cstring>fileSaveAsAction</cstring>
      </property>
      <property name="iconText">
        <string>Save As</string>
      </property>
      <property name="text">
        <string>Save &amp;As...</string>
      </property>
      <property name="shortcut">
        <number>0</number>
      </property>
    </action>
    <action name="fileExitAction">
      <property name="name">
        <cstring>fileExitAction</cstring>
      </property>
      <property name="iconText">
        <string>Exit</string>
      </property>
      <property name="text">
        <string>E&amp;xit</string>
      </property>
      <property name="shortcut">
        <number>0</number>
      </property>
    </action>
    <action name="editUndoAction">
      <property name="name">
        <cstring>editUndoAction</cstring>
      </property>
      <property name="icon">
        <iconset>undo.png</iconset>
      </property>
      <property name="iconText">
        <string>Undo</string>
      </property>
      <property name="text">
        <string>&amp;Undo</string>
      </property>
      <property name="shortcut">
        <number>4194394</number>
      </property>
    </action>
    <action name="editRedoAction">
      <property name="name">
        <cstring>editRedoAction</cstring>
      </property>
      <property name="icon">
        <iconset>redo.png</iconset>
      </property>
      <property name="iconText">
        <string>Redo</string>
      </property>
      <property name="text">
        <string>&amp;Redo</string>
      </property>
      <property name="shortcut">
        <number>4194393</number>
      </property>
    </action>
    <action name="editCutAction">
      <property name="name">
        <cstring>editCutAction</cstring>
      </property>
      <property name="icon">
        <iconset>editcut.png</iconset>
      </property>
      <property name="iconText">
        <string>Cut</string>
      </property>
      <property name="text">
        <string>&amp;Cut</string>
      </property>
      <property name="shortcut">
        <number>4194392</number>
      </property>
    </action>
    <action name="editCopyAction">
      <property name="name">
        <cstring>editCopyAction</cstring>
      </property>
      <property name="icon">
        <iconset>editcopy.png</iconset>
      </property>
      <property name="iconText">
        <string>Copy</string>
      </property>
      <property name="text">
        <string>C&amp;opy</string>
      </property>
      <property name="shortcut">
        <number>4194371</number>
      </property>
    </action>
    <action name="editPasteAction">
      <property name="name">
        <cstring>editPasteAction</cstring>
      </property>
      <property name="icon">
        <iconset>editpaste.png</iconset>
      </property>
      <property name="iconText">
        <string>Paste</string>
      </property>
      <property name="text">
        <string>&amp;Paste</string>
      </property>
      <property name="shortcut">
        <number>4194390</number>
      </property>
    </action>
    <action name="helpContentsAction">
      <property name="name">
        <cstring>helpContentsAction</cstring>
      </property>
      <property name="iconText">
        <string>Contents</string>
      </property>
      <property name="text">
        <string>&amp;Contents...</string>
      </property>
      <property name="shortcut">
        <number>0</number>
      </property>
    </action>
    <action name="helpIndexAction">
      <property name="name">
        <cstring>helpIndexAction</cstring>
      </property>
      <property name="iconText">
        <string>Index</string>
      </property>
      <property name="text">
        <string>&amp;Index...</string>
      </property>
      <property name="shortcut">
        <number>0</number>
      </property>
    </action>
    <action name="helpAboutAction">
      <property name="name">
        <cstring>helpAboutAction</cstring>
      </property>
      <property name="iconText">
        <string>About</string>
      </property>
      <property name="text">
        <string>&amp;About</string>
      </property>
      <property name="shortcut">
        <number>0</number>
      </property>
    </action>
    <action name="boldAction">
      <property name="name">
        <cstring>boldAction</cstring>
      </property>
      <property name="checkable">
        <bool>true</bool>
      </property>
      <property name="icon">
        <iconset>textbold.png</iconset>
      </property>
      <property name="iconText">
        <string>bold</string>
      </property>
      <property name="text">
        <string>&amp;Bold</string>
      </property>
      <property name="shortcut">
        <number>272629826</number>
      </property>
    </action>
    <action name="italicAction">
      <property name="name">
        <cstring>italicAction</cstring>
      </property>
      <property name="checkable">
        <bool>true</bool>
      </property>
      <property name="icon">
        <iconset>textitalic.png</iconset>
      </property>
      <property name="iconText">
        <string>italic</string>
      </property>
      <property name="text">
        <string>&amp;Italic</string>
      </property>
      <property name="shortcut">
        <number>272629833</number>
      </property>
    </action>
    <action name="underlineAction">
      <property name="name">
        <cstring>underlineAction</cstring>
      </property>
      <property name="checkable">
        <bool>true</bool>
      </property>
      <property name="icon">
        <iconset>textunder.png</iconset>
      </property>
      <property name="iconText">
        <string>underline</string>
      </property>
      <property name="text">
        <string>&amp;Underline</string>
      </property>
      <property name="shortcut">
        <number>272629845</number>
      </property>
    </action>
    <actiongroup name="alignActionGroup">
      <action name="leftAlignAction">
        <property name="name">
          <cstring>leftAlignAction</cstring>
        </property>
        <property name="checkable">
          <bool>true</bool>
        </property>
        <property name="icon">
          <iconset>textleft.png</iconset>
        </property>
        <property name="iconText">
          <string>left</string>
        </property>
        <property name="text">
          <string>&amp;Left</string>
        </property>
        <property name="shortcut">
          <number>272629836</number>
        </property>
      </action>
      <action name="rightAlignAction">
        <property name="name">
          <cstring>rightAlignAction</cstring>
        </property>
        <property name="checkable">
          <bool>true</bool>
        </property>
        <property name="icon">
          <iconset>textright.png</iconset>
        </property>
        <property name="iconText">
          <string>right</string>
        </property>
        <property name="text">
          <string>&amp;Right</string>
        </property>
        <property name="shortcut">
          <number>272629842</number>
        </property>
      </action>
      <action name="centerAlignAction">
        <property name="name">
          <cstring>centerAlignAction</cstring>
        </property>
        <property name="checkable">
          <bool>true</bool>
        </property>
        <property name="icon">
          <iconset>textcenter.png</iconset>
        </property>
        <property name="iconText">
          <string>center</string>
        </property>
        <property name="text">
          <string>&amp;Center</string>
        </property>
      </action>
      <property name="name">
        <cstring>alignActionGroup</cstring>
      </property>
    </actiongroup>
  </widget>
  <layoutdefault spacing="6" margin="11"/>
  <pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
  <connections>
    <connection>
      <sender>fileNewAction</sender>
      <signal>activated()</signal>
      <receiver>EditorForm</receiver>
      <slot>fileNew()</slot>
    </connection>
    <connection>
      <sender>fileOpenAction</sender>
      <signal>activated()</signal>
      <receiver>EditorForm</receiver>
      <slot>fileOpen()</slot>
    </connection>
    <connection>
      <sender>fileSaveAction</sender>
      <signal>activated()</signal>
      <receiver>EditorForm</receiver>
      <slot>fileSave()</slot>
    </connection>
    <connection>
      <sender>fileSaveAsAction</sender>
      <signal>activated()</signal>
      <receiver>EditorForm</receiver>
      <slot>fileSaveAs()</slot>
    </connection>
    <connection>
      <sender>fileExitAction</sender>
      <signal>activated()</signal>
      <receiver>EditorForm</receiver>
      <slot>fileExit()</slot>
    </connection>
    <connection>
      <sender>helpIndexAction</sender>
      <signal>activated()</signal>
      <receiver>EditorForm</receiver>
      <slot>helpIndex()</slot>
    </connection>
    <connection>
      <sender>helpContentsAction</sender>
      <signal>activated()</signal>
      <receiver>EditorForm</receiver>
      <slot>helpContents()</slot>
    </connection>
    <connection>
      <sender>helpAboutAction</sender>
      <signal>activated()</signal>
      <receiver>EditorForm</receiver>
      <slot>helpAbout()</slot>
    </connection>
    <connection>
      <sender>SpinBox2</sender>
      <signal>valueChanged(int)</signal>
      <receiver>textEdit</receiver>
      <slot>setPointSize(int)</slot>
    </connection>
    <connection>
      <sender>editCutAction</sender>
      <signal>activated()</signal>
      <receiver>textEdit</receiver>
      <slot>cut()</slot>
    </connection>
    <connection>
      <sender>editPasteAction</sender>
      <signal>activated()</signal>
      <receiver>textEdit</receiver>
      <slot>paste()</slot>
    </connection>
    <connection>
      <sender>editCopyAction</sender>
      <signal>activated()</signal>
      <receiver>textEdit</receiver>
      <slot>copy()</slot>
    </connection>
    <connection>
      <sender>editRedoAction</sender>
      <signal>activated()</signal>
      <receiver>textEdit</receiver>
      <slot>redo()</slot>
    </connection>
    <connection>
      <sender>editUndoAction</sender>
      <signal>activated()</signal>
      <receiver>textEdit</receiver>
      <slot>undo()</slot>
    </connection>
    <connection>
      <sender>alignActionGroup</sender>
      <signal>selected(QAction*)</signal>
      <receiver>EditorForm</receiver>
      <slot>changeAlignment(QAction*)</slot>
    </connection>
    <connection>
      <sender>underlineAction</sender>
      <signal>toggled(bool)</signal>
      <receiver>textEdit</receiver>
      <slot>setUnderline(bool)</slot>
    </connection>
    <connection>
      <sender>italicAction</sender>
      <signal>toggled(bool)</signal>
      <receiver>textEdit</receiver>
      <slot>setItalic(bool)</slot>
    </connection>
    <connection>
      <sender>boldAction</sender>
      <signal>toggled(bool)</signal>
      <receiver>textEdit</receiver>
      <slot>setBold(bool)</slot>
    </connection>
    <connection>
      <sender>fontComboBox</sender>
      <signal>activated(QString)</signal>
      <receiver>textEdit</receiver>
      <slot>setFamily(QString)</slot>
    </connection>
    <connection>
      <sender>fontComboBox</sender>
      <signal>activated(QString)</signal>
      <receiver>textEdit</receiver>
      <slot>setFocus()</slot>
    </connection>
  </connections>
</ui>