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.
55 lines
1.7 KiB
55 lines
1.7 KiB
#include "settings.h"
|
|
#include "settings.moc"
|
|
|
|
#include <tqlabel.h>
|
|
#include <layout.h>
|
|
#include <tqcheckbox.h>
|
|
#include <tqwhatsthis.h>
|
|
|
|
#include <klocale.h>
|
|
#include <knuminput.h>
|
|
#include <kdialog.h>
|
|
#include <kglobal.h>
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
AppearanceConfig::AppearanceConfig()
|
|
{
|
|
int row = _grid->numRows();
|
|
int col = _grid->numCols();
|
|
|
|
TQCheckBox *cb = new TQCheckBox(i18n("Show piece's shadow"), _main, "kcfg_ShowPieceShadow");
|
|
_grid->addMultiCellWidget(cb, row, row, 0, col-1);
|
|
|
|
cb = new TQCheckBox(i18n("Show next piece"), _main, "kcfg_ShowNextPiece");
|
|
_grid->addMultiCellWidget(cb, row+1, row+1, 0, col-1);
|
|
|
|
cb = new TQCheckBox(i18n("Show detailed \"removed lines\" field"), _main, "kcfg_ShowDetailedRemoved");
|
|
_grid->addMultiCellWidget(cb, row+2, row+2, 0, col-1);
|
|
}
|
|
|
|
//-----------------------------------------------------------------------------
|
|
GameConfig::GameConfig()
|
|
: TQWidget(0, "game config")
|
|
{
|
|
TQVBoxLayout *top = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
|
|
|
|
_grid = new TQGridLayout(top, 3, 2);
|
|
_grid->setColStretch(1, 1);
|
|
|
|
TQLabel *label = new TQLabel(i18n("Initial level:"), this);
|
|
_grid->addWidget(label, 0, 0);
|
|
KIntNumInput *in = new KIntNumInput(this, "kcfg_InitialGameLevel");
|
|
in->setRange(1, 20, 1, true);
|
|
_grid->addWidget(in, 0, 1);
|
|
|
|
_grid->addRowSpacing(1, KDialog::spacingHint());
|
|
|
|
TQCheckBox *cb = new TQCheckBox(i18n("Direct drop down"), this, "kcfg_DirectDropDownEnabled");
|
|
TQWhatsThis::add(cb, i18n("Drop down is not stopped when drop down key is released."));
|
|
_grid->addMultiCellWidget(cb, 2, 2, 0, 1);
|
|
|
|
top->addStretch(1);
|
|
}
|
|
|