diff options
author | jaseg <git-bigdata-wsl-arch@jaseg.de> | 2020-08-16 17:04:32 +0200 |
---|---|---|
committer | jaseg <git-bigdata-wsl-arch@jaseg.de> | 2020-08-16 17:04:32 +0200 |
commit | 2deadc6cfbf71e06908963fb1bae628cfe370f9d (patch) | |
tree | d737d2e1e9cfde305840179680610d015f5dbf0e /numberator.ui | |
parent | 752f270cf81bc8c88cb4bf428e5aceb51405c06a (diff) | |
download | numberator-2deadc6cfbf71e06908963fb1bae628cfe370f9d.tar.gz numberator-2deadc6cfbf71e06908963fb1bae628cfe370f9d.tar.bz2 numberator-2deadc6cfbf71e06908963fb1bae628cfe370f9d.zip |
Basic model/view action works
Diffstat (limited to 'numberator.ui')
-rw-r--r-- | numberator.ui | 68 |
1 files changed, 66 insertions, 2 deletions
diff --git a/numberator.ui b/numberator.ui index 8bf3371..70b9e14 100644 --- a/numberator.ui +++ b/numberator.ui @@ -16,7 +16,7 @@ <widget class="QWidget" name="centralwidget">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
- <widget class="QGraphicsView" name="graphicsView"/>
+ <widget class="TagView" name="graphicsView"/>
</item>
</layout>
</widget>
@@ -69,6 +69,9 @@ <property name="title">
<string>View</string>
</property>
+ <addaction name="actionZoom_to_fit"/>
+ <addaction name="actionZoom_in"/>
+ <addaction name="actionZoom_out"/>
</widget>
<addaction name="menuFile"/>
<addaction name="menuEdit"/>
@@ -85,11 +88,17 @@ <property name="text">
<string>Undo</string>
</property>
+ <property name="shortcut">
+ <string>Ctrl+Z</string>
+ </property>
</action>
<action name="actionRedo">
<property name="text">
<string>Redo</string>
</property>
+ <property name="shortcut">
+ <string>Ctrl+R</string>
+ </property>
</action>
<action name="actionCopy">
<property name="text">
@@ -100,46 +109,73 @@ <property name="text">
<string>Cut</string>
</property>
+ <property name="shortcut">
+ <string>Ctrl+X</string>
+ </property>
</action>
<action name="actionPaste">
<property name="text">
<string>Paste</string>
</property>
+ <property name="shortcut">
+ <string>Ctrl+V</string>
+ </property>
</action>
<action name="actionNew_Tag">
<property name="text">
<string>New Tag</string>
</property>
+ <property name="shortcut">
+ <string>Ctrl+A</string>
+ </property>
</action>
<action name="actionNew_Project">
<property name="text">
<string>New Project</string>
</property>
+ <property name="shortcut">
+ <string>Ctrl+N</string>
+ </property>
</action>
<action name="actionOpen_Project">
<property name="text">
<string>Open Project</string>
</property>
+ <property name="shortcut">
+ <string>Ctrl+O</string>
+ </property>
</action>
<action name="actionImport_Image">
<property name="text">
<string>Import Image</string>
</property>
+ <property name="shortcut">
+ <string>Ctrl+I</string>
+ </property>
</action>
<action name="actionReload_Image">
<property name="text">
<string>Reload Image</string>
</property>
+ <property name="shortcut">
+ <string>F5</string>
+ </property>
</action>
<action name="actionSave_Project">
<property name="text">
- <string>Save Project</string>
+ <string>Save Project as...</string>
+ </property>
+ <property name="shortcut">
+ <string>Ctrl+Shift+S</string>
</property>
</action>
<action name="actionExport_PDF">
<property name="text">
<string>Export PDF</string>
</property>
+ <property name="shortcut">
+ <string>Ctrl+E</string>
+ </property>
</action>
<action name="actionExport_PNG">
<property name="text">
@@ -150,8 +186,36 @@ <property name="text">
<string>Exit</string>
</property>
+ <property name="shortcut">
+ <string>Ctrl+Q</string>
+ </property>
+ </action>
+ <action name="actionZoom_to_fit">
+ <property name="text">
+ <string>Zoom to fit</string>
+ </property>
+ <property name="shortcut">
+ <string>Ctrl+0</string>
+ </property>
+ </action>
+ <action name="actionZoom_in">
+ <property name="text">
+ <string>Zoom in</string>
+ </property>
+ </action>
+ <action name="actionZoom_out">
+ <property name="text">
+ <string>Zoom out</string>
+ </property>
</action>
</widget>
+ <customwidgets>
+ <customwidget>
+ <class>TagView</class>
+ <extends>QGraphicsView</extends>
+ <header>tagview.h</header>
+ </customwidget>
+ </customwidgets>
<resources/>
<connections/>
</ui>
|