1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */ 2 /* 3 * anjuta.c 4 * Copyright (C) 2003 Naba Kumar <naba@gnome.org> 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License as published by the Free 8 * Software Foundation; either version 2 of the License, or (at your option) 9 * any later version. 10 * 11 * This program is distributed in the hope that it will be useful, but 12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * for more details. 15 * You should have received a copy of the GNU General Public License along 16 * with this program; if not, write to the Free Software Foundation, Inc., 17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 18 */ 19 20 #include "action-callbacks.h" 21 22 static GtkActionEntry menu_entries_file[] = { 23 { "ActionMenuFile", NULL, N_("_File")}, 24 { "ActionExit", GTK_STOCK_QUIT, N_("_Quit"), "<control>q", 25 N_("Quit Anjuta IDE"), 26 G_CALLBACK (on_exit_activate)} 27 }; 28 29 static GtkActionEntry menu_entries_edit[] = { 30 { "ActionMenuEdit", NULL, N_("_Edit")}, 31 { "ActionEditPreferences", GTK_STOCK_PROPERTIES, 32 N_("_Preferences"), NULL, 33 N_("Do you prefer coffee to tea? Check it out."), 34 G_CALLBACK (on_preferences_activate)}, 35 }; 36 37 static GtkActionEntry menu_entries_view[] = { 38 { "ActionMenuView", NULL, N_("_View")}, 39 { "ActionViewResetLayout", NULL, 40 N_("_Reset Dock Layout"), NULL, 41 N_("Reset the widgets docking layout to default"), 42 G_CALLBACK (on_reset_layout_activate)} 43 }; 44 45 static GtkToggleActionEntry menu_entries_toggle_view[] = { 46 { "ActionViewFullscreen", GTK_STOCK_FULLSCREEN, 47 N_("_Full Screen"), "F11", 48 N_("Toggle fullscreen mode"), 49 G_CALLBACK (on_fullscreen_toggle)}, 50 { "ActionViewLockLayout", NULL, 51 N_("_Lock Dock Layout"), NULL, 52 N_("Lock the current dock layout so that widgets cannot be moved"), 53 G_CALLBACK (on_layout_lock_toggle)}, 54 { "ActionViewToolbar", NULL, 55 N_("_Toolbar"), NULL, 56 N_("Show or hide the toolbar"), 57 G_CALLBACK (on_toolbar_view_toggled)} 58 }; 59 60 static GtkActionEntry menu_entries_help[] = { 61 { "ActionMenuHelp", NULL, N_("_Help")}, 62 { "ActionHelpUserManual", GTK_STOCK_HELP, 63 N_("_User's Manual"), "F1", 64 N_("Anjuta user's manual"), 65 G_CALLBACK (on_help_manual_activate)}, 66 { "ActionHelpFaqManual", NULL, 67 N_("_Frequently Asked Questions"), NULL, 68 N_("Anjuta frequently asked questions"), 69 G_CALLBACK (on_help_faqs_activate)}, 70 { "ActionHelpAnjutaHome", GTK_STOCK_HOME, 71 N_("Anjuta _Home Page"), NULL, 72 N_("Online documentation and resources"), 73 G_CALLBACK (on_url_home_activate)}, 74 { "ActionHelpBugReport", NULL, 75 N_("Report _Bugs/Patches/Requests"), NULL, 76 N_("Submit a bug report, patch or feature request for Anjuta"), 77 G_CALLBACK (on_url_bugs_activate)}, 78 { "ActionHelpFaq", NULL, 79 N_("Ask a _Question"), NULL, 80 N_("Submit a question for FAQs"), 81 G_CALLBACK (on_url_faqs_activate)}, 82 { "ActionAboutAnjuta", GTK_STOCK_ABOUT, 83 N_("_About"), NULL, 84 N_("About Anjuta"), 85 G_CALLBACK (on_about_activate)}, 86 { "ActionAboutPlugins", GTK_STOCK_ABOUT, 87 N_("About External _Plugins"), NULL, 88 N_("About third-party Anjuta plugins"), 89 NULL} 90 }; 91