This repository has been archived by the owner on Apr 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e7b9a4b
Showing
804 changed files
with
257,860 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
*.user | ||
*.exe | ||
*.ilk | ||
*.lib | ||
*.pdb | ||
*.exp | ||
*.obj | ||
*.manifest | ||
*.dll | ||
*.Debug | ||
*.Release | ||
*moc_*.cpp | ||
*qrc_*.cpp | ||
*ui_*.h | ||
*Makefile* | ||
*.res | ||
*.o | ||
*.so | ||
*.a | ||
*.0 | ||
*.1 | ||
|
||
/src/res/mdcharm.rc | ||
/src/src/version.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Copyright (c) 2014, [email protected] | ||
All rights reserved. | ||
|
||
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. | ||
|
||
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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 COPYRIGHT HOLDER OR CONTRIBUTORS 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
### Dependencies | ||
#### Windows | ||
* Qt Creator + Qt(4.7+) | ||
* msvc2010 | ||
* python | ||
* git | ||
|
||
|
||
#### Linux | ||
* Qt Creator + Qt(4.7+ | Qt5) | ||
* python | ||
* git | ||
|
||
### Build | ||
* check out | ||
|
||
``` | ||
git checkout [email protected]:zhangshine/MdCharm.git | ||
``` | ||
* Open "MdCharm.pro" by Qt Creator and click "Build" | ||
|
||
### License | ||
The BSD 3-Clause License |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
TEMPLATE = subdirs | ||
|
||
CONFIG += ordered | ||
|
||
SUBDIRS += lib | ||
SUBDIRS += MdCharm | ||
|
||
TRANSLATIONS = lang_en.ts \ | ||
lang_zh.ts \ | ||
lang_zhCN.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,191 @@ | ||
TEMPLATE = app | ||
|
||
lessThan(QT_MAJOR_VERSION, 5){ | ||
QT += core gui webkit network | ||
} else { | ||
DEFINES += QT_V5 | ||
QT += core gui webkit network widgets webkitwidgets printsupport | ||
unix: { | ||
QMAKE_RPATHDIR += /usr/local/lib/Qt-5.0.2/lib/ | ||
} | ||
} | ||
|
||
CONFIG(debug, debug|release){ #debug | ||
DEFINES += MDCHARM_DEBUG | ||
TARGET = MdCharm_d | ||
DESTDIR = ../debug/ | ||
LIBS += -L../debug -lgbreakpad_d -lcore | ||
} else { #release | ||
DEFINES += NDEBUG | ||
DEFINES += QT_NO_DEBUG_OUTPUT | ||
TARGET = MdCharm | ||
unix:TARGET = mdcharm | ||
DESTDIR = ../release/ | ||
LIBS += -L../release -lgbreakpad -lcore | ||
} | ||
#Fix for hunspell | ||
win32-msvc*: { | ||
INCLUDEPATH+=../lib/hunspell/src ../lib/pcre | ||
CONFIG(debug, debug|release){ | ||
LIBS += -L../debug -lhunspell_d -lmdcharm_pcre | ||
} else { | ||
LIBS += -L../release -lhunspell -lmdcharm_pcre | ||
} | ||
} | ||
|
||
unix: { | ||
INCLUDEPATH +=../lib/pcre | ||
LIBS += -lhunspell | ||
CONFIG(debug, debug|release){ | ||
LIBS += -L../debug -lmdcharm_pcre | ||
} else { | ||
LIBS += -L../release -lmdcharm_pcre | ||
} | ||
} | ||
|
||
win32 { | ||
RC_FILE = $$PWD/../res/mdcharm.rc | ||
} | ||
|
||
win32-msvc*:QMAKE_CXXFLAGS_RELEASE += -Zi | ||
win32-msvc*:QMAKE_CFLAGS_RELEASE += -Zi | ||
win32-msvc*:QMAKE_LFLAGS_RELEASE += /DEBUG /OPT:REF /OPT:ICF | ||
|
||
INCLUDEPATH += ../lib/core ../lib/markdown/html \ | ||
../lib/markdown/src ../lib/crashdump \ | ||
../lib/zlib/zlib ../lib/pcre \ | ||
../lib/rapidxml | ||
|
||
CONFIG(release, debug|release){ | ||
version_h.target = version.h | ||
|
||
win32:version_h.commands = python.exe ../../src/MdCharm/version_h.py git.exe ../../src/MdCharm/version.h ../../src/MdCharm/mdcharm.rc release | ||
unix:version_h.commands = /usr/bin/python ../../src/MdCharm/version_h.py /usr/bin/git ../../src/MdCharm/version.h ../../src/res/mdcharm.rc release | ||
|
||
version_h.depends = version_h_nonexist | ||
version_h.CONFIG += recursive | ||
|
||
version_h_nonexist.commands= @echo generating version.h | ||
|
||
QMAKE_EXTRA_TARGETS += version_h version_h_nonexist | ||
|
||
PRE_TARGETDEPS += version.h | ||
} | ||
|
||
SOURCES += \ | ||
main.cpp \ | ||
mdcharmform.cpp \ | ||
editareatabwidget.cpp \ | ||
editareawidget.cpp \ | ||
markdowneditareawidget.cpp \ | ||
resource.cpp \ | ||
browereditareawidget.cpp \ | ||
utils.cpp \ | ||
util/syntax/hightlighter.cpp \ | ||
util/zip/zipwriter.cpp \ | ||
util/odt/odtwriter.cpp \ | ||
conf/configuredialog.cpp \ | ||
configuration.cpp \ | ||
conf/pages.cpp \ | ||
util/test/qregularexpression.cpp \ | ||
baseeditor/baseeditor.cpp \ | ||
about/aboutmdcharmdialog.cpp \ | ||
util/gui/findandreplace.cpp \ | ||
network/checkupdates.cpp \ | ||
dock/projectdockwidget.cpp \ | ||
util/gui/addnewfiledialog.cpp \ | ||
util/gui/selectencodingdialog.cpp \ | ||
util/gui/statusbarlabel.cpp \ | ||
util/gui/gotodialog.cpp \ | ||
util/spellcheck/spellchecker.cpp \ | ||
baseeditor/markdowneditor.cpp \ | ||
util/gui/exportdialog.cpp \ | ||
util/sessionfileparser.cpp \ | ||
mdcharmapplication.cpp \ | ||
util/gui/insertlinkorpicturedialog.cpp \ | ||
util/gui/renamefiledialog.cpp \ | ||
util/spellcheck/spellcheckselectordialog.cpp \ | ||
util/gui/markdowncheatsheetdialog.cpp \ | ||
util/gui/insertcodedialog.cpp \ | ||
util/gui/noticedialog.cpp \ | ||
util/filesystemmodel.cpp \ | ||
util/filesystemtreeview.cpp \ | ||
util/rotationtoolbutton.cpp \ | ||
baseeditor/baseautocompleter.cpp \ | ||
baseeditor/markdownautocompleter.cpp \ | ||
editareatabwidgetmanager.cpp \ | ||
basewebview/basewebview.cpp \ | ||
basewebview/markdownwebview.cpp \ | ||
util/gui/newversioninfodialog.cpp \ | ||
util/gui/exportdirectorydialog.cpp \ | ||
util/gui/shortcutlineedit.cpp | ||
|
||
|
||
HEADERS += \ | ||
mdcharmform.h \ | ||
editareatabwidget.h \ | ||
editareawidget.h \ | ||
markdowneditareawidget.h \ | ||
resource.h \ | ||
browereditareawidget.h \ | ||
utils.h \ | ||
util/syntax/hightlighter.h \ | ||
util/zip/zipwriter.h \ | ||
util/odt/odtwriter.h \ | ||
conf/configuredialog.h \ | ||
configuration.h \ | ||
conf/pages.h \ | ||
util/test/qregularexpression.h \ | ||
baseeditor/baseeditor.h \ | ||
about/aboutmdcharmdialog.h \ | ||
util/gui/findandreplace.h \ | ||
network/checkupdates.h \ | ||
dock/projectdockwidget.h \ | ||
util/gui/addnewfiledialog.h \ | ||
util/gui/selectencodingdialog.h \ | ||
util/gui/statusbarlabel.h \ | ||
util/gui/gotodialog.h \ | ||
util/spellcheck/spellchecker.h \ | ||
baseeditor/markdowneditor.h \ | ||
util/gui/exportdialog.h \ | ||
util/sessionfileparser.h \ | ||
mdcharmapplication.h \ | ||
util/gui/insertlinkorpicturedialog.h \ | ||
util/gui/renamefiledialog.h \ | ||
util/spellcheck/spellcheckselectordialog.h \ | ||
util/gui/markdowncheatsheetdialog.h \ | ||
util/gui/insertcodedialog.h \ | ||
util/gui/noticedialog.h \ | ||
util/filesystemmodel.h \ | ||
util/filesystemtreeview.h \ | ||
util/rotationtoolbutton.h \ | ||
baseeditor/baseautocompleter.h \ | ||
baseeditor/markdownautocompleter.h \ | ||
editareatabwidgetmanager.h \ | ||
basewebview/basewebview.h \ | ||
basewebview/markdownwebview.h \ | ||
util/gui/newversioninfodialog.h \ | ||
util/gui/exportdirectorydialog.h \ | ||
util/gui/shortcutlineedit.h | ||
|
||
|
||
FORMS += \ | ||
conf/environmentpage.ui \ | ||
conf/texteditorpage.ui \ | ||
about/aboutdialog.ui \ | ||
util/gui/findandreplaceform.ui \ | ||
dock/projectdockwidget.ui \ | ||
util/gui/addnewfiledialog.ui \ | ||
conf/stylespage.ui \ | ||
util/gui/selectencodingdialog.ui \ | ||
util/gui/gotodialog.ui \ | ||
util/gui/exportdialog.ui \ | ||
util/gui/insertlinkorpicturedialog.ui \ | ||
util/gui/renamefiledialog.ui \ | ||
util/spellcheck/spellcheckselectordialog.ui \ | ||
util/gui/insertcodedialog.ui \ | ||
util/gui/noticedialog.ui \ | ||
util/gui/exportdirectorydialog.ui | ||
|
||
RESOURCES += \ | ||
$$PWD/../res/MdCharm.qrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Main App |
Oops, something went wrong.