Add a bunch of entry and group actions.

This commit is contained in:
Felix Geyer 2011-12-16 17:56:13 +01:00
parent 11ccdd4c9c
commit cd919949fd
2 changed files with 85 additions and 1 deletions

View File

@ -43,4 +43,6 @@ void MainWindow::currentTabChanged(int index)
actionDatabaseSave->setEnabled(hasTab);
actionDatabaseClose->setEnabled(hasTab);
actionEntryNew->setEnabled(hasTab);
actionGroupNew->setEnabled(hasTab);
}

View File

@ -36,7 +36,7 @@
<x>0</x>
<y>0</y>
<width>800</width>
<height>21</height>
<height>20</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
@ -56,10 +56,44 @@
</property>
<addaction name="actionAbout"/>
</widget>
<widget class="QMenu" name="menuEntries">
<property name="title">
<string>Entries</string>
</property>
<addaction name="actionEntryNew"/>
<addaction name="actionEntryEdit"/>
<addaction name="actionEntryDelete"/>
</widget>
<widget class="QMenu" name="menuGroups">
<property name="title">
<string>Groups</string>
</property>
<addaction name="actionGroupNew"/>
<addaction name="actionGroupEdit"/>
<addaction name="actiocGroupDelete"/>
</widget>
<addaction name="menuFile"/>
<addaction name="menuEntries"/>
<addaction name="menuGroups"/>
<addaction name="menuHelp"/>
</widget>
<widget class="QStatusBar" name="statusbar"/>
<widget class="QToolBar" name="toolBar">
<property name="windowTitle">
<string>toolBar</string>
</property>
<property name="movable">
<bool>false</bool>
</property>
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
<addaction name="actionEntryNew"/>
<addaction name="actionEntryEdit"/>
</widget>
<action name="actionQuit">
<property name="text">
<string>Quit</string>
@ -96,6 +130,54 @@
<string>New database</string>
</property>
</action>
<action name="actionEntryNew">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Add new entry</string>
</property>
</action>
<action name="actionEntryEdit">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>View/Edit entry</string>
</property>
</action>
<action name="actionEntryDelete">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Delete entry</string>
</property>
</action>
<action name="actionGroupNew">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Add new group</string>
</property>
</action>
<action name="actionGroupEdit">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Edit group</string>
</property>
</action>
<action name="actiocGroupDelete">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Delete group</string>
</property>
</action>
</widget>
<resources/>
<connections/>