* src/modest-ui-actions.[ch]:
[modest] / src / maemo / modest-main-window-ui.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 #ifndef __MODEST_MAIN_WINDOW_UI_PRIV_H__
31 #define __MODEST_MAIN_WINDOW_UI_PRIV_H__
32
33 #include <glib/gi18n.h>
34 #include "modest-icon-names.h"
35 #include "modest-ui-actions.h"
36
37 G_BEGIN_DECLS
38
39
40 /* Action entries */
41 static const GtkActionEntry modest_action_entries [] = {
42
43         /* Toplevel menus */
44         { "Message", NULL, N_("Email") },
45         { "New", NULL, N_("New") },
46         { "SendMain", NULL, N_("Send") },
47         { "Edit",    NULL, N_("Edit") },
48         { "View",    NULL, N_("View") },
49         { "Folders", NULL, N_("Folders") },
50         { "Accounts",NULL, N_("Accounts") },
51         { "Tools",   NULL, N_("Tools") },
52         { "Close",   NULL, N_("Close") },
53
54         /* Message */
55         { "MessageNew",         NULL,  N_("_New message"),      "<CTRL>N", NULL,   G_CALLBACK (modest_ui_actions_on_new_msg) },
56         { "MessageNewFolder",   NULL,  N_("New _folder"),       NULL,      NULL,   G_CALLBACK (modest_ui_actions_on_new_folder) },
57         { "MessageOpen",        NULL,  N_("_Open"),             "<CTRL>O", NULL,   NULL },
58         { "MessageCancelSending",  NULL,  N_("Cancel sending"), NULL,      NULL,   NULL },
59         { "MessageSend",        NULL,  N_("Send"),              NULL,      NULL,   NULL },
60         { "MessageSendNow",        NULL,  N_("Send now"),               NULL,      NULL,   NULL },
61         { "MessageReply",       NULL,  N_("_Reply"),            NULL,      NULL,   G_CALLBACK (modest_ui_actions_on_reply) },
62         { "MessageReplyAll",    NULL,  N_("Reply to all"),      NULL,      NULL,   G_CALLBACK (modest_ui_actions_on_reply_all) },
63         { "MessageForward",     NULL,  N_("_Forward"),          NULL,      NULL,   G_CALLBACK (modest_ui_actions_on_forward) },
64         { "MessageDelete",      NULL,  N_("Delete message"),    NULL,      NULL,   G_CALLBACK (modest_ui_actions_on_delete) },
65         { "MessageSendReceive", NULL,  N_("Send and receive"),  NULL,      NULL,   G_CALLBACK (modest_ui_actions_on_send_receive) },
66         { "MessageContents",    NULL,  N_("Retrieve contents"), NULL,      NULL,   NULL },
67         { "MessageDetails",     NULL,  N_("Details..."),        NULL,      NULL,   NULL },
68         { "MessagePurgeAttachments", NULL, N_("Purge attachments"), NULL,  NULL,   NULL },
69         
70
71         /* Edit */
72         { "EditUndo",        NULL,      N_("_Undo"),        "<CTRL>Z",    NULL, NULL },
73         { "EditCut",         NULL,      N_("Cut"),          "<CTRL>X",    NULL, G_CALLBACK (modest_ui_actions_on_cut) },
74         { "EditCopy",        NULL,      N_("Copy"),         "<CTRL>C",    NULL, G_CALLBACK (modest_ui_actions_on_copy) },
75         { "EditPaste",       NULL,      N_("Paste"),        "<CTRL>V",    NULL, G_CALLBACK (modest_ui_actions_on_paste) },
76         { "EditSelectAll",   NULL,      N_("Select all"),    NULL,        NULL, G_CALLBACK (modest_ui_actions_on_select_all) },
77         { "EditDelete",      NULL,      N_("_Delete"),       NULL,        NULL, NULL },
78         { "EditSelect",      NULL,      N_("Select..."),     NULL,        NULL, NULL },   /* submenu */
79         { "EditMoveTo",      NULL,      N_("Move to..."),    NULL,        NULL, NULL },
80         
81         /* View */
82         { "ViewSort",            NULL,        N_("Sort..."),     NULL,      NULL,  NULL },
83         { "ViewFolders",         NULL,        N_("Folders"),     NULL,     NULL,  NULL },
84         { "ViewFullscreen",      NULL,        N_("Fullscreen"),  NULL,     NULL,  NULL },
85         { "ViewDetails",         NULL,        N_("Details"),     NULL,     NULL,  NULL },
86         { "ViewThumbnails",      NULL,        N_("Thumbnails"),  NULL,     NULL,  NULL },
87         { "ViewShowToolbar",     NULL,        N_("Show toolbar"), NULL,   NULL,  NULL },    /* submenu */
88                 
89         /* Folders */
90         { "FoldersNew",          NULL,       N_("New folder"),       NULL, NULL, G_CALLBACK (modest_ui_actions_on_new_folder) },
91         { "FoldersManage",       NULL,       N_("Manage..."),        NULL, NULL, NULL },
92         { "FoldersDetails",      NULL,       N_("Details..."),       NULL, NULL, NULL },
93         { "FoldersDelete",       NULL,       N_("Delete"),           NULL, NULL, G_CALLBACK (modest_ui_actions_on_delete_folder) },
94         { "FoldersRename",       NULL,       N_("Rename"),           NULL, NULL, G_CALLBACK (modest_ui_actions_on_rename_folder) },
95         { "FoldersMoveToTrash",  NULL,       N_("Move to trash"),    NULL, NULL, G_CALLBACK (modest_ui_actions_on_move_folder_to_trash_folder) },
96
97         /* Accounts */
98         { "AccountsNew",          NULL,     N_("_New account..."),            NULL, NULL,  NULL },
99         { "AccountsManage",        NULL,    N_("Manage..."),                  NULL, NULL,  G_CALLBACK (modest_ui_actions_on_accounts) },
100         { "AccountsConfigureSMTP", NULL,    N_("Configure SMTP servers..."),  NULL, NULL,  NULL },
101         
102         /* Tools */
103         { "ToolsSettings",        NULL,      N_("Settings..."),               NULL, NULL,  NULL },
104         { "ToolsAddToContacts",        NULL,      N_("Add to contact..."),                NULL, NULL,  G_CALLBACK (modest_ui_actions_on_add_to_contacts) },
105         { "ToolsContacts",        NULL,      N_("Contact..."),                NULL, NULL,  NULL },
106         { "ToolsFontSettings",    NULL,      N_("Font settings..."),          NULL, NULL,  NULL },
107         { "ToolsSearchMessages",  NULL,      N_("Search messages..."),        NULL, NULL,  NULL },
108         { "ToolsHelp",            NULL,      N_("Help"),                      NULL, NULL,  NULL },
109
110         /* Close */
111         { "CloseWindow",          NULL,     N_("Close window"),               NULL, NULL,  NULL },
112         { "CloseAllWindows",      NULL,     N_("Close all windows"),          NULL, NULL,  G_CALLBACK (modest_ui_actions_on_quit) },
113
114
115         /* Toolbar items; they is some overlap with the menu items,
116          * but we need to specificy them differently, they have icons for example
117          */
118         /* Headers Toolbar */
119         { "ToolbarMessageNew",        MODEST_STOCK_NEW_MAIL,     N_("Compose a new message"), NULL, NULL,  G_CALLBACK (modest_ui_actions_on_new_msg) },
120         { "ToolbarMessageReply",      MODEST_STOCK_REPLY,     N_("Reply a message"),          NULL, NULL,  G_CALLBACK (modest_ui_actions_on_reply) },
121         { "ToolbarMessageReplyAll",   MODEST_STOCK_REPLY_ALL,     N_("Reply to all"),         NULL, NULL,  G_CALLBACK (modest_ui_actions_on_reply_all) },
122         { "ToolbarMessageForward",    MODEST_STOCK_FORWARD,     N_("Forward a message"),      NULL, NULL,  G_CALLBACK (modest_ui_actions_on_forward) },
123         { "ToolbarSendReceive",       GTK_STOCK_REFRESH,   N_("Send & receive"),      NULL, NULL,  G_CALLBACK (modest_ui_actions_on_send_receive) },
124         { "ToolbarToggleView",        GTK_STOCK_CDROM,      N_("Toggle view"),                "<CTRL>t", NULL,  G_CALLBACK (modest_ui_actions_toggle_view) },
125         { "ToolbarDeleteMessage",     GTK_STOCK_DELETE,     N_("Delete message"),             NULL, NULL,  G_CALLBACK (modest_ui_actions_on_delete) },
126 };
127
128
129 G_END_DECLS
130 #endif /* __MODEST_MAIN_WINDOW_UI_PRIV_H__ */