109 Commits

Author SHA1 Message Date
Nick Treleaven
3a12da9daf Note: this commit breaks the plugin API (but is necessary so that in
future the ABI can stay stable when adding preferences).
Split up prefs into interface_prefs, toolbar_prefs, file_prefs,
search_prefs, tool_prefs, template_prefs, and add these to the
plugin API.
Move suppress_search_dialogs and search_use_current_word to
search_prefs, and rename accordingly.
Rename switch_msgwin_pages pref to switch_to_status.
Remove toolbar_ prefix for toolbar_prefs items.
Remove tool_ prefix for tool_prefs items.
Remove template_ prefix for template_prefs items.
Add Geany prefix for EditorPrefs.
Add Geany prefix for SearchPrefs.
Initialize search_prefs to zero in main.c.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2591 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-16 12:08:39 +00:00
Enrico Tröger
c3c4bc008d Make p_editor macro also available if GEANY_DISABLE_DEPRECATED is not defined.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2590 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-15 16:19:00 +00:00
Enrico Tröger
b2cddc87a0 Move indicator functions from document.c into editor.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2587 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-14 17:58:56 +00:00
Enrico Tröger
f04e0c3955 Change an error message to be more clear about the error.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2582 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-14 15:50:11 +00:00
Nick Treleaven
a5df9640c9 Add filetypes_array macro to allow use of filetypes[ft_id].
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@2555 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-07 12:22:46 +00:00
Nick Treleaven
5340f2b9c8 Remove filetypes array from API.
Replace filetypes_get_from_uid() with filetypes_lookup_by_name().
Use a hash table for filetypes, but keep the old filetypes array
available for now.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@2538 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-28 14:41:09 +00:00
Enrico Tröger
75e749ceb5 Add file filter text entry (patch by Robert McGinley, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2518 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-22 15:14:30 +00:00
Enrico Tröger
1cf8daa1dc Fix typo.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2516 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-22 14:53:20 +00:00
Enrico Tröger
c87a82adec Make use of ngettext() for strings with plural forms.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2515 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-22 14:44:45 +00:00
Enrico Tröger
d9690cbe77 Add navqueue_goto_line() to plugin API.
Make navqueue_goto_line() store document filename instead of tagmanager filename (patch by Yura Siamashka, thanks).
This makes it also possible to add navigation history items for files without a tagmanager filename.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2496 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-17 17:48:12 +00:00
Enrico Tröger
2652667577 Add DEBUG flag to all Windows makefiles to make it possible to build with debug symbols and without optimizations also on Windows (using make DEBUG=1).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2487 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-15 15:11:05 +00:00
Enrico Tröger
2f2cee58cb Avoid linking plugins against GTK libraries which seems unnecessary.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2461 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-09 16:21:59 +00:00
Nick Treleaven
958cb93eac Add configurable keybindings for focusing the Path Entry and File
List.
Refactor load_settings() from init().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2444 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-03 16:06:41 +00:00
Nick Treleaven
9dd3382343 Add missing mnemonics (except for 3 popup menu items, ran out of
letters).
Capitalize some menu items.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2430 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-31 13:09:56 +00:00
Nick Treleaven
ddb7fa0753 Rename VCDiff plugin Version Diff.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2417 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-27 13:09:20 +00:00
Enrico Tröger
898c0602de Fix two memory leaks and prevent showing two dialog boxes with the same error message.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2415 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-26 17:52:27 +00:00
Nick Treleaven
07d37be882 Rename VERSION_CHECK PLUGIN_VERSION_CHECK, but keep a deprecated
alias so outside plugins still compile.
Update our plugins to use this.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2411 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-26 17:10:18 +00:00
Nick Treleaven
83a1ac1945 Rename p_filetype p_filetypes to keep the symmetry with filetypes_*,
and define it also when GEANY_DISABLE_DEPRECATED is not set.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2406 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-26 13:27:31 +00:00
Enrico Tröger
4a443a16bc Add p_filetype.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2401 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-24 17:33:50 +00:00
Nick Treleaven
ad46583aa9 Change author to Alexander Rodin, as he did all the design work.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2383 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-21 17:12:19 +00:00
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