diff options
author | Emanoil Kotsev <deloptes@gmail.com> | 2023-02-26 01:09:35 +0000 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2023-02-28 17:26:31 +0100 |
commit | db379a2f50774d6ab871507356e95715cbf68a7b (patch) | |
tree | 8bbed6cb21cc6dc2ec79969bcb01060c817f066f /ksnapshot/ksnapshotwidget.ui | |
parent | 513cf6435a2c03911351a2b4e9107fbf4da9d353 (diff) | |
download | tdegraphics-db379a2f50774d6ab871507356e95715cbf68a7b.tar.gz tdegraphics-db379a2f50774d6ab871507356e95715cbf68a7b.zip |
KSnapshot: Open in KolourPaint
Signed-off-by: Emanoil Kotsev <deloptes@gmail.com>
KSnapshot: Preload screenshot in KolourPaint
Fix preloading a screenshot into KolourPaint by writing data into
a temporary file. When the editor closes and assuming any changes have
been saved to the same temp file, the screenshot data in KSnapshot
get updated, allowing to save the screenshot in the usual way.
KSnapshot: Implement Open With... options using TDETrader
This allows us to dynamically determine which applications can be
used to open the snapshot.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'ksnapshot/ksnapshotwidget.ui')
-rw-r--r-- | ksnapshot/ksnapshotwidget.ui | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/ksnapshot/ksnapshotwidget.ui b/ksnapshot/ksnapshotwidget.ui index 245d433b..c2dbf4fd 100644 --- a/ksnapshot/ksnapshotwidget.ui +++ b/ksnapshot/ksnapshotwidget.ui @@ -242,6 +242,34 @@ If <i>no delay</i> is set, the program will wait for a mouse click b <string>Click this button to print the current screenshot.</string> </property> </widget> + <widget class="KPushButton"> + <property name="name"> + <cstring>btnOpenWithKP</cstring> + </property> + <property name="text"> + <string>Open in &KolourPaint</string> + </property> + <property name="whatsThis" stdset="0"> + <string>Click this button to edit the snapshot in KolourPaint.</string> + </property> + <property name="iconSet"> + <iconset>"kolourpaint"</iconset> + </property> + </widget> + <widget class="KPushButton"> + <property name="name"> + <cstring>btnOpenWith</cstring> + </property> + <property name="text"> + <string>Open &with...</string> + </property> + <property name="iconSet"> + <iconset>"document-open"</iconset> + </property> + <property name="whatsThis" stdset="0"> + <string>Click this button to open the snapshot in another application.</string> + </property> + </widget> </vbox> </widget> </grid> @@ -290,6 +318,18 @@ If <i>no delay</i> is set, the program will wait for a mouse click b <slot>slotPrintClicked()</slot> </connection> <connection> + <sender>btnOpenWithKP</sender> + <signal>clicked()</signal> + <receiver>KSnapshotWidget</receiver> + <slot>slotOpenWithKPClicked()</slot> + </connection> + <connection> + <sender>btnOpenWith</sender> + <signal>clicked()</signal> + <receiver>KSnapshotWidget</receiver> + <slot>slotOpenWithClicked()</slot> + </connection> + <connection> <sender>btnSave</sender> <signal>clicked()</signal> <receiver>KSnapshotWidget</receiver> @@ -328,6 +368,7 @@ If <i>no delay</i> is set, the program will wait for a mouse click b <signal>saveClicked()</signal> <signal>copyClicked()</signal> <signal>printClicked()</signal> + <signal>openWithKPClicked()</signal> <signal>startImageDrag()</signal> </Q_SIGNALS> <Q_SLOTS> @@ -337,6 +378,7 @@ If <i>no delay</i> is set, the program will wait for a mouse click b <slot access="protected" specifier="non virtual">slotCopyClicked()</slot> <slot access="protected" specifier="non virtual">slotPrintClicked()</slot> <slot access="protected" specifier="non virtual">slotStartDrag()</slot> + <slot access="protected" specifier="non virtual">slotOpenWithKPClicked()</slot> <slot specifier="non virtual" returnType="int">previewWidth()</slot> <slot specifier="non virtual" returnType="int">previewHeight()</slot> </Q_SLOTS> |