44 Commits

Author SHA1 Message Date
Nick Treleaven
d4764a2bc9 Add 'Make in base path' project file preference, on by default.
Add project_get_base_path(), separated from project_get_make_dir().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2163 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-11 16:53:25 +00:00
Nick Treleaven
1d1cd90028 Edit base path entry tooltip for clarity.
Use stock close button in close project prompt.
Allow the base path to be empty, so that users can use the current
file's directory for the Make command (but still use project session
support). In future, perhaps it would be good to have a separate Make
path setting for projects.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2155 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-09 18:05:09 +00:00
Enrico Tröger
4d70dce5d4 Add utils_is_file_writeable().
Improve checks for write permission of files and directories.
Don't overwrite maybe existing project files when trying to create new project and checking for project file's write permission (thanks to Yura Siamashka for reporting and his patch).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2151 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-06 19:59:01 +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
eb7b9b38ed Remove unnecessary macro GEANY_HOME_DIR.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2139 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-30 21:02:50 +00:00
Enrico Tröger
8b71fea887 Remove an extra space.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2127 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-23 15:20:17 +00:00
Enrico Tröger
0573e49653 Fix wrong file filters in project-related file dialogs on Windows.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2094 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-07 16:31:38 +00:00
Enrico Tröger
5e6b3d5165 Remove ununsed function project_save().
Fix typo in plugin API at utils_mkdir().
Add document_get_n_idx() to the plugin API.
Fix display of plugin separator in the Tools menu when only plugins without menu item are loaded.
Add three new signals: project_open, project_save, project_close.
On Shutdown close the project before plugins are unloaded to let plugins work on the last project closed event.			


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2065 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-21 18:54:12 +00:00
Enrico Tröger
26f6490c41 Apply patch from Bo Lorentsen to improve support for project session files (thank you).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2057 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-18 18:24:23 +00:00
Enrico Tröger
836c368d50 Apply patch from Bo Lorentsen to add support for project session files (thank you).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2043 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-11 19:06:41 +00:00
Enrico Tröger
2d77d3013a Add support for relative project base path.
Improve and synchronize base path tooltips in project new and properties dialogs.
Fix minor GUI annoyances in project dialogs.	    


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1984 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-28 17:02:36 +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
6b94181466 Apply most of the patch from #1794250 (thanks):
Remove compiler specific flags.
Add configure option to specify the path to libvte.so.
Remove many unnecessary configure checks.
Stop configure if msgfmt was not found(gettext not installed).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1961 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-19 14:48:19 +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
3ecd31d9fd Add ui_table_add_row() for easily adding widgets to a GtkTable, and
use it in project_new().
Group 'generic' functions related to GTK+ together at the top of
ui_utils.h.
Make sure G_GNUC_NULL_TERMINATED is defined in geany.h.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1702 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-13 15:54:16 +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
Nick Treleaven
b4dc6feabc Show current project name in window title.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1582 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-28 15:24:21 +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
Nick Treleaven
9570443c7b Use open folder dialog for project base path instead of create folder
dialog (better for choosing existing directories, and can still
create new folders).
Add optional title parameter for open dialog with ui_path_box_new()
and ui_setup_open_button_callback().
Use Windows folder dialog in ui_path_box_open_clicked().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1526 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-11 16:34:18 +00:00
Nick Treleaven
fd3b289afd Allow a blank project base path to use the default Make All command.
Update the 'project already open' & 'base path not found' dialogs.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1498 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-01 15:48:53 +00:00
Nick Treleaven
f23abfa7cd Allow run for any file (with a path) when a valid project run command
is set.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1497 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-01 12:27:56 +00:00
Nick Treleaven
27ebd4b2b0 Hide the unused File Patterns field in the project properties dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1496 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-01 11:47:06 +00:00
Nick Treleaven
737f9c6542 Add project file path preferences option in General tab.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1486 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-29 16:36:42 +00:00
Nick Treleaven
c95b33301e Fix no response with Project dialogs when the user enters invalid
information (oops).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1469 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-21 16:27:38 +00:00
Nick Treleaven
492cc39a9e Restore the current project when restarting Geany.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1468 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-21 12:25:17 +00:00
Nick Treleaven
7bae6fb632 Made all project dialogs modal.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1409 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-21 11:54:35 +00:00
Nick Treleaven
b364ea0cd5 Add tooltip for New Project base path entry.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1396 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-14 12:47:32 +00:00
Nick Treleaven
6ee3e658cf Make suggested New Project filename use the projects/ directory as
parent directory, instead of projects/name/.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1395 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-14 12:36:59 +00:00
Enrico Tröger
b802127670 Added missing whitespace (found by Frank).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1385 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-12 16:18:12 +00:00
Nick Treleaven
82836d4c7d Make New Project dialog create parent directories of the chosen base
path if necessary.
Prevent warnings when setting open dialog directory to a path whose
parent directory doesn't exist.
Add create_parent_dirs argument for utils_mkdir().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1382 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-10 17:26:03 +00:00
Nick Treleaven
c231cae3d6 Separate New Project dialog from Project Properties dialog.
Make Properties Filename field read-only, below Name field.
Capitalize dialog titles.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1381 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-10 12:27:55 +00:00
Enrico Tröger
90b01daf35 Fixed several compiler warnings (mainly shadowing local variables and unreachable code).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1376 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-09 13:52:26 +00:00
Nick Treleaven
0f409ab8a4 Add project run command support. Run command is a custom command-line
and can include arguments.
Make 'Choose project filename' dialog use a Save button.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1366 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-05 12:13:09 +00:00
Nick Treleaven
5aa84fcb70 Edit confirm project close text.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1351 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-01 15:54:12 +00:00
Nick Treleaven
845ea75c38 avoid using __VA_ARGS__ because older gcc 2.x versions probably don't support C99.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1350 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-01 12:38:31 +00:00
Nick Treleaven
c660ffc051 Run Make All and Make Custom from the project base directory, if set.
Add project_get_make_dir().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1348 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-01 11:38:14 +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
Enrico Tröger
64f34f1f59 Added Windows dialogs for Project new and Project open actions.
Fixed some mem leaks in the Windows code.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1307 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-19 18:58:32 +00:00
Enrico Tröger
5e91819692 Replaced the New button by a Create button.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1218 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-21 19:10:40 +00:00
Enrico Tröger
2d74a9779a Implemented loading and saving of the project file and minor improvements.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1216 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-21 17:43:52 +00:00
Enrico Tröger
001ee9aba7 Implemented project open dialog, but open doesn't do anything yet.
Added GEANY_PROJECT_EXT macro.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1203 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-18 22:13:50 +00:00
Enrico Tröger
e005839d55 Do not auto complete project filename and base path when they were changed manually.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1202 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-18 18:48:43 +00:00
Enrico Tröger
55f054d234 Added properties dialog (still far away from state ready).
Added file_patterns field.
Added utils_mkdir().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1200 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-17 23:44:08 +00:00
Enrico Tröger
716360ee6d Started to implement project management (still unusable).
Added project.[c|h].


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1194 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-15 18:12:32 +00:00