.ide: Cleanup of bottompane issues (thanks sender_ghost)

git-svn-id: svn://ultimatepp.org/upp/trunk@3449 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2011-05-23 18:37:33 +00:00
parent 3c452f465a
commit 061e35e977
3 changed files with 11 additions and 3 deletions

View file

@ -184,6 +184,13 @@ void Ide::SetBottom(int i)
SyncBottom();
}
void Ide::ShowBottom(int i)
{
if(i == btabs.GetCursor() && IsBottomShown())
return;
SetBottom(i);
}
void Ide::ToggleBottom(int i)
{
if(i == btabs.GetCursor() && IsBottomShown())

View file

@ -572,7 +572,7 @@ bool MakeBuild::Build()
VectorMap<String, String> bm = GetMethodVars(method);
if(bm.GetCount() == 0) {
PutConsole("Invalid build method");
ShowConsole();
ConsoleShow();
return false;
}
One<Host> host = CreateHost(false);

View file

@ -747,8 +747,9 @@ public:
void HideBottom();
void SetBottom(int i);
void ToggleBottom(int i);
void ShowConsole() { SetBottom(1); }
void ShowConsole2() { SetBottom(2); }
void ShowBottom(int i);
void ShowConsole() { ShowBottom(1); }
void ShowConsole2() { ShowBottom(2); }
void ToggleConsole() { ToggleBottom(1); }
void SwapBottom();
bool IsBottomShown() const;