summaryrefslogtreecommitdiffstats
path: root/ksnapshot/ksnapshot.h
diff options
context:
space:
mode:
authorEmanoil Kotsev <deloptes@gmail.com>2023-02-26 01:09:35 +0000
committerSlávek Banko <slavek.banko@axis.cz>2023-02-28 17:26:31 +0100
commitdb379a2f50774d6ab871507356e95715cbf68a7b (patch)
tree8bbed6cb21cc6dc2ec79969bcb01060c817f066f /ksnapshot/ksnapshot.h
parent513cf6435a2c03911351a2b4e9107fbf4da9d353 (diff)
downloadtdegraphics-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/ksnapshot.h')
-rw-r--r--ksnapshot/ksnapshot.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/ksnapshot/ksnapshot.h b/ksnapshot/ksnapshot.h
index 1146a718..5d1edac7 100644
--- a/ksnapshot/ksnapshot.h
+++ b/ksnapshot/ksnapshot.h
@@ -14,6 +14,7 @@
#include <tdeglobalsettings.h>
#include <kdialogbase.h>
#include <kurl.h>
+#include <ktrader.h>
class RegionGrabber;
class KSnapshotWidget;
@@ -21,7 +22,6 @@ class KSnapshotWidget;
class KSnapshotPreview : public TQLabel
{
Q_OBJECT
-
public:
KSnapshotPreview(TQWidget *parent, const char *name = 0)
@@ -90,7 +90,6 @@ class KSnapshotPreview : public TQLabel
class KSnapshot : public KDialogBase, virtual public KSnapshotIface
{
Q_OBJECT
-
public:
KSnapshot(TQWidget *parent= 0, const char *name= 0, bool grabCurrent=false);
@@ -107,6 +106,9 @@ protected slots:
void slotSaveAs();
void slotCopy();
void slotPrint();
+ void slotOpenWith(int id);
+ void slotOpenWithKP();
+ void slotExternalAppClosed();
void slotMovePointer( int x, int y );
void setTime(int newTime);
@@ -120,7 +122,7 @@ protected:
virtual void closeEvent( TQCloseEvent * e );
void resizeEvent(TQResizeEvent*);
bool eventFilter( TQObject*, TQEvent* );
-
+
private slots:
void grabTimerDone();
void slotDragSnapshot();
@@ -131,6 +133,7 @@ private slots:
private:
bool save( const KURL& url );
+ void openWithExternalApp(const KService &service);
void performGrab();
void autoincFilename();
int grabMode();
@@ -144,6 +147,7 @@ private:
KSnapshotWidget *mainWidget;
RegionGrabber *rgnGrab;
bool modified;
+ TDETrader::OfferList openWithOffers;
};
#endif // KSNAPSHOT_H