Initial
... and most probably the last commit ever, I hope.
This commit is contained in:
commit
c01f4c538a
|
@ -0,0 +1,8 @@
|
||||||
|
build
|
||||||
|
CMakeCache.txt
|
||||||
|
CMakeFiles/
|
||||||
|
Makefile
|
||||||
|
ScratchPad
|
||||||
|
ScratchPad_autogen/
|
||||||
|
cmake_install.cmake
|
||||||
|
install_manifest.txt
|
|
@ -0,0 +1,28 @@
|
||||||
|
cmake_minimum_required(VERSION 3.16)
|
||||||
|
project(ScratchPad)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
|
set(CMAKE_AUTOMOC ON)
|
||||||
|
set(CMAKE_AUTORCC ON)
|
||||||
|
|
||||||
|
find_package(Qt5 COMPONENTS Widgets REQUIRED)
|
||||||
|
|
||||||
|
add_executable(ScratchPad
|
||||||
|
main.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
target_link_libraries(ScratchPad Qt5::Widgets)
|
||||||
|
|
||||||
|
# Add at the end of existing CMakeLists.txt
|
||||||
|
install(TARGETS ScratchPad
|
||||||
|
RUNTIME DESTINATION bin
|
||||||
|
)
|
||||||
|
|
||||||
|
install(FILES scratchpad.desktop
|
||||||
|
DESTINATION share/applications
|
||||||
|
)
|
||||||
|
|
||||||
|
install(FILES scratchpad.svg
|
||||||
|
DESTINATION share/icons/hicolor/scalable/apps
|
||||||
|
)
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
# Scratch Pad
|
||||||
|
The simplest scratchpad for copy and paste.
|
||||||
|
<img src="./scratchpad.svg" width="200">
|
||||||
|
|
||||||
|
# Installation
|
||||||
|
|
||||||
|
```console
|
||||||
|
cmake . && make && sudo make install
|
||||||
|
```
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
#include <QApplication>
|
||||||
|
#include <QMainWindow>
|
||||||
|
#include <QPlainTextEdit>
|
||||||
|
|
||||||
|
class ScratchPad : public QMainWindow {
|
||||||
|
public:
|
||||||
|
ScratchPad() {
|
||||||
|
textEdit = new QPlainTextEdit(this);
|
||||||
|
setCentralWidget(textEdit);
|
||||||
|
|
||||||
|
setWindowTitle("Scratch Pad");
|
||||||
|
resize(600, 400);
|
||||||
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
QPlainTextEdit *textEdit;
|
||||||
|
};
|
||||||
|
|
||||||
|
int main(int argc, char *argv[]) {
|
||||||
|
QApplication app(argc, argv);
|
||||||
|
|
||||||
|
ScratchPad mainWindow;
|
||||||
|
mainWindow.show();
|
||||||
|
|
||||||
|
return app.exec();
|
||||||
|
}
|
|
@ -0,0 +1,8 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=Scratch Pad
|
||||||
|
Comment=Simple text scratch pad for note taking
|
||||||
|
Exec=ScratchPad
|
||||||
|
Icon=scratchpad
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Categories=Utility;TextEditor;
|
|
@ -0,0 +1,218 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
width="512"
|
||||||
|
height="512"
|
||||||
|
viewBox="0 0 512 512"
|
||||||
|
version="1.1"
|
||||||
|
id="svg1"
|
||||||
|
inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
|
||||||
|
sodipodi:docname="scratchnote.svg"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview1"
|
||||||
|
pagecolor="#505050"
|
||||||
|
bordercolor="#eeeeee"
|
||||||
|
borderopacity="1"
|
||||||
|
inkscape:showpageshadow="0"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#505050"
|
||||||
|
inkscape:document-units="px"
|
||||||
|
inkscape:zoom="1.6464844"
|
||||||
|
inkscape:cx="206.19692"
|
||||||
|
inkscape:cy="281.5089"
|
||||||
|
inkscape:window-width="1868"
|
||||||
|
inkscape:window-height="1052"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="layer1" />
|
||||||
|
<defs
|
||||||
|
id="defs1">
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient8"
|
||||||
|
inkscape:collect="always">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#bb3515;stop-opacity:0.69213653;"
|
||||||
|
offset="0"
|
||||||
|
id="stop7" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#e434b8;stop-opacity:0.13023925;"
|
||||||
|
offset="1"
|
||||||
|
id="stop8" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient6"
|
||||||
|
inkscape:collect="always">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#27bb15;stop-opacity:0.69213653;"
|
||||||
|
offset="0.31715837"
|
||||||
|
id="stop5" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#3458e4;stop-opacity:0;"
|
||||||
|
offset="1"
|
||||||
|
id="stop6" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient3"
|
||||||
|
inkscape:collect="always">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#0f2777;stop-opacity:0.54108697;"
|
||||||
|
offset="0.31715837"
|
||||||
|
id="stop3" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#3458e4;stop-opacity:0;"
|
||||||
|
offset="1"
|
||||||
|
id="stop4" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient1"
|
||||||
|
inkscape:collect="always">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#203070;stop-opacity:0.56261402;"
|
||||||
|
offset="0"
|
||||||
|
id="stop1" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#45ce15;stop-opacity:0;"
|
||||||
|
offset="1"
|
||||||
|
id="stop2" />
|
||||||
|
</linearGradient>
|
||||||
|
<rect
|
||||||
|
x="94.482216"
|
||||||
|
y="101.35365"
|
||||||
|
width="11.539215"
|
||||||
|
height="17.82117"
|
||||||
|
id="rect1" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient1"
|
||||||
|
id="linearGradient2"
|
||||||
|
x1="79.946141"
|
||||||
|
y1="220.42915"
|
||||||
|
x2="183.24214"
|
||||||
|
y2="220.42915"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient3"
|
||||||
|
id="linearGradient4"
|
||||||
|
x1="81.706001"
|
||||||
|
y1="207.06168"
|
||||||
|
x2="181.48227"
|
||||||
|
y2="233.79663"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient6"
|
||||||
|
id="linearGradient5"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
x1="182.95918"
|
||||||
|
y1="225.82784"
|
||||||
|
x2="80.229027"
|
||||||
|
y2="215.03046" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient8"
|
||||||
|
id="linearGradient5-5"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
x1="131.59413"
|
||||||
|
y1="272.07733"
|
||||||
|
x2="131.59413"
|
||||||
|
y2="168.78122" />
|
||||||
|
</defs>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1">
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:192px;font-family:Hack;-inkscape-font-specification:Hack;text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;white-space:pre;inline-size:232.69;fill:#222222;fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:2.89692;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:0.853511"
|
||||||
|
x="73.994347"
|
||||||
|
y="283.02115"
|
||||||
|
id="text1"
|
||||||
|
transform="matrix(3.4519475,0,0,3.4519475,-199.6204,-506.22911)"><tspan
|
||||||
|
x="73.994347"
|
||||||
|
y="283.02115"
|
||||||
|
id="tspan6"><tspan
|
||||||
|
style="font-weight:bold;font-family:'Source Code Pro';-inkscape-font-specification:'Source Code Pro Bold'"
|
||||||
|
id="tspan5">T</tspan></tspan></text>
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:192px;font-family:Hack;-inkscape-font-specification:Hack;text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;white-space:pre;inline-size:232.69;display:inline;fill:#222222;fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:2.89692;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:0.432648"
|
||||||
|
x="73.994347"
|
||||||
|
y="283.02115"
|
||||||
|
id="text1-2"
|
||||||
|
transform="matrix(3.4519475,0,0,3.4519475,-198.57366,-505.06619)"><tspan
|
||||||
|
x="73.994347"
|
||||||
|
y="283.02115"
|
||||||
|
id="tspan8"><tspan
|
||||||
|
style="font-weight:bold;font-family:'Source Code Pro';-inkscape-font-specification:'Source Code Pro Bold'"
|
||||||
|
id="tspan7">T</tspan></tspan></text>
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:192px;font-family:Hack;-inkscape-font-specification:Hack;text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;white-space:pre;inline-size:232.69;display:inline;fill:#3458e4;fill-opacity:0.54108655;fill-rule:nonzero;stroke:none;stroke-width:2.89692;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:0.432648"
|
||||||
|
x="73.994347"
|
||||||
|
y="283.02115"
|
||||||
|
id="text1-2-1"
|
||||||
|
transform="matrix(3.4519475,0,0,3.4519475,-200.20356,-505.42206)"><tspan
|
||||||
|
x="73.994347"
|
||||||
|
y="283.02115"
|
||||||
|
id="tspan10"><tspan
|
||||||
|
style="font-weight:bold;font-family:'Source Code Pro';-inkscape-font-specification:'Source Code Pro Bold'"
|
||||||
|
id="tspan9">T</tspan></tspan></text>
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:192px;font-family:Hack;-inkscape-font-specification:Hack;text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;white-space:pre;inline-size:232.69;display:inline;fill:url(#linearGradient4);fill-opacity:0.541087;fill-rule:nonzero;stroke:none;stroke-width:2.89692;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:0.432648"
|
||||||
|
x="73.994347"
|
||||||
|
y="283.02115"
|
||||||
|
id="text1-2-1-8"
|
||||||
|
transform="matrix(3.4519475,0,0,3.4519475,-198.69515,-505.40983)"><tspan
|
||||||
|
x="73.994347"
|
||||||
|
y="283.02115"
|
||||||
|
id="tspan12"><tspan
|
||||||
|
style="font-weight:bold;font-family:'Source Code Pro';-inkscape-font-specification:'Source Code Pro Bold'"
|
||||||
|
id="tspan11">T</tspan></tspan></text>
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:192px;font-family:Hack;-inkscape-font-specification:Hack;text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;white-space:pre;inline-size:232.69;display:inline;fill:url(#linearGradient5);fill-opacity:0.541087;fill-rule:nonzero;stroke:none;stroke-width:2.89692;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:0.432648"
|
||||||
|
x="73.994347"
|
||||||
|
y="283.02115"
|
||||||
|
id="text1-2-1-8-4"
|
||||||
|
transform="matrix(3.4519475,0,0,3.4519475,-198.95932,-506.30628)"><tspan
|
||||||
|
x="73.994347"
|
||||||
|
y="283.02115"
|
||||||
|
id="tspan14"><tspan
|
||||||
|
style="font-weight:bold;font-family:'Source Code Pro';-inkscape-font-specification:'Source Code Pro Bold'"
|
||||||
|
id="tspan13">T</tspan></tspan></text>
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:192px;font-family:Hack;-inkscape-font-specification:Hack;text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;white-space:pre;inline-size:232.69;display:inline;fill:url(#linearGradient5-5);fill-opacity:0.541087;fill-rule:nonzero;stroke:none;stroke-width:2.89692;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:0.432648"
|
||||||
|
x="73.994347"
|
||||||
|
y="283.02115"
|
||||||
|
id="text1-2-1-8-4-9"
|
||||||
|
transform="matrix(3.4519475,0,0,3.4519475,-198.02731,-504.25978)"><tspan
|
||||||
|
x="73.994347"
|
||||||
|
y="283.02115"
|
||||||
|
id="tspan16"><tspan
|
||||||
|
style="font-weight:bold;font-family:'Source Code Pro';-inkscape-font-specification:'Source Code Pro Bold'"
|
||||||
|
id="tspan15">T</tspan></tspan></text>
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:192px;font-family:Hack;-inkscape-font-specification:Hack;text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;white-space:pre;inline-size:232.69;display:inline;fill:#000000;fill-opacity:0.30499017;fill-rule:nonzero;stroke:none;stroke-width:2.89692;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:0.432648"
|
||||||
|
x="73.994347"
|
||||||
|
y="283.02115"
|
||||||
|
id="text1-2-1-8-4-9-4"
|
||||||
|
transform="matrix(3.4519475,0,0,3.4519475,-198.02184,-503.94559)"><tspan
|
||||||
|
x="73.994347"
|
||||||
|
y="283.02115"
|
||||||
|
id="tspan18"><tspan
|
||||||
|
style="font-weight:bold;font-family:'Source Code Pro';-inkscape-font-specification:'Source Code Pro Bold'"
|
||||||
|
id="tspan17">T</tspan></tspan></text>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 9.5 KiB |
Loading…
Reference in New Issue