* Added missing files in previous commit
[modest] / src / gnome / 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", G_CALLBACK(modest_ui_dimming_rules_on_new_msg) },
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/EmailRenameMenu",  G_CALLBACK(modest_ui_dimming_rules_on_rename_folder) },
54         { "/MenuBar/EmailMenu/EmailDeleteMenu",  G_CALLBACK(modest_ui_dimming_rules_on_delete) },
55         { "/MenuBar/EmailMenu/EmailDetailsMenu", G_CALLBACK(modest_ui_dimming_rules_on_details) },
56
57 /*      /\* Edit Menu *\/ */
58 /*      { "/MenuBar/EditMenu", NULL }, */
59 /*      { "/MenuBar/EditMenu/EditSelectAllMenu", G_CALLBACK(modest_ui_dimming_rules_on_select_all)}, */
60 /*      { "/MenuBar/EditMenu/EditMarkAsReadMenu", G_CALLBACK(modest_ui_dimming_rules_on_mark_as_read_msg) }, */
61 /*      { "/MenuBar/EditMenu/EditMarkAsUnreadMenu", G_CALLBACK(modest_ui_dimming_rules_on_mark_as_unread_msg) }, */
62 /*      { "/MenuBar/EditMenu/EditMoveToMenu", G_CALLBACK(modest_ui_dimming_rules_on_move_to) }, */
63
64 /*      /\* View Menu *\/ */
65 /*      { "/MenuBar/ViewMenu", NULL }, */
66 /*      { "/MenuBar/ViewMenu/ViewSortMenu", G_CALLBACK(modest_ui_dimming_rules_on_sort) }, */
67 /*      { "/MenuBar/ViewMenu/ViewToggleFoldersMenu", NULL }, */
68 /*      { "/MenuBar/ViewMenu/ViewToggleFullscreenMenu", NULL }, */
69 /*      { "/MenuBar/ViewMenu/ViewShowToolbarMainMenu", NULL }, */
70 /*      { "/MenuBar/ViewMenu/ViewShowToolbarMainMenu/ViewShowToolbarNormalScreenMenu", NULL }, */
71 /*      { "/MenuBar/ViewMenu/ViewShowToolbarMainMenu/ViewShowToolbarFullScreenMenu", NULL }, */
72         
73 /*      /\* Tools Menu *\/ */
74 /*      { "/MenuBar/ToolsMenu", NULL }, */
75 /*      { "/MenuBar/ToolsMenu/ToolsSettingsMenu", NULL }, */
76 /*      { "/MenuBar/ToolsMenu/ToolsAccountsMenu", NULL }, */
77 /*      { "/MenuBar/ToolsMenu/ToolsSMTPServersMenu", G_CALLBACK(modest_ui_dimming_rules_on_tools_smtp_servers) }, */
78 /*      { "/MenuBar/ToolsMenu/ToolsSendReceiveMainMenu", NULL }, */
79 /*      { "/MenuBar/ToolsMenu/ToolsSendReceiveMainMenu/ToolsSendReceiveAllMenu", G_CALLBACK(modest_ui_dimming_rules_on_send_receive_all) }, */
80 /*      { "/MenuBar/ToolsMenu/ToolsSendReceiveMainMenu/ToolsSendReceiveCancelSendingMenu", G_CALLBACK(modest_ui_dimming_rules_on_cancel_sending) }, */
81 /*      { "/MenuBar/ToolsMenu/ToolsContactsMenu", NULL }, */
82 /*      { "/MenuBar/ToolsMenu/ToolsSearchMessagesMenu", NULL }, */
83 /*      { "/MenuBar/ToolsMenu/ToolsHelpMenu", NULL }, */
84
85 /*      /\* Close Menu *\/ */
86 /*      { "/MenuBar/CloseMenu", NULL }, */
87 /*      { "/MenuBar/ToolsMenu/CloseWindowMenu", NULL }, */
88 /*      { "/MenuBar/ToolsMenu/CloseAllWindowsMenu", NULL }, */
89
90 /*      /\* Contextual Menus (Header View) *\/ */
91 /*      { "/HeaderViewCSM/HeaderViewCSMOpen", G_CALLBACK(modest_ui_dimming_rules_on_open_msg) }, */
92 /*      { "/HeaderViewCSM/HeaderViewCSMReply", G_CALLBACK(modest_ui_dimming_rules_on_reply_msg) }, */
93 /*      { "/HeaderViewCSM/HeaderViewCSMReplyAll", G_CALLBACK(modest_ui_dimming_rules_on_reply_msg) }, */
94 /*      { "/HeaderViewCSM/HeaderViewCSMForward", G_CALLBACK(modest_ui_dimming_rules_on_reply_msg) }, */
95 /*      { "/HeaderViewCSM/HeaderViewCSMDelete", G_CALLBACK(modest_ui_dimming_rules_on_delete_msg) }, */
96 /*      { "/HeaderViewCSM/HeaderViewCSMCancelSending", G_CALLBACK(modest_ui_dimming_rules_on_csm_cancel_sending) }, */
97 /*      { "/HeaderViewCSM/HeaderViewCSMHelp", NULL }, */
98
99 /*      /\* Contextual Menus (Folder View) *\/ */
100 /*      { "/FolderViewCSM/FolderViewCSMNewFolder", G_CALLBACK(modest_ui_dimming_rules_on_new_folder) }, */
101 /*      { "/FolderViewCSM/FolderViewCSMRenameFolder", G_CALLBACK(modest_ui_dimming_rules_on_rename_folder) }, */
102 /*      { "/FolderViewCSM/FolderViewCSMPasteMsgs", G_CALLBACK(modest_ui_dimming_rules_on_paste) }, */
103 /*      { "/FolderViewCSM/FolderViewCSMDeleteFolder", G_CALLBACK(modest_ui_dimming_rules_on_delete_folder) }, */
104 /*      { "/FolderViewCSM/FolderViewCSMSearchMessages", NULL }, */
105 /*      { "/FolderViewCSM/FolderViewCSMHelp", NULL }, */
106
107 /*      /\* Contextual Menus (Toolbar) *\/ */
108 /*      { "/ToolbarReplyCSM/ToolbarMessageForward", NULL }, */
109 /*      { "/ToolbarReplyCSM/ToolbarMessageReplyAll", NULL }, */
110 /*      { "/ToolbarReplyCSM/ToolbarMessageReply", NULL }, */
111         
112 };
113
114 /* Toolbar Dimming rules entries */
115 static const ModestDimmingEntry modest_main_window_toolbar_dimming_entries [] = {
116
117         /* Toolbar */
118         { "/ToolBar/ToolbarMessageNew", G_CALLBACK(modest_ui_dimming_rules_on_new_msg) },
119         { "/ToolBar/ToolbarMessageReply", G_CALLBACK(modest_ui_dimming_rules_on_reply_msg) },
120         { "/ToolBar/ToolbarDeleteMessage", G_CALLBACK(modest_ui_dimming_rules_on_delete) },
121         { "/ToolBar/ToolbarToggleView", NULL },
122         { "/ToolBar/ToolbarSort", G_CALLBACK(modest_ui_dimming_rules_on_sort) },
123         { "/ToolBar/ToolbarSendReceive", G_CALLBACK(modest_ui_dimming_rules_on_send_receive) },
124         { "/ToolBar/ToolbarCancel", NULL },
125 };
126
127 G_END_DECLS
128 #endif /* __MODEST_MAIN_WINDOW_UI_PRIV_H__ */