Show
Ignore:
Timestamp:
06/13/06 15:16:36 (2 years ago)
Author:
jordi
Message:

Refactorized a little the printer options, so only one function adds data and one retrieved data.

Added the resolution list and also the setter function in the view.

Files:
1 modified

Legend:

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

    r222 r231  
    3131            virtual void addPageSize (const gchar *name, 
    3232                                      const gchar *value); 
    33             virtual void addPrinter (const gchar *name, int jobs, 
     33            virtual void addPrinter (const gchar *name, gint jobs, 
    3434                                     const gchar *state, 
    3535                                     const gchar *location); 
     36            virtual void addResolution (const gchar *name, 
     37                                        const gchar *value); 
    3638            virtual void clearPageSizeList (void); 
    37             virtual unsigned int getNumberOfCopies (void); 
     39            virtual void clearResolutionList (void); 
     40            virtual guint getNumberOfCopies (void); 
    3841            virtual PrintPageLayout getPageLayout (void); 
    3942            virtual PrintPageOrientation getPageOrientation (void); 
     
    4548            virtual gboolean isSelectedEvenPageSet (void); 
    4649            virtual gboolean isSelectedOddPageSet (void); 
    47             virtual void selectPageSize (unsigned int pageSizeIndex); 
    48             virtual void selectPrinter (unsigned int printerIndex); 
     50            virtual void selectPageSize (guint pageSizeIndex); 
     51            virtual void selectPrinter (guint printerIndex); 
     52            virtual void selectResolution (guint resolutionIndex); 
    4953            virtual void sensitiveCollate (gboolean sensitive); 
    5054            virtual void sensitivePageRange (gboolean sensitive); 
     
    6872            GtkListStore *m_PrinterList; 
    6973            GtkWidget *m_PrinterListView; 
     74            GtkListStore *m_Resolution; 
     75            GtkWidget *m_ResolutionView; 
     76 
     77            void addOptionToList (GtkListStore *optionList, 
     78                                  const gchar *name, const gchar *value); 
     79            void getOptionFromComboBox (GtkWidget *comboBox, gpointer value); 
    7080 
    7181            GtkWidget *createJobTab (void); 
     
    7787            void createPageSizeListModel (void); 
    7888            void createPrinterListModel (void); 
     89            void createResolutionListModel (void); 
    7990    }; 
    8091}