You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdegames/kolf/config.cpp

49 lines
852 B

#include <tqlabel.h>
#include <tqlayout.h>
#include <kdialog.h>
#include <klocale.h>
#include "config.h"
Config::Config(TQWidget *tqparent, const char *name)
: TQFrame(tqparent, name)
{
startedUp = false;
}
void Config::ctorDone()
{
startedUp = true;
}
int Config::spacingHint()
{
return KDialog::spacingHint() / 2;
}
int Config::marginHint()
{
return KDialog::marginHint();
}
void Config::changed()
{
if (startedUp)
emit modified();
}
MessageConfig::MessageConfig(TQString text, TQWidget *tqparent, const char *name)
: Config(tqparent, name)
{
TQVBoxLayout *tqlayout = new TQVBoxLayout(this, marginHint(), spacingHint());
tqlayout->addWidget(new TQLabel(text, this));
}
DefaultConfig::DefaultConfig(TQWidget *tqparent, const char *name)
: MessageConfig(i18n("No configuration options"), tqparent, name)
{
}
#include "config.moc"