public WindowCampaign(int variant)
	{
		super();
		
		//setStyleSheet(core.Const.menuStyle);
		
		setMinimumSize(1000, 700);
		setMaximumSize(1000, 700);
		
		back.setGeometry(width()-200, height()-50*1-32, 150, 40);
		start.setGeometry(width()-200, height()-50*2-32, 150, 40);
		
		
		background.setParent(this);
		logo.setParent(this);
		back.setParent(this);
		start.setParent(this);
		
		logo.move(250, 50);
		//logo.setStyleSheet("background-color: none");
		
		options.setLayout(layout);
		options.setParent(this);
		options.setGeometry(width()-250, 200, 200, 350);
		//options.setStyleSheet("QFrame { background-color: none; color: white } QTextEdit, QLineEdit, QComboBox, QListView { border: 1px solid white; background-color: #333; color: white; padding: 3px; }");
		
		layout.setMargin(0);
		layout.addRow("Imię:", name);
		layout.addRow("Misja:", mission);
		layout.addRow(new QLabel("Opis misji: "));
		layout.addRow(description);
		layout.addRow(new QLabel("Cel misji: "));
		layout.addRow(objective);
		
		objective.setMaximumHeight(100);
		objective.setReadOnly(true);
		description.setReadOnly(true);
		
		
		if (variant == 1) {
			missions[0] =  new core.MissionC1v1();
			mission.addItem(missions[0].getName(), null);
			missions[1] =  new core.MissionC2v1();
			mission.addItem(missions[1].getName(), null);
			missions[2] =  new core.MissionC3v1();
			mission.addItem(missions[2].getName(), null);
			missions[3] =  new core.MissionC4v1();
			mission.addItem(missions[3].getName(), null);
			missions[4] =  new core.MissionC5v1();
			mission.addItem(missions[4].getName(), null);
		} else if (variant == 2) {
			missions[0] =  new core.MissionC1v2();
			mission.addItem(missions[0].getName(), null);
			missions[1] =  new core.MissionC2v2();
			mission.addItem(missions[1].getName(), null);
			missions[2] =  new core.MissionC3v2();
			mission.addItem(missions[2].getName(), null);
			missions[3] =  new core.MissionC4v2();
			mission.addItem(missions[3].getName(), null);
			missions[4] =  new core.MissionC5v2();
			mission.addItem(missions[4].getName(), null);
		}
		
		mission.currentIndexChanged.connect(this, "missionChanged(int)");
		name.editingFinished.connect(this, "nameCheck()");
		back.clicked.connect(this, "backClicked()");
		start.clicked.connect(this, "startClicked()");
		
		missionChanged(0);
	}