viewer_window.ui (3315B)
1 <?xml version="1.0" encoding="UTF-8"?> 2 <ui version="4.0"> 3 <comment> 4 Copyright (c) the JPEG XL Project Authors. All rights reserved. 5 6 Use of this source code is governed by a BSD-style 7 license that can be found in the LICENSE file. 8 </comment> 9 <class>ViewerWindow</class> 10 <widget class="QMainWindow" name="ViewerWindow"> 11 <property name="windowTitle"> 12 <string>JPEG XL Viewer</string> 13 </property> 14 <widget class="QWidget" name="centralwidget"> 15 <layout class="QVBoxLayout" name="verticalLayout"> 16 <property name="leftMargin"> 17 <number>0</number> 18 </property> 19 <property name="topMargin"> 20 <number>0</number> 21 </property> 22 <property name="rightMargin"> 23 <number>0</number> 24 </property> 25 <property name="bottomMargin"> 26 <number>0</number> 27 </property> 28 <item> 29 <widget class="QScrollArea" name="scrollArea"> 30 <property name="frameShape"> 31 <enum>QFrame::NoFrame</enum> 32 </property> 33 <property name="widgetResizable"> 34 <bool>true</bool> 35 </property> 36 <widget class="QLabel" name="image"> 37 <property name="alignment"> 38 <set>Qt::AlignCenter</set> 39 </property> 40 </widget> 41 </widget> 42 </item> 43 </layout> 44 </widget> 45 <widget class="QMenuBar" name="menuBar"> 46 <widget class="QMenu" name="menuFile"> 47 <property name="title"> 48 <string>&File</string> 49 </property> 50 <addaction name="actionOpen"/> 51 <addaction name="separator"/> 52 <addaction name="actionExit"/> 53 </widget> 54 <addaction name="menuFile"/> 55 </widget> 56 <widget class="QStatusBar" name="statusBar"/> 57 <widget class="QToolBar" name="toolBar"> 58 <property name="windowTitle"> 59 <string>toolBar</string> 60 </property> 61 <attribute name="toolBarArea"> 62 <enum>TopToolBarArea</enum> 63 </attribute> 64 <attribute name="toolBarBreak"> 65 <bool>false</bool> 66 </attribute> 67 <addaction name="actionOpen"/> 68 <addaction name="actionPreviousImage"/> 69 <addaction name="actionNextImage"/> 70 </widget> 71 <action name="actionOpen"> 72 <property name="icon"> 73 <iconset theme="document-open"/> 74 </property> 75 <property name="text"> 76 <string>&Open…</string> 77 </property> 78 <property name="menuRole"> 79 <enum>QAction::NoRole</enum> 80 </property> 81 </action> 82 <action name="actionExit"> 83 <property name="icon"> 84 <iconset theme="application-exit"/> 85 </property> 86 <property name="text"> 87 <string>E&xit</string> 88 </property> 89 <property name="menuRole"> 90 <enum>QAction::QuitRole</enum> 91 </property> 92 </action> 93 <action name="actionPreviousImage"> 94 <property name="icon"> 95 <iconset theme="go-previous"/> 96 </property> 97 <property name="text"> 98 <string>Previous image</string> 99 </property> 100 <property name="shortcut"> 101 <string>Left</string> 102 </property> 103 </action> 104 <action name="actionNextImage"> 105 <property name="icon"> 106 <iconset theme="go-next"/> 107 </property> 108 <property name="text"> 109 <string>Next image</string> 110 </property> 111 <property name="shortcut"> 112 <string>Right</string> 113 </property> 114 </action> 115 </widget> 116 <resources/> 117 <connections> 118 <connection> 119 <sender>actionExit</sender> 120 <signal>triggered()</signal> 121 <receiver>ViewerWindow</receiver> 122 <slot>close()</slot> 123 </connection> 124 </connections> 125 </ui>