svg-fonts-dialog.h revision 5ef6cb9428f2e6f5457e890a1c3b37f53730c07a
/** @file
* @brief SVG Fonts dialog
*/
/* Authors:
* Felipe CorrĂȘa da Silva Sanches <juca@members.fsf.org>
*
* Copyright (C) 2008 Authors
* Released under GNU GPLv2 (or later). Read the file 'COPYING' for more information.
*/
#ifndef INKSCAPE_UI_DIALOG_SVG_FONTS_H
#define INKSCAPE_UI_DIALOG_SVG_FONTS_H
#include "sp-font.h"
#include "sp-font-face.h"
#include "verbs.h"
#include "document.h"
#include "desktop.h"
#include "desktop-handles.h"
#include <gtkmm.h>
#include <gtkmm/liststore.h>
#include <gtkmm/treeview.h>
#include "display/nr-svgfonts.h"
#include "attributes.h"
#include "xml/helper-observer.h"
void set_svgfont(SvgFont*);
void set_size(int x, int y);
void redraw();
int x,y;
};
struct SPFont;
};
~SvgFontsDialog();
static SvgFontsDialog &getInstance()
{ return *new SvgFontsDialog(); }
void update_fonts();
//TODO: these methods should be private, right?!
void on_font_selection_changed();
void on_preview_text_changed();
void on_kerning_pair_changed();
void on_kerning_value_changed();
void on_setwidth_changed();
void add_font();
//TODO: AttrEntry is currently unused. Should we remove it?
{
void set_text(char*);
void on_attr_changed();
};
void update_glyphs();
void update_sensitiveness();
void update_global_settings_tab();
void populate_glyphs_box();
void populate_kerning_pairs_box();
void reset_missing_glyph_description();
void add_glyph();
void remove_selected_glyph();
void remove_selected_font();
void remove_selected_kerning_pair();
void add_kerning_pair();
// Gtk::HBox* AttrSpin(gchar* lbl, const SPAttributeEnum attr);
{
Columns()
{
}
};
{
{
}
};
{
{
}
};
{
{
}
}
};
};
} // namespace Dialog
} // namespace UI
} // namespace Inkscape
#endif //#ifndef INKSCAPE_UI_DIALOG_SVG_FONTS_H