#include "fontbox.h"
-#include "rs_debug.h"
-#include "rs_font.h"
-#include "rs_fontlist.h"
+#include "debug.h"
+#include "font.h"
+#include "fontlist.h"
/**
* Default Constructor. You must call init manually if you choose
{
QStringList fonts;
- for(RS_Font * f=RS_FONTLIST->firstFont(); f!=NULL; f=RS_FONTLIST->nextFont())
+ for(Font * f=FONTLIST->firstFont(); f!=NULL; f=FONTLIST->nextFont())
fonts.append(f->getFileName());
fonts.sort();
slotFontChanged(currentIndex());
}
-RS_Font * FontBox::getFont()
+Font * FontBox::getFont()
{
return currentFont;
}
*/
void FontBox::setFont(const QString & fName)
{
- RS_DEBUG->print("FontBox::setFont %s\n", fName.toLatin1().data());
+ DEBUG->print("FontBox::setFont %s\n", fName.toLatin1().data());
// setCurrentText(fName);
setItemText(currentIndex(), fName);
// slotFontChanged(currentItem());
*/
void FontBox::slotFontChanged(int index)
{
- RS_DEBUG->print("FontBox::slotFontChanged %d\n", index);
- currentFont = RS_FONTLIST->requestFont(currentText());
+ DEBUG->print("FontBox::slotFontChanged %d\n", index);
+ currentFont = FONTLIST->requestFont(currentText());
if (currentFont != NULL)
- RS_DEBUG->print("Current font is (%d): %s\n", index, currentFont->getFileName().toLatin1().data());
+ DEBUG->print("Current font is (%d): %s\n", index, currentFont->getFileName().toLatin1().data());
emit fontChanged(currentFont);
}