index 09dfcf1c0a58401b83fb1fcded8d56d92f9015d6..e3d10f578829861339c8159be082d04f2043ff89 100644 (file)
/**
* Find the closest standard paper size in the table, to the
*/
/**
* 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();
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
//### The Paper Size selection list
+ Gtk::HBox _paperSizeListBox;
+ Gtk::Label _paperSizeListLabel;
class PaperSizeColumns : public Gtk::TreeModel::ColumnRecord
{
public:
class PaperSizeColumns : public Gtk::TreeModel::ColumnRecord
{
public:
Gtk::TreeModelColumn<Glib::ustring> descColumn;
};
Gtk::TreeModelColumn<Glib::ustring> descColumn;
};
- PaperSizeColumns _paperSizeColumns;
+ PaperSizeColumns _paperSizeListColumns;
Glib::RefPtr<Gtk::ListStore> _paperSizeListStore;
Gtk::TreeView _paperSizeList;
Glib::RefPtr<Gtk::TreeSelection> _paperSizeListSelection;
Glib::RefPtr<Gtk::ListStore> _paperSizeListStore;
Gtk::TreeView _paperSizeList;
Glib::RefPtr<Gtk::TreeSelection> _paperSizeListSelection;
void on_paper_size_list_changed();
sigc::connection _paper_size_list_connection;
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;
Gtk::RadioButton _portraitButton;
- //callback
- void on_portrait();
- sigc::connection _portrait_connection;
-
- //### Button to select 'landscape' orientation
Gtk::RadioButton _landscapeButton;
Gtk::RadioButton _landscapeButton;
- //callback
+ //callbacks
+ void on_portrait();
void on_landscape();
void on_landscape();
+ sigc::connection _portrait_connection;
sigc::connection _landscape_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
Registry *_widgetRegistry;
//### state - whether we are currently landscape or portrait