svg-fonts-dialog.h revision 9eaf26d35152f36f4ac8b37e4d13e87b020dc01e
/** @file
* @brief SVG Fonts dialog
*/
/* Authors:
* Felipe CorrĂȘa da Silva Sanches <felipe.sanches@gmail.com>
*
* 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 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