From 5020185f86d9fe14933b7bc6e4749fb7e559fbcd Mon Sep 17 00:00:00 2001 From: Alexander Valavanis Date: Sat, 22 Dec 2018 16:44:40 +0000 Subject: Move DashSelector to Inkscape::UI::Widget namespace --- src/widgets/dash-selector.h | 105 -------------------------------------------- 1 file changed, 105 deletions(-) delete mode 100644 src/widgets/dash-selector.h (limited to 'src/widgets/dash-selector.h') diff --git a/src/widgets/dash-selector.h b/src/widgets/dash-selector.h deleted file mode 100644 index 485f8abed..000000000 --- a/src/widgets/dash-selector.h +++ /dev/null @@ -1,105 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -#ifndef SEEN_SP_DASH_SELECTOR_NEW_H -#define SEEN_SP_DASH_SELECTOR_NEW_H - -/* Authors: - * Lauris Kaplinski - * Maximilian Albert (gtkmm-ification) - * - * Copyright (C) 2002 Lauris Kaplinski - * - * Released under GNU GPL v2+, read the file 'COPYING' for more information. - */ - -#include -#include -#include - -#include - - -/** - * Class that wraps a combobox and spinbutton for selecting dash patterns. - */ -class SPDashSelector : public Gtk::HBox { -public: - SPDashSelector(); - ~SPDashSelector() override; - - /** - * Get and set methods for dashes - */ - void set_dash(int ndash, double *dash, double offset); - void get_dash(int *ndash, double **dash, double *offset); - - sigc::signal changed_signal; - -private: - - /** - * Initialize dashes list from preferences - */ - static void init_dashes(); - - /** - * Fill a pixbuf with the dash pattern using standard cairo drawing - */ - GdkPixbuf* sp_dash_to_pixbuf(double *pattern); - - /** - * Fill a pixbuf with text standard cairo drawing - */ - GdkPixbuf* sp_text_to_pixbuf(char *text); - - /** - * Callback for combobox image renderer - */ - void prepareImageRenderer( Gtk::TreeModel::const_iterator const &row ); - - /** - * Callback for offset adjustment changing - */ - void offset_value_changed(); - - /** - * Callback for combobox selection changing - */ - void on_selection(); - - /** - * Combobox columns - */ - class DashColumns : public Gtk::TreeModel::ColumnRecord { - public: - Gtk::TreeModelColumn dash; - Gtk::TreeModelColumn > pixbuf; - - DashColumns() { - add(dash); add(pixbuf); - } - }; - DashColumns dash_columns; - Glib::RefPtr dash_store; - Gtk::ComboBox dash_combo; - Gtk::CellRendererPixbuf image_renderer; - Glib::RefPtr offset; - - static gchar const *const _prefs_path; - int preview_width; - int preview_height; - int preview_lineheight; - -}; - -#endif // SEEN_SP_DASH_SELECTOR_NEW_H - -/* - Local Variables: - mode:c++ - c-file-style:"stroustrup" - c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) - indent-tabs-mode:nil - fill-column:99 - End: -*/ -// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 : -- cgit v1.2.3