Click here to Skip to main content
15,881,898 members
Articles / Programming Languages / C++

Useful Managers

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
11 Aug 2001 80.3K   1.2K   16  
An add-in for Devstudio that provides tag indexing and search, window, bookmarks, session and other managers
#if !defined(AFX_TAGONEFILEMGR_H__C1AC212C_8ABF_11D1_B145_000000000000__INCLUDED_)
#define AFX_TAGONEFILEMGR_H__C1AC212C_8ABF_11D1_B145_000000000000__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TagsOfFileMgr.h : header file
// COPYRIGHT (C) 1999-2000 by Mike Melnikov zmike@andnow.ru
//

#include "SortMgr.h"

enum {
	COL_KIND_TAG = 0,
	COL_LINE_TAG,
	COL_TAG_TAG,
	COL_CODE_TAG,
};

/////////////////////////////////////////////////////////////////////////////
// CTagsOfFileMgr dialog
class CTagsOfFileMgr : public CSortMgr
{
public:
  CTagsOfFileMgr(){avalibleCommands=AutoClose|SelectAll;}
protected:
  void addInTree(ClassItem& item,int kind);
  void addItems(TagVector& vect,CString name,int kind);
  void addItem(string file,int kind,CString name,int line);
  virtual CString getName() {return "FileTags Manager";}
  virtual void OnInit();
  virtual void FillList();
  virtual int  Sort(LPARAM lParam1, LPARAM lParam2);
  virtual void OnSelect(CMListCtrl& ctrl);
  virtual void onDestroy();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TAGONEFILEMGR_H__C1AC212C_8ABF_11D1_B145_000000000000__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Russian Federation Russian Federation
Mike has been programming in C/C++ for 11 years and Visual C++/MFC for 4 years. His background includes pure and applied mathematics, engineering and physics, and he is currently based in Moscow, Russia.

Comments and Discussions