File: ConfigWindows.cpp

package info (click to toggle)
vcmi 0.99%2Bdfsg-2
  • links: PTS, VCS
  • area: contrib
  • in suites: stretch
  • size: 10,264 kB
  • ctags: 16,826
  • sloc: cpp: 121,945; objc: 248; sh: 193; makefile: 28; python: 13; ansic: 9
file content (20 lines) | stat: -rw-r--r-- 600 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "StdInc.h"
#include "ConfigWindows.h"
#include "Editor.h"
#include "../lib/mapping/CMap.h"

#include <QTabWidget>

MapSpecifications::MapSpecifications( QWidget *p /*= 0*/ ) : QDialog(p), editor(dynamic_cast<Editor*>(p))
{
	QTabWidget * tabs = new QTabWidget(this);

	enum {GENERAL, PLAYER_SPEC, TEAMS, RUMORS, TIMED_EVENTS, LOSS_COND, VIC_COND, HEROES, ARTIFACTS, SPELLS, SEC_SKILLS};
	QWidget * tabWidgets[11];
	tabWidgets[GENERAL] = new QWidget(tabs);

	int tabNames[] = {160, 167, 169, 168, 170, 166, 171, 165};

	tabs->addTab(tabWidgets[GENERAL], tr("General"));

}