-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcbTerminalViewManagerBase.cpp
More file actions
38 lines (35 loc) · 1.4 KB
/
cbTerminalViewManagerBase.cpp
File metadata and controls
38 lines (35 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/***************************************************************
* Name: cbTerminalViewManagerBase
* Purpose: cbTerminalViewManagerBase is an interface to the
* different graphical classes that can manage the view.
* Author: Jerome ANTOINE
* Created: 2007-07-19
* Copyright: Jerome ANTOINE
* Copyright: Christo Joseph
* License: GPL
**************************************************************/
#include "cbTerminalViewManagerBase.hpp"
#include "cbTerminalViewManagerMessagesNotebook.hpp"
#include "cbTerminalViewManagerLayout.hpp"
cbTerminalViewManagerBase* cbTerminalViewManagerBase::BuildcbTerminalViewManagerBase(
cbTerminalView* pView,
bool addViewToManager,
eManagerTypes managerType)
{
cbTerminalViewManagerBase* pMgr = 0;
if ( managerType == TypeMessagesNotebook )
{
pMgr = new cbTerminalViewManagerMessagesNotebook(pView);
}
else
{
// cbTerminalViewManagerLayout is the default view manager
// No error management on managerType
pMgr = new cbTerminalViewManagerLayout(pView);
}
if ( addViewToManager == true )
{
pMgr->AddViewToManager();
}
return pMgr;
}