├── version
├── base_version
├── debian
├── compat
├── docs
├── source
│ ├── format
│ └── options
├── juffed-plugins.install
├── lintian-overrides
├── juffed-dev.install
├── fix.scanned.copyright
├── watch
├── juffed.install
├── .gitignore
├── README.debian
├── copyright-scan-patterns.yml
└── rules
├── cmake
├── version.cmake
├── cmake_uninstall.cmake.in
├── LibSuffix.cmake
├── AppInfo.win.h.cmake
├── AppInfo.nix.h.cmake
├── COPYING-CMAKE-SCRIPTS
├── AppInfo.apple.h.cmake
└── SomeLexers.cmake
├── plugins
├── todolist
│ ├── todolist.qrc
│ ├── todolist.pro
│ ├── CMakeLists.txt
│ ├── TODOParser.h
│ ├── TODOList.h
│ └── TODOParser.cpp
├── fm
│ ├── install.sh
│ ├── go-up.png
│ ├── go-home.png
│ ├── folder-new.png
│ ├── go-current.png
│ ├── go-previous.png
│ ├── bookmark-new.png
│ ├── view-refresh.png
│ ├── INSTALL
│ ├── fm.pro
│ ├── README
│ ├── CMakeLists.txt
│ ├── fm.qrc
│ ├── ManageDlg.h
│ ├── TreeView.h
│ ├── ManageDlg.cpp
│ ├── ManageDlg.ui
│ └── FMPlugin.h
├── doclist
│ ├── install.sh
│ ├── doc_icon.png
│ ├── edit-clear.png
│ ├── INSTALL
│ ├── doclistplugin.qrc
│ ├── doclist.pro
│ ├── README
│ ├── l10n
│ │ └── doclist_ru.ts
│ ├── CMakeLists.txt
│ ├── DocListPlugin.h
│ └── doclist_l10n.diff
├── TODO
├── favorites
│ ├── install.sh
│ ├── INSTALL
│ ├── favorites.pro
│ ├── README
│ ├── CMakeLists.txt
│ ├── ManageDlg.h
│ ├── ManageDlg.cpp
│ ├── FavoritesPlugin.h
│ └── ManageDlg.ui
├── colorpicker
│ ├── 32.png
│ ├── 64.png
│ ├── colorpicker.qrc
│ ├── ColorFormatDlg.h
│ ├── CMakeLists.txt
│ ├── ColorPickerPlugin.h
│ └── ColorFormatDlg.cpp
├── compare
│ ├── meld.png
│ ├── compare.qrc
│ ├── CMakeLists.txt
│ └── compare.h
├── xmlformat
│ ├── xmlwrap.png
│ ├── xmlformat.qrc
│ └── CMakeLists.txt
├── findinfiles
│ ├── process-stop.png
│ ├── findinfiles.qrc
│ ├── findinfiles.pro
│ ├── CMakeLists.txt
│ ├── SearchDlg.h
│ ├── FindWorker.h
│ └── FindInFilesPlugin.h
├── symbolbrowser
│ ├── symbols
│ │ ├── images
│ │ │ ├── class.png
│ │ │ ├── enum.png
│ │ │ ├── func.png
│ │ │ ├── macro.png
│ │ │ ├── slot.png
│ │ │ ├── var.png
│ │ │ ├── keyword.png
│ │ │ ├── signal.png
│ │ │ ├── enumerator.png
│ │ │ ├── func-proto.png
│ │ │ ├── func_priv.png
│ │ │ ├── func_prot.png
│ │ │ ├── namespace.png
│ │ │ ├── slot_priv.png
│ │ │ ├── slot_prot.png
│ │ │ ├── var_priv.png
│ │ │ └── var_prot.png
│ │ ├── common.h
│ │ ├── symbols.qrc
│ │ └── parserthread.h
│ ├── test.sh
│ ├── CMakeLists.txt
│ └── symbolbrowser.pro
├── juffed-plugins.pro
├── autosave
│ ├── CMakeLists.txt
│ └── autosave.h
├── sort
│ ├── CMakeLists.txt
│ ├── QuickSettings.h
│ └── QuickSettings.cpp
├── keybindings
│ ├── CMakeLists.txt
│ ├── KeysPage.h
│ ├── KeysPlugin.h
│ ├── KeysPlugin.cpp
│ └── KeysPage.ui
├── zencoding
│ ├── CMakeLists.txt
│ ├── ZenCoding.h
│ └── DocWrapper.h
├── python
│ ├── CMakeLists.txt
│ └── PythonPlugin.h
├── juffed-plugins.pri
├── terminal
│ ├── CMakeLists.txt
│ └── TerminalPlugin.h
├── cmake
│ └── FindJuffed.cmake
└── make_tarball.sh
├── .gitignore
├── juffed.png
├── src
├── app
│ ├── juffed.rc
│ ├── juffed.ico
│ ├── qsci
│ │ ├── QSciLibConfig.h
│ │ ├── lexers
│ │ │ ├── my
│ │ │ │ ├── QsciLexerMatlab.h
│ │ │ │ └── QsciLexerMatlab.cpp
│ │ │ ├── qscilexerada.h
│ │ │ ├── qscilexerlisp.h
│ │ │ ├── qscilexerhaskell.h
│ │ │ └── qscilexernsis.h
│ │ ├── settings
│ │ │ ├── PrintSettings.h
│ │ │ ├── FileTypeSettings.h
│ │ │ └── FileTypesPage.h
│ │ └── QSciSettings.h
│ ├── ui
│ │ ├── SearchComboBox.h
│ │ ├── SelectFilesDlg.h
│ │ ├── JumpToFileDlg.h
│ │ ├── settings
│ │ │ ├── PluginPage.h
│ │ │ ├── CharsetsSettingsPage.h
│ │ │ ├── MultiPage.h
│ │ │ └── PluginPage.cpp
│ │ ├── SessionDlg.h
│ │ ├── TabBar.h
│ │ ├── TabWidget.h
│ │ ├── AboutDlg.h
│ │ ├── ProjectTree.h
│ │ └── Popup.h
│ ├── Resources.qrc
│ ├── PluginManager.h
│ └── DocManager.h
├── images
│ ├── res
│ │ ├── 16
│ │ │ ├── mac.png
│ │ │ ├── tux.png
│ │ │ ├── win.png
│ │ │ ├── close.png
│ │ │ ├── trash.png
│ │ │ ├── doc_icon.png
│ │ │ ├── find_next.png
│ │ │ ├── find_prev.png
│ │ │ ├── arrow_left.png
│ │ │ ├── arrow_right.png
│ │ │ ├── replace_all.png
│ │ │ ├── doc_icon_red.png
│ │ │ ├── doc_modified16.png
│ │ │ ├── replace_next.png
│ │ │ ├── replace_prev.png
│ │ │ ├── doc_icon_warning.png
│ │ │ └── doc_unmodified16.png
│ │ ├── 32
│ │ │ └── juffed_32.png
│ │ └── 48
│ │ │ └── juffed_48.png
│ ├── icons
│ │ ├── 16
│ │ │ ├── zoom-in.png
│ │ │ ├── edit-copy.png
│ │ │ ├── edit-cut.png
│ │ │ ├── edit-find.png
│ │ │ ├── edit-redo.png
│ │ │ ├── edit-undo.png
│ │ │ ├── zoom-out.png
│ │ │ ├── document-new.png
│ │ │ ├── edit-paste.png
│ │ │ ├── help-browser.png
│ │ │ ├── view-refresh.png
│ │ │ ├── document-open.png
│ │ │ ├── document-print.png
│ │ │ ├── document-save.png
│ │ │ ├── zoom-original.png
│ │ │ ├── application-exit.png
│ │ │ ├── document-save-as.png
│ │ │ ├── edit-find-replace.png
│ │ │ ├── view-fullscreen.png
│ │ │ └── preferences-system.png
│ │ ├── 24
│ │ │ ├── zoom-in.png
│ │ │ ├── edit-copy.png
│ │ │ ├── edit-cut.png
│ │ │ ├── edit-find.png
│ │ │ ├── edit-redo.png
│ │ │ ├── edit-undo.png
│ │ │ ├── zoom-out.png
│ │ │ ├── document-new.png
│ │ │ ├── edit-paste.png
│ │ │ ├── help-browser.png
│ │ │ ├── view-refresh.png
│ │ │ ├── document-open.png
│ │ │ ├── document-print.png
│ │ │ ├── document-save.png
│ │ │ ├── zoom-original.png
│ │ │ ├── application-exit.png
│ │ │ ├── document-save-as.png
│ │ │ ├── edit-find-replace.png
│ │ │ ├── view-fullscreen.png
│ │ │ └── preferences-system.png
│ │ └── 32
│ │ │ ├── zoom-in.png
│ │ │ ├── edit-copy.png
│ │ │ ├── edit-cut.png
│ │ │ ├── edit-find.png
│ │ │ ├── edit-redo.png
│ │ │ ├── edit-undo.png
│ │ │ ├── zoom-out.png
│ │ │ ├── document-new.png
│ │ │ ├── edit-paste.png
│ │ │ ├── help-browser.png
│ │ │ ├── view-refresh.png
│ │ │ ├── document-open.png
│ │ │ ├── document-print.png
│ │ │ ├── document-save.png
│ │ │ ├── zoom-original.png
│ │ │ ├── application-exit.png
│ │ │ ├── document-save-as.png
│ │ │ ├── edit-find-replace.png
│ │ │ ├── view-fullscreen.png
│ │ │ └── preferences-system.png
│ └── mimetypes
│ │ ├── text-xml.png
│ │ ├── text-x-chdr.png
│ │ ├── text-x-java.png
│ │ ├── text-x-c++src.png
│ │ ├── text-x-cmake.png
│ │ ├── text-x-python.png
│ │ ├── text-x-script.png
│ │ ├── text-x-generic.png
│ │ └── text-x-makefile.png
└── lib
│ ├── SettingsPage.cpp
│ ├── Utils.cpp
│ ├── PluginNotifier.cpp
│ ├── NullDoc.cpp
│ ├── StatusLabel.cpp
│ ├── KeySettings.cpp
│ ├── SettingsItem.cpp
│ ├── SettingsColorItem.cpp
│ ├── SettingsCheckItem.cpp
│ └── DocEngine.cpp
├── win32
├── enca.exe
└── cygwin1.dll
├── macosx
├── juffed.icns
└── strip_bundle.sh
├── example
└── example.pro
├── hlschemes
├── makefile.xml
├── xml.xml
├── batch.xml
├── properties.xml
├── diff.xml
├── sql.xml
├── java.xml
├── javascript.xml
├── bash.xml
├── cplusplus.xml
├── fortran.xml
├── python.xml
├── cmake.xml
├── html.xml
├── perl.xml
├── qore.xml
├── qorus.xml
├── css.xml
├── ruby.xml
└── php.xml
├── include
├── SettingsPage.h
├── Utils.h
├── LibConfig.h
├── IconManagerInt.h
├── AppInfo.h
├── KeySettings.h
├── CharsetSettings.h
├── NullDoc.h
├── StatusLabel.h
├── AutocompleteSettings.h
├── ColorButton.h
├── FileTypeSettings.h
├── SettingsCheckItem.h
├── SettingsColorItem.h
├── IconManager.h
├── SettingsItem.h
├── SettingsSelectItem.h
├── EditorSettings.h
└── SearchResults.h
├── apis
├── vhdl.api
├── qore.api
└── qorus.api
├── juffed.desktop
├── README
├── pack.bat
└── juffed.spec
/version:
--------------------------------------------------------------------------------
1 | 0.10
2 |
--------------------------------------------------------------------------------
/base_version:
--------------------------------------------------------------------------------
1 | 0.10
2 |
--------------------------------------------------------------------------------
/debian/compat:
--------------------------------------------------------------------------------
1 | 11
2 |
--------------------------------------------------------------------------------
/debian/docs:
--------------------------------------------------------------------------------
1 | README
2 |
--------------------------------------------------------------------------------
/cmake/version.cmake:
--------------------------------------------------------------------------------
1 | @VERSION@
2 |
--------------------------------------------------------------------------------
/plugins/todolist/todolist.qrc:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/debian/source/format:
--------------------------------------------------------------------------------
1 | 3.0 (quilt)
2 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 | /cmake-build-*/
3 | *.user
4 |
--------------------------------------------------------------------------------
/debian/source/options:
--------------------------------------------------------------------------------
1 | tar-ignore = .gitignore
2 |
--------------------------------------------------------------------------------
/debian/juffed-plugins.install:
--------------------------------------------------------------------------------
1 | usr/lib/*/libjuff/juffed/plugins/*.so
2 |
--------------------------------------------------------------------------------
/juffed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/juffed.png
--------------------------------------------------------------------------------
/debian/lintian-overrides:
--------------------------------------------------------------------------------
1 | juffed: binary-without-manpage usr/bin/juffed
2 |
3 |
--------------------------------------------------------------------------------
/plugins/fm/install.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | cp ../libfm.so ~/.config/juff/plugins/
4 |
--------------------------------------------------------------------------------
/src/app/juffed.rc:
--------------------------------------------------------------------------------
1 | IDI_ICON1 ICON DISCARDABLE "juffed.ico"
2 |
--------------------------------------------------------------------------------
/win32/enca.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/win32/enca.exe
--------------------------------------------------------------------------------
/debian/juffed-dev.install:
--------------------------------------------------------------------------------
1 | usr/include/juffed/*.h
2 | usr/lib/*/libjuff/*.so
3 |
4 |
--------------------------------------------------------------------------------
/macosx/juffed.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/macosx/juffed.icns
--------------------------------------------------------------------------------
/src/app/juffed.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/app/juffed.ico
--------------------------------------------------------------------------------
/win32/cygwin1.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/win32/cygwin1.dll
--------------------------------------------------------------------------------
/debian/fix.scanned.copyright:
--------------------------------------------------------------------------------
1 | ! Files:"plugins/xmlformat/*" License short_name=GPL-2
2 |
3 |
--------------------------------------------------------------------------------
/debian/watch:
--------------------------------------------------------------------------------
1 | version=3
2 | https://github.com/mezomish/juffed/releases .*/([\d\.]+).tar.gz
--------------------------------------------------------------------------------
/plugins/doclist/install.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | cp ../libdoclist.so ~/.config/juff/plugins/
4 |
--------------------------------------------------------------------------------
/plugins/fm/go-up.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/fm/go-up.png
--------------------------------------------------------------------------------
/plugins/TODO:
--------------------------------------------------------------------------------
1 | DocListPlugin
2 | -------------
3 | * close button
4 | * moving items (?)
5 |
6 |
--------------------------------------------------------------------------------
/plugins/favorites/install.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | cp ../libfavorites.so ~/.config/juff/plugins/
4 |
--------------------------------------------------------------------------------
/plugins/fm/go-home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/fm/go-home.png
--------------------------------------------------------------------------------
/plugins/colorpicker/32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/colorpicker/32.png
--------------------------------------------------------------------------------
/plugins/colorpicker/64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/colorpicker/64.png
--------------------------------------------------------------------------------
/plugins/compare/meld.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/compare/meld.png
--------------------------------------------------------------------------------
/plugins/fm/folder-new.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/fm/folder-new.png
--------------------------------------------------------------------------------
/plugins/fm/go-current.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/fm/go-current.png
--------------------------------------------------------------------------------
/plugins/fm/go-previous.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/fm/go-previous.png
--------------------------------------------------------------------------------
/src/images/res/16/mac.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/res/16/mac.png
--------------------------------------------------------------------------------
/src/images/res/16/tux.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/res/16/tux.png
--------------------------------------------------------------------------------
/src/images/res/16/win.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/res/16/win.png
--------------------------------------------------------------------------------
/plugins/doclist/doc_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/doclist/doc_icon.png
--------------------------------------------------------------------------------
/plugins/fm/bookmark-new.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/fm/bookmark-new.png
--------------------------------------------------------------------------------
/plugins/fm/view-refresh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/fm/view-refresh.png
--------------------------------------------------------------------------------
/src/images/res/16/close.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/res/16/close.png
--------------------------------------------------------------------------------
/src/images/res/16/trash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/res/16/trash.png
--------------------------------------------------------------------------------
/plugins/doclist/edit-clear.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/doclist/edit-clear.png
--------------------------------------------------------------------------------
/plugins/xmlformat/xmlwrap.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/xmlformat/xmlwrap.png
--------------------------------------------------------------------------------
/src/images/icons/16/zoom-in.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/16/zoom-in.png
--------------------------------------------------------------------------------
/src/images/icons/24/zoom-in.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/24/zoom-in.png
--------------------------------------------------------------------------------
/src/images/icons/32/zoom-in.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/32/zoom-in.png
--------------------------------------------------------------------------------
/src/images/res/16/doc_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/res/16/doc_icon.png
--------------------------------------------------------------------------------
/src/images/res/16/find_next.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/res/16/find_next.png
--------------------------------------------------------------------------------
/src/images/res/16/find_prev.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/res/16/find_prev.png
--------------------------------------------------------------------------------
/src/images/res/32/juffed_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/res/32/juffed_32.png
--------------------------------------------------------------------------------
/src/images/res/48/juffed_48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/res/48/juffed_48.png
--------------------------------------------------------------------------------
/src/images/icons/16/edit-copy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/16/edit-copy.png
--------------------------------------------------------------------------------
/src/images/icons/16/edit-cut.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/16/edit-cut.png
--------------------------------------------------------------------------------
/src/images/icons/16/edit-find.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/16/edit-find.png
--------------------------------------------------------------------------------
/src/images/icons/16/edit-redo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/16/edit-redo.png
--------------------------------------------------------------------------------
/src/images/icons/16/edit-undo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/16/edit-undo.png
--------------------------------------------------------------------------------
/src/images/icons/16/zoom-out.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/16/zoom-out.png
--------------------------------------------------------------------------------
/src/images/icons/24/edit-copy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/24/edit-copy.png
--------------------------------------------------------------------------------
/src/images/icons/24/edit-cut.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/24/edit-cut.png
--------------------------------------------------------------------------------
/src/images/icons/24/edit-find.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/24/edit-find.png
--------------------------------------------------------------------------------
/src/images/icons/24/edit-redo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/24/edit-redo.png
--------------------------------------------------------------------------------
/src/images/icons/24/edit-undo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/24/edit-undo.png
--------------------------------------------------------------------------------
/src/images/icons/24/zoom-out.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/24/zoom-out.png
--------------------------------------------------------------------------------
/src/images/icons/32/edit-copy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/32/edit-copy.png
--------------------------------------------------------------------------------
/src/images/icons/32/edit-cut.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/32/edit-cut.png
--------------------------------------------------------------------------------
/src/images/icons/32/edit-find.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/32/edit-find.png
--------------------------------------------------------------------------------
/src/images/icons/32/edit-redo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/32/edit-redo.png
--------------------------------------------------------------------------------
/src/images/icons/32/edit-undo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/32/edit-undo.png
--------------------------------------------------------------------------------
/src/images/icons/32/zoom-out.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/32/zoom-out.png
--------------------------------------------------------------------------------
/src/images/mimetypes/text-xml.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/mimetypes/text-xml.png
--------------------------------------------------------------------------------
/src/images/res/16/arrow_left.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/res/16/arrow_left.png
--------------------------------------------------------------------------------
/src/images/res/16/arrow_right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/res/16/arrow_right.png
--------------------------------------------------------------------------------
/src/images/res/16/replace_all.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/res/16/replace_all.png
--------------------------------------------------------------------------------
/plugins/findinfiles/process-stop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/findinfiles/process-stop.png
--------------------------------------------------------------------------------
/src/images/icons/16/document-new.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/16/document-new.png
--------------------------------------------------------------------------------
/src/images/icons/16/edit-paste.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/16/edit-paste.png
--------------------------------------------------------------------------------
/src/images/icons/16/help-browser.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/16/help-browser.png
--------------------------------------------------------------------------------
/src/images/icons/16/view-refresh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/16/view-refresh.png
--------------------------------------------------------------------------------
/src/images/icons/24/document-new.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/24/document-new.png
--------------------------------------------------------------------------------
/src/images/icons/24/edit-paste.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/24/edit-paste.png
--------------------------------------------------------------------------------
/src/images/icons/24/help-browser.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/24/help-browser.png
--------------------------------------------------------------------------------
/src/images/icons/24/view-refresh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/24/view-refresh.png
--------------------------------------------------------------------------------
/src/images/icons/32/document-new.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/32/document-new.png
--------------------------------------------------------------------------------
/src/images/icons/32/edit-paste.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/32/edit-paste.png
--------------------------------------------------------------------------------
/src/images/icons/32/help-browser.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/32/help-browser.png
--------------------------------------------------------------------------------
/src/images/icons/32/view-refresh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/32/view-refresh.png
--------------------------------------------------------------------------------
/src/images/mimetypes/text-x-chdr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/mimetypes/text-x-chdr.png
--------------------------------------------------------------------------------
/src/images/mimetypes/text-x-java.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/mimetypes/text-x-java.png
--------------------------------------------------------------------------------
/src/images/res/16/doc_icon_red.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/res/16/doc_icon_red.png
--------------------------------------------------------------------------------
/src/images/res/16/doc_modified16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/res/16/doc_modified16.png
--------------------------------------------------------------------------------
/src/images/res/16/replace_next.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/res/16/replace_next.png
--------------------------------------------------------------------------------
/src/images/res/16/replace_prev.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/res/16/replace_prev.png
--------------------------------------------------------------------------------
/src/images/icons/16/document-open.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/16/document-open.png
--------------------------------------------------------------------------------
/src/images/icons/16/document-print.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/16/document-print.png
--------------------------------------------------------------------------------
/src/images/icons/16/document-save.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/16/document-save.png
--------------------------------------------------------------------------------
/src/images/icons/16/zoom-original.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/16/zoom-original.png
--------------------------------------------------------------------------------
/src/images/icons/24/document-open.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/24/document-open.png
--------------------------------------------------------------------------------
/src/images/icons/24/document-print.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/24/document-print.png
--------------------------------------------------------------------------------
/src/images/icons/24/document-save.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/24/document-save.png
--------------------------------------------------------------------------------
/src/images/icons/24/zoom-original.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/24/zoom-original.png
--------------------------------------------------------------------------------
/src/images/icons/32/document-open.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/32/document-open.png
--------------------------------------------------------------------------------
/src/images/icons/32/document-print.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/32/document-print.png
--------------------------------------------------------------------------------
/src/images/icons/32/document-save.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/32/document-save.png
--------------------------------------------------------------------------------
/src/images/icons/32/zoom-original.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/32/zoom-original.png
--------------------------------------------------------------------------------
/src/images/mimetypes/text-x-c++src.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/mimetypes/text-x-c++src.png
--------------------------------------------------------------------------------
/src/images/mimetypes/text-x-cmake.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/mimetypes/text-x-cmake.png
--------------------------------------------------------------------------------
/src/images/mimetypes/text-x-python.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/mimetypes/text-x-python.png
--------------------------------------------------------------------------------
/src/images/mimetypes/text-x-script.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/mimetypes/text-x-script.png
--------------------------------------------------------------------------------
/src/images/res/16/doc_icon_warning.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/res/16/doc_icon_warning.png
--------------------------------------------------------------------------------
/src/images/res/16/doc_unmodified16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/res/16/doc_unmodified16.png
--------------------------------------------------------------------------------
/src/images/icons/16/application-exit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/16/application-exit.png
--------------------------------------------------------------------------------
/src/images/icons/16/document-save-as.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/16/document-save-as.png
--------------------------------------------------------------------------------
/src/images/icons/16/edit-find-replace.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/16/edit-find-replace.png
--------------------------------------------------------------------------------
/src/images/icons/16/view-fullscreen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/16/view-fullscreen.png
--------------------------------------------------------------------------------
/src/images/icons/24/application-exit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/24/application-exit.png
--------------------------------------------------------------------------------
/src/images/icons/24/document-save-as.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/24/document-save-as.png
--------------------------------------------------------------------------------
/src/images/icons/24/edit-find-replace.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/24/edit-find-replace.png
--------------------------------------------------------------------------------
/src/images/icons/24/view-fullscreen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/24/view-fullscreen.png
--------------------------------------------------------------------------------
/src/images/icons/32/application-exit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/32/application-exit.png
--------------------------------------------------------------------------------
/src/images/icons/32/document-save-as.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/32/document-save-as.png
--------------------------------------------------------------------------------
/src/images/icons/32/edit-find-replace.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/32/edit-find-replace.png
--------------------------------------------------------------------------------
/src/images/icons/32/view-fullscreen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/32/view-fullscreen.png
--------------------------------------------------------------------------------
/src/images/mimetypes/text-x-generic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/mimetypes/text-x-generic.png
--------------------------------------------------------------------------------
/src/images/mimetypes/text-x-makefile.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/mimetypes/text-x-makefile.png
--------------------------------------------------------------------------------
/plugins/compare/compare.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | meld.png
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/images/icons/16/preferences-system.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/16/preferences-system.png
--------------------------------------------------------------------------------
/src/images/icons/24/preferences-system.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/24/preferences-system.png
--------------------------------------------------------------------------------
/src/images/icons/32/preferences-system.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/src/images/icons/32/preferences-system.png
--------------------------------------------------------------------------------
/plugins/symbolbrowser/symbols/images/class.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/symbolbrowser/symbols/images/class.png
--------------------------------------------------------------------------------
/plugins/symbolbrowser/symbols/images/enum.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/symbolbrowser/symbols/images/enum.png
--------------------------------------------------------------------------------
/plugins/symbolbrowser/symbols/images/func.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/symbolbrowser/symbols/images/func.png
--------------------------------------------------------------------------------
/plugins/symbolbrowser/symbols/images/macro.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/symbolbrowser/symbols/images/macro.png
--------------------------------------------------------------------------------
/plugins/symbolbrowser/symbols/images/slot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/symbolbrowser/symbols/images/slot.png
--------------------------------------------------------------------------------
/plugins/symbolbrowser/symbols/images/var.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/symbolbrowser/symbols/images/var.png
--------------------------------------------------------------------------------
/plugins/symbolbrowser/symbols/images/keyword.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/symbolbrowser/symbols/images/keyword.png
--------------------------------------------------------------------------------
/plugins/symbolbrowser/symbols/images/signal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/symbolbrowser/symbols/images/signal.png
--------------------------------------------------------------------------------
/plugins/xmlformat/xmlformat.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | xmlwrap.png
4 |
5 |
6 |
--------------------------------------------------------------------------------
/plugins/findinfiles/findinfiles.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | process-stop.png
4 |
5 |
6 |
--------------------------------------------------------------------------------
/plugins/symbolbrowser/symbols/images/enumerator.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/symbolbrowser/symbols/images/enumerator.png
--------------------------------------------------------------------------------
/plugins/symbolbrowser/symbols/images/func-proto.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/symbolbrowser/symbols/images/func-proto.png
--------------------------------------------------------------------------------
/plugins/symbolbrowser/symbols/images/func_priv.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/symbolbrowser/symbols/images/func_priv.png
--------------------------------------------------------------------------------
/plugins/symbolbrowser/symbols/images/func_prot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/symbolbrowser/symbols/images/func_prot.png
--------------------------------------------------------------------------------
/plugins/symbolbrowser/symbols/images/namespace.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/symbolbrowser/symbols/images/namespace.png
--------------------------------------------------------------------------------
/plugins/symbolbrowser/symbols/images/slot_priv.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/symbolbrowser/symbols/images/slot_priv.png
--------------------------------------------------------------------------------
/plugins/symbolbrowser/symbols/images/slot_prot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/symbolbrowser/symbols/images/slot_prot.png
--------------------------------------------------------------------------------
/plugins/symbolbrowser/symbols/images/var_priv.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/symbolbrowser/symbols/images/var_priv.png
--------------------------------------------------------------------------------
/plugins/symbolbrowser/symbols/images/var_prot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Mezomish/juffed/HEAD/plugins/symbolbrowser/symbols/images/var_prot.png
--------------------------------------------------------------------------------
/plugins/symbolbrowser/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | name="symbolbrowser"
4 |
5 | qmake && make && cp lib${name}.so ~/.config/juff/plugins/lib${name}.so && juffed
--------------------------------------------------------------------------------
/plugins/fm/INSTALL:
--------------------------------------------------------------------------------
1 | Compilation:
2 | $ qmake
3 | $ make
4 |
5 | Installation:
6 | $ mkdir ~/.config/juff/plugins
7 | $ cp ../libfm.so ~/.config/juffed/plugins/
8 |
--------------------------------------------------------------------------------
/plugins/doclist/INSTALL:
--------------------------------------------------------------------------------
1 | Compilation:
2 | $ qmake
3 | $ make
4 |
5 | Installation:
6 | $ mkdir ~/.config/juff/plugins
7 | $ cp ../libdoclist.so ~/.config/juffed/plugins/
8 |
--------------------------------------------------------------------------------
/plugins/favorites/INSTALL:
--------------------------------------------------------------------------------
1 | Compilation:
2 | $ qmake
3 | $ make
4 |
5 | Installation:
6 | $ mkdir ~/.config/juff/plugins
7 | $ cp ../libfavorites.so ~/.config/juffed/plugins/
8 |
--------------------------------------------------------------------------------
/plugins/colorpicker/colorpicker.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | 32.png
4 | 64.png
5 |
6 |
7 |
--------------------------------------------------------------------------------
/plugins/todolist/todolist.pro:
--------------------------------------------------------------------------------
1 | include(../juffed-plugins.pri)
2 |
3 | TARGET = todolist
4 |
5 | HEADERS = TODOList.h TODOParser.h
6 | SOURCES = TODOList.cpp TODOParser.cpp
7 |
--------------------------------------------------------------------------------
/plugins/doclist/doclistplugin.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | doc_icon.png
4 | edit-clear.png
5 |
6 |
7 |
--------------------------------------------------------------------------------
/debian/juffed.install:
--------------------------------------------------------------------------------
1 | usr/bin/juffed
2 | usr/share/pixmaps/juffed.png
3 | usr/share/applications/juffed.desktop
4 | usr/share/juffed/
5 |
6 | usr/lib/*/libjuff/libjuffed-engine-qsci.so.0.10
7 | usr/lib/*/libjuff/libjuff.so.0.10
8 |
9 |
--------------------------------------------------------------------------------
/plugins/doclist/doclist.pro:
--------------------------------------------------------------------------------
1 | include(../juffed-plugins.pri)
2 |
3 | TARGET = doclist
4 |
5 | HEADERS = DocListPlugin.h DocListPanel.h
6 | SOURCES = DocListPlugin.cpp DocListPanel.cpp
7 | RESOURCES = doclistplugin.qrc
8 |
--------------------------------------------------------------------------------
/plugins/favorites/favorites.pro:
--------------------------------------------------------------------------------
1 | include(../juffed-plugins.pri)
2 |
3 | TARGET = favorites
4 |
5 | HEADERS = FavoritesPlugin.h ManageDlg.h
6 | SOURCES = FavoritesPlugin.cpp ManageDlg.cpp
7 | FORMS = ManageDlg.ui
8 |
--------------------------------------------------------------------------------
/debian/.gitignore:
--------------------------------------------------------------------------------
1 | /*.debhelper.log
2 | /*.substvars
3 | /debhelper-build-stamp
4 | /files
5 |
6 | /.debhelper/
7 | /juffed-dev/
8 | /juffed-plugins/
9 | /juffed/
10 | /libjuff0.10/
11 | /libjuffed-engine-qsci0.10/
12 | /tmp/
13 |
--------------------------------------------------------------------------------
/plugins/fm/fm.pro:
--------------------------------------------------------------------------------
1 | include(../juffed-plugins.pri)
2 |
3 | TARGET = fm
4 |
5 | HEADERS = FMPlugin.h TreeView.h ManageDlg.h
6 | SOURCES = FMPlugin.cpp TreeView.cpp ManageDlg.cpp
7 | FORMS = ManageDlg.ui
8 | RESOURCES = fm.qrc
9 |
--------------------------------------------------------------------------------
/plugins/doclist/README:
--------------------------------------------------------------------------------
1 | DocListPlugin
2 | Documents list
3 |
4 | Allows to view all opened documents as a docked list.
5 |
6 | License:
7 | GPLv2 (see COPYING for details).
8 |
9 | Homepage:
10 | http://code.google.com/p/juffed-plugins/
11 |
12 |
--------------------------------------------------------------------------------
/example/example.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE = app
2 | INCLUDEPATH += . ../src/app/qsci ../include
3 | LIBS += -ljuffed-engine-qsci -ljuff
4 | SOURCES += example.cpp
5 |
6 | win32 {
7 | CONFIG += release
8 | CONFIG -= debug
9 | LIBS += -L.
10 | }
11 |
--------------------------------------------------------------------------------
/plugins/juffed-plugins.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE = subdirs
2 | CONFIG += ordered
3 | SUBDIRS = \
4 | doclist \
5 | favorites \
6 | # findinfiles \
7 | fm \
8 | # keybindings \
9 | symbolbrowser \
10 |
11 | !win32 {
12 | SUBDIRS += terminal
13 | }
14 |
15 |
--------------------------------------------------------------------------------
/plugins/favorites/README:
--------------------------------------------------------------------------------
1 | FavoritesPlugin
2 | Keeping your favorites
3 |
4 | Allows you to add files to favorites and easily reach them.
5 |
6 | License:
7 | GPLv2 (see COPYING for details).
8 |
9 | Homepage:
10 | http://code.google.com/p/juffed-plugins/
11 |
12 |
--------------------------------------------------------------------------------
/plugins/autosave/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # doclist
2 | set(autosave_SRC autosave.cpp)
3 |
4 | add_library(autosave SHARED ${autosave_SRC} ${autosave_UI})
5 | target_link_libraries(autosave ${JUFFED_LIBRARY} ${JUFF_QT_IMPORTED_TARGETS})
6 | install(TARGETS autosave DESTINATION ${JUFFED_PLUGINS_DIR})
7 |
--------------------------------------------------------------------------------
/plugins/fm/README:
--------------------------------------------------------------------------------
1 | FMPlugin
2 | Simple file manager
3 |
4 | Allows to navigate through your file system
5 | and open files without using a file open dialog.
6 |
7 | License:
8 | GPLv2 (see COPYING for details).
9 |
10 | Homepage:
11 | http://code.google.com/p/juffed-plugins/
12 |
13 |
--------------------------------------------------------------------------------
/plugins/findinfiles/findinfiles.pro:
--------------------------------------------------------------------------------
1 | include(../juffed-plugins.pri)
2 |
3 | TARGET = findinfiles
4 |
5 | HEADERS = FindInFilesPlugin.h SearchDlg.h FindWorker.h
6 | SOURCES = FindInFilesPlugin.cpp SearchDlg.cpp FindWorker.cpp
7 | FORMS = SearchDlg.ui
8 | RESOURCES = findinfiles.qrc
9 |
--------------------------------------------------------------------------------
/src/lib/SettingsPage.cpp:
--------------------------------------------------------------------------------
1 | #include "SettingsPage.h"
2 |
3 | #include "Log.h"
4 | #include "SettingsItem.h"
5 |
6 | SettingsPage::SettingsPage(QWidget* parent) : QWidget(parent) {
7 | }
8 |
9 | void SettingsPage::apply() {
10 | LOGGER;
11 | foreach (SettingsItem* item, items_)
12 | item->writeValue();
13 | }
14 |
--------------------------------------------------------------------------------
/plugins/compare/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # doclist
2 | set(compare_SRC compare.cpp)
3 |
4 | QT_ADD_RESOURCES(compare_RES compare.qrc)
5 |
6 | add_library(compare SHARED ${compare_SRC} ${compare_RES})
7 | target_link_libraries(compare ${JUFFED_LIBRARY} ${JUFF_QT_IMPORTED_TARGETS})
8 | install(TARGETS compare DESTINATION ${JUFFED_PLUGINS_DIR})
9 |
--------------------------------------------------------------------------------
/plugins/doclist/l10n/doclist_ru.ts:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | DocListPanel
6 |
7 | Documents
8 | Документы
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/plugins/sort/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # doclist
2 | set(sort_SRC sort.cpp QuickSettings.cpp)
3 |
4 | QT_WRAP_UI(sort_UI QuickSettings.ui)
5 |
6 | add_library(sortdocument SHARED ${sort_SRC} ${sort_UI})
7 | target_link_libraries(sortdocument ${JUFFED_LIBRARY} ${JUFF_QT_IMPORTED_TARGETS})
8 | install(TARGETS sortdocument DESTINATION ${JUFFED_PLUGINS_DIR})
9 |
--------------------------------------------------------------------------------
/plugins/keybindings/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # keybindings
2 | set(keys_SRC KeysPlugin.cpp KeysPage.cpp)
3 |
4 | QT_WRAP_UI(keys_UI KeysPage.ui)
5 |
6 | add_library(keybindings SHARED ${keys_SRC} ${keys_UI})
7 | target_link_libraries(keybindings ${JUFFED_LIBRARY} ${JUFF_QT_IMPORTED_TARGETS})
8 | install(TARGETS keybindings DESTINATION ${JUFFED_PLUGINS_DIR})
9 |
--------------------------------------------------------------------------------
/plugins/xmlformat/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # doclist
2 | set(xmlformat_SRC xmlformat.cpp)
3 |
4 | QT_ADD_RESOURCES(xmlformat_RES xmlformat.qrc)
5 |
6 | add_library(xmlformat SHARED ${xmlformat_SRC} ${xmlformat_RES})
7 | target_link_libraries(xmlformat ${JUFFED_LIBRARY} ${JUFF_QT_IMPORTED_TARGETS})
8 | install(TARGETS xmlformat DESTINATION ${JUFFED_PLUGINS_DIR})
9 |
--------------------------------------------------------------------------------
/plugins/todolist/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # todolist
2 | QT4_WRAP_CPP ( todolist_MOC TODOList.h TODOParser.h )
3 | set ( todolist_SRC TODOList.cpp TODOParser.cpp )
4 |
5 | add_library( todolist SHARED ${todolist_SRC} ${todolist_RES} ${todolist_MOC} )
6 | target_link_libraries(todolist ${JUFFED_LIBRARY} ${QT_LIBRARIES})
7 | install(TARGETS todolist DESTINATION ${JUFFED_PLUGINS_DIR})
8 |
--------------------------------------------------------------------------------
/hlschemes/makefile.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/plugins/doclist/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # doclist
2 | set (doclist_SRC
3 | DocListPlugin.cpp
4 | DocListPanel.cpp
5 | )
6 |
7 | QT_ADD_RESOURCES(doclist_RES doclistplugin.qrc)
8 |
9 | add_library(doclist SHARED ${doclist_SRC} ${doclist_RES})
10 | target_link_libraries(doclist ${JUFFED_LIBRARY} ${JUFF_QT_IMPORTED_TARGETS})
11 | install(TARGETS doclist DESTINATION ${JUFFED_PLUGINS_DIR})
12 |
--------------------------------------------------------------------------------
/plugins/fm/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # fm
2 |
3 | QT_ADD_RESOURCES(fm_RES fm.qrc)
4 | QT_WRAP_UI(fm_UI ManageDlg.ui)
5 |
6 | set(fm_SRC
7 | ManageDlg.cpp
8 | FMPlugin.cpp
9 | TreeView.cpp
10 | )
11 |
12 | add_library(fm SHARED ${fm_SRC} ${fm_RES} ${fm_UI})
13 | target_link_libraries(fm ${JUFFED_LIBRARY} ${JUFF_QT_IMPORTED_TARGETS})
14 | install(TARGETS fm DESTINATION ${JUFFED_PLUGINS_DIR})
15 |
--------------------------------------------------------------------------------
/plugins/favorites/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # favorites
2 | set(favorites_SRC
3 | ManageDlg.cpp
4 | FavoritesPlugin.cpp
5 | )
6 |
7 | QT_WRAP_UI(favorites_UI ManageDlg.ui)
8 |
9 | add_library(favorites SHARED ${favorites_SRC} ${favorites_UI})
10 | target_link_libraries(favorites ${JUFFED_LIBRARY} ${JUFF_QT_IMPORTED_TARGETS})
11 | install(TARGETS favorites DESTINATION ${JUFFED_PLUGINS_DIR})
12 |
13 |
--------------------------------------------------------------------------------
/hlschemes/xml.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/macosx/strip_bundle.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #
4 | # Usage: strip_bundle.sh path/to/directory arch-to-keep
5 | # Example: strip_bundle.sh ./release/TOra.app x86_64
6 | # will provide x86_64 only content of the MacOS directory in the same place
7 | #
8 |
9 | echo "Generating new single-architecture bundle for arch: $2"
10 | echo "Into: $1.$2 (rename required)"
11 |
12 | ditto --rsrc --arch $2 $1 $1.$2
13 |
14 |
--------------------------------------------------------------------------------
/plugins/sort/QuickSettings.h:
--------------------------------------------------------------------------------
1 | #ifndef __QUICK_SETT_H__
2 | #define __QUICK_SETT_H__
3 |
4 | #include "ui_QuickSettings.h"
5 |
6 | class JuffPlugin;
7 |
8 | class QuickSettings : public QDialog {
9 | Q_OBJECT
10 | public:
11 | QuickSettings(QWidget * parent = 0);
12 | Ui::QuickSettings ui;
13 |
14 | private slots:
15 | void close();
16 | void sortNow();
17 |
18 | private:
19 | };
20 |
21 | #endif
22 |
--------------------------------------------------------------------------------
/plugins/symbolbrowser/symbols/common.h:
--------------------------------------------------------------------------------
1 | #ifndef SYMBOLS_COMMON_H
2 | #define SYMBOLS_COMMON_H
3 |
4 | //#define DEBUG_TREE
5 |
6 | enum Language{
7 | LanguageUnknown,
8 |
9 | LanguageC,
10 | LanguageCpp,
11 | LanguageCsharp,
12 | LanguageJava,
13 | LanguageVera,
14 |
15 | LanguageMakefile,
16 | LanguagePython,
17 | LanguagePerl
18 | };
19 |
20 | #endif // SYMBOLS_COMMON_H
21 |
--------------------------------------------------------------------------------
/plugins/zencoding/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # ZenCoding
2 | set ( zen_SRC ZenCoding.cpp DocWrapper.cpp )
3 | QT4_WRAP_CPP ( zen_MOC ZenCoding.h DocWrapper.h )
4 | #QT4_AUTOMOC ( zen_MOC_SRC ZenCoding.cpp )
5 | add_library ( zencoding SHARED ${zen_SRC} ${zen_MOC} ${zen_MOC_SRC} )
6 | target_link_libraries ( zencoding ${JUFFED_LIBRARY} ${QT_LIBRARIES} QtScript )
7 |
8 | install ( TARGETS zencoding DESTINATION ${JUFFED_PLUGINS_DIR} )
9 |
--------------------------------------------------------------------------------
/hlschemes/batch.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/hlschemes/properties.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/plugins/fm/fm.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | go-previous.png
4 | go-up.png
5 | go-home.png
6 | go-current.png
7 | bookmark-new.png
8 | folder-new.png
9 |
10 |
11 |
--------------------------------------------------------------------------------
/plugins/python/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # python
2 |
3 | find_package ( PythonLibs REQUIRED)
4 | INCLUDE_DIRECTORIES ( ${PYTHON_INCLUDE_PATH} )
5 |
6 | set ( python_SRC PythonPlugin.cpp )
7 | QT4_WRAP_CPP ( python_MOC PythonPlugin.h )
8 | add_library ( python SHARED ${python_SRC} ${python_MOC} )
9 | target_link_libraries ( python ${JUFFED_LIBRARY} ${QT_LIBRARIES} ${PYTHON_LIBRARIES} )
10 | install ( TARGETS python DESTINATION ${JUFFED_PLUGINS_DIR} )
11 |
12 |
--------------------------------------------------------------------------------
/plugins/sort/QuickSettings.cpp:
--------------------------------------------------------------------------------
1 | #include "QuickSettings.h"
2 | #include
3 |
4 | QuickSettings::QuickSettings(QWidget *parent) : QDialog(parent) {
5 | ui.setupUi(this);
6 | connect(ui.closeBtn, SIGNAL(clicked()), this, SLOT(close()));
7 | connect(ui.sortBtn, SIGNAL(clicked()), this, SLOT(sortNow()));
8 | }
9 |
10 | void QuickSettings::close()
11 | {
12 | reject();
13 | }
14 |
15 | void QuickSettings::sortNow()
16 | {
17 | accept();
18 | }
--------------------------------------------------------------------------------
/hlschemes/diff.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/plugins/fm/ManageDlg.h:
--------------------------------------------------------------------------------
1 | #ifndef __MANAGE_DLG_H__
2 | #define __MANAGE_DLG_H__
3 |
4 | #include "ui_ManageDlg.h"
5 |
6 | class JuffPlugin;
7 |
8 | class ManageDlg : public QDialog {
9 | Q_OBJECT
10 | public:
11 | ManageDlg(QWidget*, JuffPlugin*);
12 |
13 | private slots:
14 | void deleteItem();
15 | void close();
16 |
17 | private:
18 | Ui::ManageDlg ui;
19 | QStringList favorites_;
20 | JuffPlugin* plugin_;
21 | };
22 |
23 | #endif /* __MANAGE_DLG_H__ */
24 |
--------------------------------------------------------------------------------
/debian/README.debian:
--------------------------------------------------------------------------------
1 | Preparing a snapshot tar-ball
2 | =============================
3 |
4 | git clone git://github.com/mezomish/juffed upstream
5 |
6 | cd upstream
7 | version=$(git describe)
8 | rm -rf .git*
9 | rm make_tarball.sh
10 | rm pack.bat
11 | rm -rf debian.in
12 | rm -rf win32
13 | cd ..
14 |
15 | mv upstream $version
16 |
17 | tar cfvJ juffed_$ver.orig.tar.xz $version
18 |
19 | -- Alf Gaida Sat, 02 Jul 2016 22:20:10 +0200
20 |
--------------------------------------------------------------------------------
/plugins/favorites/ManageDlg.h:
--------------------------------------------------------------------------------
1 | #ifndef __MANAGE_DLG_H__
2 | #define __MANAGE_DLG_H__
3 |
4 | #include "ui_ManageDlg.h"
5 |
6 | class JuffPlugin;
7 |
8 | class ManageDlg : public QDialog {
9 | Q_OBJECT
10 | public:
11 | ManageDlg(QWidget*, JuffPlugin*);
12 |
13 | private slots:
14 | void deleteItem();
15 | void close();
16 |
17 | private:
18 | Ui::ManageDlg ui;
19 | QStringList favorites_;
20 | JuffPlugin* plugin_;
21 | };
22 |
23 | #endif /* __MANAGE_DLG_H__ */
24 |
--------------------------------------------------------------------------------
/debian/copyright-scan-patterns.yml:
--------------------------------------------------------------------------------
1 | check:
2 | suffixes:
3 | - asm
4 | - cmake
5 | ignore:
6 | pattern:
7 | - /base_version
8 | - /version
9 | - /debian/
10 | - /ChangeLog
11 | - /COPYING
12 | - /INSTALL
13 | - /README
14 | - /TODO
15 | suffixes:
16 | - api
17 | - desktop
18 | - diff
19 | - in
20 | - icns
21 | - ico
22 | - jpg
23 | - moc
24 | - png
25 | - pri
26 | - pro
27 | - qrc
28 | - rc
29 | - spec
30 | - ts
31 | - txt
32 | - ui
33 | - xml
34 |
--------------------------------------------------------------------------------
/plugins/colorpicker/ColorFormatDlg.h:
--------------------------------------------------------------------------------
1 | #ifndef __COLOR_FORMAT_DLG_H__
2 | #define __COLOR_FORMAT_DLG_H__
3 |
4 | class JuffPlugin;
5 |
6 | #include
7 |
8 | #include "ui_ColorFormatDlg.h"
9 |
10 | class ColorFormatDlg : public QDialog {
11 | Q_OBJECT
12 | public:
13 | ColorFormatDlg(JuffPlugin* plugin, const QColor&, QWidget * parent = 0);
14 | QString colorStr() const;
15 |
16 | private:
17 | Ui::ColorFormatDlg _ui;
18 | JuffPlugin* _plugin;
19 | };
20 |
21 | #endif // __COLOR_FORMAT_DLG_H__
22 |
--------------------------------------------------------------------------------
/include/SettingsPage.h:
--------------------------------------------------------------------------------
1 | #ifndef __JUFFED_SETTINGS_PAGE_H__
2 | #define __JUFFED_SETTINGS_PAGE_H__
3 |
4 | #include "LibConfig.h"
5 |
6 | class SettingsItem;
7 |
8 | #include
9 |
10 | class LIBJUFF_EXPORT SettingsPage : public QWidget {
11 | Q_OBJECT
12 | public:
13 | SettingsPage(QWidget*);
14 | virtual ~SettingsPage() {}
15 |
16 | virtual void init() = 0;
17 | virtual void apply();
18 |
19 | protected:
20 | QList items_;
21 | };
22 |
23 | #endif // __JUFFED_SETTINGS_PAGE_H__
24 |
--------------------------------------------------------------------------------
/plugins/findinfiles/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # findinfiles
2 |
3 | set(findinfiles_SRC
4 | FindInFilesPlugin.cpp
5 | FindWorker.cpp
6 | SearchDlg.cpp
7 | )
8 |
9 | QT_WRAP_UI(findinfiles_UI SearchDlg.ui)
10 | QT_ADD_RESOURCES(findinfiles_RES findinfiles.qrc)
11 |
12 | add_library(findinfiles SHARED ${findinfiles_SRC} ${findinfiles_RES} ${findinfiles_UI})
13 | target_link_libraries(findinfiles ${JUFFED_LIBRARY} ${JUFF_QT_IMPORTED_TARGETS})
14 | install(TARGETS findinfiles DESTINATION ${JUFFED_PLUGINS_DIR})
15 |
--------------------------------------------------------------------------------
/hlschemes/sql.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/include/Utils.h:
--------------------------------------------------------------------------------
1 | #ifndef __JUFFED_UTILS_H__
2 | #define __JUFFED_UTILS_H__
3 |
4 | #include "CommandStorageInt.h"
5 | #include "IconManagerInt.h"
6 | #include "LibConfig.h"
7 |
8 | namespace Juff {
9 |
10 | class LIBJUFF_EXPORT Utils {
11 | public:
12 | static CommandStorageInt* commandStorage();
13 | static IconManagerInt* iconManager();
14 |
15 | private:
16 | static CommandStorageInt* commandStorage_;
17 | static IconManagerInt* iconManager_;
18 | };
19 |
20 | } // namespace Juff
21 |
22 | #endif // __JUFFED_UTILS_H__
23 |
--------------------------------------------------------------------------------
/plugins/colorpicker/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # colorpicker
2 | set( colorpicker_SRC
3 | ColorPickerPlugin.cpp
4 | ColorFormatDlg.cpp
5 | )
6 |
7 | QT_ADD_RESOURCES( colorpicker_RES colorpicker.qrc )
8 | QT_WRAP_UI( colorpicker_UI ColorFormatDlg.ui)
9 |
10 | add_library( colorpicker SHARED
11 | ${colorpicker_SRC}
12 | ${colorpicker_RES}
13 | ${colorpicker_UI}
14 | )
15 |
16 | target_link_libraries( colorpicker
17 | ${JUFFED_LIBRARY}
18 | ${JUFF_QT_IMPORTED_TARGETS}
19 | )
20 |
21 | install( TARGETS colorpicker DESTINATION ${JUFFED_PLUGINS_DIR} )
22 |
--------------------------------------------------------------------------------
/hlschemes/java.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/include/LibConfig.h:
--------------------------------------------------------------------------------
1 |
2 | // For some freaking reason neither of Q_OS_WIN32 or Q_WS_WIN worked here
3 | // for me so I had to introduce an extra "__SPECIAL_WINDOWS_DEFINE__"
4 | // that is set in CMakeLists.txt for Windows only.
5 | // We don't need those defines for *nix systems so it's just empty for them.
6 |
7 | //#ifdef Q_WS_WIN
8 | //#ifdef Q_OS_WIN32
9 |
10 | #ifdef __SPECIAL_WINDOWS_DEFINE__
11 |
12 | #ifdef juff_EXPORTS
13 | #define LIBJUFF_EXPORT Q_DECL_EXPORT
14 | #else
15 | #define LIBJUFF_EXPORT Q_DECL_IMPORT
16 | #endif
17 |
18 | #else
19 |
20 | #define LIBJUFF_EXPORT
21 |
22 | #endif
23 |
--------------------------------------------------------------------------------
/hlschemes/javascript.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/src/lib/Utils.cpp:
--------------------------------------------------------------------------------
1 | #include "Utils.h"
2 |
3 | #include "CommandStorage.h"
4 | #include "IconManager.h"
5 |
6 | namespace Juff {
7 |
8 | CommandStorageInt* Utils::commandStorage_ = NULL;
9 | IconManagerInt* Utils::iconManager_ = NULL;
10 |
11 | CommandStorageInt* Utils::commandStorage() {
12 | if ( commandStorage_ == NULL ) {
13 | commandStorage_ = new CommandStorage(iconManager());
14 | }
15 | return commandStorage_;
16 | }
17 |
18 | IconManagerInt* Utils::iconManager() {
19 | if ( iconManager_ == NULL ) {
20 | iconManager_ = new IconManager();
21 | }
22 | return iconManager_;
23 | }
24 |
25 | } // namespace Juff
26 |
--------------------------------------------------------------------------------
/hlschemes/bash.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/plugins/fm/TreeView.h:
--------------------------------------------------------------------------------
1 | #ifndef _FM_TREE_VIEW_H_
2 | #define _FM_TREE_VIEW_H_
3 |
4 | class JuffPlugin;
5 | class QMenu;
6 |
7 | #include
8 |
9 | class TreeView : public QTreeView {
10 | Q_OBJECT
11 | public:
12 | TreeView(JuffPlugin*, QWidget* parent = 0);
13 | void initMenu();
14 |
15 | signals:
16 | void goUp();
17 |
18 | protected:
19 | virtual void keyPressEvent(QKeyEvent* e);
20 | virtual bool eventFilter(QObject *obj, QEvent *event);
21 |
22 | protected slots:
23 | void showHideColumn();
24 |
25 | private:
26 | void renameCurrent();
27 |
28 | JuffPlugin* plugin_;
29 | QMenu* headerMenu_;
30 | };
31 |
32 | #endif
33 |
--------------------------------------------------------------------------------
/hlschemes/cplusplus.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/include/IconManagerInt.h:
--------------------------------------------------------------------------------
1 | #ifndef __JUFFED_ICON_MANAGER_INTERFACE_H__
2 | #define __JUFFED_ICON_MANAGER_INTERFACE_H__
3 |
4 | #include
5 |
6 | class IconManagerInt {
7 | public:
8 | virtual ~IconManagerInt() {}
9 | /**
10 | * Returns an icon of the current icon theme and the current size
11 | * for the specified \param key. If the current theme doesn't contain
12 | * an appropriate icon then returns a built-in icon (from "" theme).
13 | * If there is no default icon the returns an empty icon QIcon().
14 | */
15 | virtual QIcon icon(const QString& key) const = 0;
16 | };
17 |
18 | #endif // __JUFFED_ICON_MANAGER_INTERFACE_H__
19 |
--------------------------------------------------------------------------------
/plugins/todolist/TODOParser.h:
--------------------------------------------------------------------------------
1 | #ifndef __TODO_PLUGIN_PARSER_H__
2 | #define __TODO_PLUGIN_PARSER_H__
3 |
4 | #include
5 | #include
6 | #include
7 |
8 | class TODOParser : public QThread {
9 | Q_OBJECT
10 | public:
11 | TODOParser();
12 | virtual ~TODOParser();
13 |
14 | void launch(const QString&);
15 | void cancel();
16 |
17 | signals:
18 | void itemFound(const QString&, int, int, const QColor&);
19 |
20 | protected:
21 | virtual void run();
22 |
23 | bool cancelled_;
24 | QStringList lines_;
25 | QStringList keywords_;
26 | QMap colors_;
27 | };
28 |
29 | #endif // __TODO_PLUGIN_PARSER_H__
30 |
--------------------------------------------------------------------------------
/src/app/qsci/QSciLibConfig.h:
--------------------------------------------------------------------------------
1 |
2 | // For some freaking reason neither of Q_OS_WIN32 or Q_WS_WIN worked here
3 | // for me so I had to introduce an extra "__SPECIAL_WINDOWS_DEFINE__"
4 | // that is set in CMakeLists.txt for Windows only.
5 | // We don't need those defines for *nix systems so it's just empty for them.
6 |
7 | //#ifdef Q_WS_WIN
8 | //#ifdef Q_OS_WIN32
9 |
10 | #ifdef __SPECIAL_WINDOWS_DEFINE__
11 |
12 | #ifdef juffed_engine_qsci_EXPORTS
13 | #define QSCI_ENGINE_EXPORT Q_DECL_EXPORT
14 | #else
15 | #define QSCI_ENGINE_EXPORT Q_DECL_IMPORT
16 | #endif
17 |
18 | #else
19 |
20 | #define QSCI_ENGINE_EXPORT
21 |
22 | #endif
23 |
--------------------------------------------------------------------------------
/plugins/symbolbrowser/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # symbolbrowser
2 |
3 | set(symbolbrowser_SRC
4 | symbols/docsymbols.cpp
5 | symbols/parsers/keyword.cpp
6 | symbols/parsers/parserex.cpp
7 | symbols/parsers/vstring.cpp
8 | symbols/parsers/parser.cpp
9 | symbols/symboltreeview.cpp
10 | symbols/parserthread.cpp
11 | symbols/symbol.cpp
12 | SymbolBrowser.cpp
13 | )
14 |
15 | QT_ADD_RESOURCES(symbolbrowser_RES symbols/symbols.qrc)
16 |
17 | add_library(symbolbrowser SHARED ${symbolbrowser_SRC} ${symbolbrowser_RES})
18 | target_link_libraries(symbolbrowser ${JUFFED_LIBRARY} ${JUFF_QT_IMPORTED_TARGETS})
19 | install(TARGETS symbolbrowser DESTINATION ${JUFFED_PLUGINS_DIR})
20 |
--------------------------------------------------------------------------------
/plugins/keybindings/KeysPage.h:
--------------------------------------------------------------------------------
1 | #ifndef __KEYS_PAGE_H__
2 | #define __KEYS_PAGE_H__
3 |
4 | #include
5 |
6 | #include "ui_KeysPage.h"
7 | #include "CommandStorageInt.h"
8 |
9 | class KeysPage : public QWidget {
10 | Q_OBJECT
11 | public:
12 | KeysPage(CommandStorageInt*);
13 |
14 | void init();
15 | void apply();
16 |
17 | protected:
18 | virtual void keyPressEvent(QKeyEvent*);
19 |
20 | private slots:
21 | void onItemDoubleClicked(QTreeWidgetItem*, int);
22 |
23 | private:
24 | void restore();
25 |
26 | Ui::KeysPage ui;
27 | QTreeWidgetItem* cur_;
28 | QString oldText_;
29 | QList changedItems_;
30 | CommandStorageInt* storage_;
31 | };
32 |
33 | #endif /* __KEYS_PAGE_H__ */
34 |
--------------------------------------------------------------------------------
/hlschemes/fortran.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/hlschemes/python.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/src/app/qsci/lexers/my/QsciLexerMatlab.h:
--------------------------------------------------------------------------------
1 | #ifndef __JUFFED_LEXER_MATLAB_H__
2 | #define __JUFFED_LEXER_MATLAB_H__
3 |
4 | #include
5 |
6 | class QsciLexerMatlab : public QsciLexer {
7 | Q_OBJECT
8 | public:
9 | enum {
10 | Default,
11 | Comment,
12 | Command,
13 | Number,
14 | Keyword,
15 | String,
16 | Operator,
17 | Identifier,
18 | DoubleQuotedString,
19 | };
20 |
21 | QsciLexerMatlab(QObject *parent = 0);
22 | virtual ~QsciLexerMatlab() {}
23 |
24 | const char *language() const { return "Matlab"; }
25 | const char *lexer() const { return "matlab"; }
26 |
27 | const char *keywords(int set) const;
28 | QString description(int style) const;
29 | QColor defaultColor(int style) const;
30 | };
31 |
32 | #endif // __JUFFED_LEXER_MATLAB_H__
33 |
--------------------------------------------------------------------------------
/debian/rules:
--------------------------------------------------------------------------------
1 | #!/usr/bin/make -f
2 | # DH_VERBOSE=1
3 |
4 | export USE_QT6=true
5 | export USE_QT5=false
6 | export USE_SYSTEM_SINGLETON=false
7 | export USE_ENCA=true
8 | export LC_ALL=C.UTF-8
9 |
10 | INST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
11 |
12 | export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
13 | export DEB_BUILD_MAINT_OPTIONS = hardening=+all
14 |
15 | %:
16 | dh ${@} --buildsystem cmake \
17 | --builddirectory=./build
18 |
19 | override_dh_missing:
20 | dh_missing --fail-missing
21 |
22 | override_dh_auto_configure:
23 | dh_auto_configure -- \
24 | -DLIB_SUFFIX=/$(INST_ARCH)/libjuff \
25 | -DCMAKE_INSTALL_RPATH="/usr/lib/$(INST_ARCH)/libjuff" \
26 | -DCMAKE_BUILD_TYPE=RelWithDebInfo
27 |
28 | override_dh_makeshlibs:
29 | dh_makeshlibs --no-scripts
30 |
--------------------------------------------------------------------------------
/plugins/juffed-plugins.pri:
--------------------------------------------------------------------------------
1 | # Some common variables for all plugins.
2 | # This file needs to be included
3 |
4 | unix {
5 | isEmpty(LIB_SUFFIX) {
6 | # HARDWARE_PLATFORM = $$system(uname -m)
7 | # contains( HARDWARE_PLATFORM, 64 ) {
8 | contains(QMAKE_HOST.arch, x86_64) {
9 | # 64-bit
10 | LIB_SUFFIX=64
11 | }
12 | }
13 | }
14 |
15 | isEmpty(PREFIX) {
16 | PREFIX = /usr
17 | }
18 |
19 | LIBS -= -L$${PREFIX}/lib
20 | LIBS += -L$${PREFIX}/lib$${LIB_SUFFIX} -ljuff
21 | INCLUDEPATH += $${PREFIX}/include/
22 | INCLUDEPATH += $${PREFIX}/include/juffed
23 |
24 | target.path = $${PREFIX}/lib$${LIB_SUFFIX}/juffed/plugins
25 | INSTALLS += target
26 |
27 | DEFINES += JUFF_DEBUG
28 |
29 |
30 | TEMPLATE = lib
31 | CONFIG += plugin
32 | DESTDIR = ..
33 | #CONFIG += release
34 |
--------------------------------------------------------------------------------
/hlschemes/cmake.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/plugins/keybindings/KeysPlugin.h:
--------------------------------------------------------------------------------
1 | #ifndef _KEYS_PLUGIN_H_
2 | #define _KEYS_PLUGIN_H_
3 |
4 | class KeysPage;
5 |
6 | #include
7 |
8 | #include "JuffPlugin.h"
9 |
10 | class KeysPlugin : public QObject, public JuffPlugin {
11 | Q_OBJECT
12 | #if QT_VERSION >= 0x050000
13 | Q_PLUGIN_METADATA(IID JuffPlugin_iid)
14 | #endif
15 | Q_INTERFACES(JuffPlugin)
16 | public:
17 | KeysPlugin();
18 | virtual ~KeysPlugin();
19 |
20 | // info
21 | virtual QString name() const;
22 | virtual QString title() const;
23 | virtual QString description() const;
24 | virtual QString targetEngine() const;
25 |
26 | virtual void init();
27 | virtual void allPluginsLoaded();
28 |
29 | // controls
30 | virtual QWidget* settingsPage() const;
31 | virtual void applySettings();
32 |
33 | private:
34 | KeysPage* w_;
35 | };
36 |
37 | #endif
38 |
--------------------------------------------------------------------------------
/plugins/terminal/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # terminal
2 | set (terminal_SRC TerminalPlugin.cpp)
3 | set (terminal_UI preferences.ui)
4 |
5 | if (USE_QT6)
6 | find_package ( QTermWidget6 REQUIRED )
7 | qt6_wrap_ui(terminal_UI_SRC ${terminal_UI})
8 | set(qtermwidget_lib "qtermwidget6")
9 | elseif (USE_QT5)
10 | find_package ( QTermWidget5 REQUIRED )
11 | qt5_wrap_ui(terminal_UI_SRC ${terminal_UI})
12 | set(qtermwidget_lib "qtermwidget5")
13 | else (USE_QT5)
14 | find_package ( QTermWidget4 REQUIRED )
15 | qt4_wrap_ui(terminal_UI_SRC ${terminal_UI})
16 | set(qtermwidget_lib "qtermwidget4")
17 | endif (USE_QT5)
18 |
19 | add_library(terminal SHARED ${terminal_SRC} ${terminal_MOC} ${terminal_UI_SRC})
20 | target_link_libraries(terminal ${JUFFED_LIBRARY} ${qtermwidget_lib})
21 | install(TARGETS terminal DESTINATION ${JUFFED_PLUGINS_DIR})
22 |
--------------------------------------------------------------------------------
/plugins/colorpicker/ColorPickerPlugin.h:
--------------------------------------------------------------------------------
1 | #ifndef _COLOR_PICKER_PLUGIN_H_
2 | #define _COLOR_PICKER_PLUGIN_H_
3 |
4 | #include
5 |
6 | #include
7 |
8 | class ColorPickerPlugin : public QObject, public JuffPlugin {
9 | Q_OBJECT
10 | #if QT_VERSION >= 0x050000
11 | Q_PLUGIN_METADATA(IID JuffPlugin_iid)
12 | #endif
13 | Q_INTERFACES(JuffPlugin)
14 | public:
15 | ColorPickerPlugin();
16 | virtual ~ColorPickerPlugin();
17 |
18 | virtual QString name() const;
19 | virtual QString title() const;
20 | virtual QString description() const;
21 | virtual QString targetEngine() const;
22 |
23 | virtual QToolBar* toolBar() const;
24 | virtual Juff::ActionList mainMenuActions(Juff::MenuID) const;
25 |
26 | private slots:
27 | void pickColor();
28 |
29 | private:
30 | QToolBar* _toolBar;
31 | QAction* _pickColorAct;
32 | };
33 |
34 | #endif
35 |
--------------------------------------------------------------------------------
/plugins/zencoding/ZenCoding.h:
--------------------------------------------------------------------------------
1 | #ifndef __ZEN_CODING_PLUGIN_H__
2 | #define __ZEN_CODING_PLUGIN_H__
3 |
4 | #include
5 | #include
6 |
7 | #include "JuffPlugin.h"
8 |
9 | namespace Juff {
10 | class Document;
11 | }
12 |
13 | class DocWrapper;
14 |
15 | class ZenCoding : public QObject, public JuffPlugin {
16 | Q_OBJECT
17 | Q_INTERFACES(JuffPlugin)
18 |
19 | public:
20 | ZenCoding();
21 | virtual ~ZenCoding();
22 | void init();
23 |
24 | QString name() const;
25 | QString description() const;
26 | QString targetEngine() const;
27 |
28 | Juff::ActionList mainMenuActions(Juff::MenuID) const;
29 |
30 | public slots:
31 | void expandAbbr();
32 | void onDocActivated(Juff::Document*);
33 |
34 | private:
35 | QAction* expandAct_;
36 | QScriptEngine engine_;
37 | DocWrapper* docWrapper_;
38 | };
39 |
40 | #endif // __ZEN_CODING_PLUGIN_H__
41 |
--------------------------------------------------------------------------------
/hlschemes/html.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/plugins/fm/ManageDlg.cpp:
--------------------------------------------------------------------------------
1 | #include "ManageDlg.h"
2 |
3 | #include
4 | #include
5 |
6 | ManageDlg::ManageDlg(QWidget* parent, JuffPlugin* plugin) : QDialog(parent), plugin_(plugin) {
7 | ui.setupUi(this);
8 | QString str = PluginSettings::getString(plugin, "favorites");
9 | if ( !str.isEmpty() )
10 | favorites_ = str.split(";");
11 |
12 | ui.favoritesList->addItems(favorites_);
13 |
14 | connect(ui.deleteBtn, SIGNAL(clicked()), SLOT(deleteItem()));
15 | connect(ui.closeBtn, SIGNAL(clicked()), SLOT(close()));
16 | }
17 |
18 | void ManageDlg::deleteItem() {
19 | QListWidgetItem* item = ui.favoritesList->currentItem();
20 | if ( NULL != item ) {
21 | QString text = item->text();
22 | favorites_.removeAll(text);
23 | delete item;
24 | }
25 | }
26 |
27 | void ManageDlg::close() {
28 | PluginSettings::set(plugin_, "favorites", favorites_.join(";"));
29 | accept();
30 | }
31 |
--------------------------------------------------------------------------------
/plugins/favorites/ManageDlg.cpp:
--------------------------------------------------------------------------------
1 | #include "ManageDlg.h"
2 |
3 | #include
4 | #include
5 |
6 | ManageDlg::ManageDlg(QWidget* parent, JuffPlugin* plugin) : QDialog(parent), plugin_(plugin) {
7 | ui.setupUi(this);
8 | QString str = PluginSettings::getString(plugin, "favorites");
9 | if ( !str.isEmpty() )
10 | favorites_ = str.split(";");
11 |
12 | ui.favoritesList->addItems(favorites_);
13 |
14 | connect(ui.deleteBtn, SIGNAL(clicked()), SLOT(deleteItem()));
15 | connect(ui.closeBtn, SIGNAL(clicked()), SLOT(close()));
16 | }
17 |
18 | void ManageDlg::deleteItem() {
19 | QListWidgetItem* item = ui.favoritesList->currentItem();
20 | if ( NULL != item ) {
21 | QString text = item->text();
22 | favorites_.removeAll(text);
23 | delete item;
24 | }
25 | }
26 |
27 | void ManageDlg::close() {
28 | PluginSettings::set(plugin_, "favorites", favorites_.join(";"));
29 | accept();
30 | }
31 |
--------------------------------------------------------------------------------
/plugins/findinfiles/SearchDlg.h:
--------------------------------------------------------------------------------
1 | #ifndef __SEARCH_DLG_H__
2 | #define __SEARCH_DLG_H__
3 |
4 | #include "ui_SearchDlg.h"
5 |
6 | class QFileSystemModel;
7 |
8 |
9 | class SearchDlg : public QDialog {
10 | Q_OBJECT
11 | public:
12 | SearchDlg(QWidget*);
13 |
14 | // getters
15 | QString findText() const;
16 | QString startDir() const;
17 | bool searchInFiles() const;
18 | bool recursive() const;
19 | QString filePatterns() const;
20 | int patternVariant() const;
21 |
22 | // setters
23 | void setFindText (const QString&);
24 | void setStartDir (const QString&);
25 | void setSearchInFiles (bool);
26 | void setRecursive (bool);
27 | void setFilePatterns (const QString&);
28 | void setPatternVariant(int);
29 |
30 | private slots:
31 | void slotBrowse();
32 |
33 | private:
34 | Ui::SearchDlg ui;
35 | QFileSystemModel *model;
36 | };
37 |
38 | #endif /* __SEARCH_DLG_H__ */
39 |
--------------------------------------------------------------------------------
/plugins/favorites/FavoritesPlugin.h:
--------------------------------------------------------------------------------
1 | #ifndef _FAVORITES_PLUGIN_H_
2 | #define _FAVORITES_PLUGIN_H_
3 |
4 | #include
5 |
6 | #include
7 |
8 | class FavoritesPlugin : public QObject, public JuffPlugin {
9 | Q_OBJECT
10 | #if QT_VERSION >= 0x050000
11 | Q_PLUGIN_METADATA(IID JuffPlugin_iid)
12 | #endif
13 | Q_INTERFACES(JuffPlugin)
14 | public:
15 | FavoritesPlugin();
16 | virtual ~FavoritesPlugin();
17 |
18 | // info
19 | virtual QString name() const;
20 | virtual QString title() const;
21 | virtual QString description() const;
22 | virtual QString targetEngine() const;
23 |
24 | virtual QMenu* menu() const;
25 |
26 | private slots:
27 | void addCurrent();
28 | void manageFavorites();
29 | void openFavorite();
30 |
31 | private:
32 | void load();
33 | void save();
34 | void initMenu();
35 |
36 | QStringList favorites_;
37 | QMenu* menu_;
38 | QAction* addAct_;
39 | QAction* manageAct_;
40 | };
41 |
42 | #endif
43 |
--------------------------------------------------------------------------------
/plugins/symbolbrowser/symbolbrowser.pro:
--------------------------------------------------------------------------------
1 | include(../juffed-plugins.pri)
2 |
3 | TARGET = symbolbrowser
4 |
5 | QMAKE_CXXFLAGS = -g -O0
6 |
7 | HEADERS = SymbolBrowser.h \
8 | symbols/symbol.h \
9 | symbols/docsymbols.h \
10 | symbols/common.h \
11 | symbols/parserthread.h \
12 | symbols/parsers/vstring.h \
13 | symbols/parsers/parser.h \
14 | symbols/parsers/parserex.h \
15 | symbols/parsers/keyword.h \
16 | symbols/symboltreeview.h
17 |
18 | SOURCES = SymbolBrowser.cpp \
19 | symbols/symbol.cpp \
20 | symbols/docsymbols.cpp \
21 | symbols/parsers/parser_cpp.cpp \
22 | symbols/parsers/parser_python.cpp \
23 | symbols/parsers/parser_perl.cpp \
24 | symbols/parserthread.cpp \
25 | symbols/parsers/vstring.cpp \
26 | symbols/parsers/parser.cpp \
27 | symbols/parsers/parserex.cpp \
28 | symbols/parsers/keyword.cpp \
29 | symbols/symboltreeview.cpp
30 |
31 | RESOURCES += symbols/symbols.qrc
32 |
--------------------------------------------------------------------------------
/src/lib/PluginNotifier.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #include "PluginNotifier.h"
20 |
21 | namespace Juff {
22 |
23 | PluginNotifier::PluginNotifier() : QObject() {
24 | }
25 |
26 | PluginNotifier::~PluginNotifier() {
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/cmake/cmake_uninstall.cmake.in:
--------------------------------------------------------------------------------
1 | IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
2 | MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"")
3 | ENDIF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
4 |
5 | FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
6 | STRING(REGEX REPLACE "\n" ";" files "${files}")
7 | FOREACH(file ${files})
8 | MESSAGE(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
9 | IF(EXISTS "$ENV{DESTDIR}${file}")
10 | EXEC_PROGRAM(
11 | "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
12 | OUTPUT_VARIABLE rm_out
13 | RETURN_VALUE rm_retval
14 | )
15 | IF(NOT "${rm_retval}" STREQUAL 0)
16 | MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"")
17 | ENDIF(NOT "${rm_retval}" STREQUAL 0)
18 | ELSE(EXISTS "$ENV{DESTDIR}${file}")
19 | MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.")
20 | ENDIF(EXISTS "$ENV{DESTDIR}${file}")
21 | ENDFOREACH(file)
22 |
23 |
--------------------------------------------------------------------------------
/apis/vhdl.api:
--------------------------------------------------------------------------------
1 | abs
2 | access
3 | add
4 | after
5 | alias
6 | all
7 | and
8 | architecture
9 | array
10 | assert
11 | attribute
12 | begin
13 | block
14 | body
15 | buffer
16 | bus
17 | case
18 | component
19 | configuration
20 | constant
21 | downto
22 | else
23 | elsif
24 | end
25 | entity
26 | error
27 | exit
28 | for
29 | file
30 | function
31 | generate
32 | generic
33 | group
34 | if
35 | in
36 | inout
37 | inertial
38 | impure
39 | is
40 | label
41 | library
42 | loop
43 | map
44 | mod
45 | nand
46 | next
47 | nor
48 | not
49 | null
50 | of
51 | on
52 | or
53 | others
54 | out
55 | package
56 | port
57 | procedure
58 | process
59 | pure
60 | range
61 | record
62 | reject
63 | rem
64 | report
65 | register
66 | return
67 | rol
68 | ror
69 | select
70 | severity
71 | signal
72 | sla
73 | sll
74 | sra
75 | srl
76 | subtype
77 | then
78 | transport
79 | to
80 | type
81 | unaffected
82 | until
83 | use
84 | variable
85 | wait
86 | when
87 | while
88 | with
89 | xnor
90 | xor
--------------------------------------------------------------------------------
/include/AppInfo.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFFED_APP_INFO_H__
20 | #define __JUFFED_APP_INFO_H__
21 |
22 | #ifdef Q_OS_WIN
23 | #include "AppInfo.win.h"
24 | #elif defined APPLEBUNDLE
25 | #include "AppInfo.apple.h"
26 | #else
27 | #include "AppInfo.nix.h"
28 | #endif
29 |
30 | #endif // __JUFF_APP_INFO_H__
31 |
--------------------------------------------------------------------------------
/plugins/keybindings/KeysPlugin.cpp:
--------------------------------------------------------------------------------
1 | #include "KeysPlugin.h"
2 |
3 | #include "KeysPage.h"
4 | #include "Log.h"
5 | #include "CommandStorageInt.h"
6 |
7 | KeysPlugin::KeysPlugin() : QObject(), JuffPlugin() {
8 | w_ = 0;
9 | }
10 |
11 | KeysPlugin::~KeysPlugin() {
12 | delete w_;
13 | }
14 |
15 | void KeysPlugin::init() {
16 | w_ = new KeysPage(api()->commandStorage());
17 | }
18 |
19 | void KeysPlugin::allPluginsLoaded() {
20 | // LOGGER;
21 | w_->init();
22 | }
23 |
24 | QString KeysPlugin::name() const {
25 | return "Keybindings";
26 | }
27 |
28 | QString KeysPlugin::title() const {
29 | return tr("Key bindings");
30 | }
31 |
32 | QString KeysPlugin::targetEngine() const {
33 | return "all";
34 | }
35 |
36 | QString KeysPlugin::description() const {
37 | return "Allows you to configure shortcuts";
38 | }
39 |
40 | QWidget* KeysPlugin::settingsPage() const {
41 | return w_;
42 | }
43 |
44 | void KeysPlugin::applySettings() {
45 | // LOGGER;
46 | w_->apply();
47 | }
48 |
49 | #if QT_VERSION < 0x050000
50 | Q_EXPORT_PLUGIN2(keybindings, KeysPlugin)
51 | #endif
52 |
--------------------------------------------------------------------------------
/plugins/doclist/DocListPlugin.h:
--------------------------------------------------------------------------------
1 | #ifndef _DOC_LIST_PLUGIN_H_
2 | #define _DOC_LIST_PLUGIN_H_
3 |
4 | class DocListPanel;
5 |
6 | #include
7 |
8 | #include "JuffPlugin.h"
9 |
10 | class DocListPlugin : public QObject, public JuffPlugin {
11 | Q_OBJECT
12 | #if QT_VERSION >= 0x050000
13 | Q_PLUGIN_METADATA(IID JuffPlugin_iid)
14 | #endif
15 | Q_INTERFACES(JuffPlugin)
16 | public:
17 | DocListPlugin();
18 | virtual ~DocListPlugin();
19 | virtual void init();
20 |
21 | // info
22 | virtual QString name() const;
23 | virtual QString title() const;
24 | virtual QString description() const;
25 | virtual QString targetEngine() const;
26 |
27 | // controls
28 | virtual QWidgetList dockList() const;
29 | virtual bool dockVisible(QWidget*) const;
30 |
31 | public slots:
32 | void onDocOpened(Juff::Document*, Juff::PanelIndex);
33 | void onDocActivated(Juff::Document*);
34 | void onDocClosed(Juff::Document*);
35 | void onDocRenamed(Juff::Document*, const QString& oldName);
36 | void onDocModified(Juff::Document*);
37 |
38 | private:
39 | DocListPanel* panel_;
40 | };
41 |
42 | #endif
43 |
--------------------------------------------------------------------------------
/cmake/LibSuffix.cmake:
--------------------------------------------------------------------------------
1 | # some system (rpm builds) setup LIB_SUFFIX for cmake. If there is no set, try to get it from system
2 | IF (NOT LIB_SUFFIX)
3 | MESSAGE(STATUS "")
4 | MESSAGE(STATUS "LIB_SUFFIX variable is not defined. It will be autodetected now.")
5 | MESSAGE(STATUS "You can set it manually with -DLIB_SUFFIX= (64 for example)")
6 | IF (NOT APPLE)
7 | # check 64 bit
8 | IF (CMAKE_SIZEOF_VOID_P EQUAL 4)
9 | SET (LIB_SUFFIX "")
10 | ELSE (CMAKE_SIZEOF_VOID_P EQUAL 4)
11 | SET (LIB_SUFFIX "64")
12 | MESSAGE(STATUS " LIB_SUFFIX is set to '${LIB_SUFFIX}'")
13 | ENDIF (CMAKE_SIZEOF_VOID_P EQUAL 4)
14 | ELSE (NOT APPLE)
15 | SET (LIB_SUFFIX "")
16 | ENDIF (NOT APPLE)
17 | # BSD does not use lib64 for 64bit libs
18 | IF (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
19 | message(STATUS "LIB_SUFFIX is disabled for *BSD: ${CMAKE_SYSTEM_NAME}")
20 | SET (LIB_SUFFIX "")
21 | ENDIF()
22 | #
23 | MESSAGE(STATUS "")
24 | ENDIF (NOT LIB_SUFFIX)
25 |
--------------------------------------------------------------------------------
/plugins/todolist/TODOList.h:
--------------------------------------------------------------------------------
1 | #ifndef __JUFFED_TODO_LIST_PLUGIN_H__
2 | #define __JUFFED_TODO_LIST_PLUGIN_H__
3 |
4 | class QTreeWidgetItem;
5 |
6 | #include
7 |
8 | #include "JuffPlugin.h"
9 |
10 | class TODOListPlugin : public QObject, public JuffPlugin {
11 | Q_OBJECT
12 | Q_INTERFACES(JuffPlugin)
13 | public:
14 | TODOListPlugin();
15 | virtual ~TODOListPlugin();
16 |
17 | virtual QString name() const;
18 | virtual QString description() const;
19 | virtual QString targetEngine() const;
20 |
21 | virtual void init();
22 |
23 | virtual QWidgetList dockList() const;
24 | virtual Qt::DockWidgetArea dockPosition(QWidget*) const;
25 |
26 | private slots:
27 | void onDocActivated(Juff::Document *document);
28 | void onDocClosed(Juff::Document *document);
29 | void addItem(const QString&, int, int, const QColor&);
30 | void onItemDoubleClicked(QTreeWidgetItem*, int);
31 | void onParserFinished();
32 |
33 | private:
34 | void showDock();
35 | void hideDock();
36 |
37 | class PluginInterior;
38 | PluginInterior* pInt_;
39 | };
40 |
41 | #endif // __JUFFED_TODO_LIST_PLUGIN_H__
42 |
--------------------------------------------------------------------------------
/plugins/zencoding/DocWrapper.h:
--------------------------------------------------------------------------------
1 | #ifndef __ZEN_DOC_WRAPPER_H__
2 | #define __ZEN_DOC_WRAPPER_H__
3 |
4 | #include
5 | #include "Document.h"
6 | #include "EditorSettings.h"
7 |
8 | class DocWrapper : public QObject {
9 | Q_OBJECT
10 | public:
11 | DocWrapper() : QObject() {}
12 | void setDoc(Juff::Document* doc);
13 |
14 | Q_INVOKABLE bool usesTabs();
15 | Q_INVOKABLE int tabWidth();
16 | Q_INVOKABLE QString fileName();
17 | Q_INVOKABLE long selectionStart();
18 | Q_INVOKABLE long selectionEnd();
19 | Q_INVOKABLE void createSelection(const QVariant&, const QVariant&);
20 | Q_INVOKABLE void moveCursor(const QVariant&);
21 | Q_INVOKABLE long cursorPosition();
22 | Q_INVOKABLE QString selectedText();
23 | Q_INVOKABLE QString text();
24 | Q_INVOKABLE QString currentLineText();
25 | Q_INVOKABLE int currentLineLength();
26 | Q_INVOKABLE long currentLinePosition();
27 | Q_INVOKABLE void replaceContent(const QVariant&, const QVariant&, const QVariant&, const QVariant&);
28 | Q_INVOKABLE int eol();
29 |
30 | private:
31 | Juff::Document* doc_;
32 | };
33 |
34 | #endif // __ZEN_DOC_WRAPPER_H__
35 |
--------------------------------------------------------------------------------
/src/lib/NullDoc.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #include "NullDoc.h"
20 |
21 | Juff::Document* NullDoc::instance_ = NULL;
22 |
23 | Juff::Document* NullDoc::instance() {
24 | if (instance_ == NULL)
25 | instance_ = new NullDoc();
26 | return instance_;
27 | }
28 |
29 | NullDoc::NullDoc() : Document("") {
30 | }
31 |
32 | NullDoc::NullDoc(const QString&) : Document("") {
33 | }
34 |
--------------------------------------------------------------------------------
/plugins/python/PythonPlugin.h:
--------------------------------------------------------------------------------
1 | #ifndef __JUFFED_PYTHON_PLUGIN_H__
2 | #define __JUFFED_PYTHON_PLUGIN_H__
3 |
4 | #include
5 |
6 | #include
7 |
8 | #include "JuffPlugin.h"
9 |
10 | class PythonPlugin : public QObject, public JuffPlugin {
11 | Q_OBJECT
12 | Q_INTERFACES(JuffPlugin)
13 |
14 | public:
15 | PythonPlugin();
16 | virtual ~PythonPlugin();
17 | void init();
18 |
19 | QString name() const;
20 | QString title() const;
21 | QString description() const;
22 | QString targetEngine() const;
23 |
24 | Juff::ActionList mainMenuActions(Juff::MenuID) const;
25 |
26 | public slots:
27 | void onDocOpened(Juff::Document* doc, Juff::PanelIndex);
28 | void onDocActivated(Juff::Document*);
29 | void onDocClosed(Juff::Document* doc);
30 | void onDocRenamed(Juff::Document* doc, const QString& oldName);
31 | void onDocModified(Juff::Document* doc);
32 |
33 | // void shoot();
34 | void onAction();
35 | // void sortDocument();
36 | // void openSettings();
37 |
38 | private:
39 | PyObject* getFunction(const char*) const;
40 | Juff::ActionList getActions() const;
41 |
42 | PyObject* globalDict_;
43 | };
44 |
45 | #endif
46 |
--------------------------------------------------------------------------------
/plugins/doclist/doclist_l10n.diff:
--------------------------------------------------------------------------------
1 | Index: CMakeLists.txt
2 | ===================================================================
3 | --- CMakeLists.txt (revision 232)
4 | +++ CMakeLists.txt (working copy)
5 | @@ -4,7 +4,20 @@
6 | DocListPanel.cpp
7 | )
8 |
9 | +SET ( doclist_TS
10 | + l10n/doclist_de.ts
11 | + l10n/doclist_fr.ts
12 | + l10n/doclist_pl.ts
13 | + l10n/doclist_pt.ts
14 | + l10n/doclist_ru.ts
15 | + l10n/doclist_sk.ts
16 | + l10n/doclist_sp.ts
17 | + l10n/doclist_zh.ts
18 | + l10n/doclist_cs.ts
19 | +)
20 | +
21 | QT4_ADD_RESOURCES(doclist_RES doclistplugin.qrc)
22 | +QT4_ADD_TRANSLATION ( doclist_QM ${doclist_TS} )
23 |
24 | QT4_WRAP_CPP( doclist_MOC
25 | DocListPlugin.h
26 | @@ -12,7 +25,8 @@
27 | )
28 |
29 | #QT4_AUTOMOC(DocListPlugin.h DocListPanel.h)
30 | -add_library(doclist SHARED ${doclist_SRC} ${doclist_RES} ${doclist_MOC})
31 | +add_library(doclist SHARED ${doclist_SRC} ${doclist_RES} ${doclist_MOC} ${doclist_QM})
32 | target_link_libraries(doclist ${JUFFED_LIBRARY} ${QT_LIBRARIES})
33 | install(TARGETS doclist DESTINATION ${JUFFED_PLUGINS_DIR})
34 | +install ( FILES ${doclist_QM} DESTINATION ${DATA_INSTALL_DIR}/l10n )
35 |
36 |
--------------------------------------------------------------------------------
/plugins/todolist/TODOParser.cpp:
--------------------------------------------------------------------------------
1 | #include "TODOParser.h"
2 |
3 | TODOParser::TODOParser() : QThread() {
4 | cancelled_ = false;
5 |
6 | // TODO : need to make it configurable
7 | keywords_ << "todo" << "fixme" << "bug" << "hack";
8 | colors_["todo"] = QColor(200, 255, 210);
9 | colors_["fixme"] = QColor(200, 215, 255);
10 | colors_["bug"] = QColor(255, 140, 140);
11 | colors_["hack"] = QColor(255, 240, 140);
12 | }
13 |
14 | TODOParser::~TODOParser() {
15 | }
16 |
17 | void TODOParser::launch(const QString& text) {
18 | lines_ = text.split(QRegExp("\r\n|\n|\r"));
19 | start();
20 | }
21 |
22 | void TODOParser::cancel() {
23 | cancelled_ = true;
24 | }
25 |
26 | void TODOParser::run() {
27 | int index = 0;
28 | foreach (QString line, lines_) {
29 | if ( cancelled_ ) {
30 | return;
31 | }
32 |
33 | foreach (QString keyword, keywords_) {
34 | QRegExp rx(QString(".*(%1)\\s*\\:.*").arg(keyword), Qt::CaseInsensitive );
35 | int pos = line.indexOf(rx);
36 | if ( pos >= 0 ) {
37 | QColor color = colors_.value(keyword, Qt::white);
38 | emit itemFound(line, index, rx.pos(1), color);
39 | }
40 | }
41 | ++index;
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/juffed.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Name=JuffEd text editor
3 | Name[ru]=Текстовый редактор JuffEd
4 | Name[pl]=Edytor tekstu JuffEd
5 | Name[de]=Texteditor JuffEd
6 | Name[fr]=Éditeur de texte JuffEd
7 | Name[pt]=Editor de texto JuffEd
8 | Name[zh_CN]=文本编辑器 JuffEd
9 | Name[sk]=Textový editor JuffEd
10 | Comment=Advanced Qt text editor
11 | Comment[ru]=Продвинутый текстовый редактор на Qt
12 | Comment[pl]=Zaawansowany edytor tekstu na Qt
13 | Comment[de]=Ein erweiterter Qt-Texteditor
14 | Comment[fr]=Un avancé Qt éditeur de texte
15 | Comment[zh_CN]=先进的 Qt 文本编辑器
16 | Comment[sk]=Pokročilý textový editor na Qt
17 | Comment[pt]=Editor avançado de texto em Qt
18 | Exec=juffed %F
19 | Terminal=false
20 | Type=Application
21 | StartupNotify=false
22 | MimeType=text/plain;
23 | Icon=juffed
24 | Categories=Qt;Utility;TextEditor;
25 | GenericName=Advanced text editor
26 | GenericName[ru]=Продвинутый текстовый редактор
27 | GenericName[pl]=Zaawansowany edytor tekstu
28 | GenericName[de]=Ein erweiterter Texteditor
29 | GenericName[fr]=Un avancé éditeur de texte
30 | GenericName[pt]=Editor de texto
31 | GenericName[zh_CN]=先进的文本编辑器
32 | GenericName[sk]=Pokročilý textový editor
33 | X-SuSE-translate=true
34 |
--------------------------------------------------------------------------------
/plugins/symbolbrowser/symbols/symbols.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | images/slot_priv.png
4 | images/slot_prot.png
5 | images/func_priv.png
6 | images/func_prot.png
7 | images/slot.png
8 | images/var_priv.png
9 | images/var_prot.png
10 | images/func.png
11 | images/class.png
12 | images/signal.png
13 | images/var.png
14 | images/macro.png
15 | images/enumerator.png
16 | images/namespace.png
17 | images/enum.png
18 | images/keyword.png
19 | images/func-proto.png
20 |
21 |
22 |
--------------------------------------------------------------------------------
/plugins/keybindings/KeysPage.ui:
--------------------------------------------------------------------------------
1 |
2 |
3 | KeysPage
4 |
5 |
6 |
7 | 0
8 | 0
9 | 520
10 | 465
11 |
12 |
13 |
14 | Form
15 |
16 |
17 |
18 | 0
19 |
20 |
21 | 0
22 |
23 | -
24 |
25 |
26 |
27 | 1
28 |
29 |
30 |
31 |
32 | -
33 |
34 |
35 | There are unsaved changes
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/include/KeySettings.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFF_KEY_SETTINGS_H__
20 | #define __JUFF_KEY_SETTINGS_H__
21 |
22 | #include "LibConfig.h"
23 |
24 | #include
25 |
26 | #include "Enums.h"
27 |
28 | class LIBJUFF_EXPORT KeySettings {
29 | public:
30 | static QKeySequence keySequence(const QString&);
31 | static void setKeySequence(const QString&, const QKeySequence&);
32 |
33 | static bool contains(const QString&);
34 | };
35 |
36 | #endif /* __JUFF_KEY_SETTINGS_H__ */
37 |
--------------------------------------------------------------------------------
/plugins/findinfiles/FindWorker.h:
--------------------------------------------------------------------------------
1 | #ifndef __FIND_WORKER_H__
2 | #define __FIND_WORKER_H__
3 |
4 | #include
5 | #include
6 |
7 | class FindWorker : public QThread {
8 | Q_OBJECT
9 | public:
10 | struct Params {
11 | Params(
12 | const QString& text = "",
13 | const QString& dir = "",
14 | bool rec = false,
15 | int pattVar = 0,
16 | const QStringList& filePatts = QStringList()
17 | )
18 | {
19 | findText = text;
20 | startDir = dir;
21 | recursive = rec;
22 | patternVariant = pattVar;
23 | filePatterns = filePatts;
24 | }
25 | QString findText;
26 | QString startDir;
27 | bool recursive;
28 | int patternVariant;
29 | QStringList filePatterns;
30 | };
31 |
32 | FindWorker();
33 |
34 | void findInFiles(const QString& findText, const QStringList& files);
35 | void findInDir(const QString& findText, const QString& dirName);
36 | void setParams(const Params&);
37 | virtual void run();
38 |
39 | signals:
40 | void matchFound(const QString&, int, int, const QString&);
41 |
42 | private:
43 | void findInText(const QString& findText, const QString& text, const QString& fileName);
44 |
45 | Params params_;
46 | };
47 |
48 | #endif /* __FIND_WORKER_H__ */
49 |
--------------------------------------------------------------------------------
/src/app/qsci/settings/PrintSettings.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFFED_PRINT_SETTINGS_H__
20 | #define __JUFFED_PRINT_SETTINGS_H__
21 |
22 | #include "Settings.h"
23 |
24 | #include
25 |
26 | namespace Juff {
27 |
28 | class PrintSettings {
29 | public:
30 | enum BoolKey {
31 | KeepBgColor,
32 | KeepColors,
33 | AlwaysWrap
34 | };
35 | static bool get(BoolKey);
36 | static void set(BoolKey, bool);
37 | };
38 |
39 | }
40 |
41 | #endif // __JUFFED_PRINT_SETTINGS_H__
42 |
--------------------------------------------------------------------------------
/hlschemes/perl.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/hlschemes/qore.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/hlschemes/qorus.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/src/app/qsci/lexers/my/QsciLexerMatlab.cpp:
--------------------------------------------------------------------------------
1 | #include "QsciLexerMatlab.h"
2 |
3 | QsciLexerMatlab::QsciLexerMatlab(QObject *parent) : QsciLexer(parent) {
4 | }
5 |
6 | const char *QsciLexerMatlab::keywords(int set) const {
7 | if ( set == 1 )
8 | return "break case catch classdef continue else elseif end for "
9 | "function global if otherwise parfor persistent return "
10 | "switch try while";
11 | return 0;
12 | }
13 |
14 | QString QsciLexerMatlab::description(int) const {
15 | // TODO : add descriptions here
16 | return "";
17 | }
18 |
19 | QColor QsciLexerMatlab::defaultColor(int style) const {
20 | switch (style) {
21 | case Default :
22 | return Qt::black;
23 |
24 | case Comment :
25 | return QColor(160, 160, 160);
26 |
27 | case Command :
28 | return QColor(80, 80, 120);
29 |
30 | case Number :
31 | return QColor(40, 160, 40);
32 |
33 | case Keyword :
34 | return QColor(40, 40, 200);
35 |
36 | case String :
37 | return QColor(200, 30, 30);
38 |
39 | case Operator :
40 | return QColor(200, 60, 200);
41 |
42 | case Identifier :
43 | return QColor(20, 40, 40);
44 |
45 | case DoubleQuotedString :
46 | return QColor(140, 30, 30);
47 | }
48 | return Qt::black;
49 | }
50 |
--------------------------------------------------------------------------------
/include/CharsetSettings.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFF_CHARSET_SETTINGS_H__
20 | #define __JUFF_CHARSET_SETTINGS_H__
21 |
22 | #include "LibConfig.h"
23 |
24 | #include "Settings.h"
25 |
26 | class LIBJUFF_EXPORT CharsetSettings {
27 | public:
28 | static QStringList getCharsetsList();
29 | static bool charsetEnabled(const QString& charset);
30 | static void setCharsetEnabled(const QString& charset, bool enable);
31 |
32 | private:
33 | static QStringList csList_;
34 | };
35 |
36 | #endif // __JUFF_CHARSET_SETTINGS_H__
37 |
--------------------------------------------------------------------------------
/cmake/AppInfo.win.h.cmake:
--------------------------------------------------------------------------------
1 | /*
2 | This file was automatically generated by configure script.
3 | All the changes you made will be lost after the next run
4 | of configure script.
5 | */
6 |
7 | #ifndef _APP_INFO_WIN_H_
8 | #define _APP_INFO_WIN_H_
9 |
10 | #include
11 | #include
12 | #include
13 | #include
14 |
15 | class AppInfo {
16 | public:
17 | static QString name() { return "JuffEd"; }
18 | static QString organization() { return "Juff"; }
19 | static QString version() { return "@JUFFED_VERSION@"; }
20 |
21 | static QString dataDirPath() { return QCoreApplication::applicationDirPath(); }
22 | static QString pluginsPath() { return dataDirPath() + "/plugins"; }
23 |
24 | static QString configDirPath() { return QDir::homePath() + "/.config/" + organization().toLower(); }
25 | static QString configFile() { return configDirPath() + "/" + name().toLower() + ".ini"; }
26 | static QString translationPath() { return dataDirPath() + "/l10n"; }
27 | static QString logFile() { return configDirPath() + "/juffed.log"; }
28 | static QString defaultPrjPath() { return configDirPath() + "/empty_project.xml"; }
29 | };
30 |
31 | #endif
32 |
--------------------------------------------------------------------------------
/src/app/ui/SearchComboBox.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFFED_SEARCH_COMBO_BOX_H__
20 | #define __JUFFED_SEARCH_COMBO_BOX_H__
21 |
22 | #include
23 | #include
24 |
25 | class SearchComboBox : public QComboBox {
26 | Q_OBJECT
27 | public:
28 | static const int StatusWidth = 80;
29 | SearchComboBox(QWidget* parent);
30 | void setSearchStatus(int, int);
31 |
32 | protected:
33 | virtual void resizeEvent(QResizeEvent*);
34 |
35 | private:
36 | QLabel* statusL_;
37 | };
38 |
39 | #endif // __JUFFED_SEARCH_COMBO_BOX_H__
40 |
--------------------------------------------------------------------------------
/src/lib/StatusLabel.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #include "StatusLabel.h"
20 |
21 | #include
22 | #include
23 |
24 | namespace Juff {
25 |
26 | StatusLabel::StatusLabel(const QString& text) : QLabel(text) {
27 | menu_ = NULL;
28 | }
29 |
30 | void StatusLabel::setMenu(QMenu* menu) {
31 | menu_ = menu;
32 | }
33 |
34 | void StatusLabel::mouseReleaseEvent(QMouseEvent* e) {
35 | if ( NULL != menu_ ) {
36 | menu_->exec(e->globalPos());
37 | }
38 | else {
39 | emit clicked();
40 | }
41 | }
42 |
43 | }; // namespace Juff
44 |
--------------------------------------------------------------------------------
/cmake/AppInfo.nix.h.cmake:
--------------------------------------------------------------------------------
1 | /*
2 | This file was automatically generated by configure script.
3 | All the changes you made will be lost after the next run
4 | of configure script.
5 | */
6 |
7 | #ifndef _APP_INFO_NIX_H_
8 | #define _APP_INFO_NIX_H_
9 |
10 | #include
11 | #include
12 | #include
13 |
14 |
15 | class AppInfo {
16 | public:
17 | static QString name() { return "JuffEd"; }
18 | static QString organization() { return "Juff"; }
19 | static QString version() { return "@JUFFED_VERSION@"; }
20 |
21 | static QString dataDirPath() { return "@DATA_INSTALL_DIR@"; }
22 | static QString pluginsPath() { return libPath() + "/" + name().toLower() + "/plugins"; }
23 |
24 | static QString configDirPath() { return QDir::homePath() + "/.config/" + organization().toLower(); }
25 | static QString configFile() { return configDirPath() + "/" + name().toLower() + ".conf"; }
26 | static QString translationPath() { return dataDirPath() + "/l10n"; }
27 | static QString logFile() { return configDirPath() + "/juffed.log"; }
28 | static QString defaultPrjPath() { return configDirPath() + "/empty_project.xml"; }
29 |
30 | private:
31 | static QString libPath() { return "@LIB_INSTALL_DIR@"; }
32 | };
33 |
34 | #endif
35 |
--------------------------------------------------------------------------------
/include/NullDoc.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFFED_NULL_DOC_H__
20 | #define __JUFFED_NULL_DOC_H__
21 |
22 | #include "LibConfig.h"
23 |
24 | #include "Document.h"
25 |
26 | class LIBJUFF_EXPORT NullDoc : public Juff::Document {
27 | public:
28 | static Juff::Document* instance();
29 | virtual bool isNull() const { return true; }
30 |
31 | virtual QString type() const { return ""; }
32 | // virtual Juff::Document* createClone() { return this; }
33 |
34 | private:
35 | NullDoc();
36 | NullDoc(const QString&);
37 | static Juff::Document* instance_;
38 | };
39 |
40 | #endif // __JUFFED_NULL_DOC_H__
41 |
--------------------------------------------------------------------------------
/include/StatusLabel.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFF_STATUS_LABEL_H__
20 | #define __JUFF_STATUS_LABEL_H__
21 |
22 | class QMenu;
23 |
24 | #include
25 | #include "LibConfig.h"
26 |
27 | namespace Juff {
28 |
29 | class LIBJUFF_EXPORT StatusLabel : public QLabel {
30 | Q_OBJECT
31 | public:
32 | StatusLabel(const QString& text);
33 | void setMenu(QMenu* menu);
34 |
35 | signals:
36 | void clicked();
37 |
38 | protected:
39 | virtual void mouseReleaseEvent(QMouseEvent*);
40 |
41 | private:
42 | QMenu* menu_;
43 | };
44 |
45 |
46 | }; // namespace Juff
47 |
48 | #endif // __JUFF_STATUS_LABEL_H__
49 |
--------------------------------------------------------------------------------
/src/app/ui/SelectFilesDlg.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFFED_SELECT_FILES_DLG_H__
20 | #define __JUFFED_SELECT_FILES_DLG_H__
21 |
22 | #include "ui_SelectFilesDlg.h"
23 |
24 | class SelectFilesDlg : public QDialog {
25 | Q_OBJECT
26 | public:
27 | SelectFilesDlg(const QStringList&, QWidget*);
28 |
29 | QStringList checkedFiles() const;
30 |
31 | public slots:
32 | void slotSave();
33 | void slotDontSave();
34 |
35 | private slots:
36 | void onAllClicked();
37 | void onItemChanged(QListWidgetItem*);
38 |
39 | private:
40 | Ui::SelectFilesDlg ui_;
41 | QStringList list_;
42 | };
43 |
44 | #endif // __JUFFED_SELECT_FILES_DLG_H__
45 |
--------------------------------------------------------------------------------
/include/AutocompleteSettings.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2009 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFFED_AUTOCOMPLETE_SETTINGS_H__
20 | #define __JUFFED_AUTOCOMPLETE_SETTINGS_H__
21 |
22 | #include "LibConfig.h"
23 |
24 | #include "Settings.h"
25 |
26 | class LIBJUFF_EXPORT AutocompleteSettings {
27 | public:
28 | enum IntKey {
29 | Threshold,
30 | };
31 |
32 | enum BoolKey {
33 | ReplaceWord,
34 | CaseSensitive,
35 | UseDocument,
36 | UseApis,
37 | };
38 |
39 | static void set(IntKey, int);
40 | static void set(BoolKey, bool);
41 |
42 | static int get(IntKey);
43 | static bool get(BoolKey);
44 | };
45 |
46 | #endif // __JUFFED_AUTOCOMPLETE_SETTINGS_H__
47 |
--------------------------------------------------------------------------------
/src/app/Resources.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | ../images/res/16/doc_unmodified16.png
4 | ../images/res/16/doc_modified16.png
5 | ../images/res/16/close.png
6 | ../images/res/16/find_prev.png
7 | ../images/res/16/find_next.png
8 | ../images/res/16/replace_prev.png
9 | ../images/res/16/replace_next.png
10 | ../images/res/16/replace_all.png
11 | ../images/res/16/arrow_left.png
12 | ../images/res/16/arrow_right.png
13 | ../images/res/16/trash.png
14 |
15 | ../images/mimetypes/text-x-generic.png
16 | ../images/mimetypes/text-x-chdr.png
17 | ../images/mimetypes/text-x-c++src.png
18 |
19 | ../images/res/32/juffed_32.png
20 | ../images/res/48/juffed_48.png
21 |
22 | ../images/res/16/win.png
23 | ../images/res/16/mac.png
24 | ../images/res/16/tux.png
25 |
26 |
27 |
--------------------------------------------------------------------------------
/include/ColorButton.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFF_COLOR_BUTTON_H__
20 | #define __JUFF_COLOR_BUTTON_H__
21 |
22 | #include "LibConfig.h"
23 |
24 | #include
25 | #include
26 |
27 | class QPushButton;
28 |
29 | class LIBJUFF_EXPORT ColorButton : public QObject {
30 | Q_OBJECT
31 | public:
32 | ColorButton(QPushButton*, const QColor& color);
33 | virtual ~ColorButton();
34 |
35 | QColor color() const { return color_; }
36 | void setColor(const QColor&);
37 |
38 | public slots:
39 | void clicked();
40 |
41 | private:
42 |
43 | QColor color_;
44 | QPushButton* btn_;
45 | };
46 |
47 | #endif // __JUFF_COLOR_BUTTON_H__
48 |
--------------------------------------------------------------------------------
/src/app/qsci/settings/FileTypeSettings.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFF_FILE_TYPE_SETTINGS_H__
20 | #define __JUFF_FILE_TYPE_SETTINGS_H__
21 |
22 | #include "Settings.h"
23 |
24 | class FileTypeSettings : public Settings {
25 | public:
26 | static QStringList getTypeList();
27 | static QStringList getFileNamePatterns(const QString&);
28 | static QStringList getFirstLinePatterns(const QString&);
29 |
30 | static void setTypeList(const QStringList&);
31 | static void setFileNamePatterns(const QString&, const QStringList&);
32 | static void setFirstLinePatterns(const QString&, const QStringList&);
33 | };
34 |
35 | #endif // __JUFF_FILE_TYPE_SETTINGS_H__
36 |
--------------------------------------------------------------------------------
/README:
--------------------------------------------------------------------------------
1 | JuffEd
2 | Advanced text editor
3 | Copyright (C) 2007-2009 Mikhail Murzin
4 |
5 | Requirements:
6 | Qt (>= 4.2)
7 | QScintilla2 (>= 2.1, including Designer plugin for QScintilla2)
8 |
9 |
10 | Building and Installation:
11 | Debian, Ubuntu and all other Debian-based distros:
12 | You will need 'fakeroot' and 'cdbs' packages,
13 | please install them.
14 |
15 | $ dpkg-buildpackage -rfakeroot
16 |
17 |
18 | Other distros:
19 | $ mkdir build
20 | $ cd build
21 | $ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=release
22 | $ make
23 | $ sudo make install
24 | To install to a fake root folder for further packaging use 'make INSTALL_ROOT= install'
25 |
26 | MacOS:
27 | You may install from MacPorts:
28 |
29 | $ sudo port install JuffEd
30 |
31 | License:
32 | JuffEd is distributed under the GNU General Public License.
33 | See COPYING for details.
34 |
35 |
36 | Features:
37 | - multi-document interface (tabs)
38 | - syntax highlighting
39 | - code blocks folding
40 | - sessions support
41 | - find/replace using regular expressions
42 | - charset selection and auto-detection
43 | - line markers
44 | - international languages and Unicode support
45 | - plugins
46 |
47 |
48 | Homepage:
49 | https://github.com/Mezomish/juffed/
50 |
51 | Bugs and feature requests:
52 | https://github.com/Mezomish/juffed/issues
53 |
--------------------------------------------------------------------------------
/hlschemes/css.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/apis/qore.api:
--------------------------------------------------------------------------------
1 | %disable-all-warnings
2 | %disable-warning
3 | %enable-all-warnings
4 | %enable-warning
5 | %exec-class
6 | %include
7 | %lock-options
8 | %lock-warnings
9 | %no-child-restrictions
10 | %no-class-defs
11 | %no-constant-defs
12 | %no-database
13 | %no-external-info
14 | %no-external-process
15 | %no-filesystem
16 | %no-global-vars
17 | %no-gui
18 | %no-locale-control
19 | %no-namespace-defs
20 | %no-network
21 | %no-new
22 | %no-process-control
23 | %no-subroutine-defs
24 | %no-terminal-io
25 | %no-thread-classes
26 | %no-thread-control
27 | %no-thread-info
28 | %no-threads
29 | %no-top-level
30 | %require-our
31 | %require-prototypes
32 | %require-types
33 | %requires
34 | %strict-args
35 | background
36 | break
37 | by
38 | case
39 | catch
40 | chomp
41 | class
42 | const
43 | context
44 | continue
45 | default
46 | delete
47 | do
48 | elements
49 | else
50 | exists
51 | find
52 | foldl
53 | foldr
54 | for
55 | foreach
56 | if
57 | in
58 | inherits
59 | instanceof
60 | keys
61 | map
62 | my
63 | namespace
64 | new
65 | NOTHING
66 | NULL
67 | on_error
68 | on_exit
69 | on_success
70 | our
71 | pop
72 | private
73 | push
74 | rethrow
75 | return
76 | select
77 | shift
78 | sortBy
79 | sortDescendingBy
80 | splice
81 | static
82 | sub
83 | subcontext
84 | summarize
85 | switch
86 | synchronized
87 | thread_exit
88 | throw
89 | trim
90 | try
91 | unshift
92 | where
93 | while
--------------------------------------------------------------------------------
/src/lib/KeySettings.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #include "KeySettings.h"
20 | #include "Settings.h"
21 |
22 | QKeySequence KeySettings::keySequence(const QString& id) {
23 | if ( id.isEmpty() ) {
24 | return QKeySequence();
25 | }
26 | QString s = Settings::instance()->stringValue("keys", id);
27 | return QKeySequence(s);
28 | }
29 |
30 | void KeySettings::setKeySequence(const QString& id, const QKeySequence& seq) {
31 | if ( id.isEmpty() ) {
32 | return;
33 | }
34 | Settings::instance()->setValue("keys", id, seq.toString());
35 | }
36 |
37 | bool KeySettings::contains(const QString& id) {
38 | return Settings::instance()->keyList("keys").contains(id);
39 | }
40 |
41 |
--------------------------------------------------------------------------------
/include/FileTypeSettings.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFF_FILE_TYPE_SETTINGS_H__
20 | #define __JUFF_FILE_TYPE_SETTINGS_H__
21 |
22 | #include "LibConfig.h"
23 |
24 | #include "Settings.h"
25 |
26 | class LIBJUFF_EXPORT FileTypeSettings {
27 | public:
28 | static QStringList getTypeList();
29 | static QStringList getFileNamePatterns(const QString&);
30 | static QStringList getFirstLinePatterns(const QString&);
31 |
32 | static void setTypeList(const QStringList&);
33 | static void setFileNamePatterns(const QString&, const QStringList&);
34 | static void setFirstLinePatterns(const QString&, const QStringList&);
35 | };
36 |
37 | #endif // __JUFF_FILE_TYPE_SETTINGS_H__
38 |
--------------------------------------------------------------------------------
/src/app/ui/JumpToFileDlg.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFFED_JUMP_TO_FILE_DLG_H__
20 | #define __JUFFED_JUMP_TO_FILE_DLG_H__
21 |
22 | #include
23 |
24 | #include "ui_JumpToFileDlg.h"
25 |
26 | class JumpToFileDlg : public QDialog {
27 | Q_OBJECT
28 | public:
29 | JumpToFileDlg(const QStringList&, QWidget*);
30 |
31 | QString fileName() const;
32 |
33 | public slots:
34 | void onItemDoubleClicked(QListWidgetItem*);
35 | void onTextEdited(const QString&);
36 | void onReturnPressed();
37 |
38 | protected:
39 | virtual bool eventFilter(QObject*, QEvent*);
40 |
41 | private:
42 | Ui::JumpToFileDlg ui_;
43 | };
44 |
45 | #endif // __JUFFED_JUMP_TO_FILE_DLG_H__
46 |
--------------------------------------------------------------------------------
/cmake/COPYING-CMAKE-SCRIPTS:
--------------------------------------------------------------------------------
1 | Redistribution and use in source and binary forms, with or without
2 | modification, are permitted provided that the following conditions
3 | are met:
4 |
5 | 1. Redistributions of source code must retain the copyright
6 | notice, this list of conditions and the following disclaimer.
7 | 2. Redistributions in binary form must reproduce the copyright
8 | notice, this list of conditions and the following disclaimer in the
9 | documentation and/or other materials provided with the distribution.
10 | 3. The name of the author may not be used to endorse or promote products
11 | derived from this software without specific prior written permission.
12 |
13 | THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
14 | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
15 | OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
16 | IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
17 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18 | NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22 | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 |
--------------------------------------------------------------------------------
/src/app/ui/settings/PluginPage.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFF_PLUGIN_PAGE_H__
20 | #define __JUFF_PLUGIN_PAGE_H__
21 |
22 | class QCheckBox;
23 |
24 | #include "SettingsPage.h"
25 |
26 | class PluginPage : public SettingsPage {
27 | Q_OBJECT
28 | public:
29 | PluginPage(const QString& pluginName, QWidget* page, QWidget* parent);
30 | virtual ~PluginPage();
31 | virtual void init() {}
32 |
33 | bool pageEnabled() const;
34 | QString name() const { return name_; }
35 |
36 | public slots:
37 | void enablePage(bool);
38 |
39 | private:
40 | QCheckBox* usePluginChk_;
41 | QWidget* page_;
42 | bool enabled_;
43 | QString name_;
44 | };
45 |
46 | #endif // __JUFF_PLUGIN_PAGE_H__
47 |
--------------------------------------------------------------------------------
/cmake/AppInfo.apple.h.cmake:
--------------------------------------------------------------------------------
1 | /*
2 | This file was automatically generated by configure script.
3 | All the changes you made will be lost after the next run
4 | of configure script.
5 | */
6 |
7 | #ifndef _APP_INFO_APPLE_H_
8 | #define _APP_INFO_APPLE_H_
9 |
10 | #include
11 | #include
12 | #include
13 | #include
14 |
15 | /*! This class has to be used in the APPLEBUNDLE build types only!
16 | */
17 | class AppInfo {
18 | public:
19 | static QString name() { return "JuffEd"; }
20 | static QString organization() { return "Juff"; }
21 | static QString version() { return "@JUFFED_VERSION@"; }
22 |
23 | static QString dataDirPath() { return QCoreApplication::applicationDirPath() + "/../Resources/"; }
24 | static QString pluginsPath() { return QCoreApplication::applicationDirPath() + "/../plugins"; }
25 | static QString translationPath() { return QCoreApplication::applicationDirPath() + "/../Resources/l10n"; }
26 |
27 | static QString configDirPath() { return QDir::homePath() + "/.config/" + organization().toLower(); }
28 | static QString configFile() { return configDirPath() + "/" + name().toLower() + ".conf"; }
29 | static QString logFile() { return configDirPath() + "/juffed.log"; }
30 | static QString defaultPrjPath() { return configDirPath() + "/empty_project.xml"; }
31 | };
32 |
33 | #endif
34 |
--------------------------------------------------------------------------------
/cmake/SomeLexers.cmake:
--------------------------------------------------------------------------------
1 | # find TCL lexer
2 |
3 | find_path ( QSCI_TCL_LEXER qscilexertcl.h ${QSCINTILLA_INCLUDE_DIR} )
4 | if ( QSCI_TCL_LEXER )
5 | ADD_DEFINITIONS (
6 | -DJUFF_TCL_LEXER
7 | )
8 | endif ( QSCI_TCL_LEXER )
9 |
10 | # find Pascal lexer
11 | find_path ( QSCI_PASCAL_LEXER qscilexerpascal.h ${QSCINTILLA_INCLUDE_DIR} )
12 | if ( QSCI_PASCAL_LEXER )
13 | ADD_DEFINITIONS (
14 | -DJUFF_PASCAL_LEXER
15 | )
16 | endif ( QSCI_PASCAL_LEXER )
17 |
18 | # find Fortran lexer
19 | find_path ( QSCI_FORTRAN_LEXER qscilexerfortran.h ${QSCINTILLA_INCLUDE_DIR} )
20 | if ( QSCI_FORTRAN_LEXER )
21 | ADD_DEFINITIONS (
22 | -DJUFF_FORTRAN_LEXER
23 | )
24 | endif ( QSCI_FORTRAN_LEXER )
25 |
26 | # find Properties lexer
27 | find_path ( QSCI_PROPERTIES_LEXER qscilexerproperties.h ${QSCINTILLA_INCLUDE_DIR} )
28 | if ( QSCI_PROPERTIES_LEXER )
29 | ADD_DEFINITIONS (
30 | -DJUFF_PROPERTIES_LEXER
31 | )
32 | endif ( QSCI_PROPERTIES_LEXER )
33 |
34 | # find CSS3Property
35 | find_path ( QSCI_CSS_LEXER qscilexercss.h ${QSCINTILLA_INCLUDE_DIR} )
36 | if ( QSCI_CSS_LEXER )
37 | EXECUTE_PROCESS (
38 | COMMAND grep CSS3Property ${QSCI_CSS_LEXER}/qscilexercss.h
39 | OUTPUT_VARIABLE CSS3_FOUND
40 | )
41 | if ( CSS3_FOUND )
42 | # MESSAGE ( "CSS3 found!" )
43 | ADD_DEFINITIONS (
44 | -DCSS3_FOUND
45 | )
46 | endif ( CSS3_FOUND )
47 | endif (QSCI_CSS_LEXER )
48 |
--------------------------------------------------------------------------------
/include/SettingsCheckItem.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2009 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFF_SETTINGS_CHECK_ITEM_H__
20 | #define __JUFF_SETTINGS_CHECK_ITEM_H__
21 |
22 | #include "LibConfig.h"
23 | #include "SettingsItem.h"
24 |
25 | class QCheckBox;
26 |
27 | class LIBJUFF_EXPORT SettingsCheckItem : public QObject, public SettingsItem {
28 | Q_OBJECT
29 | public:
30 | SettingsCheckItem(const QString&, const QString&, QCheckBox*);
31 |
32 | virtual void readValue();
33 | virtual void writeValue();
34 |
35 | private slots:
36 | void onChecked(bool);
37 |
38 | private:
39 | QCheckBox* checkBox_;
40 | QString section_;
41 | QString key_;
42 | // bool default_;
43 | bool curValue_;
44 | };
45 |
46 | #endif /* __JUFF_SETTINGS_CHECK_ITEM_H__ */
47 |
--------------------------------------------------------------------------------
/plugins/fm/ManageDlg.ui:
--------------------------------------------------------------------------------
1 |
2 |
3 | ManageDlg
4 |
5 |
6 |
7 | 0
8 | 0
9 | 619
10 | 215
11 |
12 |
13 |
14 | Manage favorites
15 |
16 |
17 | -
18 |
19 |
20 | -
21 |
22 |
23 | Delete
24 |
25 |
26 |
27 | -
28 |
29 |
30 | Qt::Vertical
31 |
32 |
33 |
34 | 20
35 | 138
36 |
37 |
38 |
39 |
40 | -
41 |
42 |
43 | Close
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/include/SettingsColorItem.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFF_SETTINGS_COLOR_ITEM_H__
20 | #define __JUFF_SETTINGS_COLOR_ITEM_H__
21 |
22 | #include "LibConfig.h"
23 | #include "SettingsItem.h"
24 |
25 | class ColorButton;
26 |
27 | class LIBJUFF_EXPORT SettingsColorItem : public QObject, public SettingsItem {
28 | Q_OBJECT
29 | public:
30 | SettingsColorItem(const QString&, const QString&, ColorButton*);
31 |
32 | virtual void readValue();
33 | virtual void writeValue();
34 |
35 | //private slots:
36 | // void onChecked(bool);
37 |
38 | private:
39 | ColorButton* colorBtn_;
40 | QString section_;
41 | QString key_;
42 | // bool default_;
43 | // bool curValue_;
44 | };
45 |
46 | #endif // __JUFF_SETTINGS_COLOR_ITEM_H__
47 |
--------------------------------------------------------------------------------
/plugins/favorites/ManageDlg.ui:
--------------------------------------------------------------------------------
1 |
2 |
3 | ManageDlg
4 |
5 |
6 |
7 | 0
8 | 0
9 | 619
10 | 215
11 |
12 |
13 |
14 | Manage favorites
15 |
16 |
17 | -
18 |
19 |
20 | -
21 |
22 |
23 | Delete
24 |
25 |
26 |
27 | -
28 |
29 |
30 | Qt::Vertical
31 |
32 |
33 |
34 | 20
35 | 138
36 |
37 |
38 |
39 |
40 | -
41 |
42 |
43 | Close
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/src/app/ui/SessionDlg.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2009 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFF_SESSION_DLG_H__
20 | #define __JUFF_SESSION_DLG_H__
21 |
22 | #include
23 | #include
24 |
25 | #include "ui_SessionDlg.h"
26 |
27 | class SessionDlg : public QDialog {
28 | Q_OBJECT
29 | public:
30 | SessionDlg(QWidget*);
31 | virtual ~SessionDlg();
32 |
33 | int result() const;
34 | QString curSessionName() const;
35 | int sessionCount() const;
36 | static QStringList sessionList();
37 |
38 | private slots:
39 | void openSession();
40 | void newSession();
41 | void removeSession();
42 | void activated(QTreeWidgetItem*, int);
43 |
44 | private:
45 | Ui::SessionDlg ui;
46 | int result_;
47 | };
48 |
49 | #endif // __JUFF_SESSION_DLG_H__
50 |
--------------------------------------------------------------------------------
/src/app/ui/TabBar.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFFED_TAB_BAR_H__
20 | #define __JUFFED_TAB_BAR_H__
21 |
22 | #include
23 | #include
24 |
25 | namespace Juff {
26 |
27 | class TabWidget;
28 |
29 | class TabBar : public QTabBar {
30 | Q_OBJECT
31 | public:
32 | TabBar(Juff::TabWidget*);
33 |
34 | signals:
35 | void closeAllRequested();
36 | void closeAllOtherRequested(int);
37 |
38 | protected slots:
39 | // void cloneDoc();
40 | void onCloseDoc();
41 | void onCloseOther();
42 |
43 | protected:
44 | virtual void mouseReleaseEvent(QMouseEvent* e);
45 |
46 | private:
47 | int index_;
48 | QMenu* tabMenu_;
49 | TabWidget* tabWidget_;
50 | };
51 |
52 | }; // namespace Juff
53 |
54 | #endif // __JUFFED_TAB_BAR_H__
55 |
--------------------------------------------------------------------------------
/src/app/ui/settings/CharsetsSettingsPage.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFF_CHARSETS_SETTINGS_PAGE_H__
20 | #define __JUFF_CHARSETS_SETTINGS_PAGE_H__
21 |
22 | // Qt
23 | #include
24 |
25 | // local
26 | #include "SettingsPage.h"
27 |
28 | // ui
29 | #include "ui_CharsetsSettingsPage.h"
30 |
31 | class CharsetsSettingsPage : public SettingsPage {
32 | Q_OBJECT
33 | public:
34 | CharsetsSettingsPage(QWidget* parent = 0);
35 | virtual ~CharsetsSettingsPage();
36 |
37 | virtual void init();
38 | virtual void apply();
39 |
40 | public slots:
41 | void selectAll();
42 | void deselectAll();
43 | void onItemClicked( QListWidgetItem* );
44 |
45 | private:
46 | Ui::CharsetsSettingsPage ui;
47 | };
48 |
49 | #endif // __JUFF_CHARSETS_SETTINGS_PAGE_H__
50 |
--------------------------------------------------------------------------------
/src/app/ui/TabWidget.h:
--------------------------------------------------------------------------------
1 | #ifndef __JUFFED_TAB_WIDGET_H__
2 | #define __JUFFED_TAB_WIDGET_H__
3 |
4 | class QMenu;
5 |
6 | #include
7 |
8 | namespace Juff {
9 |
10 | class Document;
11 | class DocListButton;
12 | class DocHandlerInt;
13 |
14 | class TabWidget : public QTabWidget {
15 | Q_OBJECT
16 | public:
17 | TabWidget(Juff::DocHandlerInt*);
18 |
19 | void initDocMenu(int index, QMenu* menu);
20 |
21 | signals:
22 | void requestDocMove(Juff::Document*, Juff::TabWidget*);
23 | void tabRemoved(Juff::TabWidget*);
24 | void docStackCalled(bool forward);
25 |
26 | private slots:
27 | void onDocListNeedsToBeShown();
28 | void onDocMenuItemSelected();
29 | void onTabCloseRequested(int);
30 | void onCloseAllRequested();
31 | void onCloseAllOtherRequested(int);
32 |
33 | void slotMoveDoc();
34 | void slotCopyFileName();
35 | void slotCopyFilePath();
36 | void slotCopyDirPath();
37 |
38 | protected:
39 | virtual void tabRemoved(int);
40 | virtual void tabInserted(int);
41 | virtual void keyPressEvent(QKeyEvent*);
42 | virtual void dragEnterEvent(QDragEnterEvent*);
43 | virtual void dropEvent(QDropEvent*);
44 | virtual void contextMenuEvent(QContextMenuEvent*);
45 | virtual void mouseDoubleClickEvent(QMouseEvent*);
46 |
47 | private:
48 | QString docName(int index) const;
49 |
50 | Juff::DocHandlerInt* handler_;
51 | int menuRequestedIndex_;
52 | int selfIndex_;
53 | DocListButton* docListBtn_;
54 | QMenu* contextMenu_;
55 | };
56 |
57 | } // namespace Juff
58 |
59 | #endif // __JUFFED_TAB_WIDGET_H__
60 |
--------------------------------------------------------------------------------
/hlschemes/ruby.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/include/IconManager.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFFED_ICON_MANAGER_H__
20 | #define __JUFFED_ICON_MANAGER_H__
21 |
22 | #include "LibConfig.h"
23 |
24 | #include "IconManagerInt.h"
25 |
26 | class QIcon;
27 | class QString;
28 |
29 | class LIBJUFF_EXPORT IconManager : public IconManagerInt {
30 | public:
31 | IconManager();
32 |
33 | /**
34 | * Returns an icon of the current icon theme and the current size
35 | * for the specified \param key. If the current theme doesn't contain
36 | * an appropriate icon then returns a built-in icon (from "" theme).
37 | * If there is no default icon the returns an empty icon QIcon().
38 | */
39 | virtual QIcon icon(const QString& key) const;
40 |
41 | private:
42 | QIcon defaultIcon(const QString&) const;
43 | };
44 |
45 | #endif // __JUFFED_ICON_MANAGER_H__
46 |
--------------------------------------------------------------------------------
/src/app/qsci/lexers/qscilexerada.h:
--------------------------------------------------------------------------------
1 | #ifndef QSCILEXERADA_H
2 | #define QSCILEXERADA_H
3 |
4 | #include
5 |
6 | #define SCE_ADA_DEFAULT 0
7 | #define SCE_ADA_WORD 1
8 | #define SCE_ADA_IDENTIFIER 2
9 | #define SCE_ADA_NUMBER 3
10 | #define SCE_ADA_DELIMITER 4
11 | #define SCE_ADA_CHARACTER 5
12 | #define SCE_ADA_CHARACTEREOL 6
13 | #define SCE_ADA_STRING 7
14 | #define SCE_ADA_STRINGEOL 8
15 | #define SCE_ADA_LABEL 9
16 | #define SCE_ADA_COMMENTLINE 10
17 | #define SCE_ADA_ILLEGAL 11
18 |
19 | class QsciLexerAda : public QsciLexer
20 | {
21 | Q_OBJECT
22 | public:
23 | explicit QsciLexerAda(QObject *parent = 0);
24 |
25 | //! Returns the name of the language.
26 | const char *language() const { return "Ada"; }
27 |
28 | //! Returns the name of the lexer. Some lexers support a number of
29 | //! languages.
30 | const char *lexer() const { return "ada"; }
31 |
32 | //! Returns the set of keywords for the keyword set \a set recognised by
33 | //! the lexer as a space separated string.
34 | const char *keywords(int set) const;
35 |
36 | //! Returns the descriptive name for style number \a style. If the style
37 | //! is invalid for this language then an empty QString is returned. This
38 | //! is intended to be used in user preference dialogs.
39 | QString description(int style) const;
40 |
41 | //! Returns the foreground colour of the text for a style.
42 | QColor defaultColor(int style) const;
43 | };
44 |
45 | #endif // QSCILEXERADA_H
46 |
--------------------------------------------------------------------------------
/src/app/qsci/settings/FileTypesPage.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFFED_FILE_TYPES_PAGE_H__
20 | #define __JUFFED_FILE_TYPES_PAGE_H__
21 |
22 | #include "SettingsPage.h"
23 |
24 | #include "ui_FileTypesPage.h"
25 |
26 | namespace Juff {
27 |
28 | class FileTypesPage : public SettingsPage {
29 | Q_OBJECT
30 | public:
31 | FileTypesPage();
32 |
33 | virtual void init();
34 | virtual void apply();
35 |
36 | protected slots:
37 | void typeChanged(const QString&);
38 | void addFileNamePattern();
39 | void removeFileNamePattern();
40 | void addFirstLinePattern();
41 | void removeFirstLinePattern();
42 |
43 | private:
44 | Ui::FileTypesPage ui;
45 | QMap fileNamePatterns_;
46 | QMap firstLinePatterns_;
47 | };
48 |
49 | }
50 |
51 | #endif // __JUFFED_FILE_TYPES_PAGE_H__
52 |
--------------------------------------------------------------------------------
/src/app/qsci/lexers/qscilexerlisp.h:
--------------------------------------------------------------------------------
1 | #ifndef QSCILEXERLISP_H
2 | #define QSCILEXERLISP_H
3 |
4 | #include
5 |
6 | #define SCE_LISP_DEFAULT 0
7 | #define SCE_LISP_COMMENT 1
8 | #define SCE_LISP_NUMBER 2
9 | #define SCE_LISP_KEYWORD 3
10 | #define SCE_LISP_KEYWORD_KW 4
11 | #define SCE_LISP_SYMBOL 5
12 | #define SCE_LISP_STRING 6
13 | #define SCE_LISP_STRINGEOL 8
14 | #define SCE_LISP_IDENTIFIER 9
15 | #define SCE_LISP_OPERATOR 10
16 | #define SCE_LISP_SPECIAL 11
17 | #define SCE_LISP_MULTI_COMMENT 12
18 |
19 | class QsciLexerLisp : public QsciLexer
20 | {
21 | Q_OBJECT
22 | public:
23 | explicit QsciLexerLisp(QObject *parent = 0);
24 |
25 | //! Returns the name of the language.
26 | const char *language() const { return "Lisp"; }
27 |
28 | //! Returns the name of the lexer. Some lexers support a number of
29 | //! languages.
30 | const char *lexer() const { return "lisp"; }
31 |
32 | //! Returns the set of keywords for the keyword set \a set recognised by
33 | //! the lexer as a space separated string.
34 | const char *keywords(int set) const;
35 |
36 | //! Returns the descriptive name for style number \a style. If the style
37 | //! is invalid for this language then an empty QString is returned. This
38 | //! is intended to be used in user preference dialogs.
39 | QString description(int style) const;
40 |
41 | //! Returns the foreground colour of the text for a style.
42 | QColor defaultColor(int style) const;
43 | };
44 |
45 | #endif // QSCILEXERLISP_H
46 |
--------------------------------------------------------------------------------
/include/SettingsItem.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2009 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFF_SETTINGS_ITEM_H__
20 | #define __JUFF_SETTINGS_ITEM_H__
21 |
22 | #include "LibConfig.h"
23 | #include
24 |
25 | class LIBJUFF_EXPORT SettingsChangeNotifier : public QObject {
26 | Q_OBJECT
27 | public:
28 | SettingsChangeNotifier();
29 |
30 | void notifyHasChanged();
31 | void notifyNoChanged();
32 |
33 | signals:
34 | void hasChangedItems(bool);
35 | };
36 |
37 | class SettingsItem {
38 | public:
39 | virtual void readValue() = 0;
40 | virtual void writeValue() = 0;
41 |
42 | static SettingsChangeNotifier* notifier();
43 |
44 | protected:
45 | SettingsItem();
46 |
47 | static void oneMoreChanged();
48 | static void oneLessChanged();
49 |
50 | private:
51 | static int counter_;
52 | static SettingsChangeNotifier* notifier_;
53 | };
54 |
55 | #endif /* __JUFF_SETTINGS_ITEM_H__ */
56 |
--------------------------------------------------------------------------------
/include/SettingsSelectItem.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2009 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFF_SETTINGS_SELECT_ITEM_H__
20 | #define __JUFF_SETTINGS_SELECT_ITEM_H__
21 |
22 | #include "LibConfig.h"
23 | #include "SettingsItem.h"
24 |
25 | class QComboBox;
26 |
27 | class LIBJUFF_EXPORT SettingsSelectItem : public QObject, public SettingsItem {
28 | Q_OBJECT
29 | public:
30 | enum Mode {
31 | IndexMode,
32 | StringMode,
33 | IndexModeWithDefaultValue
34 | };
35 | SettingsSelectItem(const QString&, const QString&, QComboBox*, Mode mode);
36 |
37 | virtual void readValue();
38 | virtual void writeValue();
39 |
40 | private slots:
41 | void onSelected(int);
42 |
43 | private:
44 | bool isString_;
45 | QComboBox* comboBox_;
46 | QString section_;
47 | QString key_;
48 | int curIndex_;
49 | QString curString_;
50 | Mode mode_;
51 | };
52 |
53 | #endif /* __JUFF_SETTINGS_SELECT_ITEM_H__ */
54 |
--------------------------------------------------------------------------------
/apis/qorus.api:
--------------------------------------------------------------------------------
1 | bind_event
2 | bind_ftp
3 | bindSubWorkflow
4 | callNetworkAPI
5 | callNetworkAPIArgs
6 | callNetworkAPIArgsWithAuthentication
7 | check_authorization
8 | check_authorization_or
9 | check_queue_access
10 | check_service_access
11 | check_workflow_access
12 | check_workflow_instance_access
13 | createOrder
14 | deleteDynamicDataKey
15 | deleteInstanceDataKey
16 | deleteTempDataKey
17 | execSynchronousWorkflow
18 | generateUniqueKey
19 | get_last_events
20 | get_last_events_and
21 | get_last_events_or
22 | get_omq_option
23 | get_service_access_list
24 | get_workflow_access_list
25 | getDynamicData
26 | getErrorInfo
27 | getInstanceData
28 | getOption
29 | getOrderInfo
30 | getOrderKeys
31 | getParentWorkflowInstanceID
32 | getRunningWorkflowInfo
33 | getRunningWorkflowList
34 | getServiceInfo
35 | getSessionID
36 | getSoapCallContext
37 | getStaticData
38 | getStepInfo
39 | getStepStatus
40 | getSystemInfo
41 | getSystemServiceInfo
42 | getTempData
43 | getUserServiceInfo
44 | getWorkflowInstanceData
45 | getWorkflowMetadata
46 | post_user_event
47 | registerSoapHandler
48 | reprioritize_order
49 | reschedule_order
50 | runtimeProperties
51 | serror
52 | setBlocked
53 | setCustomStatus
54 | setOption
55 | setOrderInfo
56 | setOrderKeys
57 | setRetryDelay
58 | skip_event
59 | skipAsyncStep
60 | skipSubWorkflow
61 | startServiceThread
62 | startServiceThreadArgs
63 | stepExecuted
64 | submitAsyncKey
65 | swarning
66 | test_authorization
67 | test_authorization_or
68 | test_service_access
69 | test_workflow_access
70 | updateDynamicData
71 | updateInstanceData
72 | updateTempData
73 | wait_for_events
74 | wait_for_events_and
75 | wait_for_events_or
--------------------------------------------------------------------------------
/src/app/qsci/QSciSettings.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFFED_QSCI_SETTINGS_H__
20 | #define __JUFFED_QSCI_SETTINGS_H__
21 |
22 | #include "LibConfig.h"
23 |
24 | #include "Settings.h"
25 |
26 | #include
27 |
28 | namespace Juff {
29 |
30 | class QSciSettings {
31 | public:
32 | enum ColorKey {
33 | MatchingBraceBgColor,
34 | MatchingBraceFgColor,
35 | IndentsColor,
36 | WordHLColor,
37 | SearchHLColor,
38 | CurLineColor,
39 | MarkersColor,
40 | MarginsBgColor,
41 | WhiteSpaceColor,
42 | };
43 | enum BoolKey {
44 | ShowIndents,
45 | HighlightMatchingBrace,
46 | HighlightCurLine,
47 | HighlightCurWord,
48 | JumpOverWordParts,
49 | };
50 |
51 | static void set(BoolKey, bool);
52 | static void set(ColorKey, const QColor&);
53 |
54 | static bool get(BoolKey);
55 | static QColor get(ColorKey);
56 | };
57 |
58 | }
59 |
60 | #endif // __JUFFED_QSCI_SETTINGS_H__
61 |
--------------------------------------------------------------------------------
/plugins/findinfiles/FindInFilesPlugin.h:
--------------------------------------------------------------------------------
1 | #ifndef _FIND_IN_FILES_PLUGIN_H_
2 | #define _FIND_IN_FILES_PLUGIN_H_
3 |
4 | class QTreeWidgetItem;
5 |
6 | #include
7 |
8 | #include "JuffPlugin.h"
9 |
10 | class FindInFilesPlugin : public QObject, public JuffPlugin {
11 | Q_OBJECT
12 | #if QT_VERSION >= 0x050000
13 | Q_PLUGIN_METADATA(IID JuffPlugin_iid)
14 | #endif
15 | Q_INTERFACES(JuffPlugin)
16 | public:
17 | FindInFilesPlugin();
18 | virtual ~FindInFilesPlugin();
19 |
20 | // plugin name
21 | virtual QString name() const;
22 | // plugin title
23 | virtual QString title() const;
24 | // plugin description
25 | virtual QString description() const;
26 | // engines
27 | virtual QString targetEngine() const;
28 |
29 | virtual void init();
30 |
31 | // controls
32 | // plugin toolbar
33 | virtual QToolBar* toolBar() const;
34 | virtual Juff::ActionList mainMenuActions(Juff::MenuID) const;
35 | // widget that will be put to dock
36 | virtual QWidgetList dockList() const;
37 | virtual Qt::DockWidgetArea dockPosition(QWidget*) const;
38 |
39 | private slots:
40 | void slotSearchInFiles();
41 | void slotStopSearch();
42 | void slotAdvSearch();
43 | void slotItemDoubleClicked(QTreeWidgetItem*, int);
44 | void slotMatchFound(const QString, int, int, const QString&);
45 | void onStarted();
46 | void onFinished();
47 |
48 | private:
49 | void startSearch();
50 | void showDock();
51 | void findInFiles(const QString& findText, const QStringList& list);
52 | void findInText(const QString& findText, const QString& text, const QString& fileName);
53 |
54 | class PluginInterior;
55 | PluginInterior* pInt_;
56 | };
57 |
58 | #endif
59 |
--------------------------------------------------------------------------------
/src/app/PluginManager.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFFED_PLUGIN_MANAGER_H__
20 | #define __JUFFED_PLUGIN_MANAGER_H__
21 |
22 | class JuffAPI;
23 | class JuffPlugin;
24 | class SettingsDlg;
25 |
26 | namespace Juff {
27 | class DocHandlerInt;
28 | class PluginNotifier;
29 | };
30 |
31 | #include "Enums.h"
32 | #include "Types.h"
33 |
34 | class PluginManager {
35 | public:
36 | PluginManager(Juff::DocHandlerInt*, Juff::PluginNotifier*);
37 | virtual ~PluginManager();
38 |
39 | void loadPlugins(SettingsDlg*);
40 |
41 | Juff::MenuList menus() const;
42 | Juff::ActionList actions(Juff::MenuID) const;
43 | Juff::ToolBarList toolbars() const;
44 | QWidgetList docks(QList&, QList&) const;
45 | void applySettings();
46 |
47 | private:
48 | void loadPlugin(const QString&, SettingsDlg*);
49 |
50 | QList plugins_;
51 | JuffAPI* api_;
52 | };
53 |
54 | #endif // __JUFFED_PLUGIN_MANAGER_H__
55 |
--------------------------------------------------------------------------------
/src/app/DocManager.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFF_DOC_MANAGER_H__
20 | #define __JUFF_DOC_MANAGER_H__
21 |
22 | class JuffMW;
23 | class QMenu;
24 | class QStatusBar;
25 |
26 | #include "Enums.h"
27 |
28 | #include
29 | #include
30 | #include
31 |
32 | namespace Juff {
33 | class Document;
34 | class DocHandlerInt;
35 | }
36 | class DocEngine;
37 |
38 | class DocManager {
39 | public:
40 | DocManager(Juff::DocHandlerInt*);
41 |
42 | Juff::Document* newDoc(const QString& type = "");
43 | Juff::Document* openDoc(const QString& fileName, const QString& type = "");
44 |
45 | void initMenuActions(Juff::MenuID, QMenu*);
46 | void initStatusBar(QStatusBar*);
47 | void setCurDocType(const QString&);
48 | QWidgetList editorsPages() const;
49 |
50 | private:
51 | void initEngines();
52 |
53 | QMap engines_;
54 | Juff::DocHandlerInt* handler_;
55 | };
56 |
57 | #endif // __JUFF_DOC_MANAGER_H__
58 |
--------------------------------------------------------------------------------
/src/app/ui/AboutDlg.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Murzin Mikhail
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFF_ABOUT_DLG_H__
20 | #define __JUFF_ABOUT_DLG_H__
21 |
22 | class QIcon;
23 | class QUrl;
24 | class QString;
25 |
26 | #include
27 |
28 | class AboutDlg : public QDialog {
29 | Q_OBJECT
30 | public:
31 | AboutDlg(QWidget* parent = 0, Qt::WindowFlags f = {});
32 | virtual ~AboutDlg();
33 |
34 | /**
35 | */
36 | void setProgramName(const QString& name);
37 |
38 | /**
39 | */
40 | void setIcon(const QIcon&);
41 |
42 | /** setText
43 | * Sets the main text of the dialog
44 | *
45 | * @param text Main dialog text
46 | */
47 | void setText(const QString& text);
48 |
49 | /**
50 | */
51 | void setPageText(const QString& pageTitle, const QString& text, bool isHtml = true);
52 |
53 | private slots:
54 | void gotoUrl(const QUrl&);
55 | void gotoUrl(const QString&);
56 |
57 | private:
58 | class Interior;
59 | Interior* dlgInt_;
60 | };
61 |
62 | #endif // __JUFF_ABOUT_DLG_H__
63 |
--------------------------------------------------------------------------------
/src/app/ui/settings/MultiPage.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFF_MULTIPAGE_H__
20 | #define __JUFF_MULTIPAGE_H__
21 |
22 | #include
23 |
24 | class MultiPageInterior;
25 | class SettingsPage;
26 | class QString;
27 | class QTreeWidgetItem;
28 |
29 | class MultiPage : public QWidget {
30 | Q_OBJECT
31 | public:
32 | MultiPage(QWidget* = 0);
33 | virtual ~MultiPage();
34 |
35 | SettingsPage* addPage(const QString& pageTitle, SettingsPage*);
36 | void addChildPage(const QString& parentTitle, const QString& pageTitle, SettingsPage*);
37 | int pageCount() const;
38 | SettingsPage* currentPage() const;
39 | SettingsPage* page(const QString&) const;
40 | int currentIndex() const;
41 | void selectPage(int);
42 | QStringList getChildrenTitles(const QString&);
43 |
44 | protected slots:
45 | void changeCurrentItem(QTreeWidgetItem*, QTreeWidgetItem* = 0);
46 |
47 | private:
48 | MultiPageInterior* mpInt_;
49 | };
50 |
51 | #endif // __JUFF_MULTIPAGE_H__
52 |
--------------------------------------------------------------------------------
/src/app/qsci/lexers/qscilexerhaskell.h:
--------------------------------------------------------------------------------
1 | #ifndef QSCILEXERHASKELL_H
2 | #define QSCILEXERHASKELL_H
3 |
4 | #include
5 |
6 | #define SCE_HA_DEFAULT 0
7 | #define SCE_HA_IDENTIFIER 1
8 | #define SCE_HA_KEYWORD 2
9 | #define SCE_HA_NUMBER 3
10 | #define SCE_HA_STRING 4
11 | #define SCE_HA_CHARACTER 5
12 | #define SCE_HA_CLASS 6
13 | #define SCE_HA_MODULE 7
14 | #define SCE_HA_CAPITAL 8
15 | #define SCE_HA_DATA 9
16 | #define SCE_HA_IMPORT 10
17 | #define SCE_HA_OPERATOR 11
18 | #define SCE_HA_INSTANCE 12
19 | #define SCE_HA_COMMENTLINE 13
20 | #define SCE_HA_COMMENTBLOCK 14
21 | #define SCE_HA_COMMENTBLOCK2 15
22 | #define SCE_HA_COMMENTBLOCK3 16
23 |
24 | class QsciLexerHaskell : public QsciLexer
25 | {
26 | Q_OBJECT
27 | public:
28 | explicit QsciLexerHaskell(QObject *parent = 0);
29 |
30 | //! Returns the name of the language.
31 | const char *language() const { return "Haskell"; }
32 |
33 | //! Returns the name of the lexer. Some lexers support a number of
34 | //! languages.
35 | const char *lexer() const { return "haskell"; }
36 |
37 | //! Returns the set of keywords for the keyword set \a set recognised by
38 | //! the lexer as a space separated string.
39 | const char *keywords(int set) const;
40 |
41 | //! Returns the descriptive name for style number \a style. If the style
42 | //! is invalid for this language then an empty QString is returned. This
43 | //! is intended to be used in user preference dialogs.
44 | QString description(int style) const;
45 |
46 | //! Returns the foreground colour of the text for a style.
47 | QColor defaultColor(int style) const;
48 | };
49 |
50 | #endif
51 |
--------------------------------------------------------------------------------
/hlschemes/php.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/pack.bat:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 |
3 | if "%1" == "" GOTO No_Version
4 |
5 | REM We have version
6 |
7 | REM Prepare directories
8 | echo.
9 | echo ----------------------------------
10 | echo Preparing directories...
11 | mkdir %1
12 | mkdir "%1\l10n"
13 | mkdir "%1\apis"
14 | mkdir "%1\hlschemes"
15 | mkdir "%1\plugins"
16 |
17 | REM Built program
18 | echo.
19 | echo ----------------------------------
20 | echo Copying program binaries...
21 | copy "build\juffed.exe" "%1"
22 | copy "build\libjuff.dll" "%1"
23 | copy "build\libjuffed-engine-*.dll" "%1"
24 |
25 | REM localizations, apis, hlschemes
26 | echo.
27 | echo ----------------------------------
28 | echo Copying APIs, l10n, hlschemes...
29 | copy "build\*.qm" "%1\l10n"
30 | copy "apis\*.api" "%1\apis"
31 | copy "hlschemes\*.xml" "%1\hlschemes"
32 |
33 | REM plugins
34 | echo.
35 | echo ----------------------------------
36 | echo Copying Plugins...
37 | copy "build\plugins\*.dll" "%1\plugins\"
38 |
39 | REM Misc files
40 | echo.
41 | echo ----------------------------------
42 | echo Copying Misc files...
43 | copy Changelog %1
44 | copy COPYING %1
45 | copy win32\cygwin1.dll %1
46 | copy win32\enca.exe %1
47 |
48 | REM Qt and QScintilla libs
49 | echo.
50 | echo ----------------------------------
51 | echo Copying Qt libraries...
52 | copy "%QTDIR%\bin\QtCore4.dll" "%1"
53 | copy "%QTDIR%\bin\QtGui4.dll" "%1"
54 | copy %QTDIR%\bin\QtXml4.dll %1
55 | copy %QTDIR%\bin\QtNetwork4.dll %1
56 | copy %QTDIR%\bin\mingwm10.dll %1
57 | copy %QTDIR%\bin\qscintilla2.dll %1
58 |
59 | GOTO End
60 |
61 | :No_Version
62 | echo No version specified
63 | GOTO End
64 |
65 | :End
66 |
--------------------------------------------------------------------------------
/src/lib/SettingsItem.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2009 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #include "SettingsItem.h"
20 |
21 | SettingsChangeNotifier::SettingsChangeNotifier() : QObject() {
22 | }
23 |
24 | void SettingsChangeNotifier::notifyHasChanged() {
25 | emit hasChangedItems(true);
26 | }
27 |
28 | void SettingsChangeNotifier::notifyNoChanged() {
29 | emit hasChangedItems(false);
30 | }
31 |
32 |
33 | int SettingsItem::counter_ = 0;
34 | SettingsChangeNotifier* SettingsItem::notifier_ = NULL;
35 |
36 | SettingsItem::SettingsItem() {
37 | if ( NULL == notifier_ )
38 | notifier_ = new SettingsChangeNotifier();
39 | }
40 |
41 | SettingsChangeNotifier* SettingsItem::notifier() {
42 | return notifier_;
43 | }
44 |
45 | void SettingsItem::oneMoreChanged() {
46 | ++counter_;
47 | if ( 1 == counter_ ) {
48 | // was 0 before increase
49 | notifier_->notifyHasChanged();
50 | }
51 | }
52 |
53 | void SettingsItem::oneLessChanged() {
54 | --counter_;
55 | if ( 0 == counter_ ) {
56 | notifier_->notifyNoChanged();
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/plugins/compare/compare.h:
--------------------------------------------------------------------------------
1 | #ifndef COMPARE_PLUGIN_H
2 | #define COMPARE_PLUGIN_H
3 |
4 | /*
5 | * Compare plugin for Juffed editor
6 | *
7 | * Portions Copyright (C) 2018 Aleksey Komarov
8 | *
9 | * This program is free software; you can redistribute it and/or
10 | * modify it under the terms of the GNU General Public License
11 | * as published by the Free Software Foundation; only version 2 of
12 | * the License is valid for this program.
13 | *
14 | * This program is distributed in the hope that it will be useful,
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 | * GNU General Public License for more details.
18 | *
19 | * You should have received a copy of the GNU General Public License
20 | * along with this program; if not, write to the Free Software
21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 | *
23 | */
24 |
25 | #include
26 |
27 | #include "JuffPlugin.h"
28 | #include "Document.h"
29 |
30 |
31 | /*! Try to format compare 2 files with meld
32 | */
33 | class ComparePlugin : public QObject, public JuffPlugin {
34 |
35 | Q_OBJECT
36 | #if QT_VERSION >= 0x050000
37 | Q_PLUGIN_METADATA(IID JuffPlugin_iid)
38 | #endif
39 | Q_INTERFACES(JuffPlugin)
40 |
41 | public:
42 | ComparePlugin();
43 | ~ComparePlugin();
44 | void init();
45 |
46 | QString name() const;
47 | QString title() const;
48 | QString description() const;
49 | QString targetEngine() const;
50 |
51 | QToolBar* toolBar() const;
52 | Juff::ActionList mainMenuActions(Juff::MenuID) const;
53 |
54 | public slots:
55 | void compare();
56 |
57 | private:
58 | QAction * actDoc;
59 |
60 | };
61 |
62 | #endif
63 |
--------------------------------------------------------------------------------
/src/lib/SettingsColorItem.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #include "ColorButton.h"
20 | #include "Log.h"
21 | #include "SettingsColorItem.h"
22 | #include "Settings.h"
23 |
24 | //#include
25 |
26 | SettingsColorItem::SettingsColorItem(const QString& section, const QString& key,
27 | ColorButton* cb)
28 | {
29 | colorBtn_ = cb;
30 | section_ = section;
31 | key_ = key;
32 | // default_ = Settings::defaultValue(section, key);
33 | readValue();
34 |
35 | // connect(cb, SIGNAL(toggled(bool)), SLOT(onChecked(bool)));
36 | }
37 |
38 | void SettingsColorItem::readValue() {
39 | colorBtn_->setColor(Settings::instance()->colorValue(section_, key_, colorBtn_->color()));
40 | }
41 |
42 | void SettingsColorItem::writeValue() {
43 | LOGGER;
44 | Settings::instance()->setValue(section_, key_, colorBtn_->color());
45 | // oneLessChanged();
46 | }
47 |
48 | //void SettingsCheckItem::onChecked(bool checked) {
49 | // if ( checked != curValue_ )
50 | // oneMoreChanged();
51 | // else
52 | // oneLessChanged();
53 | //}
54 |
--------------------------------------------------------------------------------
/src/lib/SettingsCheckItem.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2009 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #include "SettingsCheckItem.h"
20 | #include "Settings.h"
21 |
22 | #include
23 |
24 | SettingsCheckItem::SettingsCheckItem(const QString& section, const QString& key,
25 | QCheckBox* cb)
26 | {
27 | checkBox_ = cb;
28 | section_ = section;
29 | key_ = key;
30 | // default_ = Settings::defaultValue(section, key);
31 | readValue();
32 |
33 | connect(cb, SIGNAL(toggled(bool)), SLOT(onChecked(bool)));
34 | }
35 |
36 | void SettingsCheckItem::readValue() {
37 | curValue_ = Settings::instance()->boolValue(section_, key_);
38 | checkBox_->setChecked(curValue_);
39 | }
40 |
41 | void SettingsCheckItem::writeValue() {
42 | if ( checkBox_->isChecked() != curValue_ ) {
43 | curValue_ = checkBox_->isChecked();
44 | Settings::instance()->setValue(section_, key_, curValue_);
45 | oneLessChanged();
46 | }
47 | }
48 |
49 | void SettingsCheckItem::onChecked(bool checked) {
50 | if ( checked != curValue_ )
51 | oneMoreChanged();
52 | else
53 | oneLessChanged();
54 | }
55 |
--------------------------------------------------------------------------------
/juffed.spec:
--------------------------------------------------------------------------------
1 | # norootforbuild
2 | %define fedora_version 8
3 |
4 | %if 0%{?fedora_version} != 0
5 | %define breq qt4-devel
6 | %define qmake /usr/bin/qmake-qt4
7 | %define lrelease /usr/bin/lrelease-qt4
8 | %endif
9 | %if 0%{?suse_version} != 0
10 | %define breq libqt4-devel
11 | %define qmake /usr/bin/qmake
12 | %define lrelease /usr/bin/lrelease
13 | %endif
14 | %if 0%{?mandriva_version} != 0
15 | %define breq libqt4-devel, qt4-linguist
16 | %define qmake /usr/lib/qt4/bin/qmake
17 | %define lrelease /usr/lib/qt4/bin/lrelease
18 | %endif
19 |
20 | Name: juffed
21 | Version: 0.5
22 | Release: svn
23 | License: GPL
24 | BuildRoot: %{_tmppath}/%{name}-%{version}-build
25 | Source: %{name}_%{version}-%{release}.tar.bz2
26 | Group: Utility
27 | Summary: Simple tabbed text editor
28 | BuildRequires: gcc-c++, %{breq}, qscintilla2-devel
29 |
30 |
31 | %description
32 | Simple tabbed text editor with syntax highlighting for C++, Python, HTML, PHP, XML, TeX, Makefiles, ini-files and patch-files
33 |
34 |
35 | %prep
36 | %setup -q -n %{name}_%{version}-%{release}
37 |
38 |
39 | %build
40 | ./configure --qmake=%{qmake} --lrelease=%{lrelease}
41 | #%{make} QMAKE=%{qmake} LRELEASE=%{lrelease}
42 | %{__make}
43 |
44 |
45 | %install
46 | %{__rm} -rf %{buildroot}
47 | %{makeinstall} FAKE_ROOT=%{buildroot}
48 |
49 |
50 | %clean
51 | %{__rm} -rf %{buildroot}
52 |
53 |
54 | %files
55 | %doc COPYING ChangeLog
56 | %defattr(-,root,root)
57 | %{_bindir}/%{name}
58 | %{_datadir}/applications/%{name}.desktop
59 | %{_datadir}/pixmaps/%{name}.png
60 | %{_datadir}/%{name}
61 |
62 |
63 | %changelog
64 | * Thu Apr 24 2008 TI_Eugene 0.2.1-1
65 | - Initial build on OBS
66 |
67 | * Thu Apr 24 2008 TI_Eugene 0.2.1-1
68 | - Initial build on OBS
69 |
--------------------------------------------------------------------------------
/src/app/ui/ProjectTree.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFFED_PROJECT_TREE_H__
20 | #define __JUFFED_PROJECT_TREE_H__
21 |
22 | namespace Juff {
23 | class DocHandlerInt;
24 | }
25 |
26 | class QMenu;
27 | class QTreeWidget;
28 | class QTreeWidgetItem;
29 |
30 | #include "Project.h"
31 |
32 | #include
33 |
34 | class ProjectTree : public QWidget {
35 | Q_OBJECT
36 | public:
37 | ProjectTree(Juff::DocHandlerInt*);
38 |
39 | void setProject(Juff::Project*);
40 | void updateTree();
41 |
42 | private slots:
43 | void onFileAdded(const QString&);
44 | void onFileRemoved(const QString&);
45 | void onItemDoubleClicked(QTreeWidgetItem*, int);
46 | void onContextMenuRequested(const QPoint&);
47 |
48 | void onOpenFile();
49 | void onRemoveFromProject();
50 |
51 | private:
52 | void openFile(const QString&);
53 |
54 | void parsePrjItem(Juff::Project*, QTreeWidgetItem*);
55 |
56 | Juff::DocHandlerInt* docHandler_;
57 | Juff::Project* prj_;
58 | QTreeWidget* tree_;
59 | QMenu* prjMenu_;
60 | QMenu* fileMenu_;
61 | };
62 |
63 | #endif // __JUFFED_PROJECT_TREE_H__
64 |
--------------------------------------------------------------------------------
/plugins/symbolbrowser/symbols/parserthread.h:
--------------------------------------------------------------------------------
1 | /***************************************************************************
2 | A SymbolBrowser plugin for JuffEd editor.
3 |
4 | Copyright: 2010 Aleksander Sokoloff
5 |
6 | This program is free software; you can redistribute it and/or
7 | modify it under the terms of the GNU General Public License.
8 | version 2 as published by the Free Software Foundation.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | GNU General Public License for more details.
14 |
15 | You should have rceived a copy of the GNU General Public License
16 | along with this program; if not, write to the Free Software Foundation,
17 | Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 | ***************************************************************************/
19 |
20 |
21 | #ifndef PARSERTHREAD_H
22 | #define PARSERTHREAD_H
23 |
24 | #include
25 | #include "common.h"
26 | #include "symbol.h"
27 |
28 | class Parser;
29 |
30 | class ParserThread : public QThread
31 | {
32 | Q_OBJECT
33 | public:
34 | ParserThread();
35 | ~ParserThread();
36 | Symbol *symbols() const { return mSymbols; };
37 |
38 | // QString text() const { return mText; }
39 | void setText(const QString &text);
40 |
41 | Language language() const { return mLanguage; };
42 | void setLanguage(Language language);
43 | void stop();
44 | protected:
45 | Symbol *mSymbols;
46 | void run();
47 |
48 | private:
49 | // QString mText;
50 | Language mLanguage;
51 | char *mTextBuf;
52 | int mTextBufLen;
53 | Parser *mParser;
54 | };
55 |
56 | #endif // PARSERTHREAD_H
57 |
--------------------------------------------------------------------------------
/plugins/autosave/autosave.h:
--------------------------------------------------------------------------------
1 | #ifndef AUTOSAVE_PLUGIN_H
2 | #define AUTOSAVE_PLUGIN_H
3 | /***************************************************************************
4 | A Autosave plugin for JuffEd editor.
5 |
6 | Copyright: 2011 Aleksey Romanenko
7 |
8 |
9 | This program is free software; you can redistribute it and/or
10 | modify it under the terms of the GNU General Public License.
11 | version 2 as published by the Free Software Foundation.
12 |
13 | This program is distributed in the hope that it will be useful,
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 | GNU General Public License for more details.
17 |
18 | You should have received a copy of the GNU General Public License
19 | along with this program; if not, write to the Free Software Foundation,
20 | Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 | ***************************************************************************/
22 |
23 | #include
24 | #include
25 |
26 | #include "JuffPlugin.h"
27 |
28 | class AutosavePlugin : public QObject, public JuffPlugin {
29 |
30 | Q_OBJECT
31 | #if QT_VERSION >= 0x050000
32 | Q_PLUGIN_METADATA(IID JuffPlugin_iid)
33 | #endif
34 | Q_INTERFACES(JuffPlugin)
35 |
36 | public:
37 | AutosavePlugin();
38 | ~AutosavePlugin();
39 | void init();
40 |
41 | QString name() const;
42 | QString title() const;
43 | QString description() const;
44 | QString targetEngine() const;
45 |
46 | virtual void applySettings();
47 | QWidget * settingsPage() const;
48 |
49 | private slots:
50 | void onTimer();
51 |
52 | private:
53 | int mSaveInterval;
54 | QTimer *mTimer;
55 | QSpinBox *settingSpin;
56 |
57 | };
58 |
59 | #endif
60 |
--------------------------------------------------------------------------------
/include/EditorSettings.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFFED_EDITOR_SETTINGS_H__
20 | #define __JUFFED_EDITOR_SETTINGS_H__
21 |
22 | #include "LibConfig.h"
23 |
24 | #include
25 | #include
26 |
27 | class LIBJUFF_EXPORT EditorSettings {
28 | public:
29 | enum IntKey {
30 | FontSize,
31 | TabWidth,
32 | LineLengthIndicator,
33 | };
34 |
35 | enum BoolKey {
36 | UseTabs,
37 | BackspaceUnindents,
38 | ShowLineNumbers,
39 | ShowWhitespaces,
40 | ShowLineEnds,
41 | WrapWords,
42 | AutoDetectIndentation,
43 | };
44 |
45 | enum StringKey {
46 | FontFamily,
47 | };
48 |
49 | enum ColorKey {
50 | DefaultBgColor,
51 | DefaultFontColor,
52 | SelectionBgColor,
53 | };
54 |
55 | static void set(IntKey, int);
56 | static void set(BoolKey, bool);
57 | static void set(StringKey, const QString&);
58 | static void set(ColorKey, const QColor&);
59 |
60 | static int get(IntKey);
61 | static bool get(BoolKey);
62 | static QString get(StringKey);
63 | static QColor get(ColorKey);
64 |
65 | static QFont font();
66 | static void setFont(const QFont&);
67 | };
68 |
69 | #endif // __JUFFED_EDITOR_SETTINGS_H__
70 |
--------------------------------------------------------------------------------
/plugins/cmake/FindJuffed.cmake:
--------------------------------------------------------------------------------
1 | # Find Juffed editor's development stuff - for plugins
2 | #
3 | # This module defines
4 | # JUFFED_INCLUDE_DIR, where to find includes
5 | # JUFFED_LIBRARY, the libraries needed to use link with
6 | # JUFFED_FOUND, the flag id the system contains
7 | #
8 | # Optional inputs:
9 | # JUFFED_PATH_INCLUDES - cmake input variable to specify non-standard path to includes
10 | # JUFFED_PATH_LIB - cmake input variable to specify non-standard path to library
11 | #
12 | # Petr Vanek
13 | # Redistribution and use is allowed according to the terms of the BSD license.
14 | # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
15 |
16 | find_path(JUFFED_INCLUDE_DIR JuffPlugin.h
17 | ${JUFFED_PATH_INCLUDES}/
18 | ${CMAKE_INSTALL_PREFIX}/include/juffed
19 | /usr/local/include/
20 | /opt/local/include/
21 | )
22 |
23 | find_library(JUFFED_LIBRARY NAMES juff libjuff
24 | PATHS
25 | ${JUFFED_PATH_LIB}
26 | /usr/lib/
27 | /usr/lib${LIB_SUFFIX}/
28 | /usr/local/lib/
29 | )
30 |
31 | if (JUFFED_LIBRARY AND JUFFED_INCLUDE_DIR)
32 | set( JUFFED_FOUND 1 )
33 | endif()
34 |
35 |
36 | IF (JUFFED_FOUND)
37 |
38 | MESSAGE(STATUS "Juffed dev found")
39 | MESSAGE(STATUS " includes: ${JUFFED_INCLUDE_DIR}")
40 | MESSAGE(STATUS " libs: ${JUFFED_LIBRARY}")
41 |
42 | ELSE (JUFFED_FOUND)
43 |
44 | MESSAGE(STATUS "Juffed dev not found.")
45 | MESSAGE(STATUS " You can specify includes: -DJUFFED_PATH_INCLUDES=/some/path")
46 | MESSAGE(STATUS " currently found includes: ${JUFFED_INCLUDE_DIR}")
47 | MESSAGE(STATUS " You can specify libs: -DJUFFED_PATH_LIB=/another/path")
48 | MESSAGE(STATUS " currently found libs: ${JUFFED_LIBRARY}")
49 |
50 | IF (Juffed_FIND_REQUIRED)
51 | MESSAGE(FATAL_ERROR "Could not find Juffed dev")
52 | ENDIF ()
53 |
54 | ENDIF (JUFFED_FOUND)
55 |
56 |
--------------------------------------------------------------------------------
/plugins/colorpicker/ColorFormatDlg.cpp:
--------------------------------------------------------------------------------
1 | #include "ColorFormatDlg.h"
2 |
3 | #include
4 |
5 | ColorFormatDlg::ColorFormatDlg( JuffPlugin* plugin, const QColor& color, QWidget* parent) : QDialog(parent) {
6 | _ui.setupUi( this );
7 |
8 | _plugin = plugin;
9 |
10 | connect( _ui.buttonBox, SIGNAL(accepted()), SLOT(accept()) );
11 | connect( _ui.buttonBox, SIGNAL(rejected()), SLOT(reject()) );
12 |
13 | int r, g, b;
14 | color.getRgb( &r, &g, &b );
15 |
16 | _ui.btnHtml->setText( color.name() );
17 | _ui.btnHex->setText( color.name().replace("#", "0x") );
18 | #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
19 | _ui.btnHexSplitted->setText( QString().asprintf("0x%02hX, 0x%02hX, 0x%02hX", (unsigned short)r, (unsigned short)g, (unsigned short)b) );
20 | _ui.btnSplitted->setText( QString().asprintf("%i, %i, %i", r, g, b) );
21 | #else
22 | _ui.btnHexSplitted->setText( QString().sprintf("0x%02hX, 0x%02hX, 0x%02hX", (unsigned short)r, (unsigned short)g, (unsigned short)b) );
23 | _ui.btnSplitted->setText( QString().sprintf("%i, %i, %i", r, g, b) );
24 | #endif
25 |
26 | _ui.buttonGroup->setId( _ui.btnHtml, 0 );
27 | _ui.buttonGroup->setId( _ui.btnHex, 1 );
28 | _ui.buttonGroup->setId( _ui.btnHexSplitted, 2 );
29 | _ui.buttonGroup->setId( _ui.btnSplitted, 3 );
30 |
31 | // _ui.btnHtml->setChecked( true );
32 | int id = PluginSettings::getInt( plugin, "format", 0 );
33 | QAbstractButton* btn = _ui.buttonGroup->button( id );
34 | if ( btn != 0 ) {
35 | btn->setChecked( true );
36 | }
37 | else {
38 | _ui.btnHtml->setChecked( true );
39 | }
40 | }
41 |
42 | QString ColorFormatDlg::colorStr() const {
43 | QAbstractButton* checkedBtn = _ui.buttonGroup->checkedButton();
44 | if ( checkedBtn != 0 ) {
45 | int id = _ui.buttonGroup->checkedId();
46 | PluginSettings::set( _plugin, "format", id );
47 | return checkedBtn->text();
48 | }
49 | else {
50 | return "";
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/plugins/terminal/TerminalPlugin.h:
--------------------------------------------------------------------------------
1 | #ifndef _TERMINAL_PLUGIN_H_
2 | #define _TERMINAL_PLUGIN_H_
3 |
4 | class QWidget;
5 | class QTermWidget;
6 |
7 | #include
8 | #include
9 |
10 | #include
11 |
12 | #include "ui_preferences.h"
13 |
14 |
15 | /*! \brief Terminal preferences.
16 | It's based on the code from qterminal
17 | \author Petr Vanek
18 | */
19 | class Preferences : public QWidget, Ui::Preferences
20 | {
21 | Q_OBJECT
22 |
23 | public:
24 | Preferences(const QObject * parent,
25 | const QString &color,
26 | const QString & emulation,
27 | const QFont & font);
28 | };
29 |
30 | class TerminalPlugin : public QObject, public JuffPlugin {
31 | Q_OBJECT
32 | #if QT_VERSION >= 0x050000
33 | Q_PLUGIN_METADATA(IID JuffPlugin_iid)
34 | #endif
35 | Q_INTERFACES(JuffPlugin)
36 | public:
37 | TerminalPlugin();
38 | virtual ~TerminalPlugin();
39 |
40 | // info
41 | QString name() const;
42 | QString description() const;
43 | QString targetEngine() const;
44 |
45 | // controls
46 | QWidgetList dockList() const;
47 | Juff::ActionList mainMenuActions(Juff::MenuID) const;
48 |
49 | QWidget* settingsPage() const;
50 | void applySettings();
51 |
52 | public slots:
53 | void colorSchemaChanged(const QString &val);
54 | void emulationChanged(const QString &val);
55 | void fontChanged(const QFont &val);
56 | void fontSizeChanged(int val);
57 |
58 | private slots:
59 | void showTerminal();
60 |
61 | private:
62 | QTermWidget* w_;
63 | QAction* termAct_;
64 |
65 | QTermWidget * m_term;
66 | QString prefColorScheme;
67 | QString prefEmulation;
68 | QFont prefFont;
69 | int prefFontSize;
70 |
71 | void init();
72 | };
73 |
74 | #endif
75 |
76 |
--------------------------------------------------------------------------------
/src/app/qsci/lexers/qscilexernsis.h:
--------------------------------------------------------------------------------
1 | #ifndef QSCILEXERNSIS_H
2 | #define QSCILEXERNSIS_H
3 |
4 | #include
5 |
6 | #define SCE_NSIS_DEFAULT 0
7 | #define SCE_NSIS_COMMENT 1
8 | #define SCE_NSIS_STRINGDQ 2
9 | #define SCE_NSIS_STRINGLQ 3
10 | #define SCE_NSIS_STRINGRQ 4
11 | #define SCE_NSIS_FUNCTION 5
12 | #define SCE_NSIS_VARIABLE 6
13 | #define SCE_NSIS_LABEL 7
14 | #define SCE_NSIS_USERDEFINED 8
15 | #define SCE_NSIS_SECTIONDEF 9
16 | #define SCE_NSIS_SUBSECTIONDEF 10
17 | #define SCE_NSIS_IFDEFINEDEF 11
18 | #define SCE_NSIS_MACRODEF 12
19 | #define SCE_NSIS_STRINGVAR 13
20 | #define SCE_NSIS_NUMBER 14
21 | // ADDED for Scintilla v1.63
22 | #define SCE_NSIS_SECTIONGROUP 15
23 | #define SCE_NSIS_PAGEEX 16
24 | #define SCE_NSIS_FUNCTIONDEF 17
25 | #define SCE_NSIS_COMMENTBOX 18
26 |
27 | class QsciLexerNSIS : public QsciLexer
28 | {
29 | Q_OBJECT
30 | public:
31 | explicit QsciLexerNSIS(QObject *parent = 0);
32 |
33 | virtual ~QsciLexerNSIS();
34 |
35 | //! Returns the name of the language.
36 | const char *language() const { return "NSIS Script"; }
37 |
38 | //! Returns the name of the lexer. Some lexers support a number of
39 | //! languages.
40 | const char *lexer() const { return "nsis"; }
41 |
42 | //! Returns the set of keywords for the keyword set \a set recognised by
43 | //! the lexer as a space separated string.
44 | const char *keywords(int set) const;
45 |
46 | //! Returns the descriptive name for style number \a style. If the style
47 | //! is invalid for this language then an empty QString is returned. This
48 | //! is intended to be used in user preference dialogs.
49 | QString description(int style) const;
50 |
51 | //! Returns the foreground colour of the text for a style.
52 | QColor defaultColor(int style) const;
53 |
54 | };
55 |
56 | #endif // QSCILEXERNSIS_H
57 |
--------------------------------------------------------------------------------
/include/SearchResults.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFFED_SEARCH_RESULTS_H__
20 | #define __JUFFED_SEARCH_RESULTS_H__
21 |
22 | #include "LibConfig.h"
23 |
24 | #include
25 |
26 | #include "Types.h"
27 |
28 | namespace Juff {
29 |
30 | struct SearchOccurence {
31 | int startRow;
32 | int startCol;
33 | int endRow;
34 | int endCol;
35 |
36 | SearchOccurence() {
37 | startRow = startCol = endRow = endCol = -1;
38 | }
39 | SearchOccurence(int row1, int col1, int row2, int col2) {
40 | startRow = row1;
41 | startCol = col1;
42 | endRow = row2;
43 | endCol = col2;
44 | }
45 | };
46 |
47 | class LIBJUFF_EXPORT SearchResults {
48 | public:
49 | SearchResults(const Juff::SearchParams&);
50 |
51 | int count() const;
52 | SearchOccurence occurence(int) const;
53 | int findIndexByCursorPos(int row, int col, bool forward);
54 | void addOccurence(int, int, int, int);
55 | const Juff::SearchParams& params() const;
56 | // void setVisible(bool visible);
57 | // bool isVisible() const;
58 |
59 | private:
60 | Juff::SearchParams params_;
61 | QVector occurences_;
62 | // bool visible_;
63 | };
64 |
65 | }
66 |
67 | #endif // __JUFFED_SEARCH_RESULTS_H__
68 |
--------------------------------------------------------------------------------
/src/app/ui/settings/PluginPage.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #include "PluginPage.h"
20 |
21 | #include
22 | #include
23 | #include "Log.h"
24 |
25 | PluginPage::PluginPage(const QString& pluginName, QWidget* page, QWidget* parent) :
26 | SettingsPage(parent),
27 | enabled_(true),
28 | name_(pluginName) {
29 |
30 | page_ = page;
31 |
32 | QVBoxLayout* vBox = new QVBoxLayout(this);
33 |
34 | usePluginChk_ = new QCheckBox(tr("Enabled"));
35 | connect(usePluginChk_, SIGNAL(toggled(bool)), SLOT(enablePage(bool)));
36 | vBox->addWidget(usePluginChk_);
37 | #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
38 | vBox->setContentsMargins(0, 0, 0, 0);
39 | #else
40 | vBox->setMargin(0);
41 | #endif
42 |
43 | if ( page ) {
44 | vBox->addWidget(page);
45 | }
46 | else {
47 | vBox->addStretch();
48 | }
49 |
50 | setLayout(vBox);
51 | }
52 |
53 | PluginPage::~PluginPage() {
54 | delete usePluginChk_;
55 | }
56 |
57 | bool PluginPage::pageEnabled() const {
58 | return enabled_;
59 | }
60 |
61 | void PluginPage::enablePage(bool e) {
62 | enabled_ = e;
63 | if ( !sender() ) {
64 | usePluginChk_->setChecked(e);
65 | }
66 | if ( page_ ) {
67 | page_->setEnabled(e);
68 | }
69 | }
70 |
--------------------------------------------------------------------------------
/src/lib/DocEngine.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #include "DocEngine.h"
20 |
21 | #include "Log.h"
22 | #include "NullDoc.h"
23 |
24 | #include
25 | #include
26 |
27 | namespace Juff {
28 |
29 | DocEngine::DocEngine() {
30 | curDoc_ = NullDoc::instance();
31 | }
32 |
33 | DocEngine::~DocEngine() {
34 | }
35 |
36 | Juff::Document* DocEngine::curDoc() const {
37 | return curDoc_;
38 | }
39 |
40 | QAction* DocEngine::addAction(Juff::MenuID id, QAction* action) {
41 | if ( !actionsMap_.contains(id) ) {
42 | actionsMap_.insert(id, QList());
43 | }
44 | actionsMap_[id] << action;
45 |
46 | return action;
47 | }
48 |
49 | void DocEngine::activate(bool activate) {
50 | // LOGGER;
51 |
52 | foreach (QList list, actionsMap_) {
53 | foreach (QAction* act, list) {
54 | act->setVisible(activate);
55 | }
56 | }
57 | }
58 |
59 | void DocEngine::deactivate(bool deact) {
60 | // LOGGER;
61 |
62 | foreach (QList list, actionsMap_) {
63 | foreach (QAction* act, list) {
64 | act->setVisible(!deact);
65 | }
66 | }
67 | }
68 |
69 | void DocEngine::onDocActivated(Juff::Document* doc) {
70 | curDoc_ = ( doc == NULL ? NullDoc::instance() : doc );
71 | }
72 |
73 | } // namespace Juff
74 |
--------------------------------------------------------------------------------
/plugins/fm/FMPlugin.h:
--------------------------------------------------------------------------------
1 | #ifndef _FM_PLUGIN_H_
2 | #define _FM_PLUGIN_H_
3 |
4 | class QLineEdit;
5 | class QAction;
6 | class TreeView;
7 |
8 | #include
9 | #include
10 | #include
11 | #include
12 |
13 | #include
14 |
15 | class FMPlugin : public QObject, public JuffPlugin {
16 | Q_OBJECT
17 | #if QT_VERSION >= 0x050000
18 | Q_PLUGIN_METADATA(IID JuffPlugin_iid)
19 | #endif
20 | Q_INTERFACES(JuffPlugin)
21 | public:
22 | FMPlugin();
23 | virtual ~FMPlugin();
24 |
25 | virtual void init();
26 |
27 | // info
28 | virtual QString name() const;
29 | virtual QString title() const;
30 | virtual QString description() const;
31 | virtual QString targetEngine() const;
32 |
33 | // controls
34 | virtual QWidgetList dockList() const;
35 | virtual bool dockVisible(QWidget*) const;
36 |
37 | virtual void applySettings();
38 | QWidget * settingsPage() const;
39 |
40 | protected:
41 | virtual void onDocSaved(const QString&);
42 |
43 | protected slots:
44 | void itemDoubleClicked(const QModelIndex&);
45 | void home();
46 | void up();
47 | void back();
48 | void curFileDir();
49 | void favorites();
50 | void newDir();
51 | void addToFavorites();
52 | void goToFavorite();
53 | void manageFavorites();
54 | void textEntered();
55 | void treeCheckBox_toggled(bool value);
56 | void showHiddenBox_toggled(bool value);
57 |
58 | void onDirChanged(const QString&);
59 |
60 | private:
61 | void cd(const QString&, bool addToHistory = true);
62 | void initFavoritesMenu();
63 |
64 | bool showAsTree;
65 | bool showHidden;
66 | int sortColumn;
67 |
68 | QWidget* w_;
69 | TreeView* tree_;
70 | QFileSystemModel* model_;
71 | QLineEdit* pathEd_;
72 | QAction* backBtn_;
73 | QStack history_;
74 | QStringList favorites_;
75 | QMenu* favoritesMenu_;
76 | QAction* addToFavoritesAct_;
77 | QAction* manageFavoritesAct_;
78 | QFileSystemWatcher fsWatcher_;
79 | };
80 |
81 | #endif
82 |
--------------------------------------------------------------------------------
/src/app/ui/Popup.h:
--------------------------------------------------------------------------------
1 | /*
2 | JuffEd - An advanced text editor
3 | Copyright 2007-2010 Mikhail Murzin
4 |
5 | This program is free software; you can redistribute it and/or
6 | modify it under the terms of the GNU General Public License
7 | version 2 as published by the Free Software Foundation.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU General Public License for more details.
13 |
14 | You should have received a copy of the GNU General Public License
15 | along with this program; if not, write to the Free Software
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 | */
18 |
19 | #ifndef __JUFFED_POPUP_H__
20 | #define __JUFFED_POPUP_H__
21 |
22 | class QLabel;
23 | class QTimer;
24 | class QTimeLine;
25 |
26 | #include
27 |
28 | class Popup : public QFrame {
29 | Q_OBJECT
30 | public:
31 | Popup(const QString&, const QString&, Qt::Alignment, QWidget* parent);
32 | void popup(int seconds = 10);
33 | void dismiss();
34 | Qt::Alignment align() const { return align_; }
35 | void updatePosition();
36 |
37 | signals:
38 | void closed();
39 |
40 | protected slots:
41 | void onTimer();
42 | void makeStep(int);
43 |
44 | protected:
45 | #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
46 | virtual void enterEvent(QEnterEvent* event);
47 | #else
48 | virtual void enterEvent(QEvent* event);
49 | #endif
50 | virtual void leaveEvent(QEvent* event);
51 | virtual void mousePressEvent(QMouseEvent*);
52 |
53 | private:
54 | int bestWidth() const;
55 | void setAlpha(int alpha);
56 |
57 | QLabel* headerL_;
58 | QLabel* messageL_;
59 | QLabel* timerL_;
60 | int timerTicks_;
61 | QTimer* timer_;
62 | QTimeLine* timeLine_;
63 | bool hidden_;
64 | QString styleSheet_;
65 | Qt::Alignment align_;
66 |
67 | int initialPos_;
68 | int direction_;
69 | int curFrame_;
70 | };
71 |
72 | #endif // __JUFFED_POPUP_H__
73 |
--------------------------------------------------------------------------------
/plugins/make_tarball.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | PACKAGE_NAME="juffed-plugins"
4 |
5 | print_usage() {
6 | echo ""
7 | echo "Usage: make_tarball.sh [--tarbz2|--7z|--all] [--version=VERSION]"
8 | echo ""
9 | echo "Valid options:"
10 | echo " --tarbz2 : Make also a .tar.bz2 archive"
11 | echo " --7z : Make also a .7z archive"
12 | echo " --all : Make all archives: .tar.gz, .tar.bz2, .7z"
13 | echo " --version=VERSION : Set package version to VERSION"
14 | echo " --help : Print this help"
15 | echo ""
16 | }
17 |
18 | TARBZ2=""
19 | P7Z=""
20 |
21 | svn up
22 | REVISION=`LC_ALL=C svn info | grep Revision | cut -d" " -f2-`
23 | VERSION=`cat version`".$REVISION"
24 |
25 | # Parse command line arguments
26 | for arg in ${@}; do
27 | case ${arg} in
28 |
29 | --help)
30 | print_usage
31 | exit 0
32 | ;;
33 |
34 | --tarbz2)
35 | TARBZ2="yes"
36 | ;;
37 |
38 | --7z)
39 | P7Z="yes"
40 | ;;
41 |
42 | --all)
43 | TARBZ2="yes"
44 | P7Z="yes"
45 | ;;
46 |
47 | --version=*)
48 | VERSION=`echo "${arg}" | cut -d"=" -f2`
49 | ;;
50 |
51 | *)
52 | echo "Unrecognized option: ${arg}"
53 | print_usage
54 | exit 1
55 | ;;
56 |
57 | esac
58 | done
59 |
60 | DIR="${PACKAGE_NAME}-${VERSION}"
61 | rm -rf $DIR 2>/dev/null
62 | mkdir $DIR
63 |
64 | # checkout SVN
65 | svn co https://juffed-plugins.googlecode.com/svn/trunk/ $DIR
66 |
67 | # remove unnecessary stuff
68 | find $DIR -name ".svn" -exec rm -rf '{}' 2>/dev/null ';'
69 | rm $DIR/make_tarball.sh
70 |
71 | # prepare 'debian' directory
72 | mv $DIR/debian.in $DIR/debian
73 | sed -i "s/@VERSION@/$VERSION/" $DIR/debian/control
74 | sed -i "s/@VERSION@/$VERSION/" $DIR/debian/changelog
75 |
76 | # make a tarball and a .dsc file
77 | dpkg-source -b $DIR
78 |
79 | # pack other tarballs if necessary
80 | if [ -n "${TARBZ2}" ]; then
81 | tar -cjf "${PACKAGE_NAME}_${VERSION}.tar.bz2" $DIR
82 | fi
83 |
84 | if [ -n "${P7Z}" ]; then
85 | 7z a "${PACKAGE_NAME}_${VERSION}.7z" $DIR
86 | fi
87 |
--------------------------------------------------------------------------------