Show
Ignore:
Timestamp:
04/15/06 10:40:50 (3 years ago)
Author:
jordi
Message:

Added support for named destinations for PDF outlines.
Now the view shows the links sidebar and allows to go to where they point if you double click on them...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/gtk/MainView.h

    r64 r67  
    4949            void showErrorMessage (const gchar *title, const gchar *body); 
    5050            void showPage (DocumentPage *page); 
     51            void showSidebar (gboolean show); 
    5152            void setTotalPages (gint pages); 
    5253            void setGoToPageText (const gchar *text); 
     
    5455            void getPageViewSize (gint *width, gint *height); 
    5556            void setTitle (const gchar *title); 
     57            void setOutline (DocumentOutline *outline); 
    5658 
    5759        protected: 
     
    6062            GtkWidget *m_MainWindow;  
    6163            GtkWidget *m_MainBox; 
     64            GtkTreeStore *m_Outline; 
    6265            GtkWidget *m_PageView; 
    6366            GtkWidget *m_PageViewScroll; 
     67            GtkWidget *m_Sidebar; 
    6468            gint m_TotalPages; 
    6569            GtkUIManager *m_UIManager; 
    6670 
    6771            void createCurrentPage (void); 
    68             void createPageView (void); 
     72            GtkWidget *createPageView (void); 
    6973            void createUIManager (void); 
    7074            GdkPixbuf *getPixbufFromPage (DocumentPage *page); 
    7175            void setMainWindowIcon (void); 
     76            void setOutlineChildren (DocumentOutline *outline,  
     77                                     GtkTreeIter *rootIter); 
    7278    }; 
    7379}