Organization Is Key To Success!!!!
189
KShare.pro
@ -1,187 +1,2 @@
|
|||||||
#-------------------------------------------------
|
TEMPLATE = subdirs
|
||||||
#
|
SUBDIRS += src
|
||||||
# Project created by QtCreator 2017-04-19T15:47:09
|
|
||||||
#
|
|
||||||
#-------------------------------------------------
|
|
||||||
|
|
||||||
QT += core gui network widgets svg
|
|
||||||
|
|
||||||
TARGET = KShare
|
|
||||||
TEMPLATE = app
|
|
||||||
|
|
||||||
CONFIG += c++11 thread
|
|
||||||
|
|
||||||
# The following define makes your compiler emit warnings if you use
|
|
||||||
# any feature of Qt which as been marked as deprecated (the exact warnings
|
|
||||||
# depend on your compiler). Please consult the documentation of the
|
|
||||||
# deprecated API in order to know how to port your code away from it.
|
|
||||||
DEFINES += QT_DEPRECATED_WARNINGS
|
|
||||||
|
|
||||||
# You can also make your code fail to compile if you use deprecated APIs.
|
|
||||||
# In order to do so, uncomment the following line.
|
|
||||||
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
|
||||||
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
|
||||||
|
|
||||||
|
|
||||||
SOURCES += main.cpp\
|
|
||||||
mainwindow.cpp \
|
|
||||||
cropeditor/cropeditor.cpp \
|
|
||||||
cropeditor/cropview.cpp \
|
|
||||||
cropeditor/cropscene.cpp \
|
|
||||||
uploaders/uploadersingleton.cpp \
|
|
||||||
screenshotter.cpp \
|
|
||||||
screenshotutil.cpp \
|
|
||||||
uploaders/default/imguruploader.cpp \
|
|
||||||
io/ioutils.cpp \
|
|
||||||
settings.cpp \
|
|
||||||
uploaders/default/clipboarduploader.cpp \
|
|
||||||
formatter.cpp \
|
|
||||||
uploaders/customuploader.cpp \
|
|
||||||
notifications.cpp \
|
|
||||||
hotkeying.cpp \
|
|
||||||
cropeditor/settings/brushpenselection.cpp \
|
|
||||||
cropeditor/drawing/bluritem.cpp \
|
|
||||||
cropeditor/drawing/pathitem.cpp \
|
|
||||||
cropeditor/drawing/lineitem.cpp \
|
|
||||||
cropeditor/drawing/textitem.cpp \
|
|
||||||
colorpicker/colorpickerscene.cpp \
|
|
||||||
worker/worker.cpp \
|
|
||||||
screenareaselector/screenareaselector.cpp \
|
|
||||||
recording/recordingpreview.cpp \
|
|
||||||
recording/recordingcontroller.cpp \
|
|
||||||
recording/recordingformats.cpp \
|
|
||||||
formats.cpp \
|
|
||||||
recording/encoders/encoder.cpp \
|
|
||||||
recording/encoders/encodersettings.cpp \
|
|
||||||
recording/encoders/encodersettingsdialog.cpp \
|
|
||||||
settingsdialog.cpp \
|
|
||||||
aboutbox.cpp \
|
|
||||||
cropeditor/drawing/eraseritem.cpp \
|
|
||||||
cropeditor/drawing/rectitem.cpp \
|
|
||||||
cropeditor/drawing/ellipseitem.cpp \
|
|
||||||
hotkeyinputdialog.cpp \
|
|
||||||
cropeditor/drawing/arrowitem.cpp \
|
|
||||||
uploaders/default/imgursettingsdialog.cpp \
|
|
||||||
uploaders/default/imgplusuploader.cpp \
|
|
||||||
filenamevalidator.cpp \
|
|
||||||
logs/requestlogging.cpp \
|
|
||||||
logs/historydialog.cpp \
|
|
||||||
monospacetextdialog.cpp
|
|
||||||
|
|
||||||
HEADERS += mainwindow.hpp \
|
|
||||||
cropeditor/cropeditor.hpp \
|
|
||||||
cropeditor/cropview.hpp \
|
|
||||||
cropeditor/cropscene.hpp \
|
|
||||||
uploaders/uploader.hpp \
|
|
||||||
uploaders/uploadersingleton.hpp \
|
|
||||||
screenshotter.hpp \
|
|
||||||
screenshotutil.hpp \
|
|
||||||
uploaders/default/imguruploader.hpp \
|
|
||||||
io/ioutils.hpp \
|
|
||||||
settings.hpp \
|
|
||||||
uploaders/default/clipboarduploader.hpp \
|
|
||||||
formatter.hpp \
|
|
||||||
uploaders/customuploader.hpp \
|
|
||||||
notifications.hpp \
|
|
||||||
hotkeying.hpp \
|
|
||||||
cropeditor/drawing/drawitem.hpp \
|
|
||||||
cropeditor/settings/brushpenselection.hpp \
|
|
||||||
cropeditor/drawing/bluritem.hpp \
|
|
||||||
cropeditor/drawing/pathitem.hpp \
|
|
||||||
cropeditor/drawing/lineitem.hpp \
|
|
||||||
cropeditor/drawing/textitem.hpp \
|
|
||||||
colorpicker/colorpickerscene.hpp \
|
|
||||||
platformbackend.hpp \
|
|
||||||
worker/worker.hpp \
|
|
||||||
screenareaselector/screenareaselector.hpp \
|
|
||||||
recording/recordingpreview.hpp \
|
|
||||||
recording/recordingcontroller.hpp \
|
|
||||||
recording/recordingformats.hpp \
|
|
||||||
formats.hpp \
|
|
||||||
recording/encoders/encoder.hpp \
|
|
||||||
recording/encoders/encodersettings.hpp \
|
|
||||||
recording/encoders/encodersettingsdialog.hpp \
|
|
||||||
settingsdialog.hpp \
|
|
||||||
aboutbox.hpp \
|
|
||||||
cropeditor/drawing/eraseritem.hpp \
|
|
||||||
cropeditor/drawing/rectitem.hpp \
|
|
||||||
cropeditor/drawing/ellipseitem.hpp \
|
|
||||||
hotkeyinputdialog.hpp \
|
|
||||||
cropeditor/drawing/arrowitem.hpp \
|
|
||||||
uploaders/default/imgursettingsdialog.hpp \
|
|
||||||
uploaders/default/imgplusuploader.hpp \
|
|
||||||
filenamevalidator.hpp \
|
|
||||||
logs/requestlogging.hpp \
|
|
||||||
logs/historydialog.h \
|
|
||||||
monospacetextdialog.h
|
|
||||||
|
|
||||||
nopkg {
|
|
||||||
# win32 {
|
|
||||||
# !exists($$(FFMPEG_DEV_PATH)\README.txt) {
|
|
||||||
# error("You must define a valid FFMPEG_DEV_PATH")
|
|
||||||
# }
|
|
||||||
|
|
||||||
# !exists($$(FFMPEG_SHARED_PATH)\README.txt) {
|
|
||||||
# error("You must define a valid FFMPEG_SHARED_PATH")
|
|
||||||
# }
|
|
||||||
|
|
||||||
# INCLUDEPATH += $$(FFMPEG_DEV_PATH)\include
|
|
||||||
# LIBS += -L$$(FFMPEG_DEV_PATH)\lib
|
|
||||||
# message(Set the library and include paths);
|
|
||||||
# }
|
|
||||||
LIBS += -lavcodec -lavformat -lavutil -lswscale
|
|
||||||
message(nopkg);
|
|
||||||
} else {
|
|
||||||
CONFIG += link_pkgconfig
|
|
||||||
PKGCONFIG += libavformat libavcodec libswscale libavutil
|
|
||||||
}
|
|
||||||
|
|
||||||
mac {
|
|
||||||
ICON = $$PWD/icons/icon.icns
|
|
||||||
SOURCES += $$PWD/platformspecifics/mac/macbackend.cpp
|
|
||||||
HEADERS += $$PWD/platformspecifics/mac/macbackend.hpp
|
|
||||||
LIBS += -framework Carbon
|
|
||||||
QMAKE_INFO_PLIST = $$PWD/packages/macos/Info.plist
|
|
||||||
warning(Mac is on TODO);
|
|
||||||
} else:win32 {
|
|
||||||
RC_FILE = $$PWD/icon.rc
|
|
||||||
SOURCES += $$PWD/platformspecifics/u32/u32backend.cpp
|
|
||||||
HEADERS += $$PWD/platformspecifics/u32/u32backend.hpp
|
|
||||||
LIBS += -luser32 -lkernel32 -lpthread
|
|
||||||
QT += winextras
|
|
||||||
} else:unix {
|
|
||||||
RC_FILE = $$PWD/icon.rc
|
|
||||||
SOURCES += $$PWD/platformspecifics/x11/x11backend.cpp
|
|
||||||
HEADERS += $$PWD/platformspecifics/x11/x11backend.hpp
|
|
||||||
QT += x11extras
|
|
||||||
LIBS += -lxcb-cursor -lxcb-xfixes -lxcb
|
|
||||||
} else {
|
|
||||||
error(Unsupported platform);
|
|
||||||
}
|
|
||||||
|
|
||||||
FORMS += mainwindow.ui \
|
|
||||||
cropeditor/settings/brushpenselection.ui \
|
|
||||||
recording/encoders/encodersettingsdialog.ui \
|
|
||||||
settingsdialog.ui \
|
|
||||||
aboutbox.ui \
|
|
||||||
hotkeyinputdialog.ui \
|
|
||||||
uploaders/default/imgursettingsdialog.ui \
|
|
||||||
logs/historydialog.ui \
|
|
||||||
monospacetextdialog.ui
|
|
||||||
|
|
||||||
DISTFILES += \
|
|
||||||
README.md \
|
|
||||||
LICENSE \
|
|
||||||
OlderSystemFix.patch \
|
|
||||||
AppVeyor/appveyor.yml \
|
|
||||||
AppVeyor/make_installer.sh \
|
|
||||||
.travis.yml \
|
|
||||||
install.sh
|
|
||||||
|
|
||||||
RESOURCES += \
|
|
||||||
icon.qrc \
|
|
||||||
translations.qrc
|
|
||||||
|
|
||||||
QMAKE_CFLAGS_DEBUG += -g
|
|
||||||
|
|
||||||
include(QHotkey/qhotkey.pri)
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
diff --git a/recording/encoders/encoder.cpp b/recording/encoders/encoder.cpp
|
diff --git a/src/recording/encoders/encoder.cpp b/src/recording/encoders/encoder.cpp
|
||||||
index 481ba40..c04d32b 100644
|
index 481ba40..c04d32b 100644
|
||||||
--- a/recording/encoders/encoder.cpp
|
--- a/src/recording/encoders/encoder.cpp
|
||||||
+++ b/recording/encoders/encoder.cpp
|
+++ b/src/recording/encoders/encoder.cpp
|
||||||
@@ -64,8 +64,8 @@ Encoder::Encoder(QString &targetFile, QSize res, CodecSettings *settings) {
|
@@ -64,8 +64,8 @@ Encoder::Encoder(QString &targetFile, QSize res, CodecSettings *settings) {
|
||||||
if (ret < 0) throwAVErr(ret, "codec open");
|
if (ret < 0) throwAVErr(ret, "codec open");
|
||||||
if (codec->capabilities & AV_CODEC_CAP_DR1) avcodec_align_dimensions(out->enc, &out->enc->width, &out->enc->height);
|
if (codec->capabilities & AV_CODEC_CAP_DR1) avcodec_align_dimensions(out->enc, &out->enc->width, &out->enc->height);
|
||||||
|
@ -6,10 +6,11 @@
|
|||||||
#include <QGraphicsPixmapItem>
|
#include <QGraphicsPixmapItem>
|
||||||
#include <QGraphicsTextItem>
|
#include <QGraphicsTextItem>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
#include <screenoverlayview.hpp>
|
||||||
#include <settings.hpp>
|
#include <settings.hpp>
|
||||||
|
|
||||||
ColorPickerScene::ColorPickerScene(QPixmap pixmap, QWidget *parentWidget)
|
ColorPickerScene::ColorPickerScene(QPixmap pixmap, QWidget *parentWidget)
|
||||||
: QGraphicsScene(), QGraphicsView(this, parentWidget) {
|
: QGraphicsScene(), ScreenOverlayView(this, parentWidget) {
|
||||||
setFrameShape(QFrame::NoFrame); // Time taken to solve: A george99g and 38 minutes.
|
setFrameShape(QFrame::NoFrame); // Time taken to solve: A george99g and 38 minutes.
|
||||||
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||||
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
@ -5,20 +5,20 @@
|
|||||||
#include <QGraphicsScene>
|
#include <QGraphicsScene>
|
||||||
#include <QGraphicsSceneMouseEvent>
|
#include <QGraphicsSceneMouseEvent>
|
||||||
#include <QGraphicsTextItem>
|
#include <QGraphicsTextItem>
|
||||||
#include <QGraphicsView>
|
|
||||||
#include <QKeyEvent>
|
#include <QKeyEvent>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
#include <screenoverlayview.hpp>
|
||||||
#include <screenshotutil.hpp>
|
#include <screenshotutil.hpp>
|
||||||
|
|
||||||
class ColorPickerScene : public QGraphicsScene, public QGraphicsView {
|
class ColorPickerScene : public QGraphicsScene, public ScreenOverlayView {
|
||||||
Q_DECLARE_TR_FUNCTIONS(ColorPickerScene)
|
Q_DECLARE_TR_FUNCTIONS(ColorPickerScene)
|
||||||
public:
|
public:
|
||||||
ColorPickerScene(QPixmap pixmap, QWidget *parentWidget);
|
ColorPickerScene(QPixmap pixmap, QWidget *parent = nullptr);
|
||||||
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override;
|
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override;
|
||||||
void keyPressEvent(QKeyEvent *event) override;
|
void keyPressEvent(QKeyEvent *event) override;
|
||||||
void mouseReleaseEvent(QGraphicsSceneMouseEvent *) override;
|
void mouseReleaseEvent(QGraphicsSceneMouseEvent *) override;
|
||||||
static void showPicker() {
|
static void showPicker() {
|
||||||
new ColorPickerScene(screenshotutil::fullscreen(), 0);
|
new ColorPickerScene(screenshotutil::fullscreen());
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
@ -10,6 +10,7 @@
|
|||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
#include <QMenuBar>
|
#include <QMenuBar>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
#include <screenoverlayview.hpp>
|
||||||
#include <screenshotutil.hpp>
|
#include <screenshotutil.hpp>
|
||||||
class CropScene;
|
class CropScene;
|
||||||
|
|
8
src/cropeditor/cropview.cpp
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#include "cropview.hpp"
|
||||||
|
|
||||||
|
CropView::CropView(QGraphicsScene *scene) : ScreenOverlayView(scene) {
|
||||||
|
setCursor(Qt::BlankCursor);
|
||||||
|
}
|
||||||
|
|
||||||
|
CropView::~CropView() {
|
||||||
|
}
|
@ -1,12 +1,13 @@
|
|||||||
#ifndef CROPVIEW_HPP
|
#ifndef CROPVIEW_HPP
|
||||||
#define CROPVIEW_HPP
|
#define CROPVIEW_HPP
|
||||||
|
|
||||||
#include <QGraphicsView>
|
|
||||||
#include <QKeyEvent>
|
#include <QKeyEvent>
|
||||||
|
#include <screenoverlayview.hpp>
|
||||||
|
|
||||||
class CropView : public QGraphicsView {
|
class CropView : public ScreenOverlayView {
|
||||||
public:
|
public:
|
||||||
CropView(QGraphicsScene *scene);
|
CropView(QGraphicsScene *scene);
|
||||||
|
~CropView();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CROPVIEW_HPP
|
#endif // CROPVIEW_HPP
|
Before Width: | Height: | Size: 507 B After Width: | Height: | Size: 507 B |
Before Width: | Height: | Size: 257 B After Width: | Height: | Size: 257 B |
Before Width: | Height: | Size: 289 B After Width: | Height: | Size: 289 B |
Before Width: | Height: | Size: 194 B After Width: | Height: | Size: 194 B |
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 64 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 565 B After Width: | Height: | Size: 565 B |
Before Width: | Height: | Size: 354 B After Width: | Height: | Size: 354 B |
Before Width: | Height: | Size: 535 B After Width: | Height: | Size: 535 B |
Before Width: | Height: | Size: 250 B After Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.6 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 347 B After Width: | Height: | Size: 347 B |
Before Width: | Height: | Size: 307 B After Width: | Height: | Size: 307 B |
Before Width: | Height: | Size: 540 B After Width: | Height: | Size: 540 B |
Before Width: | Height: | Size: 332 B After Width: | Height: | Size: 332 B |
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 361 KiB After Width: | Height: | Size: 361 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 424 B After Width: | Height: | Size: 424 B |
Before Width: | Height: | Size: 364 B After Width: | Height: | Size: 364 B |
Before Width: | Height: | Size: 188 B After Width: | Height: | Size: 188 B |
Before Width: | Height: | Size: 140 B After Width: | Height: | Size: 140 B |
Before Width: | Height: | Size: 451 B After Width: | Height: | Size: 451 B |
Before Width: | Height: | Size: 811 B After Width: | Height: | Size: 811 B |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
@ -1,8 +1,8 @@
|
|||||||
#include "historydialog.h"
|
#include "historydialog.hpp"
|
||||||
#include "requestlogging.hpp"
|
#include "requestlogging.hpp"
|
||||||
#include "ui_historydialog.h"
|
#include "ui_historydialog.h"
|
||||||
|
|
||||||
#include <monospacetextdialog.h>
|
#include <monospacetextdialog.hpp>
|
||||||
|
|
||||||
using requestlogging::LoggedRequest;
|
using requestlogging::LoggedRequest;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
#include "monospacetextdialog.h"
|
#include "monospacetextdialog.hpp"
|
||||||
#include "ui_monospacetextdialog.h"
|
#include "ui_monospacetextdialog.h"
|
||||||
|
|
||||||
MonospaceTextDialog::MonospaceTextDialog(QString name, QByteArray data, QWidget *parent)
|
MonospaceTextDialog::MonospaceTextDialog(QString name, QByteArray data, QWidget *parent)
|