Skip to content
This repository was archived by the owner on May 3, 2018. It is now read-only.

Commit bbee323

Browse files
author
KJ
committed
Initial commit of eOS Write application
0 parents  commit bbee323

20 files changed

+1308
-0
lines changed

CMakeLists.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
# We define the minimum cmake. This is standard for Elementary OS
3+
cmake_minimum_required (VERSION 2.8)
4+
5+
#We define the minimum policy version
6+
cmake_policy(VERSION 2.8)
7+
8+
9+
#We define out project name.
10+
project(Activities)
11+
12+
13+
#Here we load the modules we downloaded earlier and placed into the ./cmake directory
14+
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake )
15+
16+
#Here we add the src directory. CMake will look for the CMakeLists.txt in this folder
17+
#and work from there
18+
add_subdirectory (src)

quickbuild.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# We need to make our build directory for all of our temp files.
2+
rm -r ./build
3+
mkdir ./build
4+
5+
# Enter the build Directory
6+
cd ./build
7+
8+
# Now we initiate cmake in this dir
9+
cmake ..
10+
11+
12+
# Next we build the source files!
13+
make
14+
15+
# Move the built file back to the main folder (and run)
16+
mv ./src/write ../write
17+
cd ..
18+
19+
# Compile resources files
20+
glib-compile-resources --target=appresources --sourcedir=./resources ./resources/app.gresource.xml
21+
22+
./write

resources/app.css

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
.context-toolbar
2+
{
3+
padding: 12px 8px;
4+
background-color: rgb(248, 248, 248);
5+
background-image: -gtk-gradient(linear, 0 0.7, 0 1, from(rgb(248, 248, 248)), to(rgb(240, 240, 240)));
6+
border-bottom-width: 1px;
7+
border-bottom-style: solid;
8+
-GtkWidget-window-dragging: false;
9+
}
10+
11+
.context-toolbar WriteMultiModeButton GtkToggleButton
12+
{
13+
padding: 4px 12px;
14+
}
15+
16+
.context-toolbar WriteMultiModeButton GtkToggleButton:hover
17+
{
18+
padding: 4px 12px;
19+
}
20+
21+
.context-toolbar GraniteWidgetsModeButton GtkToggleButton
22+
{
23+
padding: 4px 6px;
24+
}
25+
26+
.context-toolbar GraniteWidgetsModeButton GtkToggleButton:hover
27+
{
28+
padding: 4px 6px;
29+
}
30+
31+
.context-toolbar GraniteWidgetsModeButton GtkButton GtkWidget:hover
32+
{
33+
border: 0px;
34+
}
35+
36+
.context-toolbar GraniteWidgetsModeButton GtkButton GtkButton
37+
{
38+
padding: 0px;
39+
margin: 0px;
40+
border: 0px none;
41+
}
42+
43+
.context-toolbar GraniteWidgetsModeButton GtkButton GtkImage:hover
44+
{
45+
padding: 0px;
46+
margin: 0px;
47+
border: 0px none;
48+
}

resources/app.gresource.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<gresources>
3+
<gresource prefix="/org/elementary/write">
4+
<file>justify_left.png</file>
5+
<file>justify_right.png</file>
6+
<file>justify_center.png</file>
7+
<file>justify.png</file>
8+
<file>template.html</file>
9+
<file>app.css</file>
10+
<file>document.css</file>
11+
<file>jquery.js</file>
12+
<file>zoom.js</file>
13+
</gresource>
14+
</gresources>

resources/document.css

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
html, body, div, span, applet, object, iframe,
2+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
3+
a, abbr, acronym, address, big, cite, code,
4+
del, dfn, em, img, ins, kbd, q, s, samp,
5+
small, strike, strong, sub, sup, tt, var,
6+
b, u, i, center,
7+
dl, dt, dd, ol, ul, li,
8+
fieldset, form, label, legend,
9+
table, caption, tbody, tfoot, thead, tr, th, td,
10+
article, aside, canvas, details, embed,
11+
figure, figcaption, footer, header, hgroup,
12+
menu, nav, output, ruby, section, summary,
13+
time, mark, audio, video {
14+
margin: 0;
15+
padding: 0;
16+
border: 0;
17+
font-size: 100%;
18+
font: inherit;
19+
vertical-align: baseline;
20+
}
21+
/* HTML5 display-role reset for older browsers */
22+
article, aside, details, figcaption, figure,
23+
footer, header, hgroup, menu, nav, section {
24+
display: block;
25+
}
26+
body {
27+
line-height: 1;
28+
}
29+
ol, ul {
30+
list-style: none;
31+
}
32+
blockquote, q {
33+
quotes: none;
34+
}
35+
blockquote:before, blockquote:after,
36+
q:before, q:after {
37+
content: '';
38+
content: none;
39+
}
40+
table {
41+
border-collapse: collapse;
42+
border-spacing: 0;
43+
}
44+
45+
b { font-weight: bold; }
46+
i { font-style: italic; }
47+
48+
body
49+
{
50+
background-color: #F8F8F8;
51+
background-attachment: fixed;
52+
background-image: -webkit-gradient(
53+
linear,
54+
left bottom,
55+
left top,
56+
color-stop(0.04, rgb(240,240,240)),
57+
color-stop(0.32, rgb(248,248,248))
58+
);
59+
}
60+
61+
#container .page
62+
{
63+
width: 8.50in;
64+
height: 11in;
65+
margin: 30px auto;
66+
background-color: white;
67+
border: 1px solid #C6C6C6;
68+
box-shadow: 0px 6px 4px 3px #DDD;
69+
position: relative;
70+
}
71+
72+
#container .page .padding
73+
{
74+
outline: none;
75+
border: 1px solid light;
76+
position: absolute;
77+
top: 0.75in;
78+
left: 0.75in;
79+
right: 0.75in;
80+
bottom: 0.75in;
81+
}
82+
#container .page:hover { cursor: text; }
83+
#zoom_control { position: fixed; bottom: 10px; right: 10px; width: 120px; }

resources/jquery.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/justify.png

104 Bytes
Loading

resources/justify_center.png

118 Bytes
Loading

resources/justify_left.png

111 Bytes
Loading

resources/justify_right.png

110 Bytes
Loading

0 commit comments

Comments
 (0)