X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fui%2Fwidget%2Fpage-sizer.h;h=e3d10f578829861339c8159be082d04f2043ff89;hb=7391f378420d4ca5fb2a2eb2851fdd4b0682b90d;hp=b4b6145a808056419b2f8ee5f946172c7e6176f1;hpb=853a1ae34ba5ce93937efaca3a9c4f8fdbb65a93;p=inkscape.git diff --git a/src/ui/widget/page-sizer.h b/src/ui/widget/page-sizer.h index b4b6145a8..e3d10f578 100644 --- a/src/ui/widget/page-sizer.h +++ b/src/ui/widget/page-sizer.h @@ -147,42 +147,61 @@ protected: /** * Our handy table of all 'standard' paper sizes. */ - std::map paperSizeTable; + std::map _paperSizeTable; /** * Find the closest standard paper size in the table, to the */ - int find_paper_size (double w, double h) const; + Gtk::ListStore::iterator find_paper_size (double w, double h) const; void fire_fit_canvas_to_selection_or_drawing(); - //### Dimension spinboxes - RegisteredUnitMenu _dimensionUnits; - RegisteredScalarUnit _dimensionWidth; - RegisteredScalarUnit _dimensionHeight; - //callback - void on_value_changed(); - sigc::connection _changedw_connection; - sigc::connection _changedh_connection; + Gtk::Tooltips _tips; //### The Paper Size selection list - Gtk::ComboBoxText _paperSizeList; + Gtk::HBox _paperSizeListBox; + Gtk::Label _paperSizeListLabel; + class PaperSizeColumns : public Gtk::TreeModel::ColumnRecord + { + public: + PaperSizeColumns() + { add(nameColumn); add(descColumn); } + Gtk::TreeModelColumn nameColumn; + Gtk::TreeModelColumn descColumn; + }; + + PaperSizeColumns _paperSizeListColumns; + Glib::RefPtr _paperSizeListStore; + Gtk::TreeView _paperSizeList; + Glib::RefPtr _paperSizeListSelection; + Gtk::ScrolledWindow _paperSizeListScroller; //callback void on_paper_size_list_changed(); sigc::connection _paper_size_list_connection; - //### Button to select 'portrait' orientation + //### Portrait or landscape orientation + Gtk::HBox _orientationBox; + Gtk::Label _orientationLabel; Gtk::RadioButton _portraitButton; - //callback - void on_portrait(); - sigc::connection _portrait_connection; - - //### Button to select 'landscape' orientation Gtk::RadioButton _landscapeButton; - //callback + //callbacks + void on_portrait(); void on_landscape(); + sigc::connection _portrait_connection; sigc::connection _landscape_connection; + //### Custom size frame + Gtk::Frame _customFrame; + Gtk::Table _customTable; + RegisteredUnitMenu _dimensionUnits; + RegisteredScalarUnit _dimensionWidth; + RegisteredScalarUnit _dimensionHeight; + Gtk::Button _fitPageButton; + //callback + void on_value_changed(); + sigc::connection _changedw_connection; + sigc::connection _changedh_connection; + Registry *_widgetRegistry; //### state - whether we are currently landscape or portrait