Subversion Repositories spk

Rev

Rev 89 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 89 Rev 121
Line 11... Line 11...
11
 
11
 
12
		switch(menuevent)
12
		switch(menuevent)
13
		{
13
		{
14
			case MENUEVENT_EXIT:
14
			case MENUEVENT_EXIT:
15
				gui->Close();
15
				gui->Close();
16
				break;
-
 
17
			case MENUEVENT_REMOVEDIR:
-
 
18
				gui->RemoveDirectory();
-
 
19
				break;
16
				break;
20
			case MENUEVENT_PACKAGEUPDATE:
17
			case MENUEVENT_PACKAGEUPDATE:
21
				gui->PackageUpdates();
18
				gui->PackageUpdates();
22
				break;
19
				break;
23
			case MENUEVENT_FAKEPATCHCONTROL:
20
			case MENUEVENT_FAKEPATCHCONTROL:
24
				gui->FakePatchControlDialog();
21
				gui->FakePatchControlDialog();
25
				break;
22
				break;
26
			case MENUEVENT_FAKEPATCHCOMPAT:
23
			case MENUEVENT_FAKEPATCHCOMPAT:
27
				gui->CheckFakePatchCompatability();
24
				gui->CheckFakePatchCompatability();
28
				break;
25
				break;
29
			case MENUEVENT_COMMANDSLOTS:
26
			case MENUEVENT_COMMANDSLOTS:
30
				gui->CommandSlotsDialog();
27
				gui->CommandSlotsDialog();
31
				break;
28
				break;
32
			case MENUEVENT_EDITGLOBAL:
29
			case MENUEVENT_EDITGLOBAL:
33
				gui->EditGlobalsDialog();
30
				gui->EditGlobalsDialog();
Line 38... Line 35...
38
			case MENUEVENT_ABOUT:
35
			case MENUEVENT_ABOUT:
39
				gui->AboutDialog();
36
				gui->AboutDialog();
40
				break;
37
				break;
41
			case MENUEVENT_FILELOG:
38
			case MENUEVENT_FILELOG:
42
				gui->ViewFileLog();
39
				gui->ViewFileLog();
43
				break;
40
				break;
44
			case MENUEVENT_FINDPACKAGE:
41
			case MENUEVENT_FINDPACKAGE:
45
				gui->FindPackagesOnline();
42
				gui->FindPackagesOnline();
46
				break;
43
				break;
47
			case MENUEVENT_SAVEGAMEMANAGER:
44
			case MENUEVENT_SAVEGAMEMANAGER:
48
				gui->SetSaveGameManager(this->enabledToolStripMenuItem->Checked);
45
				gui->SetSaveGameManager(this->enabledToolStripMenuItem->Checked);
Line 53... Line 50...
53
			case MENUEVENT_EXPORTPACKAGE:
50
			case MENUEVENT_EXPORTPACKAGE:
54
				gui->ExportPackageList();
51
				gui->ExportPackageList();
55
				break;
52
				break;
56
			case MENUEVENT_VERIFYFILES:
53
			case MENUEVENT_VERIFYFILES:
57
				gui->VerifyInstalledFiles();
54
				gui->VerifyInstalledFiles();
-
 
55
				break;
-
 
56
			case MENUEVENT_DIRECTORYCONTROL:
-
 
57
				gui->OpenDirectoryControl();
58
				break;
58
				break;
59
		}
59
		}
60
	}
60
	}
61
 
61
 
62
	void MenuBar::ViewFakePatchs()
62
	void MenuBar::ViewFakePatchs()
Line 68... Line 68...
68
	void MenuBar::SetupEvents()
68
	void MenuBar::SetupEvents()
69
	{
69
	{
70
		this->installPackageToolStripMenuItem->Click += gcnew EventHandler(cli::safe_cast<MainGui ^>(this->Parent), &PluginManager::MainGui::InstallEvent);
70
		this->installPackageToolStripMenuItem->Click += gcnew EventHandler(cli::safe_cast<MainGui ^>(this->Parent), &PluginManager::MainGui::InstallEvent);
71
		this->vanillaToolStripMenuItem->Click += gcnew EventHandler(cli::safe_cast<MainGui ^>(this->Parent), &PluginManager::MainGui::VanillaEvent);
71
		this->vanillaToolStripMenuItem->Click += gcnew EventHandler(cli::safe_cast<MainGui ^>(this->Parent), &PluginManager::MainGui::VanillaEvent);
72
		this->modifiedToolStripMenuItem->Click += gcnew EventHandler(cli::safe_cast<MainGui ^>(this->Parent), &PluginManager::MainGui::ModifiedEvent);
72
		this->modifiedToolStripMenuItem->Click += gcnew EventHandler(cli::safe_cast<MainGui ^>(this->Parent), &PluginManager::MainGui::ModifiedEvent);
73
		this->addDirectoryToolStripMenuItem->Click += gcnew EventHandler(cli::safe_cast<MainGui ^>(this->Parent), &PluginManager::MainGui::AddDirectoryEvent);
-
 
74
		this->modSelectorToolStripMenuItem->Click += gcnew EventHandler(cli::safe_cast<MainGui ^>(this->Parent), &PluginManager::MainGui::ModSelectorEvent);
73
		this->modSelectorToolStripMenuItem->Click += gcnew EventHandler(cli::safe_cast<MainGui ^>(this->Parent), &PluginManager::MainGui::ModSelectorEvent);
75
		this->packageBrowserToolStripMenuItem->Click += gcnew EventHandler(cli::safe_cast<MainGui ^>(this->Parent), &PluginManager::MainGui::PackageBrowserEvent);
74
		this->packageBrowserToolStripMenuItem->Click += gcnew EventHandler(cli::safe_cast<MainGui ^>(this->Parent), &PluginManager::MainGui::PackageBrowserEvent);
76
	}
75
	}
77
};
76
};