// ------- nadrazena trida dialogu -------
function photoDialog_exif(iIdentify) {
	this.inheritFrom = photoDialog;
	this.inheritFrom();
	
	this.identify = iIdentify;
	
	this.updateStuff = function() {
		if (!this.finishFlag) {
			if (dialogs.collection.length == 1) document.getElementById(this.identify + "dialog_stuff").innerHTML = "Probíhá načítaní EXIF informací ... ";
			else document.getElementById(this.identify + "dialog_stuff").innerHTML = "Probíhá načítaní EXIF informací (u " + dialogs.collection.length + " obrázků) ... ";
		}
	}

	this.setStuff = function(iValue) {
		document.getElementById(this.identify + "dialog_stuff").innerHTML = iValue;
	}

	// -------- virtualni metody ---------
	this.inicialize = function() {
		this.beforeState = "dialog_state1";
	}

	this.execute = function() {
		this.commandName = "self_getexif";
		var cmd = this.composeCommand();
		
		if (exec == null) alert("Chyba!");
		else this.execCmd(cmd);
	}

	this.finish = function(success) {
		if (this.finishFlag) {
			this.finishFlag = false;
		}
	}

	this.updateSelection = function(iRef) {
		if (dialogs.collection.length == 0) {
			this.setState("dialog_state1");
		} else {
			this.setState("dialog_state2");
			this.updateStuff();
			this.execute();
		}
	}
}
