a91218f240f78d75fc55535dcc6364de7264b488
[modest] / src / maemo / modest-main-window-ui-dimming.h
1 /* Copyright (c) 2006, Nokia Corporation
2  * All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions are
6  * met:
7  *
8  * * Redistributions of source code must retain the above copyright
9  *   notice, this list of conditions and the following disclaimer.
10  * * Redistributions in binary form must reproduce the above copyright
11  *   notice, this list of conditions and the following disclaimer in the
12  *   documentation and/or other materials provided with the distribution.
13  * * Neither the name of the Nokia Corporation nor the names of its
14  *   contributors may be used to endorse or promote products derived from
15  *   this software without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
18  * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
19  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
20  * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
21  * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
22  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
24  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
25  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
26  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28  */
29
30
31 #ifndef __MODEST_MAIN_WINDOW_UI_DIMMING_PRIV_H__
32 #define __MODEST_MAIN_WINDOW_UI_DIMMING_PRIV_H__
33
34 #include "modest-dimming-rules-group.h"
35 #include "modest-ui-dimming-rules.h"
36
37 G_BEGIN_DECLS
38
39
40 /* Menu Dimming rules entries */
41 static const ModestDimmingEntry modest_main_window_menu_dimming_entries [] = {
42
43         /* Email Menu */
44         { "/MenuBar/EmailMenu/EmailNewMainMenu", NULL },
45         { "/MenuBar/EmailMenu/EmailNewMainMenu/EmailNewMessageMenu", NULL },
46         { "/MenuBar/EmailMenu/EmailNewMainMenu/EmailNewFolderMenu", G_CALLBACK(modest_ui_dimming_rules_on_new_folder) },
47         { "/MenuBar/EmailMenu/EmailOpenMenu", G_CALLBACK(modest_ui_dimming_rules_on_open_msg) },
48         { "/MenuBar/EmailMenu/EmailReplyMenu", G_CALLBACK(modest_ui_dimming_rules_on_reply_msg) },
49         { "/MenuBar/EmailMenu/EmailReplyAllMenu", G_CALLBACK(modest_ui_dimming_rules_on_reply_msg) },
50         { "/MenuBar/EmailMenu/EmailForwardMenu",  G_CALLBACK(modest_ui_dimming_rules_on_reply_msg) },
51         { "/MenuBar/EmailMenu/EmailContentsMenu", G_CALLBACK(modest_ui_dimming_rules_on_contents_msg) },
52         { "/MenuBar/EmailMenu/EmailPurgeAttachmentsMenu", G_CALLBACK(modest_ui_dimming_rules_on_remove_attachments) },
53         { "/MenuBar/EmailMenu/EmailDeleteMenu",  G_CALLBACK(modest_ui_dimming_rules_on_delete) },
54         { "/MenuBar/EmailMenu/EmailDetailsMenu", G_CALLBACK(modest_ui_dimming_rules_on_details) },
55
56         /* Edit Menu */
57         { "/MenuBar/EditMenu", NULL },
58         { "/MenuBar/EditMenu/EditCutMenu", G_CALLBACK(modest_ui_dimming_rules_on_cut) },
59         { "/MenuBar/EditMenu/EditCopyMenu", G_CALLBACK(modest_ui_dimming_rules_on_copy) },
60         { "/MenuBar/EditMenu/EditPasteMenu", G_CALLBACK(modest_ui_dimming_rules_on_paste_msgs) },
61         { "/MenuBar/EditMenu/EditSelectAllMenu", G_CALLBACK(modest_ui_dimming_rules_on_select_all)},
62         { "/MenuBar/EditMenu/EditMarkAsReadMenu", G_CALLBACK(modest_ui_dimming_rules_on_mark_as_read_msg) },
63         { "/MenuBar/EditMenu/EditMarkAsUnreadMenu", G_CALLBACK(modest_ui_dimming_rules_on_mark_as_unread_msg) },
64         { "/MenuBar/EditMenu/EditMoveToMenu", G_CALLBACK(modest_ui_dimming_rules_on_move_to) },
65
66         /* View Menu */
67         { "/MenuBar/ViewMenu", NULL },
68         { "/MenuBar/ViewMenu/ViewSortMenu", G_CALLBACK(modest_ui_dimming_rules_on_sort) },
69         { "/MenuBar/ViewMenu/ViewToggleFoldersMenu", NULL },
70         { "/MenuBar/ViewMenu/ViewToggleFullscreenMenu", NULL },
71         { "/MenuBar/ViewMenu/ViewShowToolbarMainMenu", NULL },
72         { "/MenuBar/ViewMenu/ViewShowToolbarMainMenu/ViewShowToolbarNormalScreenMenu", NULL },
73         { "/MenuBar/ViewMenu/ViewShowToolbarMainMenu/ViewShowToolbarFullScreenMenu", NULL },
74         
75         /* Tools Menu */
76         { "/MenuBar/ToolsMenu", NULL },
77         { "/MenuBar/ToolsMenu/ToolsSettingsMenu", NULL },
78         { "/MenuBar/ToolsMenu/ToolsAccountsMenu", NULL },
79         { "/MenuBar/ToolsMenu/ToolsSMTPServersMenu", G_CALLBACK(modest_ui_dimming_rules_on_tools_smtp_servers) },
80         { "/MenuBar/ToolsMenu/ToolsSendReceiveMainMenu", NULL },
81         { "/MenuBar/ToolsMenu/ToolsSendReceiveMainMenu/ToolsSendReceiveAllMenu", G_CALLBACK(modest_ui_dimming_rules_on_send_receive) },
82         { "/MenuBar/ToolsMenu/ToolsSendReceiveMainMenu/ToolsSendReceiveCancelSendingMenu", G_CALLBACK(modest_ui_dimming_rules_on_cancel_sending) },
83         { "/MenuBar/ToolsMenu/ToolsContactsMenu", NULL },
84         { "/MenuBar/ToolsMenu/ToolsSearchMessagesMenu", NULL },
85         { "/MenuBar/ToolsMenu/ToolsHelpMenu", NULL },
86
87         /* Close Menu */
88         { "/MenuBar/CloseMenu", NULL },
89         { "/MenuBar/ToolsMenu/CloseWindowMenu", NULL },
90         { "/MenuBar/ToolsMenu/CloseAllWindowsMenu", NULL },
91
92         /* Contextual Menus (Header View) */
93         { "/HeaderViewCSM/HeaderViewCSMOpen", G_CALLBACK(modest_ui_dimming_rules_on_open_msg) },
94         { "/HeaderViewCSM/HeaderViewCSMReply", G_CALLBACK(modest_ui_dimming_rules_on_reply_msg) },
95         { "/HeaderViewCSM/HeaderViewCSMReplyAll", G_CALLBACK(modest_ui_dimming_rules_on_reply_msg) },
96         { "/HeaderViewCSM/HeaderViewCSMForward", G_CALLBACK(modest_ui_dimming_rules_on_reply_msg) },
97         { "/HeaderViewCSM/HeaderViewCSMCut", NULL },
98         { "/HeaderViewCSM/HeaderViewCSMCopy", NULL },
99         { "/HeaderViewCSM/HeaderViewCSMPaste", G_CALLBACK(modest_ui_dimming_rules_on_paste_msgs) },
100         { "/HeaderViewCSM/HeaderViewCSMDelete", G_CALLBACK(modest_ui_dimming_rules_on_delete_msg) },
101         { "/HeaderViewCSM/HeaderViewCSMCancelSending", G_CALLBACK(modest_ui_dimming_rules_on_cancel_sending) },
102         { "/HeaderViewCSM/HeaderViewCSMHelp", NULL },
103
104         /* Contextual Menus (Folder View) */
105         { "/FolderViewCSM/FolderViewCSMNewFolder", G_CALLBACK(modest_ui_dimming_rules_on_csm_new_folder) },
106         { "/FolderViewCSM/FolderViewCSMRenameFolder", G_CALLBACK(modest_ui_dimming_rules_on_rename_folder) },
107         { "/FolderViewCSM/FolderViewCSMPasteMsgs", G_CALLBACK(modest_ui_dimming_rules_on_paste_msgs) },
108         { "/FolderViewCSM/FolderViewCSMDeleteFolder", G_CALLBACK(modest_ui_dimming_rules_on_delete_folder) },
109         { "/FolderViewCSM/FolderViewCSMSearchMessages", NULL },
110         { "/FolderViewCSM/FolderViewCSMHelp", NULL },
111
112         /* Contextual Menus (Toolbar) */
113         { "/ToolbarReplyCSM/ToolbarMessageForward", NULL },
114         { "/ToolbarReplyCSM/ToolbarMessageReplyAll", NULL },
115         { "/ToolbarReplyCSM/ToolbarMessageReply", NULL },
116         
117 };
118
119 /* Toolbar Dimming rules entries */
120 static const ModestDimmingEntry modest_main_window_toolbar_dimming_entries [] = {
121
122         /* Toolbar */
123         { "/ToolBar/ToolbarMessageNew", NULL },
124         { "/ToolBar/ToolbarMessageReply", G_CALLBACK(modest_ui_dimming_rules_on_reply_msg) },
125         { "/ToolBar/ToolbarDeleteMessage", G_CALLBACK(modest_ui_dimming_rules_on_delete) },
126         { "/ToolBar/ToolbarToggleView", NULL },
127         { "/ToolBar/ToolbarSort", G_CALLBACK(modest_ui_dimming_rules_on_sort) },
128         { "/ToolBar/ToolbarSendReceive", G_CALLBACK(modest_ui_dimming_rules_on_send_receive) },
129         { "/ToolBar/ToolbarCancel", NULL },
130 };
131
132 G_END_DECLS
133 #endif /* __MODEST_MAIN_WINDOW_UI_PRIV_H__ */