Permalink
Browse files

Initial import.

  • Loading branch information...
0 parents commit 0d19b5c3bc86596d7e5abc436fe6ece6773189d1 @pcapriotti committed Mar 13, 2010
Showing with 5,389 additions and 0 deletions.
  1. +2 −0 AUTHORS
  2. +16 −0 CMakeLists.txt
  3. +22 −0 COPYING
  4. +7 −0 README.markdown
  5. +78 −0 example.css
  6. +30 −0 hikkiui.rc
  7. +65 −0 main.cpp
  8. +175 −0 mainwindow.cpp
  9. +71 −0 mainwindow.h
  10. +115 −0 markdown.xml
  11. +15 −0 markdown/CMakeLists.txt
  12. +47 −0 markdown/COPYRIGHT
  13. +61 −0 markdown/Csio.c
  14. +111 −0 markdown/amalloc.c
  15. +29 −0 markdown/amalloc.h
  16. +28 −0 markdown/config.h
  17. +76 −0 markdown/css.c
  18. +75 −0 markdown/cstring.h
  19. +43 −0 markdown/docheader.c
  20. +151 −0 markdown/dumptree.c
  21. +1,638 −0 markdown/generate.c
  22. +1,069 −0 markdown/markdown.c
  23. +146 −0 markdown/markdown.h
  24. +309 −0 markdown/mkdio.c
  25. +80 −0 markdown/mkdio.h
  26. +155 −0 markdown/resource.c
  27. +90 −0 markdown/toc.c
  28. +28 −0 markdown/version.c
  29. +82 −0 markdown/xml.c
  30. +48 −0 markdown/xmlpage.c
  31. +110 −0 note.cpp
  32. +44 −0 note.h
  33. +83 −0 notebook.cpp
  34. +53 −0 notebook.h
  35. +155 −0 webkitpart.cpp
  36. +82 −0 webkitpart.h
@@ -0,0 +1,2 @@
+Paolo Capriotti <p.capriotti@gmail.com>
+
@@ -0,0 +1,16 @@
+project(hikki)
+
+add_subdirectory(markdown)
+
+find_package(KDE4 REQUIRED)
+include(KDE4Defaults)
+include_directories(${KDE4_INCLUDES})
+set(src main.cpp
+ mainwindow.cpp
+ note.cpp
+ notebook.cpp
+ webkitpart.cpp)
+kde4_add_executable(hikki ${src})
+
+target_link_libraries(hikki markdown ${KDE4_KDEUI_LIBS} kparts ktexteditor QtWebKit)
+install(TARGETS hikki ${INSTALL_TARGETS_DEFAULT_ARGS})
@@ -0,0 +1,22 @@
+Copyright (c) 2010 Paolo Capriotti <p.capriotti@gmail.com>
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,7 @@
+# Hikki - minimalistic note-taking tool
+
+*Hikki* is a simple local wiki based on [Markdown](http://daringfireball.net/projects/markdown/), [Kate](http://kate-editor.org/) and [Webkit](http://webkit.org/).
+
+### Acknowledgments
+
+This product includes software developed by David Loren Parsons [http://www.pell.portland.or.us/~orc].
@@ -0,0 +1,78 @@
+body {
+ font-family: sans-serif "Bitstream Vera Sans";
+ line-height: 1.6em;
+ padding: 0 1em 0 1em;
+ color: #ccc;
+ background-color: #333;
+}
+
+h1, h2, h3, h4, h5, h6 {
+ color: #bbb;
+}
+
+
+h3, h2, h1 {
+ padding: 0.2em 0 0.2em 0.5em;
+ border-width: 1px 1px 1px 0.5em;
+ border-style: solid;
+ border-color: #1a1a1a;
+}
+
+h3 {
+ border-left-width: 0.1em;
+}
+
+h2 {
+ font-size: 1.6em;
+}
+
+h1 {
+ font-size: 2.5em;
+}
+
+li {
+ padding: 0;
+ margin: 0;
+ list-style-type: square;
+}
+
+a {
+ color: #8e8aFF;
+ font-weight: normal;
+ text-decoration: underline;
+}
+
+a[href^="http://"] {
+ background:url(hikki://data/external.png)
+ 99% 40% no-repeat;
+ padding-right: 15px;
+}
+
+a.broken {
+ color: red;
+}
+
+pre {
+ font-family: "DejaVu Sans Mono";
+ line-height: 1.4em;
+ color: black;
+ background-color: #edf1f4;
+ padding: 2px 10px 2px 10px;
+ margin-left: 0.8em;
+ border: 1px solid #93aabb;
+}
+
+code {
+/* font-family: monospace; */
+}
+
+.comment { color: #aaa; font-style: italic; }
+.keyword { color: #eff; font-weight: bold; }
+.punct { color: #eee; font-weight: bold; }
+.symbol { color: #0bb; }
+.string { color: #6b4; }
+.ident { color: #ff8; }
+.constant { color: #66f; }
+.regex { color: #ec6; }
+.number { color: #F99; }
+.expr { color: #227; }
@@ -0,0 +1,30 @@
+<!DOCTYPE kpartgui SYSTEM 'kpartgui.dtd'>
+<kpartgui version="17" name="hikki" >
+ <MenuBar>
+ <Menu name="file" >
+ <Action name="edit_mode" />
+ <Action name="display_mode" />
+ </Menu>
+ <Menu name="go" >
+ <Text>&amp;Go</Text>
+ <Action name="back" />
+ <Action name="forward" />
+ <Action name="home" />
+ </Menu>
+ <Menu name="bookmarks" />
+ <Menu name="tools" />
+ <Merge/>
+ <Menu name="help" />
+ </MenuBar>
+ <ActionProperties scheme="Default" >
+ <Action shortcut="Alt+2" name="display_mode" />
+ <Action shortcut="Alt+1" name="edit_mode" />
+ </ActionProperties>
+ <ToolBar noMerge="1" name="mainToolBar" >
+ <Action name="edit_mode" />
+ <Action name="display_mode" />
+ <Action name="go_home" />
+ <Action name="go_back" />
+ <Action name="go_forward" />
+ </ToolBar>
+</kpartgui>
@@ -0,0 +1,65 @@
+// Copyright (c) 2010 Paolo Capriotti <p.capriotti@gmail.com>
+//
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions
+// are met:
+//
+// 1. Redistributions of source code must retain the above copyright
+// notice, this list of conditions and the following disclaimer.
+// 2. Redistributions in binary form must reproduce the above copyright
+// notice, this list of conditions and the following disclaimer in the
+// documentation and/or other materials provided with the distribution.
+//
+// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+// IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+// NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+#include <KApplication>
+#include <KAboutData>
+#include <KCmdLineArgs>
+
+#include "mainwindow.h"
+
+int main(int argc, char** argv)
+{
+ KAboutData aboutData(
+ "hikki",
+ 0,
+ ki18n("Hikki"),
+ "0.1",
+ ki18n("Minimalistic Note-taking Tool"),
+ KAboutData::License_BSD,
+ ki18n("(c) 2010 Paolo Capriotti"));
+
+ KCmdLineOptions opt;
+ opt.add("+[notebook]", ki18n("Notebook path"));
+ KCmdLineArgs::addCmdLineOptions(opt);
+
+ KCmdLineArgs::init(argc, argv, &aboutData);
+ KApplication app;
+
+ QString base;
+ if (const char* baseEnv = getenv("HIKKI_DIR")) {
+ base = baseEnv;
+ }
+ else {
+ base = ".";
+ }
+
+ KCmdLineArgs* args = KCmdLineArgs::parsedArgs();
+ if (args->count() > 0) {
+ base = args->arg(0);
+ }
+
+ MainWindow* main = new MainWindow(base);
+ main->show();
+
+ return app.exec();
+}
Oops, something went wrong.

0 comments on commit 0d19b5c

Please sign in to comment.