view Ui_MainWindow.ui @ 39:0c2578196643

Disable the article menu by default, enable it when the first article is selected
author Dirk Olmes <dirk@xanthippe.ping.de>
date Fri, 14 May 2010 06:48:48 +0200
parents 22214d79ed41
children c858aab71e5b
line wrap: on
line source

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>MainWindow</class>
 <widget class="QMainWindow" name="MainWindow">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>992</width>
    <height>750</height>
   </rect>
  </property>
  <property name="windowTitle">
   <string>Feedworm</string>
  </property>
  <property name="windowIcon">
   <iconset>
    <normaloff>worm.png</normaloff>worm.png</iconset>
  </property>
  <widget class="QWidget" name="centralwidget">
   <layout class="QGridLayout" name="gridLayout">
    <item row="0" column="0">
     <widget class="QSplitter" name="splitter_2">
      <property name="orientation">
       <enum>Qt::Horizontal</enum>
      </property>
      <widget class="QListView" name="feedList">
       <property name="alternatingRowColors">
        <bool>true</bool>
       </property>
       <property name="resizeMode">
        <enum>QListView::Fixed</enum>
       </property>
      </widget>
      <widget class="QSplitter" name="splitter">
       <property name="orientation">
        <enum>Qt::Vertical</enum>
       </property>
       <widget class="QListView" name="feedEntryList"/>
       <widget class="QWebView" name="webView">
        <property name="url">
         <url>
          <string>about:blank</string>
         </url>
        </property>
       </widget>
      </widget>
     </widget>
    </item>
   </layout>
  </widget>
  <widget class="QMenuBar" name="menubar">
   <property name="geometry">
    <rect>
     <x>0</x>
     <y>0</y>
     <width>992</width>
     <height>27</height>
    </rect>
   </property>
   <widget class="QMenu" name="menuFeed">
    <property name="title">
     <string>Feed</string>
    </property>
    <addaction name="actionAddFeed"/>
    <addaction name="actionFeedSettings"/>
   </widget>
   <widget class="QMenu" name="menuArticle">
    <property name="enabled">
     <bool>false</bool>
    </property>
    <property name="title">
     <string>Article</string>
    </property>
    <addaction name="actionMarkSelectedRead"/>
    <addaction name="actionOpenLink"/>
    <addaction name="actionOpenInBrowser"/>
   </widget>
   <widget class="QMenu" name="menuFeedworm">
    <property name="title">
     <string>Feedworm</string>
    </property>
    <addaction name="actionPreferences"/>
    <addaction name="separator"/>
    <addaction name="actionQuit"/>
   </widget>
   <addaction name="menuFeedworm"/>
   <addaction name="menuFeed"/>
   <addaction name="menuArticle"/>
  </widget>
  <widget class="QStatusBar" name="statusbar"/>
  <action name="actionQuit">
   <property name="text">
    <string>Quit</string>
   </property>
   <property name="shortcut">
    <string>Ctrl+Q</string>
   </property>
  </action>
  <action name="actionAddFeed">
   <property name="text">
    <string>Add ...</string>
   </property>
   <property name="shortcut">
    <string>Ctrl+A</string>
   </property>
  </action>
  <action name="actionXxx">
   <property name="text">
    <string>xxx</string>
   </property>
  </action>
  <action name="actionMarkSelectedRead">
   <property name="text">
    <string>Mark selected read</string>
   </property>
   <property name="shortcut">
    <string>M</string>
   </property>
  </action>
  <action name="actionOpenInBrowser">
   <property name="text">
    <string>Open in browser</string>
   </property>
   <property name="shortcut">
    <string>Ctrl+O</string>
   </property>
  </action>
  <action name="actionOpenLink">
   <property name="text">
    <string>Open link</string>
   </property>
   <property name="shortcut">
    <string>L</string>
   </property>
  </action>
  <action name="actionPreferences">
   <property name="enabled">
    <bool>false</bool>
   </property>
   <property name="text">
    <string>Preferences</string>
   </property>
  </action>
  <action name="actionFeedSettings">
   <property name="enabled">
    <bool>false</bool>
   </property>
   <property name="text">
    <string>Settings ...</string>
   </property>
  </action>
 </widget>
 <customwidgets>
  <customwidget>
   <class>QWebView</class>
   <extends>QWidget</extends>
   <header>QtWebKit/QWebView</header>
  </customwidget>
 </customwidgets>
 <resources/>
 <connections>
  <connection>
   <sender>actionQuit</sender>
   <signal>activated()</signal>
   <receiver>MainWindow</receiver>
   <slot>close()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>-1</x>
     <y>-1</y>
    </hint>
    <hint type="destinationlabel">
     <x>399</x>
     <y>299</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>actionAddFeed</sender>
   <signal>activated()</signal>
   <receiver>MainWindow</receiver>
   <slot>addFeed()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>-1</x>
     <y>-1</y>
    </hint>
    <hint type="destinationlabel">
     <x>495</x>
     <y>374</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>feedList</sender>
   <signal>clicked(QModelIndex)</signal>
   <receiver>MainWindow</receiver>
   <slot>feedSelected(QModelIndex)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>126</x>
     <y>377</y>
    </hint>
    <hint type="destinationlabel">
     <x>495</x>
     <y>374</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>feedEntryList</sender>
   <signal>clicked(QModelIndex)</signal>
   <receiver>MainWindow</receiver>
   <slot>feedEntrySelected(QModelIndex)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>616</x>
     <y>117</y>
    </hint>
    <hint type="destinationlabel">
     <x>495</x>
     <y>374</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>actionMarkSelectedRead</sender>
   <signal>activated()</signal>
   <receiver>MainWindow</receiver>
   <slot>toggleReadOnSelectedEntry()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>-1</x>
     <y>-1</y>
    </hint>
    <hint type="destinationlabel">
     <x>495</x>
     <y>374</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>actionOpenLink</sender>
   <signal>activated()</signal>
   <receiver>MainWindow</receiver>
   <slot>openLinkFromSelectedEntry()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>-1</x>
     <y>-1</y>
    </hint>
    <hint type="destinationlabel">
     <x>495</x>
     <y>374</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>actionOpenInBrowser</sender>
   <signal>activated()</signal>
   <receiver>MainWindow</receiver>
   <slot>openSelectedEntryInBrowser()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>-1</x>
     <y>-1</y>
    </hint>
    <hint type="destinationlabel">
     <x>495</x>
     <y>374</y>
    </hint>
   </hints>
  </connection>
 </connections>
 <slots>
  <slot>addFeed()</slot>
  <slot>feedSelected(QModelIndex)</slot>
  <slot>feedEntrySelected(QModelIndex)</slot>
  <slot>toggleReadOnSelectedEntry()</slot>
  <slot>openSelectedEntryInBrowser()</slot>
  <slot>openLinkFromSelectedEntry()</slot>
 </slots>
</ui>