summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2018-07-20 12:08:00 +0200
committerAleks Kissinger <aleks0@gmail.com>2018-07-20 12:08:00 +0200
commit92d09d474eecb5bb48857408095e9c8564fe4337 (patch)
treec710f634673de0b976e702ce320c2c7855f95ca6 /src
parent132323c7330afaa8004feb877891842e959a2dde (diff)
added some menu items
Diffstat (limited to 'src')
-rw-r--r--src/gui/mainmenu.ui79
-rw-r--r--src/main.cpp4
2 files changed, 81 insertions, 2 deletions
diff --git a/src/gui/mainmenu.ui b/src/gui/mainmenu.ui
index 6a2511e..80a7c81 100644
--- a/src/gui/mainmenu.ui
+++ b/src/gui/mainmenu.ui
@@ -27,6 +27,15 @@
<property name="title">
<string>Edit</string>
</property>
+ <widget class="QMenu" name="menuSelect">
+ <property name="title">
+ <string>Extend Selection</string>
+ </property>
+ <addaction name="actionExtendLeft"/>
+ <addaction name="actionExtendRight"/>
+ <addaction name="actionExtendAbove"/>
+ <addaction name="actionExtendBelow"/>
+ </widget>
<addaction name="actionUndo"/>
<addaction name="actionRedo"/>
<addaction name="separator"/>
@@ -37,6 +46,12 @@
<addaction name="separator"/>
<addaction name="actionSelect_All"/>
<addaction name="actionDeselect_All"/>
+ <addaction name="menuSelect"/>
+ <addaction name="separator"/>
+ <addaction name="actionReflectHorizontal"/>
+ <addaction name="actionReflectVertical"/>
+ <addaction name="actionRotateCW"/>
+ <addaction name="actionRotateCCW"/>
</widget>
<widget class="QMenu" name="menuTikz">
<property name="title">
@@ -199,6 +214,70 @@
<string>Ctrl+J</string>
</property>
</action>
+ <action name="actionReflectHorizontal">
+ <property name="text">
+ <string>Reflect Horizontally</string>
+ </property>
+ <property name="shortcut">
+ <string>Alt+Right</string>
+ </property>
+ </action>
+ <action name="actionReflectVertical">
+ <property name="text">
+ <string>Reflect Vertically</string>
+ </property>
+ <property name="shortcut">
+ <string>Alt+Down</string>
+ </property>
+ </action>
+ <action name="actionRotateCW">
+ <property name="text">
+ <string>Rotate 90' CW</string>
+ </property>
+ <property name="shortcut">
+ <string>Alt+Shift+Right</string>
+ </property>
+ </action>
+ <action name="actionRotateCCW">
+ <property name="text">
+ <string>Rotate 90' CCW</string>
+ </property>
+ <property name="shortcut">
+ <string>Alt+Shift+Left</string>
+ </property>
+ </action>
+ <action name="actionExtendLeft">
+ <property name="text">
+ <string>To the left</string>
+ </property>
+ <property name="shortcut">
+ <string>Shift+Left</string>
+ </property>
+ </action>
+ <action name="actionExtendRight">
+ <property name="text">
+ <string>To the right</string>
+ </property>
+ <property name="shortcut">
+ <string>Shift+Right</string>
+ </property>
+ </action>
+ <action name="actionExtendAbove">
+ <property name="text">
+ <string>Above</string>
+ </property>
+ <property name="shortcut">
+ <string>Shift+Up</string>
+ </property>
+ </action>
+ <action name="actionExtendBelow">
+ <property name="text">
+ <string>Below</string>
+ </property>
+ <property name="shortcut">
+ <string>Shift+Down</string>
+ </property>
+ </action>
<addaction name="menuFile"/>
<addaction name="menuEdit"/>
<addaction name="menuView"/>
diff --git a/src/main.cpp b/src/main.cpp
index 699fbb0..412f15f 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -41,8 +41,8 @@ int main(int argc, char *argv[])
tikzit->init(&a);
if (a.arguments().length() > 1) {
- tikzit->open(a.arguments()[1]);
- }
+ tikzit->open(a.arguments()[1]);
+ }
return a.exec();
}