Esempio n. 1
0
void JKTetrisPiece::setBoard(int *board, int boardWidth, int boardHeight)
{
    this->board=board;
    this->boardWidth=boardWidth;
    this->boardHeight=boardHeight;
    initTop();
}
Esempio n. 2
0
ChessClockWidget::ChessClockWidget(bool white, QWidget *parent) :
    ChessClock(white, parent)
{
    greenTime_ = 0;

    mainLayout = new QVBoxLayout;

    initPictures();
    initLabels();
    initTop();
    initBottom();

    setLayout( mainLayout );
}
Esempio n. 3
0
DistViewGUI::DistViewGUI(representation::t type)
	: type(type)
{	
	// setup frame and its UI
	frame = new QWidget();
	frame->setSizePolicy(QSizePolicy::Preferred, // hor
						 QSizePolicy::Expanding); // ver
	ui = new Ui::DistViewGUI();
	ui->setupUi(frame);

	connect(QApplication::instance(), SIGNAL(lastWindowClosed()),
	        this, SLOT(saveState()));

	// create viewport
	initVP();

	// create controller widget that will reside inside viewport
	initVC(type);

	// connect and initialize topBar
	initTop();

	restoreState();
}