89 Commits

Author SHA1 Message Date
Nick Treleaven
664ee2f75d Make KeyBinding name and label fields non-const strings so they can
be freed by any plugins that need to use malloc'd strings.
Document KeyCallback typedef.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2345 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-14 17:23:24 +00:00
Enrico Tröger
1bd9ee6664 Use a separate string for keybinding label to avoid display of an underscore.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2337 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-13 15:08:03 +00:00
Enrico Tröger
80cec8e6ba Install header files and add a pkg-config file for external plugins.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2333 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-13 12:15:26 +00:00
Nick Treleaven
2c19fe8e14 Break down Edit, Editing, Tags, Other keybinding groups into Editor,
Clipboard, Select, Format, Insert groups and rename GEANY_KEYS_*
accordingly.
Group most keybinding callbacks together according to keybinding
group.
Add underscore for GEANY_KEYGROUP_*.
Set main menu widget with keybindings_set_item() - this is still
ignored for now. Popup menu accels are set separately.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/plugin-keybindings@2323 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-12 13:37:39 +00:00
Nick Treleaven
5f43e01f17 Add keybindings_set_item() to the plugin API and update the HTML
Characters plugin.
Rename KBCallback, cmd_id, cb_func with clearer names.
Add KeyBinding::menu_item field for setting accelerators (currently
does nothing).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/plugin-keybindings@2318 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-10 13:23:57 +00:00
Nick Treleaven
747d2d2bf4 Add support for plugin keybindings using the PLUGIN_KEY_GROUP()
macro. Note: plugin keybindings are not yet loaded from the keyfile.
Add a plugin keybinding for 'Insert Special HTML Characters'.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/plugin-keybindings@2315 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-07 18:00:22 +00:00
Nick Treleaven
ee26ac9254 Change keybindings code to use keybinding groups, each with a
separate enum set, which will make the plugin ABI more stable,
and lay the groundwork for plugin keybindings support.
Note: this breaks the plugin API.
Disable setting menu accelerators (temporary).
Disable Keyboard Shortcuts dialog (temporary).
Disable snippets completion (temporary).
Disable focus commands in the VTE (temporary).
Make Tags group use separate cb_func_tags callback.
Rename keybindings_cmd() to keybindings_send_command().
Add keybindings_lookup_item().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/plugin-keybindings@2297 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-29 19:30:28 +00:00
Enrico Tröger
b7bfb2743a Replace all C++-style comments with usual C-like multi-line comments.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2287 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-27 13:17:29 +00:00
Enrico Tröger
ce12940621 Apply patch by Pierre Joye to add new process spawning implementation for Windows.
Make utils_spawn_* available to plugin API.
This makes the VCdiff plugin to work on Windows (thanks).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2279 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-24 10:27:32 +00:00
Enrico Tröger
85f73129c0 Apply patch from Daniel Richard G. to fix to fix several compiler warnings, C89 violations and minor code problems (thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2267 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-20 11:24:23 +00:00
Enrico Tröger
79cccc68d9 Fix typo (thanks Slava Semushin for reporting).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2233 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-07 14:19:45 +00:00
Enrico Tröger
7b9ba876c1 Make forgotten strings translatable.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2232 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-06 16:02:00 +00:00
Frank Lanitz
d8a79b09b6 Fixed a little typo
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2204 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-31 19:02:52 +00:00
Nick Treleaven
cdf447647f Add new macros for plugin API functions that use a 'p_' prefix to
prevent conflicts with other tags whilst keeping the same first word
as core function names, and update plugins to use them.
The old plugin macros are still available, but will be removed
after the next release.
Compiling with -DGEANY_DISABLE_DEPRECATED in CFLAGS will disable
the old macros.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2195 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-28 17:27:39 +00:00
Enrico Tröger
a248c03f18 Fix crash while reading Scintilla styles.
Append "_export" to the exported file name when the exported file has the same extension as the source file.	 


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2162 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-11 15:02:42 +00:00
Enrico Tröger
e3201062c6 Update copyright information and change format of email addresses in source files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2150 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-06 18:11:57 +00:00
Enrico Tröger
9b71ac887d Remove filetype macro to avoid naming conflicts.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2147 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-04 13:57:17 +00:00
Enrico Tröger
697195c4fe Patch by Yura Siamashka:
Add project type field.
Go to tag definition/declaration will open the file with the tag if it isn't already open.
Add some utils and tagmanager functions to the plugin API.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2145 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-02 21:20:33 +00:00
Nick Treleaven
43890f2045 Use documents->open_files() as it's more efficient when opening
multiple files and existing files are open for filetypes with
typename colouring.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2141 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-02 13:39:53 +00:00
Nick Treleaven
de3d1e3223 Disable popup menu items when there is no selection.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2134 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-28 17:35:58 +00:00
Nick Treleaven
6ea61f1722 Refactor with functions: check_single_selection(),
is_folder_selected(), get_tree_path_filename() and separate menu
item callbacks.
Rename "Open with..." popup item "Open externally" ("..." is usually
used when the user can input more information).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2133 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-28 17:02:07 +00:00
Enrico Tröger
639e23effa Use pluginmacros.h (for classbuilder and htmlchars plugins).
Add highlighting_get_style().
Add highlighting_get_style() to the plugin API.
Rename DocumentFuncs field in GeanyData struct to avoid name clashes.	      


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2103 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-16 11:27:59 +00:00
Enrico Tröger
e3e90f3de9 Improve error message when external command could not be executed.
Allow use of external command also for the special ".." item.      


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2091 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-05 13:54:43 +00:00
Enrico Tröger
c380fb75b4 Set svn:keywords and svn:eol-style for all files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2089 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-04 15:44:45 +00:00
Enrico Tröger
083e5057af Let right-clicks select an item.
Don't load unused symbols from library.
Grab focus after right-clicked in the VTE widget.	  


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2088 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-04 15:28:17 +00:00
Enrico Tröger
01928d453a Add ".." path entry to every directory.
Fix display of double backslash in path entry on Windows.
Add basic path entry auto completion.
Print error message when external command fails to execute.	    


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2087 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-04 13:25:41 +00:00
Enrico Tröger
c27e9b54c6 Add search_show_find_in_files_dialog() to the plugin API.
Make path entry of filebrowser plugin editable.
Add "Open with" and "Find in Files" popup menu items to filebrowser  plugin and add configuration dialog.	    


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2085 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-02 10:52:19 +00:00
Enrico Tröger
de8caa6055 Remove obsolete SVNdiff plugin, use the VC Diff plugin.
Add option for amount of characters to trigger symbol completion.
Add document_find_by_filename to the plugin API.		


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2084 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-01 17:53:36 +00:00
Enrico Tröger
42e026fe4b Fix display of double slash in path entry.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2074 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-29 17:56:36 +00:00
Enrico Tröger
ac48d14376 New plugin: Auto Save.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2067 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-22 17:03:53 +00:00
Enrico Tröger
2b07283739 Add plugin manager dialog to select plugins to load at startup and to call a plugin configure dialog.
Add configure symbol for plugins which is called by Geany when a configure dialog for the plugin is requested, optionally.
Add author field to plugin info struct.
Add sample configure dialog to the demo plugin.
Fix cleanup code in filebrowser plugin to remove it completely when unloaded.			


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2060 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-20 18:15:46 +00:00
Enrico Tröger
fe50d70430 Remove unused variable.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2056 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-18 17:40:08 +00:00
Nick Treleaven
31c1cae631 Added plugin 'VC Diff', slightly modified from a patch by Yura
Siamashka (thanks). It was adapted from the SVN Diff plugin.
Currently it supports SVN, CVS and GIT.
Fixed GTK warnings when the current file has no filename and when
the current directory has no version control system.
Made some refactoring changes to make the VC_RECORD struct contain
all necessary attributes about each version control system.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2048 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-14 16:44:45 +00:00
Nick Treleaven
27fafa5ac7 Make 'Set path from document' use the current working directory or
the project base path when no document is open.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2047 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-13 16:41:59 +00:00
Nick Treleaven
6687b67074 Fix popup menu item capitalization according to Gnome HIG.
Add separator menu item to VTE popup menu.
Move VTE Prefs item below Input Methods.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2037 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-08 16:21:46 +00:00
Nick Treleaven
4495997fcf Add menu separator so users don't accidentally click revert and lose
all their work.
Capitalize revert menu item.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2024 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-06 13:09:04 +00:00
Nick Treleaven
4c6f97d148 Fix gtk_widget_destroy() warning when unloading plugin and no svn
binary is in /usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/nmt/bin.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2023 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-06 13:05:20 +00:00
Nick Treleaven
190a7e9d33 Fix sign comparison warning.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2022 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-06 12:54:04 +00:00
Frank Lanitz
293bba1692 Added support for svn revert and a little patch from Yura Siamashka to re-use an already created tab for a new diff on the same file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2018 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-05 14:21:46 +00:00
Frank Lanitz
35c84d4cbc Make svn error messages better readable
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1992 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-31 10:16:43 +00:00
Nick Treleaven
b01425321e Rename tagm macro tagmanager (should be clearer).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1991 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-29 17:16:51 +00:00
Nick Treleaven
7e704a20ea Don't dereference symlinks.
Make sure current_dir always has a full path.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1990 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-29 17:15:03 +00:00
Nick Treleaven
28504ed889 Add a separate menu item for diff from the current directory.
Disable file and directory diff menu items if the current document
has no filename.
Disable project menu item when no project is open.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1988 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-29 16:34:12 +00:00
Nick Treleaven
563ea7180d Factor out common make_diff() and show_output() functions for both
file and directory diffs.
Show any SVN error message on the status bar.
Use directory name as prefix for output filename when doing a
directory diff.
Don't remove filename extension for file diffs.
Fix some memory leaks.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1987 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-29 12:57:23 +00:00
Enrico Tröger
dd67516ac9 Add macro project for app->project.
Rename macro tm to tagm to avoid conflicts with tm struct of time.h.
Fix a warning about shadowing a global symbol.
Use plugin macros in Export and SVNDiff plugins.	    


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1985 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-28 20:54:25 +00:00
Nick Treleaven
e4a593a4e6 Show icons only in the file browser toolbar.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1983 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-26 16:09:00 +00:00
Nick Treleaven
cf3f0594d4 Capitalize menu item text.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1982 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-26 16:07:36 +00:00
Nick Treleaven
9dceb9b263 Capitalize menu item text.
Minor editing of some strings.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1981 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-26 16:04:38 +00:00
Nick Treleaven
bdeaee38f0 Prevent conflict with document::encoding (oops).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1980 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-26 15:54:28 +00:00
Nick Treleaven
58c702dafa Prevent conflict with document::encoding.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1979 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-26 15:53:19 +00:00