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 12... Line 12...
12
		switch(menuevent)
12
		switch(menuevent)
13
		{
13
		{
14
			case MENUEVENT_EXIT:
14
			case MENUEVENT_EXIT:
15
				gui->Close();
15
				gui->Close();
16
				break;
16
				break;
17
			case MENUEVENT_REMOVEDIR:
-
 
18
				gui->RemoveDirectory();
-
 
19
				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();
Line 54... Line 51...
54
				gui->ExportPackageList();
51
				gui->ExportPackageList();
55
				break;
52
				break;
56
			case MENUEVENT_VERIFYFILES:
53
			case MENUEVENT_VERIFYFILES:
57
				gui->VerifyInstalledFiles();
54
				gui->VerifyInstalledFiles();
58
				break;
55
				break;
-
 
56
			case MENUEVENT_DIRECTORYCONTROL:
-
 
57
				gui->OpenDirectoryControl();
-
 
58
				break;
59
		}
59
		}
60
	}
60
	}
61
 
61
 
62
	void MenuBar::ViewFakePatchs()
62
	void MenuBar::ViewFakePatchs()
63
	{
63
	{
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
};
78
77