After a deep refactoring, finally finished to split the window manager
authorJose Dapena Paz <jdapena@igalia.com>
Wed, 8 Oct 2008 17:39:04 +0000 (17:39 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Wed, 8 Oct 2008 17:39:04 +0000 (17:39 +0000)
commitcc379b2109f5c1b1a70419454d1a0e53c26559e6
treeaabf88f9478aa60401f9824d533c1b27ac2face5
parent51372832576ac3b1423ee599cc5b142aabdebd42
After a deep refactoring, finally finished to split the window manager
in a parent class and a child with hildon1 specific behavior. This way I
will be able to implement a hildon2 based window manager.

Responsibility of window manager:
    * Hibernation management.
    * Preregistered UIDs
    * Preload cache for view and editor.
    * Banners counting
    * Fetching help id's
    * In registering process, the part of removing the uid from
      preregistered uids list.
    * Keeping a reference to main window.
    * Saving window states.
    * Counting number of windows (maintaining the list is responsibility
      of children).

Responsibility of child:
    * Implementation of close all windows.
    * In finding registered headers, checking also in windows.
    * Show toolbar status.
    * Fullscreen status.
    * Registering window stuff (in particular also related to message
      changes in view).
    * Destroy operations, and cancelling operations on close window.
    * Fetching the main window implementation.
    * Maintaining the list of modal dialogs.

pmo-trunk-r5966
33 files changed:
src/dbus_api/modest-dbus-callbacks.c
src/gnome/modest-account-view-window.c
src/hildon2/modest-account-view-window.c
src/hildon2/modest-address-book.c
src/hildon2/modest-connection-specific-smtp-window.c
src/hildon2/modest-default-account-settings-dialog.c
src/hildon2/modest-easysetup-wizard-dialog.c
src/hildon2/modest-hildon-includes.h
src/hildon2/modest-msg-edit-window.c
src/hildon2/modest-msg-view-window.c
src/hildon2/modest-platform.c
src/maemo/easysetup/modest-easysetup-wizard-dialog.c
src/maemo/modest-account-view-window.c
src/maemo/modest-address-book.c
src/maemo/modest-connection-specific-smtp-window.c
src/maemo/modest-default-account-settings-dialog.c
src/maemo/modest-main-window.c
src/maemo/modest-msg-edit-window.c
src/maemo/modest-msg-view-window.c
src/maemo/modest-platform.c
src/modest-account-protocol.c
src/modest-main.c
src/modest-singletons.c
src/modest-tny-account-store.c
src/modest-ui-actions.c
src/modest-utils.c
src/widgets/Makefile.am
src/widgets/modest-hildon1-window-mgr.c [new file with mode: 0644]
src/widgets/modest-hildon1-window-mgr.h [new file with mode: 0644]
src/widgets/modest-window-mgr.c
src/widgets/modest-window-mgr.h
src/widgets/modest-window.c
src/widgets/modest-window.h