]> www.fi.muni.cz Git - evince.git/commitdiff
set title to Document Viewer rather than Evince
authorHavoc Pennington <hp@redhat.com>
Tue, 21 Dec 2004 20:52:41 +0000 (20:52 +0000)
committerHavoc Pennington <hp@src.gnome.org>
Tue, 21 Dec 2004 20:52:41 +0000 (20:52 +0000)
2004-12-21  Havoc Pennington  <hp@redhat.com>

* shell/ev-window.c (ev_window_init): set title to Document Viewer
rather than Evince

* data/evince-ui.xml, shell/ev-window.c: add a bunch of stub menu
items; really they should be synced with the strings, etc. from
current gpdf, but just getting the boring typing out of the way

ChangeLog
data/evince-ui.xml
shell/ev-window.c

index deaa312ba099b897c845c04c9a3624e0716c8320..1ffe0c05bff48da1585f3f47723a6ec48714fe30 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2004-12-21  Havoc Pennington  <hp@redhat.com>
+
+       * shell/ev-window.c (ev_window_init): set title to Document Viewer
+       rather than Evince
+
+       * data/evince-ui.xml, shell/ev-window.c: add a bunch of stub menu
+       items; really they should be synced with the strings, etc. from
+       current gpdf, but just getting the boring typing out of the way 
+
 2004-12-21  Marco Pesenti Gritti  <marco@gnome.org>
 
        * po/POTFILES.in:
index ac8b48d6418e60f80be76bd1053c19da2f656430..41dc86c69953fc1336b818db9670f51a7df5ae92 100644 (file)
@@ -3,15 +3,43 @@
     <menu name="FileMenu" action="File">
       <menuitem name="FileOpenMenu" action="FileOpen"/>
       <separator name="FileSep1"/>
+      <menuitem name="FilePrintMenu" action="FilePrint"/>
+      <separator name="FileSep2"/>
       <menuitem name="FileCloseWindowMenu" action="FileCloseWindow"/>
     </menu>
 
+    <menu name="EditMenu" action="Edit">
+      <menuitem name="EditCopyMenu" action="EditCopy"/>
+      <menuitem name="EditFindMenu" action="EditFind"/>
+    </menu>
+
     <menu name="ViewMenu" action="View">
       <menuitem name="ViewToolbarMenu" action="ViewToolbar"/>
       <menuitem name="ViewStatusbarMenu" action="ViewStatusbar"/>
+      <menuitem name="ViewSidebarMenu" action="ViewSidebar"/>
+      <separator name="ViewSep1"/>
+      <menuitem name="ViewFullscreenMenu" action="ViewFullscreen"/>
+      <separator name="ViewSep2"/>
+      <menuitem name="ViewZoomInMenu" action="ViewZoomIn"/>
+      <menuitem name="ViewZoomOutMenu" action="ViewZoomOut"/>
+      <menuitem name="ViewNormalSizeMenu" action="ViewNormalSize"/>
+      <menuitem name="ViewBestFitMenu" action="ViewBestFit"/>
+      <menuitem name="ViewPageWidthMenu" action="ViewPageWidth"/>
+    </menu>
+
+    <menu name="GoMenu" action="Go">
+      <menuitem name="GoBackMenu" action="GoBack"/>
+      <menuitem name="GoForwardMenu" action="GoForward"/>
+      <separator name="GoSep1"/>
+      <menuitem name="GoPreviousPageMenu" action="GoPreviousPage"/>
+      <menuitem name="GoNextPageMenu" action="GoNextPage"/>
+      <separator name="GoSep2"/>
+      <menuitem name="GoFirstPageMenu" action="GoFirstPage"/>
+      <menuitem name="GoLastPageMenu" action="GoLastPage"/>
     </menu>
 
     <menu name="HelpMenu" action="Help">
+      <menuitem name="HelpContentsMenu" action="HelpContents"/>
       <menuitem name="HelpAboutMenu" action="HelpAbout"/>
     </menu>
   </menubar>
index fd819b36742cb6790977174f2fdb9135c37b4916..0fb34ec4fa1b424bade168218d70b38ff1544dfe 100644 (file)
@@ -1,6 +1,8 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; c-indent-level: 8 -*- */
 /* this file is part of evince, a gnome document viewer
  *
  *  Copyright (C) 2004 Martin Kretzschmar
+ *  Copyright (C) 2004 Red Hat, Inc.
  *
  *  Author:
  *    Martin Kretzschmar <martink@gnome.org>
@@ -202,6 +204,13 @@ ev_window_cmd_file_open (GtkAction *action, EvWindow *ev_window)
        ev_application_open (EV_APP, NULL);
 }
 
+static void
+ev_window_cmd_file_print (GtkAction *action, EvWindow *ev_window)
+{
+        g_return_if_fail (EV_IS_WINDOW (ev_window));
+        /* FIXME */
+}
+
 static void
 ev_window_cmd_file_close_window (GtkAction *action, EvWindow *ev_window)
 {
@@ -210,6 +219,126 @@ ev_window_cmd_file_close_window (GtkAction *action, EvWindow *ev_window)
        gtk_widget_destroy (GTK_WIDGET (ev_window));
 }
 
+static void
+ev_window_cmd_edit_find (GtkAction *action, EvWindow *ev_window)
+{
+        g_return_if_fail (EV_IS_WINDOW (ev_window));
+
+        /* FIXME */
+}
+
+static void
+ev_window_cmd_edit_copy (GtkAction *action, EvWindow *ev_window)
+{
+        g_return_if_fail (EV_IS_WINDOW (ev_window));
+
+        /* FIXME */
+}
+
+static void
+ev_window_cmd_view_fullscreen (GtkAction *action, EvWindow *ev_window)
+{
+        g_return_if_fail (EV_IS_WINDOW (ev_window));
+
+        /* FIXME */
+}
+
+static void
+ev_window_cmd_view_zoom_in (GtkAction *action, EvWindow *ev_window)
+{
+        g_return_if_fail (EV_IS_WINDOW (ev_window));
+
+        /* FIXME */
+}
+
+static void
+ev_window_cmd_view_zoom_out (GtkAction *action, EvWindow *ev_window)
+{
+        g_return_if_fail (EV_IS_WINDOW (ev_window));
+
+        /* FIXME */
+}
+
+static void
+ev_window_cmd_view_normal_size (GtkAction *action, EvWindow *ev_window)
+{
+        g_return_if_fail (EV_IS_WINDOW (ev_window));
+
+        /* FIXME */
+}
+
+static void
+ev_window_cmd_view_best_fit (GtkAction *action, EvWindow *ev_window)
+{
+        g_return_if_fail (EV_IS_WINDOW (ev_window));
+
+        /* FIXME */
+}
+
+static void
+ev_window_cmd_view_page_width (GtkAction *action, EvWindow *ev_window)
+{
+        g_return_if_fail (EV_IS_WINDOW (ev_window));
+
+        /* FIXME */
+}
+
+static void
+ev_window_cmd_go_back (GtkAction *action, EvWindow *ev_window)
+{
+        g_return_if_fail (EV_IS_WINDOW (ev_window));
+
+        /* FIXME */
+}
+
+static void
+ev_window_cmd_go_forward (GtkAction *action, EvWindow *ev_window)
+{
+        g_return_if_fail (EV_IS_WINDOW (ev_window));
+
+        /* FIXME */
+}
+
+static void
+ev_window_cmd_go_previous_page (GtkAction *action, EvWindow *ev_window)
+{
+        g_return_if_fail (EV_IS_WINDOW (ev_window));
+
+        /* FIXME */
+}
+
+static void
+ev_window_cmd_go_next_page (GtkAction *action, EvWindow *ev_window)
+{
+        g_return_if_fail (EV_IS_WINDOW (ev_window));
+
+        /* FIXME */
+}
+
+static void
+ev_window_cmd_go_first_page (GtkAction *action, EvWindow *ev_window)
+{
+        g_return_if_fail (EV_IS_WINDOW (ev_window));
+
+        /* FIXME */
+}
+
+static void
+ev_window_cmd_go_last_page (GtkAction *action, EvWindow *ev_window)
+{
+        g_return_if_fail (EV_IS_WINDOW (ev_window));
+
+        /* FIXME */
+}
+
+static void
+ev_window_cmd_help_contents (GtkAction *action, EvWindow *ev_window)
+{
+        g_return_if_fail (EV_IS_WINDOW (ev_window));
+
+        /* FIXME */
+}
+
 static void
 ev_window_cmd_help_about (GtkAction *action, EvWindow *ev_window)
 {
@@ -291,6 +420,12 @@ ev_window_view_statusbar_cb (GtkAction *action, EvWindow *ev_window)
                NULL);
 }
 
+static void
+ev_window_view_sidebar_cb (GtkAction *action, EvWindow *ev_window)
+{
+        /* FIXME */
+}
+
 static void
 menu_item_select_cb (GtkMenuItem *proxy, EvWindow *ev_window)
 {
@@ -402,19 +537,77 @@ ev_window_class_init (EvWindowClass *ev_window_class)
 /* Normal items */
 static GtkActionEntry entries[] = {
        { "File", NULL, N_("_File") },
+        { "Edit", NULL, N_("_Edit") },
        { "View", NULL, N_("_View") },
+        { "Go", NULL, N_("_Go") },
        { "Help", NULL, N_("_Help") },
 
        /* File menu */
        { "FileOpen", GTK_STOCK_OPEN, N_("_Open"), "<control>O",
          N_("Open a file"),
          G_CALLBACK (ev_window_cmd_file_open) },
+        { "FilePrint", GTK_STOCK_PRINT, N_("_Print"), "<control>P",
+         N_("Print this document"),
+         G_CALLBACK (ev_window_cmd_file_print) },
        { "FileCloseWindow", GTK_STOCK_CLOSE, N_("_Close"), "<control>W",
          N_("Close this window"),
          G_CALLBACK (ev_window_cmd_file_close_window) },
 
+        /* Edit menu */
+        { "EditCopy", GTK_STOCK_COPY, N_("_Copy"), "<control>C",
+          N_("Copy text from the document"),
+          G_CALLBACK (ev_window_cmd_edit_copy) },
+        
+        { "EditFind", GTK_STOCK_FIND, N_("_Find"), "<control>F",
+          N_("Find a word or phrase in the document"),
+          G_CALLBACK (ev_window_cmd_edit_find) },
+
+        /* View menu */
+        { "ViewFullscreen", NULL, N_("_Fullscreen"), "F11",
+          N_("Expand the window to fill the screen"),
+          G_CALLBACK (ev_window_cmd_view_fullscreen) },
+        { "ViewZoomIn", GTK_STOCK_ZOOM_IN, N_("Zoom _In"), "<control>plus",
+          N_("Enlarge the document"),
+          G_CALLBACK (ev_window_cmd_view_zoom_in) },
+        { "ViewZoomOut", GTK_STOCK_ZOOM_OUT, N_("Zoom _Out"), "<control>minus",
+          N_("Shrink the document"),
+          G_CALLBACK (ev_window_cmd_view_zoom_out) },
+        { "ViewNormalSize", GTK_STOCK_ZOOM_100, N_("_Normal Size"), "<control>0",
+          N_("Zoom to the normal size"),
+          G_CALLBACK (ev_window_cmd_view_normal_size) },
+        { "ViewBestFit", GTK_STOCK_ZOOM_FIT, N_("_Best Fit"), NULL,
+          N_("Zoom to fit the document to the current window"),
+          G_CALLBACK (ev_window_cmd_view_best_fit) },
+        { "ViewPageWidth", NULL, N_("Fit Page _Width"), NULL,
+          N_("Zoom to fit the width of the current window "),
+          G_CALLBACK (ev_window_cmd_view_page_width) },
+
+        /* Go menu */
+        { "GoBack", GTK_STOCK_GO_BACK, N_("_Back"), "<mod1>Left",
+          N_("Go to the page viewed before this one"),
+          G_CALLBACK (ev_window_cmd_go_back) },
+        { "GoForward", GTK_STOCK_GO_FORWARD, N_("Fo_rward"), "<mod1>Right",
+          N_("Go to the page viewed before this one"),
+          G_CALLBACK (ev_window_cmd_go_forward) },
+        { "GoPreviousPage", GTK_STOCK_GO_BACK, N_("_Previous Page"), "<control>Page_Up",
+          N_("Go to the previous page"),
+          G_CALLBACK (ev_window_cmd_go_previous_page) },
+        { "GoNextPage", GTK_STOCK_GO_FORWARD, N_("_Next Page"), "<control>Page_Down",
+          N_("Go to the next page"),
+          G_CALLBACK (ev_window_cmd_go_next_page) },
+        { "GoFirstPage", GTK_STOCK_GOTO_FIRST, N_("_First Page"), "<control>Home",
+          N_("Go to the first page"),
+          G_CALLBACK (ev_window_cmd_go_first_page) },        
+        { "GoLastPage", GTK_STOCK_GOTO_LAST, N_("_Last Page"), "<control>End",
+          N_("Go to the last page"),
+          G_CALLBACK (ev_window_cmd_go_last_page) },
+        
        /* Help menu */
-       { "HelpAbout", NULL, N_("_About"), NULL,
+       { "HelpContents", GTK_STOCK_HELP, N_("_Contents"), NULL,
+         N_("Display help for the viewer application"),
+         G_CALLBACK (ev_window_cmd_help_contents) },
+        
+       { "HelpAbout", GTK_STOCK_ABOUT, N_("_About"), NULL,
          N_("Display credits for the document viewer creators"),
          G_CALLBACK (ev_window_cmd_help_about) },
 };
@@ -428,6 +621,9 @@ static GtkToggleActionEntry toggle_entries[] = {
        { "ViewStatusbar", NULL, N_("_Statusbar"), NULL,
          N_("Show or hide statusbar"),
          G_CALLBACK (ev_window_view_statusbar_cb), TRUE },
+        { "ViewSidebar", NULL, N_("Side_bar"), "F9",
+         N_("Show or hide sidebar"),
+         G_CALLBACK (ev_window_view_sidebar_cb), FALSE },
 };
 
 static void
@@ -441,7 +637,7 @@ ev_window_init (EvWindow *ev_window)
 
        ev_window->priv = EV_WINDOW_GET_PRIVATE (ev_window);
 
-       gtk_window_set_title (GTK_WINDOW (ev_window), _("Evince"));
+       gtk_window_set_title (GTK_WINDOW (ev_window), _("Document Viewer"));
 
        ev_window->priv->main_box = gtk_vbox_new (FALSE, 0);
        gtk_container_add (GTK_CONTAINER (ev_window), ev_window->priv->main_box);