51a956366f
- Edited gettingstartedqt.qdoc - update .pro files - replaced snippet statements by \quotefromfile - removed second version of notepad.h and notepad.cpp that were made only for quoting snippets (\quotefromfile reads from the program code) - show current filename in header of window - added checking routine on filename in Save method Task-number: QTBUG-63984 Change-Id: I5298d761763a4dfeb705a1d9b77354be853ada88 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
197 lines
5.2 KiB
XML
197 lines
5.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>Notepad</class>
|
|
<widget class="QMainWindow" name="Notepad">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>524</width>
|
|
<height>300</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Notepad</string>
|
|
</property>
|
|
<widget class="QWidget" name="centralWidget">
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<item>
|
|
<widget class="QTextEdit" name="textEdit"/>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QMenuBar" name="menuBar">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>524</width>
|
|
<height>25</height>
|
|
</rect>
|
|
</property>
|
|
<widget class="QMenu" name="menuFile">
|
|
<property name="title">
|
|
<string>File</string>
|
|
</property>
|
|
<addaction name="actionNew"/>
|
|
<addaction name="actionOpen"/>
|
|
<addaction name="actionSave"/>
|
|
<addaction name="actionSave_as"/>
|
|
<addaction name="actionPrint"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionExit"/>
|
|
</widget>
|
|
<widget class="QMenu" name="menuEdit">
|
|
<property name="title">
|
|
<string>Edit</string>
|
|
</property>
|
|
<addaction name="actionCopy"/>
|
|
<addaction name="actionCut"/>
|
|
<addaction name="actionPaste"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionUndo"/>
|
|
<addaction name="actionRedo"/>
|
|
<addaction name="actionFont"/>
|
|
</widget>
|
|
<addaction name="menuFile"/>
|
|
<addaction name="menuEdit"/>
|
|
</widget>
|
|
<widget class="QToolBar" name="mainToolBar">
|
|
<attribute name="toolBarArea">
|
|
<enum>TopToolBarArea</enum>
|
|
</attribute>
|
|
<attribute name="toolBarBreak">
|
|
<bool>false</bool>
|
|
</attribute>
|
|
<addaction name="actionNew"/>
|
|
<addaction name="actionOpen"/>
|
|
<addaction name="actionSave"/>
|
|
<addaction name="actionSave_as"/>
|
|
<addaction name="actionPrint"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionCopy"/>
|
|
<addaction name="actionCut"/>
|
|
<addaction name="actionPaste"/>
|
|
<addaction name="actionUndo"/>
|
|
<addaction name="actionRedo"/>
|
|
<addaction name="actionFont"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionExit"/>
|
|
</widget>
|
|
<widget class="QStatusBar" name="statusBar"/>
|
|
<action name="actionNew">
|
|
<property name="icon">
|
|
<iconset resource="notepad.qrc">
|
|
<normaloff>:/images/new.png</normaloff>:/images/new.png</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>New</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionOpen">
|
|
<property name="icon">
|
|
<iconset>
|
|
<normaloff>:/images/open.png</normaloff>:/images/open.png</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>Open</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionSave">
|
|
<property name="icon">
|
|
<iconset>
|
|
<normaloff>:/images/save.png</normaloff>:/images/save.png</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>Save</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionSave_as">
|
|
<property name="icon">
|
|
<iconset>
|
|
<normaloff>:/images/save_as.png</normaloff>:/images/save_as.png</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>Save as</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionPrint">
|
|
<property name="icon">
|
|
<iconset>
|
|
<normaloff>:/images/print.png</normaloff>:/images/print.png</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>Print</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionExit">
|
|
<property name="icon">
|
|
<iconset>
|
|
<normaloff>:/images/exit.png</normaloff>:/images/exit.png</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>Exit</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionCopy">
|
|
<property name="icon">
|
|
<iconset>
|
|
<normaloff>:/images/copy.png</normaloff>:/images/copy.png</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>Copy</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionCut">
|
|
<property name="icon">
|
|
<iconset>
|
|
<normaloff>:/images/cut.png</normaloff>:/images/cut.png</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>Cut</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionPaste">
|
|
<property name="icon">
|
|
<iconset>
|
|
<normaloff>:/images/paste.png</normaloff>:/images/paste.png</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>Paste</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionUndo">
|
|
<property name="icon">
|
|
<iconset>
|
|
<normaloff>:/images/edit_undo.png</normaloff>:/images/edit_undo.png</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>Undo</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionRedo">
|
|
<property name="icon">
|
|
<iconset>
|
|
<normaloff>:/images/edit_redo.png</normaloff>:/images/edit_redo.png</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>Redo</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionFont">
|
|
<property name="icon">
|
|
<iconset>
|
|
<normaloff>:/images/font.png</normaloff>:/images/font.png</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>Font</string>
|
|
</property>
|
|
</action>
|
|
</widget>
|
|
<layoutdefault spacing="6" margin="11"/>
|
|
<resources>
|
|
<include location="notepad.qrc"/>
|
|
</resources>
|
|
<connections/>
|
|
</ui>
|