100 Commits

Author SHA1 Message Date
Nick Treleaven
67ce2f51b0 Move utils_get_tag_list() to symbols.c, make utils_find_tm_tag()
static.
Move symbols_get_global_keywords() to get_global_typenames() in
highlighting.c.
Add symbols_find_tags_as_string(), symbols_get_tag_list(),
symbols_get_macro_list(), symbols_find_in_workspace() from various
tag-related existing code.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@976 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-08 11:42:05 +00:00
Enrico Tröger
60bb784493 Moved utils_convert_to_utf8() and utils_convert_to_utf8_from_charset() to encodings.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@931 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-25 14:48:07 +00:00
Enrico Tröger
09d7f30aec Convert tag names to UTF-8 before showing them in the sidebar.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@794 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-06 17:31:53 +00:00
Nick Treleaven
a63fc1e40e Moved UI related utils from utils.c to ui_utils.c
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@790 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-05 14:24:47 +00:00
Nick Treleaven
0bd427bd05 Remove filetypes.h and Scintilla includes from geany.h; Add VALID_DOC_IDX macro
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@751 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-20 20:39:59 +00:00
Enrico Tröger
312579d70a Added menu items to insert configurable date/time strings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@744 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-19 12:56:30 +00:00
Nick Treleaven
7ebb187b26 Store build information instead of using app->cur_idx; Assume C-like warning messages when running make when the current file is a Makefile; Moved some msgwin setup and cleanup code to msgwindow.c; Moved utils_parse_compiler_error_line to msgwindow.c
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@714 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-14 15:02:52 +00:00
Nick Treleaven
921060f7fb Add wrappers for converting between utf8 and locale encoding
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@707 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-12 21:36:55 +00:00
Nick Treleaven
795fc85083 Move recent file item to the top when it is clicked on
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@680 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-07 14:53:58 +00:00
Nick Treleaven
c6fa1febba Wrap calltip and prevent it obscuring the current line
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@666 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-03 13:27:30 +00:00
Nick Treleaven
35003deb31 Added Auto indentation and Line wrapping options to Preferences dialog; Split up Miscellaneous items into Display and Features; Renamed Change Selection and Run toolbutton.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@654 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-01 10:06:28 +00:00
Enrico Tröger
31c17438cb Removed unused colour parsing functions.
Let the colour chooser pick the colour under the cursor.
Fixed bug in parsing strings containing hex values, modified the styles to keep the syntax highlighting consistent.
Removed startup warning.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@641 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-27 20:57:13 +00:00
Enrico Tröger
4e122c97b7 Removed macro GEANY_WIN32, use G_OS_WIN32 instead.
Introduced global variables for PACKAGE_DATA_DIR and  PACKAGE_LOCALE_DIR, removed macro DOCDIR (these changes are important for the Windows port).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@639 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-26 17:02:16 +00:00
Enrico Tröger
ab05f39d24 Renamed document element unicode_bom in has_bom.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@611 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-23 15:45:05 +00:00
Enrico Tröger
0ba2c566da Oops, forgot these files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@601 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-22 02:06:30 +00:00
Enrico Tröger
978a6fee93 Added menu item View->Show Sidebar and improved code around it.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@598 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-21 11:41:33 +00:00
Enrico Tröger
8b09a2935d Improved replacing escape sequences in Find and Replace dialog (thanks to Stefan Oltmanns).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@586 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-19 11:30:59 +00:00
Enrico Tröger
6516c31a6a Moved document related functions from utils.c to document.c.
Keep cursor position when replacing tabs by spaces.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@572 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-17 10:42:26 +00:00
Enrico Tröger
1b122c6bc6 Fixed wrong charset detection on UTF-8 (and maybe other) systems.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@554 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-14 10:48:02 +00:00
Nick Treleaven
1c8d62ed5d Added basic Find in files search functionality.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@551 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-13 14:30:44 +00:00
Enrico Tröger
100987ee91 Improved toolbar popup menu.
Added new preferences tab for toolbar settings, several toolbar buttons can be hidden.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@548 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-11 14:15:56 +00:00
Nick Treleaven
cee4ebf37c Fix a segfault on Go to tag defn/decl if no files have tags. Add utils_find_tm_tag
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@516 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-01 13:16:52 +00:00
Nick Treleaven
2aa7ae45a2 Add utils_get_current_time_string and fix getting the time string
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@515 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-01 12:02:30 +00:00
Enrico Tröger
805bdf9675 Added function is_opening_brace().
Use is_opening_brace() for better handling of calltips.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@506 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-29 18:22:11 +00:00
Nick Treleaven
42a206085e Apply fonts in Preferences when they are set and only if they have changed. Rename utils_set_font to utils_set_editor_font. Remove an old comment in document_open_file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@503 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-29 16:55:29 +00:00
Nick Treleaven
756c47bc97 Make Status messages override the document statistics using utils_set_statusbar; don't use a fixed buffer for statistics
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@496 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-27 17:07:22 +00:00
Enrico Tröger
f6752778f4 Add support for parsing compiler output for LaTeX with latex's --file-line-error-style command line argument.
Removed unneeded function utils_free_ptr_array().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@495 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-27 15:31:32 +00:00
Nick Treleaven
13b673d8ed Go back to the same line when reloading. Fix start selection bug when clicking in the current file if it has changed
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@468 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-20 11:55:34 +00:00
Nick Treleaven
a59a4ae006 Don't open files or go to errors automatically whilst compiling. Rename utils_goto_workspace_tag to utils_goto_file_line
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@462 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-19 13:27:09 +00:00
Nick Treleaven
6010e5bf13 Cache the current function name for efficiency in utils_get_current_function, other related fixes
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@451 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-16 17:11:09 +00:00
Enrico Tröger
9c77b56d2a Implemented code for setting indicators while compiling.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@443 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-13 20:03:44 +00:00
Nick Treleaven
79b4256758 Fix bug with Go to tag defn/decl when the filename is a link (TagManager dereferences linked filenames)
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@421 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-07 21:24:15 +00:00
Enrico Tröger
f5a9d78fcc added previously code to prevent opening of non-text files, fixed detection of C++-destructors and other improvements in utils_get_current_tag()
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@332 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-05-15 19:44:09 +00:00
Enrico Tröger
301906a0e7 remove unneeded function
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@330 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-05-15 13:04:05 +00:00
Enrico Tröger
10e4754b27 added code for parsing python error messages when clicked in compiler message window
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@324 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-05-12 16:11:14 +00:00
Enrico Tröger
ae4b9e248a moved my_strtod() from win32.c to utils.c, use it always, not only on Win32 systems
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@305 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-05-05 16:07:40 +00:00
Enrico Tröger
238a0ffb6f some changes, bugfixes
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@275 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-04-27 17:58:52 +00:00
Enrico Tröger
60dcfa3895 changed signature for utils_check_disk_status() and improved it, so it should work independet from the host time
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@238 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-03-10 00:50:27 +00:00
Enrico Tröger
6409cf8926 implemented folding
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@227 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-02-26 18:19:28 +00:00
Enrico Tröger
77d7a8141a added utils_make_human_readable_str()
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@213 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-02-22 13:41:50 +00:00
Enrico Tröger
6dd78834f2 added toggle for line numbers
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@200 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-02-14 22:10:25 +00:00
Enrico Tröger
53991615e5 added utils_beep()
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@173 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-02-06 06:34:32 +00:00
Enrico Tröger
9fe2718a33 set the Open File dialog directory to the same directory as the current file (thanks to Nick Treleaven for this patch)
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@155 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-01-26 21:32:46 +00:00
Enrico Tröger
3da8d929c3 removed unneeded utils_get_new_sci_number(), some bugfixes
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@130 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-01-14 22:42:44 +00:00
Enrico Tröger
51b9661de3 added utils_treeviews_showhide()
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@83 ea778897-0a13-0410-b9d1-a72fbfd435f5
2005-12-29 14:47:56 +00:00
Enrico Tröger
e7e279e24b made the symbol list document-oriented, so it has not to be generated on every notebook switch page event
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@65 ea778897-0a13-0410-b9d1-a72fbfd435f5
2005-12-18 22:08:42 +00:00
Enrico Tröger
95cc44a19c utils_write_file() now gives back errno instead of boolean
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@52 ea778897-0a13-0410-b9d1-a72fbfd435f5
2005-12-12 16:19:30 +00:00
Enrico Tröger
bd79cecd60 many changes, improving symbol list view, adding color settings for VTE
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@43 ea778897-0a13-0410-b9d1-a72fbfd435f5
2005-12-11 02:16:02 +00:00
Enrico Tröger
2a18ec4879 added utils_replace_filename()
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@21 ea778897-0a13-0410-b9d1-a72fbfd435f5
2005-11-27 20:49:50 +00:00
Enrico Tröger
8cb2cf0997 Initial import
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4 ea778897-0a13-0410-b9d1-a72fbfd435f5
2005-11-22 12:26:26 +00:00