141 Commits

Author SHA1 Message Date
Enrico Tröger
54f406a548 When updating global type definitions for opened documents, take also C++ namespace symbols into account and don't ignore symbols which are defined inside a scope.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3706 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-09 12:41:29 +00:00
Enrico Tröger
8111ada01b Prevent showing an empty macro list.
Show only macros of the same filetype instead of all macros of all loaded filetypes.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3698 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-07 22:09:08 +00:00
Nick Treleaven
bfe7da53bd Fix 2 old uses of filetype IDs.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3694 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-07 15:42:24 +00:00
Enrico Tröger
a9dc990049 Start using G_LIKELY/G_UNLIKELY macros to gain a little more performance when building the code with gcc.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3687 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-05 21:07:40 +00:00
Nick Treleaven
5ddc129829 Make GEANY_FILETYPES_NONE = 0; other things are now broken, e.g.
setting Open dialog filetypes.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/reorder-filetypes@3640 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-20 16:18:32 +00:00
Enrico Tröger
4122c1b138 Add filetype ActionScript (patch by Chris Macksey, thanks).
Update type keywords only for real C-like languages.
Fix wrong sorting of Assembler and Ada filetypes.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3624 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-13 09:58:27 +00:00
Enrico Tröger
57c761dea2 Fix missing brace in comment.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3608 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-27 14:06:34 +00:00
Enrico Tröger
f5a5571407 Fix broken symbol list tooltips when tag names contain ampersands.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3591 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-18 15:20:27 +00:00
Enrico Tröger
337923d423 Fix a possible crash when comparing symbol names (could be related to Ubuntu bug #147151).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3590 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-18 14:57:58 +00:00
Enrico Tröger
a47b682f6f Remove GTK tags (data/global.tags).
Add C (C99) tags (data/c99.tags) and a script to generate them).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3480 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-17 18:44:38 +00:00
Enrico Tröger
c636728975 Fix several compiler warnings and build errors (patch by Daniel Richard G., thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3460 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-11 18:29:39 +00:00
Enrico Tröger
39a6eb455e Update copyright information.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3446 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-04 18:30:42 +00:00
Nick Treleaven
077270c647 Remove geanyobject.h includes.
Use GObject instead of unused GeanyObject argument.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3439 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-03 13:03:42 +00:00
Enrico Tröger
bd628b9ddd Avoid unnecessary critical warnings when setting tooltips for the symbol list with non-UTF-8 files (closes #2473376).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3429 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-29 10:41:04 +00:00
Nick Treleaven
331c28e6a7 Show Structs separately from Typedefs / Enums for the C symbol list.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3406 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-19 16:49:37 +00:00
Nick Treleaven
32f0c26b4a Use plurals for HTML symbol list parent items.
Fix Fortran Types showing as Interfaces in the symbol list.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3405 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-19 16:28:14 +00:00
Enrico Tröger
0d0ac9fe4e Rename symbol list label for embedded script functions from 'Javascript functions' to 'Functions' to avoid confusion when it finds symbols from other embedded languages (part of #2317001).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3364 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-11 17:32:11 +00:00
Nick Treleaven
a6992526e8 Add foreach_ptr_array() macro to utils.h.
Merge toggle button prefs code into keyfile.c Stash code.
Add toggle button support to Stash code.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3356 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-11 12:49:26 +00:00
Enrico Tröger
72d6493932 Don't mark console messages as translatable.
Add two comments for translators.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3315 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-04 15:56:54 +00:00
Enrico Tröger
e34b38bbbe Generate and set the tooltip text only if it is actually necessary.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3289 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-29 12:51:05 +00:00
Enrico Tröger
13682cfd10 Add editor_get_calltip_text().
Add tooltips for the symbol list items.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3288 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-29 12:50:52 +00:00
Nick Treleaven
899dce26b6 Add 'Tools->Configuration Files' menu with items to open
filetype_extensions.conf and ignore.tags. These files are also
reloaded automatically when saved.
- Code changes:
Make app->configdir a realpath().
Add ui_add_config_file_menu_item().
Add utils_build_path(), similar to g_build_path() but (re)using a
fixed buffer, so the result is never freed.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3279 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-26 13:15:53 +00:00
Nick Treleaven
d05dca5468 Make 'Reload Configuration' command also reload ignore.tags.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3278 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-25 12:09:08 +00:00
Enrico Tröger
cb2a89ddd3 Fix wrong menu item labels in the symbol list popup menu.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3271 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-23 15:42:33 +00:00
Nick Treleaven
dc8227ad94 Add function ui_image_menu_item_new() to the plugin API, to easily
create a menu item with a stock image and a custom label.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3261 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-21 13:34:58 +00:00
Nick Treleaven
df3ffab018 Add Expand/Collapse All symbol list popup menu items.
Disable smybol list sort items when there are no tags.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3260 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-21 13:06:09 +00:00
Nick Treleaven
e84d850119 Fix reloading sometimes changing the symbol list sort order.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3259 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-20 17:01:02 +00:00
Nick Treleaven
34a0125b61 Use radio buttons for symbol list popup menu sort items.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3258 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-20 16:52:46 +00:00
Nick Treleaven
51e4000038 Move symbol list popup menu code to symbols.c.
Add symbols_init().



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3243 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-18 13:29:53 +00:00
Nick Treleaven
0e54a39c9b Make Python symbol tree method icon look more like a function than
variable.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3201 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-10 17:31:45 +00:00
Nick Treleaven
d9184913a9 Add icons for Conf symbol tree items.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3200 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-10 17:16:35 +00:00
Nick Treleaven
1f6a611580 Merge symbol-tree branch:
Apply patch (with some reworking) from Conrad Steenberg
(gnocci-man) to show methods as children of classes in the symbol
list, and for other tag types to group children by their parents
(thanks; #2083110).
This works for any filetype that TagManager can parse tag scopes
for.
Fix not allowing a leading underscore when using scope name prefix.
Fix symbol-tree branch bug: missing C++ constructor declaration
tags.
- Code changes:
Use TMTag instead of GeanySymbol so the symbol tree can read the
scope without parsing it.
Free tag list straight after use, instead of next time the list is
generated.
Use TMTag pointer tree model column instead of line number.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3197 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-10 16:57:18 +00:00
Enrico Tröger
474a0b4410 Add new filetype 'Matlab' (closes #1938631, patch by Roland Baudin, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3190 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-07 14:39:45 +00:00
Nick Treleaven
8b29e6b7f3 Fix sorting tags with missing parents by line if the names and
scopes are identical.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/symbol-tree@3174 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-05 12:58:53 +00:00
Nick Treleaven
c0064114ca Replace macro with static function.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/symbol-tree@3173 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-05 12:50:29 +00:00
Nick Treleaven
1d69b53f57 Fix sorting tags whose scope name doesn't have a tag (e.g. for C++
source file methods with class definition in a header file).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/symbol-tree@3172 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-04 18:14:04 +00:00
Nick Treleaven
3b25dca469 Remove symbol tree 'skipped' code, instead sort parents first when
adding tree iters. This should fix missing symbols sometimes.
Use TMTag instead of GeanySymbol so the symbol tree can read the
scope without parsing it (fixes problems with '.' characters in tag
names for e.g. HTML).
Free tag list straight after use, instead of next time the list is
generated.
Use TMTag pointer tree model column instead of line number.
Fix not allowing a leading underscore when using scope name prefix.
Remember parent tree iter for a tag if it is used for a child tag's
scope, rather than just for tags of a certain type. This should be
more flexible for various filetypes.
Various symbol-tree code refactoring.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/symbol-tree@3166 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-03 17:25:35 +00:00
Enrico Tröger
7c65b2f5cc Change colours and bold flag for the extended_* and id styles (thanks to Jason Oster for his suggestions).
Use CSS-specific symbol type names.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3140 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-20 18:18:28 +00:00
Enrico Tröger
be3849e33a Upate of the CSS parser to detect also ID and Type selectors (patch by Bronisław Białek, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3073 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-12 17:52:22 +00:00
Nick Treleaven
2fc2107cb8 Refactor add_tree_tags() from symbols_recreate_tag_list().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/symbol-tree@3038 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-02 15:48:50 +00:00
Nick Treleaven
5a12103f0a Apply patch (with minor formatting fixes) from Conrad Steenberg
(gnocci-man) to show methods as children of classes in the symbol
list, and for other tag types to group children by their parents
(thanks; 2083110).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/symbol-tree@3034 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-02 12:06:20 +00:00
Nick Treleaven
46cae47182 Use GeanyDocumentPrivate instead of using inheritance for non-public
fields (this was unnecessary and meant using ugly casts).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3010 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-26 17:28:50 +00:00
Nick Treleaven
6f60b4bc2c Add 'Max. symbol name suggestions' autocompletion pref.
Edit some autocompletion pref strings.
Remove some trailing commas in array initializers (oops).
Move GEANY_TOGGLE_MARK, GEANY_MAX_AUTOCOMPLETE_WORDS to keyfile.c.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2914 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-29 17:00:02 +00:00
Nick Treleaven
83c756f7b5 Fix global tags loaded debug message, display total tags count.
Add comment to warn about adding tags files vs. downloading
separately.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2911 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-28 16:59:20 +00:00
Nick Treleaven
6ce421f141 Add OpenGL Shader Language (GLSL) filetype (patch from Colomban
Wendling, thanks; closes #2060961).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2908 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-27 12:44:54 +00:00
Nick Treleaven
000e8fcc9b Merge the editor-struct branch:
Note: this breaks the plugin API for editor-related document fields
and functions.
Split new GeanyEditor struct type from GeanyDocument fields sci,
line_wrapping, auto_indent, scroll_percent, use_tabs, line_breaking.
GeanyEditor::document allows access back to document fields.
Add GeanyDocument::editor field; this is only valid when the
document is valid, and NULL otherwise. This means any checks for
doc->editor->scintilla != NULL will segfault for invalid
documents - check against doc->is_valid or doc->editor != NULL
instead.
Change plugin API EditorFuncs to use GeanyEditor pointers.
Make editor_set_font() take a pango-style font string, and use a
GeanyEditor pointer.
Use GeanyEditor* instead of GeanyDocument* in editor.c (most global
editor functions still need conversion though, but this may be done
gradually or as required).
Move utils_get_current_function() to symbols.c.
Move utils_replace_filename() to document.c.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2779 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-15 14:29:41 +00:00
Enrico Tröger
ed016dc093 Split filetype Fortran into Fortran 77 and Fortran 90.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2777 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-14 18:27:20 +00:00
Nick Treleaven
7db4bfe493 Rename GeanyEditor::scintilla to GeanyEditor::sci.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/editor-struct@2776 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-14 11:13:54 +00:00
Nick Treleaven
4837030ca1 Fix compilation.
Move utils_get_current_function() to symbols.c.
Move utils_replace_filename() to document.c.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/editor-struct@2766 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-08 16:30:37 +00:00
Enrico Tröger
6c3fe9b2cf Load "ignore_tags" file before generating global tags file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2745 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-03 13:46:01 +00:00