Commit Graph

252 Commits

Author SHA1 Message Date
fe1bb9d0b6 Don't make EShellViews ::ref the EShell.
svn path=/trunk/; revision=3788
2000-06-29 08:45:11 +00:00
3bedc38a94 Implement saving of configuration information. Now when you run
Evolution it will display the same folder as the last time, and will
hide/show the shortcut/folder bars as the last time.

This uses GConf so I also put a GConf check into configure.in.

svn path=/trunk/; revision=3787
2000-06-29 07:37:55 +00:00
7f36752a67 Initial support for creating/removing folders. This implies some new
IDL methods and new functions to implement on the component side.  I
have also added a simple folder creation dialog in the shell.  It's
quite unfinished and untested.

svn path=/trunk/; revision=3491
2000-06-09 19:19:36 +00:00
56d7e7d9ba Restore the toolbar. I committed a line of code that shouldn't have
been committed.

svn path=/trunk/; revision=3469
2000-06-07 22:39:41 +00:00
e7971bb4f5 Fixed a refcount leak and added interfaces to add/remove folders
from an EStorage (although they are not implemented yet).

svn path=/trunk/; revision=3460
2000-06-07 17:01:52 +00:00
ef233d76ee Free the uri variable.
2000-06-02  Christopher James Lahey  <clahey@helixcode.com>

	* e-shell-view.c: Free the uri variable.

	* e-shell.c: Free the local_directory variable.

svn path=/trunk/; revision=3385
2000-06-02 08:01:25 +00:00
0fe2baf9ee 5 more pixels in the default width to make the welcome message happy.
svn path=/trunk/; revision=3330
2000-06-01 05:41:48 +00:00
3eede8f869 Reduce the size of the window by a bit and add some padding to make
the view look nicer.

svn path=/trunk/; revision=3327
2000-06-01 04:46:32 +00:00
d0b0a5e772 Make the tree view slightly larger and hidden by default. Also, set
auto-resize mode for it so that its horizontal scrollbar does not
behave in a weird way.

svn path=/trunk/; revision=3324
2000-06-01 04:19:07 +00:00
a718dec073 Implemented right-click menus for the shell's shortcut bar (the user
can remove shortcuts now) and added status bar to the shell view.
Also, added an API call to EShortcutBar to get the view type for a
specified group.

svn path=/trunk/; revision=3318
2000-06-01 00:56:00 +00:00
c6d835a949 Initialize the toggle items in the View menu when creating them, so
that they start up in the correct state.  Deactivate the current
control when displaying an empty error page.  Removed some crufty
debugging messages.

svn path=/trunk/; revision=3310
2000-05-31 06:22:23 +00:00
fad1048c1b Make quit work again by implementing a CORBA method to unregister
components in ShellComponent.  Implemented toggle menu items to
hide/show the shortcut bar and the folder bar (but they don't work,
apparently because of some BonoboUIHandler bogosity).  Implemented a
CORBA method in Shell to allow a client to get the component that
handles a certain folder type.

svn path=/trunk/; revision=3303
2000-05-30 23:59:22 +00:00
bdf6f37a8a Added a title bar for the folder view. Removed title bar from the
shortcut view.  Made shortcuts behave correctly when moved around.
Also, implemented automatic re-saving of the shortcuts when they
change.

svn path=/trunk/; revision=3276
2000-05-30 06:32:14 +00:00
bb241192eb Reorganized the shell to allow dynamic registration of storages and
folder types, and changed all the components to work with the new
setup.

svn path=/trunk/; revision=3199
2000-05-25 05:55:59 +00:00
a93167a772 Was using the wrong include here.
2000-05-24  Christopher James Lahey  <clahey@helixcode.com>

	* e-shell-view.c: Was using the wrong include here.

	* e-storage-set-view.c: Got rid of the lines in the tree view.

svn path=/trunk/; revision=3195
2000-05-25 02:52:46 +00:00
e033af05d7 Added widgets/e-paned/Makefile.
2000-05-24  Christopher James Lahey  <clahey@helixcode.com>

	* configure.in: Added widgets/e-paned/Makefile.

	* tests/ui-tests/message-browser.c: Switched from GtkPaned to
	EPaned.

	* widgets/Makefile.am: Added e-paned directory.

	* widgets/e-paned/, widgets/e-paned/.cvsignore,
	widgets/e-paned/Makefile.am, widgets/e-paned/e-hpaned.c,
	widgets/e-paned/e-hpaned.h, widgets/e-paned/e-paned.c,
	widgets/e-paned/e-paned.h, widgets/e-paned/e-vpaned.c,
	widgets/e-paned/e-vpaned.h: New widget based completely on
	GtkPaned from 1.4.  This will be more advanced soon.

From calendar/ChangeLog:

2000-05-24  Christopher James Lahey  <clahey@helixcode.com>

	* gui/Makefile.am: Added libepaned.a.

	* gui/gnome-cal.c: Switched from GtkPaned to EPaned.

From mail/ChangeLog:

2000-05-24  Christopher James Lahey  <clahey@helixcode.com>

	* Makefile.am: Added libepaned.a.

	* folder-browser.c: Switched from GtkPaned to EPaned.

From shell/ChangeLog:

2000-05-24  Christopher James Lahey  <clahey@helixcode.com>

	* Makefile.am: Added libepaned.a.

	* e-shell-view.c: Switched from GtkPaned to EPaned.

From widgets/shortcut-bar/ChangeLog:

2000-05-24  Christopher James Lahey  <clahey@helixcode.com>

	* Makefile.am: Added libepaned.a.

	* test-shortcut-bar.c: Switched from GtkPaned to EPaned.

svn path=/trunk/; revision=3191
2000-05-24 23:00:39 +00:00
68ef3f9f98 Use TigerT's new mini icons in the shell's folder tree view.
svn path=/trunk/; revision=3091
2000-05-16 13:14:43 +00:00
cce4a6a3e5 Use the new ETitleBar widget in the shell, thus allowing the user to
hide the shortcut bar or the folder tree.  This is not completely
working right yet, partly because of GtkPaned's limitations.

svn path=/trunk/; revision=3070
2000-05-16 03:44:27 +00:00
7198aa064a Initial implementation of the tree view for the folders.
svn path=/trunk/; revision=3020
2000-05-14 01:32:19 +00:00
fa460eb6b5 Set the icons when changing between components.
2000-05-10  Christopher James Lahey  <clahey@helixcode.com>

	* e-shell-view.c: Set the icons when changing between components.

	* main.c: Set the default icon.  (The change in e-shell-view.c
	doesn't work unless we do this.)

svn path=/trunk/; revision=2964
2000-05-10 04:46:24 +00:00
0f8c6c783d Display the default inbox at startup, instead of an empty view.
svn path=/trunk/; revision=2944
2000-05-09 15:37:57 +00:00
83a766e5af Machinery for quitting and handling the relationship between a shell
and its views.

svn path=/trunk/; revision=2862
2000-05-07 06:47:44 +00:00
725d0a088d Big shell reorganization.
svn path=/trunk/; revision=2848
2000-05-07 01:57:49 +00:00
be8e1b8c1f turned the notebook border off. The calendar looks better without it. If
2000-05-03  Damon Chaplin  <damon@helixcode.com>

	* e-shell-view.c (e_shell_view_new): turned the notebook border off.
	The calendar looks better without it. If any of the views want a
	border they should create it themselves, shouldn't they?

svn path=/trunk/; revision=2801
2000-05-04 21:02:42 +00:00
fac254ed25 Removing more cruft.
svn path=/trunk/; revision=2766
2000-05-03 01:07:55 +00:00
7de868bec9 Turn off control frame autoactivation, so the toolbars work correctly.
* e-shell-view.c (e_shell_view_set_view): Turn off control frame
	autoactivation, so the toolbars work correctly. This may actually
	be a bug in Bonobo, but we'll kludge around it here for now.

svn path=/trunk/; revision=2721
2000-05-01 21:01:26 +00:00
9483369aa0 Made Evolution OAF-compatible.
svn path=/trunk/; revision=2673
2000-04-28 04:23:19 +00:00
0ad8dad44a + * widgets/e-text/e-text.c (e_text_destroy): Kill text->timer and
+	text->timeout on destroy.
+
+	* e-shell-view.c (bonobo_widget_is_dead): Helper function to see
+	whether a bonobo widget is a zombie (ie the remote bonobo control
+	died).
+	(e_shell_view_set_view): Try to respawn dead bonobo widgets.

svn path=/trunk/; revision=2638
2000-04-26 19:28:22 +00:00
7c309e43b2 + * widgets/Makefile.am: Added e-paned directory.
+
+	* default_user/Makefile.am: new file.
+
+	* default_user/Main_Shortcuts.xml: New file; is used to fill the
+	shortcut bar's "main shortcuts" pane.
+
+	* default_user/Other_Shortcuts.xml: New file, used to fill the
+	shortcut bar's "other shortcuts" pane.
+
+	* default_user/Inbox.mbox: New file. This is the first message a
+	new user will see when they fire up Evolution. Needs work.
+
+	* Makefile.am: added default_user directory.
+	* configure.in: same.
+
+	* e-paned.c: New file. Makes a GtkPaned with more than two
+	children.
+	* e-paned.h: same.
+
+	* Makefile.am: added e-paned.[ch].
+
+	* e-shell-view.h: Added hpaned and treeview widgets to
+	EShellView. Added e_shell_view_toggle_shortcut_bar() and
+	e_shell_view_toggle_treeview().
+
+	* e-shell-view.c (e_shell_view_setup_shortcut_display): Use EPaned
+	widget to house our shortcut bar.
+	(e_shell_view_toggle_shortcut_bar): New function; toggles whether
+	the shortcut bar is showing.
+	(e_shell_view_toggle_treeview): Same, for the treeview (NYI).
+	(e_shell_view_new): Put the notebook view in our EPaned widget.
+
+	* e-shell-view-menu.c (esv_cmd_toggle_shortcut_bar): New function;
+	toggles whether the shortcut bar is viewed.
+	(esv_cmd_toggle_treeview): Same, but with the treeview.  Added
+	menuitems in the "view" menu to allow access to the above.
+

svn path=/trunk/; revision=2575
2000-04-24 03:10:30 +00:00
528fe3b08e set calendar's uri with a property bag
* e-shell-view.c (get_view): set calendar's uri with a property bag

	* gui/evolution-calendar-control.c (calendar_properties_init): create
	a property bag for this control
	(set_prop): callback for property sets
	(get_prop): callback for proprety gets

	* gui/calendar-commands.c (calendar_set_uri): new function,
	called when the "calendar_uri" property is set on the calendar-
	control's property bag.

svn path=/trunk/; revision=2501
2000-04-19 13:39:43 +00:00
82e77d6d8e Added a note field.
2000-04-14  Christopher James Lahey  <clahey@helixcode.com>

	* addressbook/backend/ebook/e-card.c,
	addressbook/backend/ebook/e-card.h,
	addressbook/backend/pas/pas-backend-file.c,
	addressbook/backend/pas/pas-backend-ldap.c,
	addressbook/contact-editor/e-contact-editor.c: Added a note field.

From shell/ChangeLog:

2000-04-14  Christopher James Lahey  <clahey@helixcode.com>

	* e-shell-view.c: Made the left pane of the shell view not
	autoresize.

svn path=/trunk/; revision=2444
2000-04-15 00:14:42 +00:00
b9630445a0 + * addressbook/gui/component/addressbook.c (control_activate): Make
+	"New Contact" menuitem add a card with new_contact_cb().
+
+	* e-shell-view.c (e_shell_view_setup): Set the default height
+	bigger, to 600, so that everything in the shortcut-bar shows up.

svn path=/trunk/; revision=2353
2000-04-09 19:00:50 +00:00
59606c2849 + * folder-browser.c (folder_browser_destroy): Unref the shell
+	interface that we have a handle to.
+
+	* folder-browser-factory.c (control_destroy_cb): New function;
+	destroys a folder-browser when its control is destroyed.
+	(folder_browser_factory): Hook up to the above.
+
+	* e-shell-view.c (destroy_folder_view): New function;
+	Bonobo_Unknown_unref's the controls that have the views in them.
+	(esv_destroy): Calls the above for each folder_view in the
+	hashtable.
+	(get_view): unref the ServiceRepository interface of the control
+	when we're done with it.
+

svn path=/trunk/; revision=2333
2000-04-07 21:42:56 +00:00
51a7de64e2 hook up control:calendar
* shell/e-shell-view.c (get_view): hook up control:calendar

svn path=/trunk/; revision=2295
2000-04-05 20:14:40 +00:00
04b899a36e Hold off on deactivating the "outgoing" control until after setting up the
* shell/e-shell-view.c (e_shell_view_set_view): Hold off on
	deactivating the "outgoing" control until after setting up the
	"incoming" control. That way if the new control takes a few
	seconds to load, there won't be an ugly empty spot where the
	toolbar used to be while the new control loads.

svn path=/trunk/; revision=2262
2000-03-30 20:52:07 +00:00
4435a5db63 Call bonobo_control_frame_activate on the folder_view every time it is
* shell/e-shell-view.c (e_shell_view_set_view): Call
	bonobo_control_frame_activate on the folder_view every time it
	is displayed, and bonobo_control_frame_deactivate every time it is
	hidden.

	* folder-browser-factory.c (control_activate): build a toolbar.
	(control_deactivate): and hide it.

svn path=/trunk/; revision=2250
2000-03-30 00:22:56 +00:00
d78bd3829c + * shell/e-shell-view.c (get_view): Move CORBA_Environment to
+	different scope.
+
+	* ebook/e-book.c,
+	ebook/e-book.h,
+	ebook/e-book.h,
+	ebook/e-card-fields.h,
+	ebook/e-card.h,
+	ebook/e-commerce.h: old, removed. Up-to-date EBook stuff is kept
+	in addressbook/backend/ebook.

svn path=/trunk/; revision=2162
2000-03-25 22:33:30 +00:00
175fcc0ed5 Added some assertions.
* e-table-text-model.c (e_table_text_model_destroy): Added some
	assertions.

svn path=/trunk/; revision=2146
2000-03-22 17:22:08 +00:00
f286676ead + * shell/main.c (evolution_boot): gtk_signal_connect'ed "destroy"
+	to gtk_main_quit, so that the shell dies when you want it to.
+
+	* shell/e-shell-view.c (get_view): Reorganized, and added
+	assertions.
+	(e_shell_view_set_view): Added assertions.
+
+	* camel/camel-formatter.c (debug): Disabled some useless debug
+	messaging.

svn path=/trunk/; revision=2141
2000-03-22 16:35:58 +00:00
b76bf69d8d New private field in EShellView added, which contains the notebook and a
* shell/e-shell-view.h: New private field in EShellView added,
	which contains the notebook and a hashtable of folders to views.

	* shell/e-shell-view.c (e_shell_view_set_view): Instead of
	creating a new control every time we set the view, we now keep our
	controls in a notebook. This function now switches to the correct
	notebook page, or creates a new page/control as necessary.
	(e_shell_view_new): Creates and inserts the notebook into the
	shell.

svn path=/trunk/; revision=2122
2000-03-21 01:27:04 +00:00
f59d7438e2 Added an E_FOLDER_CONTACTS section to the get_view function.
2000-03-13  Christopher James Lahey  <clahey@helixcode.com>

        * shell/e-shell-view.c: Added an E_FOLDER_CONTACTS section to the
        get_view function.

        * addressbook/demo/Makefile.am: Added files for addressbook bonobo
        component.  Changed non bonobo version to compile as
        test-addressbook.

        * addressbook/demo/addressbook.c,
        addressbook/demo/addressbook.gnorba,
        addressbook/demo/addressbook.h,
        addressbook/demo/addressbook-factory.c,
        addressbook/demo/addressbook-widget.c,
        addressbook/demo/addressbook-widget.h: New factory to create an
        addressbook bonobo component.

svn path=/trunk/; revision=2114
2000-03-13 16:59:34 +00:00
470823e288 (get_view): added a parameter to have a reference to the EShellView.
2000-03-13  bertrand  <bertrand@helixcode.com>

	(get_view): added a parameter to have
	a reference to the EShellView.
	(get_view): In the case of the mail component
	use the Evolution_ServiceRepository to
	give the component a reference to the
	Shell server.

The Mail component now has a reference to the shell corba
server. It is gonna make it possible to register new services
in the shell.

svn path=/trunk/; revision=2111
2000-03-13 06:09:26 +00:00
b380094567 once we have the bonobo control widget, disable the autoactivation and
2000-03-13  bertrand  <bertrand@helixcode.com>

	* shell/e-shell-view.c (get_view):
	once we have the bonobo control widget,
	disable the autoactivation and activate
	the control frame.

2000-03-12  bertrand  <bertrand@helixcode.com>

	* folder-browser-factory.c (folder_browser_factory_init):
	name change.
	(control_activate_cb): when the control is activated,
	it merges its own UI with the remote UIHandler.
	(control_add_menu): sample menu merging.
	(folder_browser_factory): connect the control "activate" signal.


(Bonobo control / shell view) UIMenu merging.

svn path=/trunk/; revision=2110
2000-03-13 05:04:31 +00:00
b21cd06a46 name change
2000-03-12  bertrand  <bertrand@helixcode.com>

	* shell/e-shell-view.c (get_view): name change

2000-03-12  bertrand  <bertrand@helixcode.com>

	* folder-browser-factory.c (folder_browser_factory_init):
	name change.

	* evolution-mail.gnorba:
	name changes

svn path=/trunk/; revision=2109
2000-03-13 01:56:12 +00:00
4ec9945f05 added the get_e_folder_type function.
2000-03-12  bertrand  <bertrand@helixcode.com>

	* shell/e-folder.c (e_folder_get_folder_type): added the
	get_e_folder_type function.

2000-03-12  bertrand  <bertrand@helixcode.com>

	* folder-browser.h: added a reference to an
	Evolution::Shell object.

	* folder-browser-factory.c (folder_browser_set_shell):
	(folder_browser_control_add_service_repository_interface):
	(folder_browser_factory): the folder-browser control now
	implements the Evolution/ServiceRepository interface.

Sync for matt

svn path=/trunk/; revision=2108
2000-03-13 00:10:21 +00:00
5adb1dedf6 Implementation of the service repository interface as a bonobo object.
2000-03-12  bertrand  <bertrand@helixcode.com>

	* shell/evolution-service-repository.c:
	* shell/evolution-service-repository.h:
	Implementation of the service repository interface
	as a bonobo object.

	* shell/evolution-service-repository.idl:
	new file. Contains the definition for the service
	repository interface.

	* shell/Shell.idl: move the shell related stuff
	here

svn path=/trunk/; revision=2103
2000-03-12 15:17:01 +00:00
7c164f12b9 More changes than a man can remember.
The UI works now.

svn path=/trunk/; revision=2074
2000-03-06 09:38:42 +00:00
711ce9920a More work on the code. Added more for the framework.
More work on the code.  Added more for the framework.

Miguel.

svn path=/trunk/; revision=1593
2000-01-19 07:57:20 +00:00
ec6a1f4288 More work; Model view for the shortcut bar is better; More menus; More features -migu
svn path=/trunk/; revision=1587
2000-01-18 08:47:25 +00:00
173a420369 Shaping up; Model/view is still not fully setup, but coming, coming
svn path=/trunk/; revision=1580
2000-01-17 08:58:29 +00:00