diff options
Diffstat (limited to 'src-qt5/desktop-utils/lumina-screenshot/MainUI.h')
-rw-r--r-- | src-qt5/desktop-utils/lumina-screenshot/MainUI.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src-qt5/desktop-utils/lumina-screenshot/MainUI.h b/src-qt5/desktop-utils/lumina-screenshot/MainUI.h index db0672da..853fb194 100644 --- a/src-qt5/desktop-utils/lumina-screenshot/MainUI.h +++ b/src-qt5/desktop-utils/lumina-screenshot/MainUI.h @@ -23,6 +23,8 @@ #include <LuminaUtils.h> #include <LuminaX11.h> +#include "ImageEditor.h" + namespace Ui{ class MainUI; }; @@ -38,12 +40,16 @@ public slots: private: Ui::MainUI *ui; - QPixmap cpic; //current picture + bool mousegrabbed; + QRect lastgeom; QString ppath; //previous file path WId cwin; //current window to screenshot QSettings *settings; LXCB *XCB; //Library access to window subsystems + //Image Editor widget + ImageEditor *IMG; + private slots: //Button Slots void closeApplication(){ @@ -51,13 +57,17 @@ private slots: } void saveScreenshot(); void quicksave(); - void editScreenshot(); - void startScreenshot(); + void startScreenshot(); + void imgselchanged(bool hassel); //Utility functions to perform a screenshot bool getWindow(); //set the "cwin" variable as appropriate void getPixmap(); //set the "cpic" variable to the new screenshot + +protected: + void mouseReleaseEvent(QMouseEvent *ev); + void resizeEvent(QResizeEvent *ev); }; #endif |