334 Commits

Author SHA1 Message Date
Nick Treleaven
be0d9e8ea7 Note: this breaks the plugin API.
Replace doc_array with documents_array, a pointer array. This is
necessary to avoid breaking the ABI every time a field is added to
GeanyDocument.
Remove deprecated pluginmacros.h documents macro, to avoid a
conflict.
Replace doc_list[] macro with documents[] macro, which returns a
GeanyDocument pointer.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2624 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-29 17:00:54 +00:00
Nick Treleaven
398efbd373 Note: this commit breaks the plugin API.
Split widget fields out of GeanyApp into GeanyMainWidgets, so other
data items can be added without breaking the plugin ABI.
Add GeanyData::main_widgets, and macro.
Rename treeview_notebook sidebar_notebook in GeanyMainWidgets.
Move tools_menu from GeanyData to GeanyMainWidgets.
Move statusbar out of GeanyApp (shouldn't be used directly).
Move ignore_callback out of GeanyApp.
Rename sci_goto_line() argument unfold, like sci_goto_pos().
Make utils_goto_file_pos(), utils_goto_line(),
utils_switch_document() into static functions (they are UI-related,
so shouldn't be in utils.c).
Move utils_goto_pos() to editor.c, add mark argument.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2609 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-22 14:41:28 +00:00
Enrico Tröger
311b82ebb2 Rename document struct to GeanyDocument.
Rename filetype struct to GeanyFiletype.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2594 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-16 14:17:54 +00:00
Enrico Tröger
9449f5a0d9 Clear a document's symbol list first after it was detached from its container to prevent crashes when saving files with collapsed symbol list items.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2574 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-12 13:46:19 +00:00
Nick Treleaven
00c722966c Rename GEANY_FILETYPES_ALL GEANY_FILETYPES_NONE.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@2556 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-07 13:54:21 +00:00
Nick Treleaven
a832015fff Move non-general compile-time constants into their relevant source
files.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2519 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-23 16:47:42 +00:00
Enrico Tröger
2b1addad57 Fix possible crash by an uninitialized variable.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2458 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-08 15:21:54 +00:00
Nick Treleaven
865308c5d6 Add note about possibly using bsearch in symbols_find_tm_tag().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2419 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-27 13:18:15 +00:00
Nick Treleaven
3e98f6337c Fix memory leaks when using tm_tags_extract().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2399 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-24 17:24:39 +00:00
Nick Treleaven
bdf2a271f4 Reuse find_work_object_tag() in find_workspace_tag().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2398 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-24 17:02:50 +00:00
Nick Treleaven
2431e450a0 Make Go to Tag commands look for the tag in the current document
before searching the workspace.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2397 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-24 16:44:43 +00:00
Enrico Tröger
945a41548f Update Makefile parser from CTags SVN and improve it to detect targets in Makefiles.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2388 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-23 15:25:42 +00:00
Enrico Tröger
30528921d3 Update TCL parser from CTags SVN which adds new symbol types for
classes and methods (closes #1918748).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2380 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-21 16:47:17 +00:00
Nick Treleaven
e740d9208a Fix bug with showing macro list items all on one line.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2369 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-20 15:48:03 +00:00
Enrico Tröger
1c04310ac1 Save sorting order of the symbol list when saving a file (#1917262).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2361 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-18 16:09:11 +00:00
Enrico Tröger
c0990b5e71 Add HTML parser to get h1, h2, h3 symbols as well as link anchors and JavaScript functions (closes #1896068).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2317 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-09 18:50:41 +00:00
Enrico Tröger
9dd67b2669 Backport js.c and asm.c from CTags SVN.
Fix Assembler tagmanager support and add appropriate symbol types.
Fix JavaScript parse bug (#1895242).
Change default return value of lookupKeyword() in keyword.c as it was done in CTags SVN(r339) and adjust affected parsers.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2308 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-05 18:18:19 +00:00
Enrico Tröger
b7f834dbc0 Apply patch from Yura Siamashka to use she-bang filetype detection also in filetypes_detect_from_filename() which let plugins benefit from this feature.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2306 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-05 17:09:57 +00:00
Enrico Tröger
463879872c Adjust available symbol types between Fortran parser and symbols.c to make some more of the possbile symbol types available.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2304 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-03 20:16:52 +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
Nick Treleaven
0684899905 Load ignore.tags even when global tags loading is disabled on the
command-line, so that local tags in each open file can be ignored.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2286 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-26 17:11:49 +00:00
Enrico Tröger
bcfd7746e1 Define c_tags_ignore in options.c (tagmanager) instead of symbols.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2276 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-24 10:18:36 +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
e685ab8fa5 Add support for reading tags(only for C/C++) from a file which should be ignored while parsing the file (ctags command line option -I).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2266 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-18 19:51:34 +00:00
Enrico Tröger
9a2be912fc Apply patch from Yura Siamashka to fix wrong navigation queue items (thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2241 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-10 12:34:28 +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
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
Enrico Tröger
3fef2dcc58 Prefix autotools macros with GEANY to avoid problems with already defined symbols on Windows.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2117 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-19 15:37:10 +00:00
Enrico Tröger
fc6c31a242 Add binary relocation support.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2100 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-12 20:04:45 +00:00
Nick Treleaven
ee029a2bf9 Fix broken generate tags command.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2080 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-30 18:01:43 +00:00
Enrico Tröger
e2112fac0c Use Ruby parser from CTags SVN and add/fix symbol list sections.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2078 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-29 18:24:06 +00:00
Enrico Tröger
889a1e6d03 Use FreeBasic specific sections in symbol list.
Use Basic parser from CTags SVN and improve the parser for better handling of dim and const keywords.	 


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2069 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-23 16:05:53 +00:00
Enrico Tröger
130318f94f Revert the change to make symbol sections bold and use some small indentation when expanders are hidden.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2064 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-21 17:20:26 +00:00
Enrico Tröger
5179f16628 Make sections in the symbol list bold for better distinction if expanders are hidden.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2059 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-19 15:35:30 +00:00
Enrico Tröger
92a7cff5e6 Add missing symbol types: Interface and Constants for PHP.
Disable use of non-ASCII characters for PHP parser, it caused problems when using with locales other than "C".
Add missing line break characters in error messages in lregex.c.	    


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2055 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-18 17:17:59 +00:00
Enrico Tröger
991a6c7811 Create tagmanager status file in configuration directory, not in a guessed temporary directory to ensure having write access. Fix crashes if status file can't be written.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2000 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-01 11:49:29 +00:00
Nick Treleaven
601dfd69f7 Make msgwin_status_add() only log a message, not display it on the
status bar.
Make ui_set_statusbar() take a log argument for whether to record the
message in the Status window.
(Plugin API functions already do this).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1971 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-24 10:52:48 +00:00
Enrico Tröger
7419f18f88 Fix wrong colouring of type keywords of tags from different filetypes.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1934 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-09 12:04:15 +00:00
Nick Treleaven
b5e4604562 Add --no-preprocessing, -P option when generating tags files to
disable preprocessing of C/C++ source files.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1917 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-28 11:48:55 +00:00
Nick Treleaven
852a4dbb50 Fix bug when using Navigate backwards after using the keyboard to
set the cursor position on the current word.
Add symbols_goto_tag().
Replace navqueue_append() with navqueue_goto_line().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1900 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-25 12:39:41 +00:00
Nick Treleaven
67c2afa93a Apply code from blackdog to parse Haxe typedef tags (thanks).
Show Haxe typedefs in the symbol list.
Add tag_type treeview iter.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1885 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-17 15:28:27 +00:00
Nick Treleaven
719c2131cf Fix wrong brace formatting.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1819 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-24 11:31:27 +00:00
Nick Treleaven
ef1399e000 Rename MyApp -> GeanyApp.
Move most GeanyApp fields into:
GeanyPrefs for (most) Preferences dialog fields;
UIPrefs for non-Prefs dialog visual settings;
UIWidgets for less commonly used widgets such as menuitems and
dialogs;
GeanyStatus for various states the application can be in.
Move some GeanyApp fields into EditorPrefs (and one into each of
CommandLineOptions and SidebarTreeviews).
Add plugin API prefs field.
Move disabling build widgets on Windows to build_init().
Make build callbacks static.
Add treeviews_init() to prepare popup menus and open files treeview.
Replace treeviews_find_node() with treeviews_select_openfiles_item().
Make utils_isbrace() and utils_is_opening_brace() take an
'include_angles' argument (to separate from editor_prefs).
Make 'Goto matching brace' keybinding include <> angle brackets.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1815 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-23 11:34:06 +00:00
Nick Treleaven
c00de9cdf6 Fix symbol list sort by appearance order for e.g. geany.txt.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1808 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-16 17:19:16 +00:00
Enrico Tröger
4f74783fb1 Add menu items for different sorting of the symbol list to the symbol list popup menu.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1802 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-15 17:58:58 +00:00
Nick Treleaven
9f46d083c5 Move #define PLAT_GTK to geany.h.
Move filetype typedef to geany.h.
Don't #include any src/*.h files from headers.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1800 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-15 15:37:21 +00:00
Nick Treleaven
2e454f7af5 Add reStructuredText filetype and parser.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1791 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-14 11:50:03 +00:00
Nick Treleaven
023a60cda5 Parse Python global variables and class variables from assignment
statements; assignment to a tuple literal ('x, y =') not supported.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1773 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-07 12:36:03 +00:00
Enrico Tröger
8d009973a9 Fix crash when saving a file after setting encoding "None".
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1767 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-31 17:07:33 +00:00
Enrico Tröger
f85cb9d4f1 Hide empty symbol types in the symbol list.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1756 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-28 14:10:49 +00:00