mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-10 10:49:35 +00:00
1
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||||
//
|
||||
// Purpose:
|
||||
//
|
||||
//=============================================================================//
|
||||
|
||||
#ifndef WORKSPACEBROWSER_H
|
||||
#define WORKSPACEBROWSER_H
|
||||
#ifdef _WIN32
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
#include "mxtk/mxTreeView.h"
|
||||
#include "commctrl.h"
|
||||
|
||||
class CWorkspace;
|
||||
class CProject;
|
||||
class CScene;
|
||||
class CVCDFile;
|
||||
class CSoundEntry;
|
||||
|
||||
class CBrowserTree;
|
||||
class ITreeItem;
|
||||
class CWorkspaceManager;
|
||||
|
||||
class CWorkspaceBrowser : public mxWindow
|
||||
{
|
||||
typedef mxWindow BaseClass;
|
||||
public:
|
||||
|
||||
CWorkspaceBrowser( mxWindow *parent, CWorkspaceManager *manager, int id );
|
||||
|
||||
CWorkspace *GetWorkspace();
|
||||
void SetWorkspace( CWorkspace *w );
|
||||
void AddProject( CProject *project );
|
||||
|
||||
virtual int handleEvent( mxEvent *event );
|
||||
|
||||
ITreeItem *GetSelectedItem();
|
||||
|
||||
void PopulateTree();
|
||||
|
||||
static int CALLBACK CompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
|
||||
|
||||
|
||||
void JumpTo( ITreeItem *item );
|
||||
|
||||
private:
|
||||
|
||||
CWorkspaceManager *GetManager();
|
||||
|
||||
void OnTreeItemSelected( int x, int y, bool rightmouse, bool doubleclick );
|
||||
|
||||
CWorkspace *m_pCurrentWorkspace;
|
||||
|
||||
CBrowserTree *m_pTree;
|
||||
|
||||
enum
|
||||
{
|
||||
NUM_BITMAPS = 12,
|
||||
};
|
||||
|
||||
ITreeItem *m_pLastSelected;
|
||||
CWorkspaceManager *m_pManager;
|
||||
};
|
||||
|
||||
#endif // WORKSPACEBROWSER_H
|
||||
Reference in New Issue
Block a user