doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions | Variables
DialogDeclBrowser.cpp File Reference
#include "../../idlib/precompiled.h"
#include "../../sys/win32/rc/DeclEditor_resource.h"
#include "../../sys/win32/rc/ScriptEditor_resource.h"
#include "../comafx/CPathTreeCtrl.h"
#include "../script/DialogScriptEditor.h"
#include "DialogDeclBrowser.h"
#include "DialogDeclEditor.h"
#include "DialogDeclNew.h"

Go to the source code of this file.

Macros

#define GetIdFromTypeAndIndex(type, index)   ( ( (int)type << DECLTYPE_SHIFT ) | index )
 
#define GetTypeFromId(id)   ( (declType_t) ( (int)id >> DECLTYPE_SHIFT ) )
 
#define GetIndexFromId(id)   ( (int)id & DECLINDEX_MASK )
 
#define BORDER_SIZE   4
 
#define BUTTON_SPACE   4
 
#define TOOLBAR_HEIGHT   24
 

Functions

template<class type >
int idListDeclSortCompare (const type *a, const type *b)
 
bool DeclBrowserCompareDecl (void *data, HTREEITEM item, const char *name)
 
void DeclBrowserInit (const idDict *spawnArgs)
 
void DeclBrowserRun (void)
 
void DeclBrowserShutdown (void)
 
void DeclBrowserReloadDeclarations (void)
 

Variables

const int DECLTYPE_SHIFT = 24
 
const int DECLINDEX_MASK = ( 1 << DECLTYPE_SHIFT ) - 1
 
const int DECLTYPE_SCRIPT = 126
 
const int DECLTYPE_GUI = 127
 

Macro Definition Documentation

#define BORDER_SIZE   4

Definition at line 646 of file DialogDeclBrowser.cpp.

#define BUTTON_SPACE   4

Definition at line 647 of file DialogDeclBrowser.cpp.

#define GetIdFromTypeAndIndex (   type,
  index 
)    ( ( (int)type << DECLTYPE_SHIFT ) | index )

Definition at line 52 of file DialogDeclBrowser.cpp.

#define GetIndexFromId (   id)    ( (int)id & DECLINDEX_MASK )

Definition at line 54 of file DialogDeclBrowser.cpp.

#define GetTypeFromId (   id)    ( (declType_t) ( (int)id >> DECLTYPE_SHIFT ) )

Definition at line 53 of file DialogDeclBrowser.cpp.

#define TOOLBAR_HEIGHT   24

Definition at line 648 of file DialogDeclBrowser.cpp.

Function Documentation

bool DeclBrowserCompareDecl ( void data,
HTREEITEM  item,
const char *  name 
)

Definition at line 354 of file DialogDeclBrowser.cpp.

void DeclBrowserInit ( const idDict spawnArgs)

Definition at line 444 of file DialogDeclBrowser.cpp.

void DeclBrowserReloadDeclarations ( void  )

Definition at line 509 of file DialogDeclBrowser.cpp.

void DeclBrowserRun ( void  )

Definition at line 480 of file DialogDeclBrowser.cpp.

void DeclBrowserShutdown ( void  )

Definition at line 499 of file DialogDeclBrowser.cpp.

template<class type >
int idListDeclSortCompare ( const type a,
const type b 
)

Definition at line 124 of file DialogDeclBrowser.cpp.

Variable Documentation

const int DECLINDEX_MASK = ( 1 << DECLTYPE_SHIFT ) - 1

Definition at line 48 of file DialogDeclBrowser.cpp.

const int DECLTYPE_GUI = 127

Definition at line 50 of file DialogDeclBrowser.cpp.

const int DECLTYPE_SCRIPT = 126

Definition at line 49 of file DialogDeclBrowser.cpp.

const int DECLTYPE_SHIFT = 24

Definition at line 47 of file DialogDeclBrowser.cpp.