Changeset 231 for trunk/src/IPrintView.h

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/IPrintView.h

    r226 r231  
    8282            /// @param location The printer's location. 
    8383            /// 
    84             virtual void addPrinter (const gchar *name, int jobs, 
     84            virtual void addPrinter (const gchar *name, gint jobs, 
    8585                                     const gchar *state, 
    8686                                     const gchar *location) = 0; 
    8787 
    8888            /// 
     89            /// @brief Adds a new resolution to the list. 
     90            /// 
     91            /// @param name The possibly translated name of the resolution. 
     92            /// @param value The value the ePDFView internally uses to know 
     93            ///              which resolution is. 
     94            /// 
     95            virtual void addResolution (const gchar *name, 
     96                                        const gchar *value) = 0; 
     97 
     98            /// 
    8999            /// @brief Deletes all sizes from the list of page sizes. 
    90100            /// 
    91101            virtual void clearPageSizeList (void) = 0; 
     102 
     103            /// 
     104            /// @brief Deletes all resolutions from the list of resolutions. 
     105            /// 
     106            virtual void clearResolutionList (void) = 0; 
    92107 
    93108            /// 
     
    97112            ///         range is between 1 and 999. 
    98113            /// 
    99             virtual unsigned int getNumberOfCopies (void) = 0; 
     114            virtual guint getNumberOfCopies (void) = 0; 
    100115 
    101116            /// 
     
    173188            /// @brief Selects a page size. 
    174189            /// 
    175             /// @param pageSizeInde The index of the page size to select. 
     190            /// @param pageSizeIndex The index of the page size to select. 
    176191            /// 
    177192            virtual void selectPageSize (guint pageSizeIndex) = 0; 
     
    183198            /// 
    184199            virtual void selectPrinter (guint printerIndex) = 0; 
     200 
     201            /// 
     202            /// @brief Selects a page size. 
     203            /// 
     204            /// @param resolutionIndex The index of the resolution to select. 
     205            /// 
     206            virtual void selectResolution (guint resolutionIndex) = 0; 
    185207 
    186208            ///