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
836 B

#include <tqlabel.h>
#include <tqlayout.h>
#include <kdialog.h>
#include <klocale.h>
#include "config.h"
Config::Config(TQWidget *parent, const char *name)
: TQFrame(parent, 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 *parent, const char *name)
: Config(parent, name)
{
TQVBoxLayout *layout = new TQVBoxLayout(this, marginHint(), spacingHint());
layout->addWidget(new TQLabel(text, this));
}
DefaultConfig::DefaultConfig(TQWidget *parent, const char *name)
: MessageConfig(i18n("No configuration options"), parent, name)
{
}
#include "config.moc"