| 1 |
// CodeComboBox.cpp : implementation file |
|---|
| 2 |
// |
|---|
| 3 |
|
|---|
| 4 |
#include "stdafx.h" |
|---|
| 5 |
#include "Elephant.h" |
|---|
| 6 |
#include "CodeComboBox.h" |
|---|
| 7 |
#include "parsingfunctions.h" |
|---|
| 8 |
|
|---|
| 9 |
#ifdef _DEBUG |
|---|
| 10 |
#define new DEBUG_NEW |
|---|
| 11 |
#undef THIS_FILE |
|---|
| 12 |
static char THIS_FILE[] = __FILE__; |
|---|
| 13 |
#endif |
|---|
| 14 |
|
|---|
| 15 |
///////////////////////////////////////////////////////////////////////////// |
|---|
| 16 |
// CCodeComboBox |
|---|
| 17 |
|
|---|
| 18 |
CCodeComboBox::CCodeComboBox() |
|---|
| 19 |
{ |
|---|
| 20 |
// DisableFlatLook(false); |
|---|
| 21 |
} |
|---|
| 22 |
|
|---|
| 23 |
CCodeComboBox::~CCodeComboBox() |
|---|
| 24 |
{ |
|---|
| 25 |
} |
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 |
BEGIN_MESSAGE_MAP(CCodeComboBox, CComboBoxSuper) |
|---|
| 29 |
//{{AFX_MSG_MAP(CCodeComboBox) |
|---|
| 30 |
ON_CONTROL_REFLECT(CBN_SELCHANGE, OnSelchange) |
|---|
| 31 |
ON_WM_KEYUP() |
|---|
| 32 |
//}}AFX_MSG_MAP |
|---|
| 33 |
END_MESSAGE_MAP() |
|---|
| 34 |
|
|---|
| 35 |
///////////////////////////////////////////////////////////////////////////// |
|---|
| 36 |
// CCodeComboBox message handlers |
|---|
| 37 |
|
|---|
| 38 |
void CCodeComboBox::OnSelchange() |
|---|
| 39 |
{ |
|---|
| 40 |
int itemCount = this->GetCount(); |
|---|
| 41 |
if ( itemCount > 100 ) |
|---|
| 42 |
{ |
|---|
| 43 |
//AfxMessageBox("here"); |
|---|
| 44 |
CMainFrame* mf = static_cast<CMainFrame*>(Globals::theApp.m_pMainWnd); |
|---|
| 45 |
mf->m_wndTabDockBar.m_codeBrowser.m_tagTree.SetRedraw(false); |
|---|
| 46 |
|
|---|
| 47 |
} |
|---|
| 48 |
int sel = GetCurSel(); |
|---|
| 49 |
|
|---|
| 50 |
switch ( sel ) |
|---|
| 51 |
{ |
|---|
| 52 |
case 0 : DisplayModules(); break; |
|---|
| 53 |
case 1 : DisplayClasses(); break; |
|---|
| 54 |
case 2 : DisplayInterfaces(); break; |
|---|
| 55 |
case 3 : DisplayStructs(); break; |
|---|
| 56 |
case 4 : DisplayFunctions(); break; |
|---|
| 57 |
case 5 : DisplayTemplates(); break; |
|---|
| 58 |
case 6 : DisplayMixins(); break; |
|---|
| 59 |
case 7 : DisplayTypedefs(); break; |
|---|
| 60 |
case 8 : DisplayAliases(); break; |
|---|
| 61 |
case 9 : DisplayEnums();break; |
|---|
| 62 |
case 10 : break; |
|---|
| 63 |
case 11 : DisplayInvariants(); break; |
|---|
| 64 |
case 12 : DisplayUnittests(); break; |
|---|
| 65 |
case 13 : DisplayImports(); break; |
|---|
| 66 |
//case 13: DisplayLinkDecls(); break; |
|---|
| 67 |
case 14: DisplayVersionDecls(); break; |
|---|
| 68 |
case 15: DisplayDebugDecls(); break; |
|---|
| 69 |
case 16: DisplayStaticCtors(); break; |
|---|
| 70 |
case 17 : DisplayStaticDtors(); break; |
|---|
| 71 |
|
|---|
| 72 |
|
|---|
| 73 |
default : AfxMessageBox("not implemented for codecombobox.cpp"); |
|---|
| 74 |
} |
|---|
| 75 |
|
|---|
| 76 |
if ( itemCount > 100 ) |
|---|
| 77 |
{ |
|---|
| 78 |
CMainFrame* mf = static_cast<CMainFrame*>(Globals::theApp.m_pMainWnd); |
|---|
| 79 |
mf->m_wndTabDockBar.m_codeBrowser.m_tagTree.SetRedraw(true); |
|---|
| 80 |
|
|---|
| 81 |
} |
|---|
| 82 |
|
|---|
| 83 |
// m_tagType.AddString("Modules"); |
|---|
| 84 |
// m_tagType.AddString("Classes"); |
|---|
| 85 |
// m_tagType.AddString("Intefaces"); |
|---|
| 86 |
// m_tagType.AddString("Structs"); |
|---|
| 87 |
// m_tagType.AddString("Functions"); |
|---|
| 88 |
// m_tagType.AddString("Templates"); |
|---|
| 89 |
// m_tagType.AddString("Mixins"); |
|---|
| 90 |
// m_tagType.AddString("Typedefs"); |
|---|
| 91 |
// m_tagType.AddString("Aliases"); |
|---|
| 92 |
// m_tagType.AddString("Enums"); |
|---|
| 93 |
// m_tagType.AddString("Function Literals"); |
|---|
| 94 |
// m_tagType.AddString("Invariants"); |
|---|
| 95 |
// m_tagType.AddString("UnitTests"); |
|---|
| 96 |
// m_tagType.AddString("Link Declarations"); |
|---|
| 97 |
// m_tagType.AddString("Version Declarations"); |
|---|
| 98 |
// m_tagType.AddString("Debug Declarations"); |
|---|
| 99 |
// m_tagType.AddString("Static Constructors"); |
|---|
| 100 |
// m_tagType.AddString("Static Deathtractors"); |
|---|
| 101 |
|
|---|
| 102 |
} |
|---|