////////////////////////////////////////////////////////////////////////////////
// Installers.h
// Screen for installing games via MechVM
// Copyright Bjoern Ganster 
// Developed since 2007
////////////////////////////////////////////////////////////////////////////////

#pragma once

#include "GLWindowContainer.h"
#include "GLLabel.h"
#include "GLLineEdit.h"

const int importPathEditID = 10;
//const int startImportButtonID = 11;
const int searchForCDButtonID = 12;
const int installFromDriveButtonID = 100;
const int importFromDriveButtonID = 200;
const int reportCDRomButtonID = 300;
const int installNetMechID = 400;
const int installFromCDImageID = 500;

class Installers: public GLWindowContainer {
public:
	// Constructor
	Installers(int _left = 0, int _top = 0, int _width = 0, int _height = 0);

	// Destructor
	~Installers() OVERRIDE;

	void setup();

	// Receive messages
	void receiveMessage (VirtualClass* sender, int /*MessageType*/, VirtualClass* data = nullptr);

	void displayMsg (const BGCPString& msg);
private:
	GLLabel* label;
	GLLineEdit* importPathEdit;

	void createInstallButton(const PathChar* CDpath, int& y);
	size_t showCDROMWidgets(int& y);
	void showInstallFromImageButton(int& y);
	void installFromCDImage();
};
