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
0e65cff820
Add support for generating API reference documentation using doxygen.
...
This is the first step, it is far away from being complete.
Add make target "api-doc" to generate the reference documentation.
Add documentation comments to a few functions.
Move basic plugin documentation from plugindata.h to doc/plugins.dox.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2263 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-17 18:00:42 +00:00
Enrico Tröger
73c841c79f
Fix compiler warnings.
...
Improve Save As dialog usability problems.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2254 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-12 15:50:22 +00:00
Nick Treleaven
f446def461
Don't unlink the old file if renaming failed.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2174 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-15 17:04:31 +00:00
Nick Treleaven
ff9c673ed2
Apply patch from Yura Siamashka to speed up removing several
...
workspace object's tags without updating the workspace until
necessary (thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2164 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-11 17:09:23 +00:00
Enrico Tröger
8751272b25
Fix broken Rename functionality ( closes #1868621 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2160 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-11 13:17:00 +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
Nick Treleaven
39738f90ca
Make Open, Save As dialogs start in project base path (or default
...
path pref) when the current file has no filename.
Split up widget setup code for dialogs_show_open_file(),
dialogs_show_save_as().
Add initial_dir argument for win32_show_file_dialog().
Add utils_get_default_dir_utf8().
Rename utils_get_current_file_dir() to
utils_get_current_file_dir_utf8().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2122 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-21 17:25:58 +00:00
Nick Treleaven
559ca62705
Add combo box input history for Make Custom Target dialog.
...
Make dialogs_show_input() automatically activate on pressing enter in
the GtkEntry, use a callback for input text, and have a 'persistent'
option to hide the dialog instead of deleting it, using a combo box
for input text history.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2120 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-21 13:09:09 +00:00
Enrico Tröger
e4d11212cf
Deny "(Un)Fold All" actions when folding is disabled.
...
Hide "(Un)Fold All" menu items instead of just disabling them.
Add dialogs_show_msgbox_with_secondary().
Add line and column number in charset conversion error dialog when saving a file and improve display of the failed character.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2075 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-29 18:08:20 +00:00
Enrico Tröger
c5f7867aea
Don't use unnecessary #ifdefs for utils_get_locale_from_utf8().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2019 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-05 15:09:13 +00:00
Nick Treleaven
b234bf160a
Fix saving the wrong document when using Save All with unnamed
...
documents.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1818 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-24 11:19:26 +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
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
Enrico Tröger
2397dc3b0f
Use UTF-8 filename in Save As dialog when setting non-existing filename.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1772 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-05 11:29:09 +00:00
Enrico Tröger
03b61bbbc9
Make plugins working and compiling on Windows.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1758 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-28 17:44:02 +00:00
Nick Treleaven
767b70dbb3
Move Color Chooser and Word Count tools to tools.c.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1751 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-27 11:28:17 +00:00
Nick Treleaven
73007c11e8
Move font & file open/save dialog callbacks to dialogs.c.
...
Add document_clone() in document.c (for Save As open in new tab).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1716 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-17 14:52:57 +00:00
Nick Treleaven
a4728116bc
Use Rename button instead of checkbox for Save As dialog.
...
Add tooltips for Save As dialog's other options.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1703 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-16 14:42:36 +00:00
Nick Treleaven
8fe0974d8a
Capitalize some dialog titles.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1694 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-12 11:59:13 +00:00
Enrico Tröger
17a6f764a4
Fix missing descriptive text in message box when closing an unsaved file on Windows.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1679 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-08 14:55:37 +00:00
Enrico Tröger
4e774e083f
Use the default GTK file save dialog on Windows. Prevent some (probably) unnecessary filename encoding conversions.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1671 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-06 12:37:07 +00:00
Enrico Tröger
6069531e78
Fix focus problem when using the Find dialog.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1663 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-04 17:08:53 +00:00
Enrico Tröger
6f4b4c4fa7
Set also previous colour when setting the colour for the dialog.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1652 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-29 14:32:21 +00:00
Enrico Tröger
bba1acbbb9
Add palette to Colour Chooser Dialog.
...
Fix picking colours starting with '#'.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1647 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-27 18:43:23 +00:00
Enrico Tröger
6680f847ea
Add "Open file in a new tab" and "Rename file" to the "Save as" dialog for more control over saved file.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1612 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-12 16:45:24 +00:00
Enrico Tröger
c1f109bc13
Add default startup directory option ( closes #1704988 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1561 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-23 13:44:25 +00:00
Enrico Tröger
b5f8992a5d
Added many widget names to different dialogs for use with custom styles. Menu items still don't work.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1535 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-15 15:16:16 +00:00
Enrico Tröger
e331c40a54
Use g_stat() instead of stat() to prevent file read errors on Win32.
...
Prevent unnecessary filename encoding conversions on Win32.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1456 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-16 15:58:34 +00:00
Nick Treleaven
6575d4f953
Move dialogs_show_includes_arguments_*() to build.c.
...
Move on_includes_arguments_*dialog_response() to build.c.
Make several build functions static.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1418 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-24 12:40:20 +00:00
Nick Treleaven
7ae070145b
Move dialogs_show_keyboard_shortcuts() to keybindings.c.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1415 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-23 16:34:54 +00:00
Nick Treleaven
eb8834d5bb
Add Edit button to Keyboard Shortcuts dialog.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1414 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-23 16:03:52 +00:00
Enrico Tröger
f486728aed
Added new file filter for Open File dialog to only show supported source files (list of all defined filename extensions).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1356 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-01 22:38:31 +00:00
Nick Treleaven
806dd5be1d
Add descriptions for all .c source files below the file header.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1329 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-24 11:41:56 +00:00
Nick Treleaven
594935a05d
Fixed switching to the wrong tab when showing the unsaved dialog.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1324 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-23 15:36:21 +00:00
Enrico Tröger
278458e436
Fixed crashes when using some dialogs after they were closed before.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1209 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-19 23:17:40 +00:00
Enrico Tröger
7b61ad934d
Updated copyright information.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1188 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-14 17:36:42 +00:00
Nick Treleaven
af369cf776
Fix memory leak when using utils_scan_unicode_bom().
...
Prevent invalid memory read in utils_scan_unicode_bom() when text
length is < 4.
Move utils_scan_unicode_bom(), utils_is_unicode_charset() to
encodings.c.
Read the BOM length in handle_bom().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1167 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-07 16:22:41 +00:00
Nick Treleaven
f415b70a2f
Always switch to the tab when showing the unsaved file dialog.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1117 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-18 12:34:29 +00:00
Enrico Tröger
659ed0f3f3
Added more spaces in word count dialog.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1086 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-12 21:22:50 +00:00
Enrico Tröger
871d166375
Use a table to layout the word count dialog.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1079 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-10 22:21:15 +00:00
Nick Treleaven
0a90306c8f
Use ui_button_new_with_image() in dialogs_show_unsaved_file().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1070 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-08 16:21:52 +00:00
Enrico Tröger
019859b55b
Revert the last change to utils_str_equal() and use it again because g_str_equal() is not NULL-safe.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1060 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-07 16:12:01 +00:00
Nick Treleaven
e458304ce3
Make all filetypes except LaTeX use the same build menu, disabling
...
any items that don't apply for the current document.
Move BuildMenuItems struct type to build.h.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1038 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-30 15:42:52 +00:00
Nick Treleaven
373ec102e4
Add frame for VTE Preferences tab, update packing.
...
Replace ui_frame_new() with ui_frame_new_with_alignment().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1026 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-24 11:11:06 +00:00
Enrico Tröger
829f0e3696
Don't set width of file open dialog.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@975 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-07 23:32:30 +00:00
Nick Treleaven
20637b939b
Don't close any tabs when quitting until all unsaved changes have
...
been accounted for; switch to each unsaved file before showing the
unsaved dialog.
Remove limit of ~256 chars for session filenames.
Make dialogs_show_unsaved_file() fail if the Save As dialog was
cancelled.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@972 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-07 11:24:22 +00:00
Enrico Tröger
a70b1ea728
Run set includes build dialogs for LaTeX files modally, too.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@961 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-02 23:22:34 +00:00
Enrico Tröger
e3f6f0a890
Added warning message dialog, united dialogs_show_info() and dialogs_show_error() to dialogs_show_msgbox().
...
Added warning message when opening files that cannot be handled correctly and set them to read-only mode.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@930 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-25 14:38:48 +00:00
Enrico Tröger
413f31f373
Removed unneeded macro GEANY_MAX_TAGS_COUNT.
...
Moved macro GEANY_USE_WIN32_DIALOG to geany.h.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@929 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-24 23:50:50 +00:00