Enrico Tröger
93b0278a52
Disable the default tab bar menu for the main notebook widget and use a custom menu instead which lists all open files as usual plus 'Close Other Documents' and 'Close All' menu items.
...
Remove GeanyDocumentPrivate::tabmenu_label.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3615 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-02 20:34:31 +00:00
Enrico Tröger
8effc35042
Fix mnemonic for the Edit->Preferences menu item.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3602 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-25 23:29:34 +00:00
Enrico Tröger
59079283f2
Add 'Send Selection to Terminal' command to the Edit->Format menu (initial patch by David Gleich, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3601 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-25 23:28:01 +00:00
Nick Treleaven
1c4acab84f
Split Prefs dialog General tab into sub-notebook with Startup and
...
Miscellaneous tabs. Merge Search tab into Miscellaneous tab.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3511 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-27 13:54:05 +00:00
Nick Treleaven
f62363e6eb
Use tree for Documents sidebar, grouped by path.
...
Remove Documents show full path pref.
Use enum for documents tree store column ids.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3488 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-19 13:12:45 +00:00
Enrico Tröger
c67618f89a
Fix typo.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3471 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-15 19:44:18 +00:00
Enrico Tröger
ffebb43c8e
Remove tooltips from menu items.
...
Don't use full stops in tooltips for short sentences.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3470 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-15 19:15:41 +00:00
Enrico Tröger
9d627214f1
Add GUI pref to invert all colours for syntax highlighting.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3468 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-14 19:19:08 +00:00
Nick Treleaven
9962e8abb8
Fix not switching to 2nd last used document when the last used
...
document has been closed (#1945162 ).
- Code changes:
Move geany_object extern to geany.h.
Remove CallbacksData struct.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3438 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-03 12:54:13 +00:00
Enrico Tröger
89e411cef1
Use a GeanyWrapLabel for the project indentation settings warning text in the prefs dialog.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3430 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-29 10:43:04 +00:00
Nick Treleaven
1a7f04c8da
Show warning label on Preferences dialog Editor tab when a project
...
is open.
Move Indentation frame to a separate tab.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3424 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-27 13:20:42 +00:00
Nick Treleaven
f0d2f92e65
Add Project Indentation prefs, which override the Editor
...
Preferences dialog options. For new projects, these default to the
editor indent prefs.
- Plugins:
For compatibility with this change, use editor_get_indent_prefs().
- Code changes:
The Project Properties dialog is now created by Glade, but (for
now) the existing options are added manually.
Add GeanyProjectPrivate project field.
Add stash_group_set_use_defaults().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3423 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-27 12:55:04 +00:00
Enrico Tröger
afa4255e51
Re-add can_focus flag to the notebook widgets in the preferences dialog to make keyboard navigation easier ( closes #2417200 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3395 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-17 16:17:11 +00:00
Nick Treleaven
89fce6dd26
Add an interface pref for whether to hide additional widgets when
...
double-clicking on document notebook tabs (off by default).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3359 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-11 16:29:54 +00:00
Nick Treleaven
f0d4bcee11
Don't expand Prefs dialog Editor->Completions tab frames.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3351 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-09 13:35:16 +00:00
Enrico Tröger
7c6ff4d5bb
Add Line number and Markers margin settings to the prefs dialog.
...
Add View->Editor submenu and group there the Line numbers, Markers margin, Show white space, Show line endings and Show indentation guides settings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3340 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-07 19:12:08 +00:00
Enrico Tröger
ae9e166786
Remove on_go_to_line1_activate() and directly use on_go_to_line_activate() instead.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3334 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-06 17:48:36 +00:00
Enrico Tröger
8ed9710f48
Rewrite of the whole toolbar code. Now it is based on GtkActions and all elements can be added/removed/reordered using a simple XML file.
...
Add GeanyMenubuttonAction and GeanyEntryAction as GtkAction subclasses to have menu buttons and text entries in the toolbar.
Change the Goto line toolbar item back to a plain text entry again.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3328 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-06 11:10:06 +00:00
Enrico Tröger
4ba92e0257
Don't mark labels of invisible menu items as translatable.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3320 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-04 20:28:40 +00:00
Enrico Tröger
ac72607ade
Add auto-closing of braces, brackets and quotes (patch by Guillaume de Rorthais, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3319 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-04 20:19:20 +00:00
Enrico Tröger
d3ee6f48ca
Add toolbar buttons for Cut, Copy, Paste and Delete ( #2161750 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3147 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-23 20:55:55 +00:00
Enrico Tröger
c946d4ef91
Replace Goto line text entry field in the toolbar with a spin button.
...
Remove dialogs_show_goto_line(), use the more generic dialogs_show_input_numeric() instead.
Increase limit of the maximum line number from 99999 to 100000000.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3146 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-23 20:55:06 +00:00
Nick Treleaven
65768ef184
Show the tools menu separator if there are any items below it.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3094 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-15 11:59:32 +00:00
Enrico Tröger
cb1de8b8cf
Reorder Help menu items (swap 'Keyboard Shortcuts' and 'Website').
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3065 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-10 16:43:15 +00:00
Enrico Tröger
4ec8d37075
Enable interactive search for the keybindings tree view in the prefs dialog.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3045 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-06 18:36:08 +00:00
Enrico Tröger
737c7a6d76
Add an option to store the project file of new projects inside the project base directory.
...
Doc: Add descriptions for the Search tab in the preferences dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3037 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-02 15:09:33 +00:00
Enrico Tröger
22cde627fe
Revert previous notebook focus changes as this disables the tab scroll arrows.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3017 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-28 15:17:00 +00:00
Enrico Tröger
b62583b0fb
Remove can_focus flag from notebook widgets to avoid focused tab labels.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3008 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-26 16:49:36 +00:00
Enrico Tröger
b69b6cc71f
Set the page_size parameter of GtkAdjustments to 0 instead of 10 which is set by default by Glade. This prevents breakage of spin buttons with early versions of GTK 2.14.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2997 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-25 17:04:43 +00:00
Nick Treleaven
5dde790601
Add 'Tab key indents' pref, which replaces hidden pref
...
'use_tab_to_indent'; it's now on by default.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2971 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-18 12:43:41 +00:00
Enrico Tröger
ab7a522ca9
Rename all toolbar widgets for consistent names.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2924 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-08 14:22:39 +00:00
Enrico Tröger
c33bb2204a
Fix ambiguous tooltip of new 'Stop scroll at last line' editor pref.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2921 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-01 14:49:22 +00:00
Enrico Tröger
266cbed6ff
Add 'Stop scroll at last line' editor pref (patch by Timothy Boronczyk, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2918 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-01 11:18:06 +00:00
Enrico Tröger
b82c2ee714
Set 'can_focus' property on some checkboxes in the prefs dialog which were missing it.
...
Enable 'focus_on_click' property on most checkboxes in the prefs dialog to ease keyboard navigation.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2915 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-01 11:11:33 +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
137325eb18
Don't disable 'Detect from file' indent type pref when 'Tabs and
...
Spaces' is selected.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2898 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-19 11:20:09 +00:00
Enrico Tröger
459ba625ed
Move geany_debug() into log.c.
...
Use GLib log/print handlers to log messages/warnings into a string for later usage.
Add a debug messages window, accessible through the help menu to easily view debug messages/warnings.
This might replace the extra console window on Windows.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2876 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-11 18:16:35 +00:00
Nick Treleaven
6c6934d839
Change 'Tab width' label to 'Hard tab width' for clarity.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2875 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-11 16:57:40 +00:00
Nick Treleaven
309b853b57
Merge changes from the custom-tab-width branch ( closes #1662173 ).
...
Thanks to Joerg Desch for explaining how it needs to work.
Note: this breaks the plugin API for indentation editor_prefs.
Add separate Width indent pref (as well as the Tab Width pref).
Add 'Tabs & Spaces' Indent Type radio option pref.
Add 'Tabs and Spaces' Document menu indent option.
Note: Tabs & Spaces cannot be detected (yet) when opening files;
default file templates still only use tabs.
Set 'Detect from file' indent type setting insensitive when Tabs &
Spaces is set.
Don't change per-document auto-indent setting after changing default
auto-indentation type.
- API changes:
Add GeanyIndentPrefs struct from some GeanyEditorPrefs fields.
Replace GeanyIndentPrefs::use_tabs with GeanyIndentType field 'type'.
Add editor_get_indent_prefs() to the API, which should be used to
get the right settings for a document/editor instead of reading
any struct fields. This could also support project/filetype
indentation prefs quite easily.
- Core code changes:
Move toggle_prefs to a function toggle_items_foreach(), which takes
a PREF_DISPLAY or PREF_UPDATE argument. This means the PrefEntry
array can contain runtime fields, so can read pointer contents.
Add pref_item_callbacks array of functions to call;
toggle_items_foreach(), spin_items_foreach(), radio_items_foreach(),
combo_items_foreach().
Update keyfile.c to use foreach-style functions for SettingEntry
arrays, like the new PrefEntry code in prefs.c.
Add get_indent_size_after_line() to replace get_indent() for
clarity, and to fix Tabs & Spaces auto-indentation > basic.
Remove opening-brace indent code from get_indent() as it's now in
get_brace_indent().
Change editor_close_block() to use sci_get_line_indentation() for
clarity.
Make editor_close_block() static.
Add editor_init().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2863 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-07 16:36:06 +00:00
Nick Treleaven
51badbd829
Set 'Detect from file' indent type setting insensitive when Tabs &
...
Spaces is set.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-tab-width@2859 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-07 11:49:06 +00:00
Nick Treleaven
1d55dae69f
Add 'Tabs and Spaces' Document menu indent option.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-tab-width@2844 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-31 14:47:03 +00:00
Nick Treleaven
677b91f140
Replace 'Custom tab width' option with a 'Tabs & Spaces' Indent Type
...
radio option, and a Tab Width spin entry.
Replace GeanyIndentPrefs::use_tabs with GeanyIndentType field 'type'.
(Still won't compile ;-)).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-tab-width@2827 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-28 11:52:19 +00:00
Enrico Tröger
ae2a6d84c8
Add a small border to all notebook pages in the preferences dialog.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2826 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-27 18:42:21 +00:00
Enrico Tröger
866f8fbefe
Add a preference for the comment toggle mark string("~ " by default).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2825 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-27 18:41:07 +00:00
Nick Treleaven
c72767edb5
Add separate Width indent pref.
...
Add 'Custom tab width' checkbox pref.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-tab-width@2822 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-25 15:10:53 +00:00
Nick Treleaven
edda704326
Revert editor popup menu Current Word submenu changes. See
...
http://lists.uvena.de/geany-devel/2008-July/000101.html .
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2817 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-25 11:23:52 +00:00
Nick Treleaven
8a30de5c67
Rename above pref 'Open new documents...'.
...
Group encodings prefs together in the Files tab.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2798 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-21 17:25:18 +00:00
Nick Treleaven
c5fb6b34bc
Add new Files pref 'Allow new documents from the command-line'.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2796 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-21 14:28:46 +00:00
Nick Treleaven
9469f020c8
Move editor popup menu current word items to submenu.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2787 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-17 17:17:51 +00:00
Nick Treleaven
3d24008b34
Add Find Document Usage popup menu command & keybinding.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2786 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-17 16:42:03 +00:00