Enrico Tröger
bf179fa14d
Parse Python import statements to get symbol completion for the imported module names.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3804 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-19 20:17:21 +00:00
Enrico Tröger
7879c0cdd7
Fix compiler warning.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3794 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-13 22:17:30 +00:00
Nick Treleaven
bebb03c977
Also print debug messages when loading a tag file manually or for
...
default global tags files e.g. python.tags.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/unstable@3761 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-01 15:04:46 +00:00
Nick Treleaven
f478125961
Show the number of tags in a user global tags file (instead of the
...
running total) in the debug message.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/unstable@3760 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-01 14:45:31 +00:00
Nick Treleaven
236d99c763
Read custom system global tags files from $prefix/share/geany/tags.
...
Closes #2778923 .
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/unstable@3751 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-30 12:54:15 +00:00
Enrico Tröger
26318a59ca
Prevent crashes when two or more top level items in the symbol list have the same name ( closes #2778246 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3735 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-25 09:30:07 +00:00
Enrico Tröger
61f89d5c25
Add a trivial symbol parser for NSIS files.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3716 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-21 20:52:19 +00:00
Enrico Tröger
a95a59a42f
Remove all G_LIKELY macros inside g_return_if_fail() statements as this is redundant.
...
Remove many other G_LIKELY/G_UNLIKELY macros which doesn't make much sense to keep the code more readable.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3708 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-15 22:47:33 +00:00
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