X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fwidgets%2Ffontbox.cpp;h=1e987cb8a5069230c474137585a3644f7b187276;hb=e1d1cacbb43055988d0d9db632fdf05c0bea9543;hp=8ea742b69f8fec5b1a1d9c6ea83efe1983c31b6c;hpb=e5a77a32dbe17d9534d3099f1fd3fdacba199516;p=architektonas diff --git a/src/widgets/fontbox.cpp b/src/widgets/fontbox.cpp index 8ea742b..1e987cb 100644 --- a/src/widgets/fontbox.cpp +++ b/src/widgets/fontbox.cpp @@ -16,22 +16,22 @@ #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 * to use this constructor. */ -QG_FontBox::QG_FontBox(QWidget * parent/*= 0*/, const char */*name = 0*/): QComboBox(parent) +FontBox::FontBox(QWidget * parent/*= 0*/, const char */*name = 0*/): QComboBox(parent) { } /** * Destructor */ -QG_FontBox::~QG_FontBox() +FontBox::~FontBox() { } @@ -39,11 +39,11 @@ QG_FontBox::~QG_FontBox() * Initialisation (called from constructor or manually but only * once). */ -void QG_FontBox::init() +void FontBox::init() { 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(); @@ -58,7 +58,7 @@ void QG_FontBox::init() slotFontChanged(currentIndex()); } -RS_Font * QG_FontBox::getFont() +Font * FontBox::getFont() { return currentFont; } @@ -66,9 +66,9 @@ RS_Font * QG_FontBox::getFont() /** * Sets the currently selected width item to the given width. */ -void QG_FontBox::setFont(const QString & fName) +void FontBox::setFont(const QString & fName) { - RS_DEBUG->print("QG_FontBox::setFont %s\n", fName.toLatin1().data()); + DEBUG->print("FontBox::setFont %s\n", fName.toLatin1().data()); // setCurrentText(fName); setItemText(currentIndex(), fName); // slotFontChanged(currentItem()); @@ -79,13 +79,13 @@ void QG_FontBox::setFont(const QString & fName) * Called when the font has changed. This method * sets the current font to the value chosen. */ -void QG_FontBox::slotFontChanged(int index) +void FontBox::slotFontChanged(int index) { - RS_DEBUG->print("QG_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); }