/* * Localwebfaker - Web sites faker for LAN * Copyright (C) 2007-2009 Lucas J. González * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see AppName()); cuerpo = new QVBoxLayout(this); botones = new QHBoxLayout(); label = new QLabel("Check that this information is correct"); okBtn = new QPushButton("Confirm && Start!"); CclBtn = new QPushButton("Edit"); connect(okBtn, SIGNAL(clicked()), this, SLOT(accept()) ); connect(CclBtn, SIGNAL(clicked()), this, SLOT(reject()) ); titulo->append(" - Confirm data"); setWindowTitle(*titulo); userInput.dominio.insert ( 0, "Domain:\n\t"); userInput.docroot.insert ( 0, "New site root:\n\t"); userInput.victima.insert ( 0, "Client Ip address:\n\t"); userInput.interfaz.insert ( 0, "Network interface:\n\t"); dominioLbl = new QLabel(userInput.dominio); docrootLbl = new QLabel(userInput.docroot); victimaLbl = new QLabel(userInput.victima); interfazLbl = new QLabel(userInput.interfaz); cuerpo->addWidget(label); cuerpo->addWidget(dominioLbl); cuerpo->addWidget(docrootLbl); cuerpo->addWidget(victimaLbl); cuerpo->addWidget(interfazLbl); cuerpo->addLayout(botones); botones->addWidget(CclBtn); botones->addWidget(okBtn); okBtn->setFocus(); cuerpo->setSpacing(6); cuerpo->setMargin(11); }