doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | Static Private Member Functions | Private Attributes | List of all members
rvGEWorkspace Class Reference

#include <GEWorkspace.h>

Public Types

enum  ESourceControlState { SCS_NONE, SCS_CHECKEDOUT, SCS_CHECKEDIN }
 
enum  EZoomLevel {
  ZOOM_MIN, ZOOM_25, ZOOM_33, ZOOM_50,
  ZOOM_66, ZOOM_100, ZOOM_150, ZOOM_200,
  ZOOM_300, ZOOM_MAX
}
 
enum  EItemAlign {
  ALIGN_LEFTS, ALIGN_CENTERS, ALIGN_RIGHTS, ALIGN_TOPS,
  ALIGN_MIDDLES, ALIGN_BOTTOMS
}
 

Public Member Functions

 rvGEWorkspace (rvGEApp *app)
 
 ~rvGEWorkspace ()
 
bool Attach (HWND wnd)
 
void Detach (void)
 
bool NewFile (void)
 
bool LoadFile (const char *filename, idStr *error=NULL)
 
bool SaveFile (const char *filename)
 
const char * GetFilename (void)
 
bool CheckOut (void)
 
bool CheckIn (void)
 
bool UndoCheckout (void)
 
ESourceControlState GetSourceControlState (void)
 
void Render (HDC hDC)
 
rvGEAppGetApplication (void)
 
void HideSelected (void)
 
void UnhideSelected (void)
 
void DeleteSelected (void)
 
bool EditSelectedProperties (void)
 
bool EditSelectedScripts (void)
 
void BringSelectedForward (void)
 
void BringSelectedToFront (void)
 
void SendSelectedBackward (void)
 
void SendSelectedToBack (void)
 
void AlignSelected (EItemAlign align)
 
void MakeSelectedSameSize (bool width, bool height)
 
void MakeSelectedAChild (void)
 
bool CanHide (void)
 
void ShowHidden (void)
 
void HideWindow (idWindow *window)
 
void UnhideWindow (idWindow *window)
 
EZoomLevel ZoomIn (void)
 
EZoomLevel ZoomOut (void)
 
EZoomLevel GetZoom (void)
 
float GetZoomScale (void)
 
rvGEModifierStackGetModifierStack (void)
 
idUserInterfaceLocalGetInterface (void)
 
rvGESelectionMgrGetSelectionMgr (void)
 
idList< rvGEClipboardItem * > GetClipboard (void)
 
HWND GetWindow (void)
 
void HandleMessage (UINT msg, WPARAM wParam, LPARAM lParam)
 
idVec2WindowToWorkspace (idVec2 &point)
 
idVec2WorkspaceToWindow (idVec2 &point)
 
idRectangleWindowToWorkspace (idRectangle &rect)
 
idRectangleWorkspaceToWindow (idRectangle &rect)
 
bool IsModified (void)
 
bool IsNew (void)
 
idWindowAddWindow (rvGEWindowWrapper::EWindowType type)
 
void Copy (void)
 
void Paste (void)
 
void AddModifierMove (const char *modName, float x, float y, bool snap)
 
void AddModifierSize (const char *modName, float l, float t, float r, float b, bool snap)
 
void SetModified (bool mod)
 

Static Public Member Functions

static rvGEWorkspaceGetWorkspace (HWND wnd)
 

Protected Types

enum  EModifierType {
  MOD_UNKNOWN, MOD_DELETE, MOD_HIDE, MOD_UNHIDE,
  MOD_SHOWHIDDEN, MOD_SEND_BACKWARD, MOD_BRING_FORWARD, MOD_SEND_BACK,
  MOD_BRING_FRONT
}
 

Protected Member Functions

bool SetupPixelFormat (void)
 
void UpdateSelections (void)
 
void RenderGrid (void)
 
void WriteTabs (idFile *file, int depth)
 
bool WriteWindow (idFile *file, int depth, idWindow *window)
 
int HandleRButtonDown (WPARAM wParam, LPARAM lParam)
 
int HandleLButtonDown (WPARAM wParam, LPARAM lParam)
 
int HandleLButtonUp (WPARAM wParam, LPARAM lParam)
 
int HandleLButtonDblClk (WPARAM wParam, LPARAM lParam)
 
int HandleMButtonDown (WPARAM wParam, LPARAM lParam)
 
int HandleMButtonUp (WPARAM wParam, LPARAM lParam)
 
int HandleMouseMove (WPARAM wParam, LPARAM lParam)
 
int HandleKeyDown (WPARAM wParam, LPARAM lParam)
 
int HandleScroll (int scrollbar, WPARAM wParam, LPARAM lParam)
 
int HandleCommand (WPARAM wParam, LPARAM lParam)
 
void UpdateScrollbars (void)
 
void UpdateRectangle (bool useScroll=true)
 
void UpdateCursor (void)
 
void UpdateCursor (float x, float y)
 
void UpdateCursor (rvGESelectionMgr::EHitTest type)
 
void UpdateTitle (void)
 
idWindowNewWindow (idDict *state, rvGEWindowWrapper::EWindowType type)
 
void Scroll (int scrollbar, int offset)
 
void AddModifierMoveNudge (float x, float y, bool snap)
 
void AddModifierSizeNudge (float w, float h, bool snap)
 
void AddModifierShowAll (void)
 
void AddModifiers (EModifierType type,...)
 
void AddModifiers (idWindow *window, EModifierType type,...)
 
rvGEModifierCreateModifier (EModifierType type, idWindow *window, va_list args)
 

Protected Attributes

idUserInterfaceLocalmInterface
 
HWND mWnd
 
int mZoom
 
idRectangle mRect
 
bool mScrollHorz
 
bool mScrollVert
 
int mWindowWidth
 
int mWindowHeight
 
idStr mFilename
 
rvGEModifierStack mModifiers
 
rvGESelectionMgr mSelections
 
rvGESelectionMgr::EHitTest mDragType
 
idVec2 mDragPoint
 
int mDragTime
 
bool mDragX
 
bool mDragY
 
bool mDragScroll
 
rvGEAppmApplication
 
idList< idWindow * > mSelectMenu
 
idVec2 mSelectMenuPos
 

Static Protected Attributes

static idList
< rvGEClipboardItem * > 
mClipboard
 

Static Private Member Functions

static bool CleanupEnumProc (rvGEWindowWrapper *wrapper, void *data)
 
static bool ShowAllEnumProc (rvGEWindowWrapper *wrapper, void *data)
 
static bool BuildSelectMenuEnumProc (rvGEWindowWrapper *wrapper, void *data)
 

Private Attributes

bool mModified
 
bool mNew
 
bool mDontAdd
 
ESourceControlState mSourceControlState
 
HCURSOR mHandCursor
 

Detailed Description

Definition at line 51 of file GEWorkspace.h.

Member Enumeration Documentation

Enumerator
ALIGN_LEFTS 
ALIGN_CENTERS 
ALIGN_RIGHTS 
ALIGN_TOPS 
ALIGN_MIDDLES 
ALIGN_BOTTOMS 

Definition at line 76 of file GEWorkspace.h.

Enumerator
MOD_UNKNOWN 
MOD_DELETE 
MOD_HIDE 
MOD_UNHIDE 
MOD_SHOWHIDDEN 
MOD_SEND_BACKWARD 
MOD_BRING_FORWARD 
MOD_SEND_BACK 
MOD_BRING_FRONT 

Definition at line 163 of file GEWorkspace.h.

Enumerator
SCS_NONE 
SCS_CHECKEDOUT 
SCS_CHECKEDIN 

Definition at line 55 of file GEWorkspace.h.

Enumerator
ZOOM_MIN 
ZOOM_25 
ZOOM_33 
ZOOM_50 
ZOOM_66 
ZOOM_100 
ZOOM_150 
ZOOM_200 
ZOOM_300 
ZOOM_MAX 

Definition at line 62 of file GEWorkspace.h.

Constructor & Destructor Documentation

rvGEWorkspace::rvGEWorkspace ( rvGEApp app)

Definition at line 63 of file GEWorkspace.cpp.

rvGEWorkspace::~rvGEWorkspace ( )

Definition at line 82 of file GEWorkspace.cpp.

Member Function Documentation

void rvGEWorkspace::AddModifierMove ( const char *  modName,
float  x,
float  y,
bool  snap 
)

Definition at line 1779 of file GEWorkspace.cpp.

ID_INLINE void rvGEWorkspace::AddModifierMoveNudge ( float  x,
float  y,
bool  snap 
)
protected

Definition at line 303 of file GEWorkspace.h.

void rvGEWorkspace::AddModifiers ( EModifierType  type,
  ... 
)
protected

Definition at line 1370 of file GEWorkspace.cpp.

void rvGEWorkspace::AddModifiers ( idWindow window,
EModifierType  type,
  ... 
)
protected

Definition at line 1359 of file GEWorkspace.cpp.

void rvGEWorkspace::AddModifierShowAll ( void  )
protected

Definition at line 1446 of file GEWorkspace.cpp.

void rvGEWorkspace::AddModifierSize ( const char *  modName,
float  l,
float  t,
float  r,
float  b,
bool  snap 
)

Definition at line 1827 of file GEWorkspace.cpp.

ID_INLINE void rvGEWorkspace::AddModifierSizeNudge ( float  w,
float  h,
bool  snap 
)
protected

Definition at line 308 of file GEWorkspace.h.

idWindow * rvGEWorkspace::AddWindow ( rvGEWindowWrapper::EWindowType  type)

Definition at line 1568 of file GEWorkspace.cpp.

void rvGEWorkspace::AlignSelected ( EItemAlign  align)

Definition at line 1698 of file GEWorkspace.cpp.

bool rvGEWorkspace::Attach ( HWND  wnd)

Definition at line 136 of file GEWorkspace.cpp.

void rvGEWorkspace::BringSelectedForward ( void  )

Definition at line 1621 of file GEWorkspace.cpp.

void rvGEWorkspace::BringSelectedToFront ( void  )

Definition at line 1627 of file GEWorkspace.cpp.

bool rvGEWorkspace::BuildSelectMenuEnumProc ( rvGEWindowWrapper wrapper,
void data 
)
staticprivate

Definition at line 1405 of file GEWorkspace.cpp.

bool rvGEWorkspace::CanHide ( void  )
bool rvGEWorkspace::CheckIn ( void  )

Definition at line 366 of file GEWorkspaceFile.cpp.

bool rvGEWorkspace::CheckOut ( void  )

Definition at line 379 of file GEWorkspaceFile.cpp.

bool rvGEWorkspace::CleanupEnumProc ( rvGEWindowWrapper wrapper,
void data 
)
staticprivate

Definition at line 99 of file GEWorkspace.cpp.

void rvGEWorkspace::Copy ( void  )

Definition at line 1962 of file GEWorkspace.cpp.

rvGEModifier * rvGEWorkspace::CreateModifier ( EModifierType  type,
idWindow window,
va_list  args 
)
protected

Definition at line 1310 of file GEWorkspace.cpp.

void rvGEWorkspace::DeleteSelected ( void  )

Definition at line 1464 of file GEWorkspace.cpp.

void rvGEWorkspace::Detach ( void  )

Definition at line 161 of file GEWorkspace.cpp.

bool rvGEWorkspace::EditSelectedProperties ( void  )

Definition at line 1589 of file GEWorkspace.cpp.

bool rvGEWorkspace::EditSelectedScripts ( void  )

Definition at line 1610 of file GEWorkspace.cpp.

ID_INLINE rvGEApp * rvGEWorkspace::GetApplication ( void  )

Definition at line 318 of file GEWorkspace.h.

ID_INLINE idList< rvGEClipboardItem * > rvGEWorkspace::GetClipboard ( void  )

Definition at line 328 of file GEWorkspace.h.

ID_INLINE const char * rvGEWorkspace::GetFilename ( void  )

Definition at line 273 of file GEWorkspace.h.

ID_INLINE idUserInterfaceLocal * rvGEWorkspace::GetInterface ( void  )

Definition at line 313 of file GEWorkspace.h.

ID_INLINE rvGEModifierStack & rvGEWorkspace::GetModifierStack ( void  )

Definition at line 288 of file GEWorkspace.h.

ID_INLINE rvGESelectionMgr & rvGEWorkspace::GetSelectionMgr ( void  )

Definition at line 293 of file GEWorkspace.h.

ID_INLINE rvGEWorkspace::ESourceControlState rvGEWorkspace::GetSourceControlState ( void  )

Definition at line 333 of file GEWorkspace.h.

ID_INLINE HWND rvGEWorkspace::GetWindow ( void  )

Definition at line 323 of file GEWorkspace.h.

ID_INLINE rvGEWorkspace * rvGEWorkspace::GetWorkspace ( HWND  wnd)
static

Definition at line 268 of file GEWorkspace.h.

ID_INLINE rvGEWorkspace::EZoomLevel rvGEWorkspace::GetZoom ( void  )

Definition at line 263 of file GEWorkspace.h.

float rvGEWorkspace::GetZoomScale ( void  )

Definition at line 123 of file GEWorkspace.cpp.

int rvGEWorkspace::HandleCommand ( WPARAM  wParam,
LPARAM  lParam 
)
protected

Definition at line 780 of file GEWorkspace.cpp.

int rvGEWorkspace::HandleKeyDown ( WPARAM  wParam,
LPARAM  lParam 
)
protected

Definition at line 1147 of file GEWorkspace.cpp.

int rvGEWorkspace::HandleLButtonDblClk ( WPARAM  wParam,
LPARAM  lParam 
)
protected

Definition at line 1022 of file GEWorkspace.cpp.

int rvGEWorkspace::HandleLButtonDown ( WPARAM  wParam,
LPARAM  lParam 
)
protected

Definition at line 909 of file GEWorkspace.cpp.

int rvGEWorkspace::HandleLButtonUp ( WPARAM  wParam,
LPARAM  lParam 
)
protected

Definition at line 998 of file GEWorkspace.cpp.

int rvGEWorkspace::HandleMButtonDown ( WPARAM  wParam,
LPARAM  lParam 
)
protected

Definition at line 816 of file GEWorkspace.cpp.

int rvGEWorkspace::HandleMButtonUp ( WPARAM  wParam,
LPARAM  lParam 
)
protected

Definition at line 840 of file GEWorkspace.cpp.

void rvGEWorkspace::HandleMessage ( UINT  msg,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 660 of file GEWorkspace.cpp.

int rvGEWorkspace::HandleMouseMove ( WPARAM  wParam,
LPARAM  lParam 
)
protected

Definition at line 1035 of file GEWorkspace.cpp.

int rvGEWorkspace::HandleRButtonDown ( WPARAM  wParam,
LPARAM  lParam 
)
protected

Definition at line 858 of file GEWorkspace.cpp.

int rvGEWorkspace::HandleScroll ( int  scrollbar,
WPARAM  wParam,
LPARAM  lParam 
)
protected

Definition at line 446 of file GEWorkspace.cpp.

void rvGEWorkspace::HideSelected ( void  )

Definition at line 2022 of file GEWorkspace.cpp.

void rvGEWorkspace::HideWindow ( idWindow window)

Definition at line 2035 of file GEWorkspace.cpp.

ID_INLINE bool rvGEWorkspace::IsModified ( void  )

Definition at line 278 of file GEWorkspace.h.

ID_INLINE bool rvGEWorkspace::IsNew ( void  )

Definition at line 283 of file GEWorkspace.h.

bool rvGEWorkspace::LoadFile ( const char *  filename,
idStr error = NULL 
)

Definition at line 294 of file GEWorkspaceFile.cpp.

void rvGEWorkspace::MakeSelectedAChild ( void  )

Definition at line 1926 of file GEWorkspace.cpp.

void rvGEWorkspace::MakeSelectedSameSize ( bool  width,
bool  height 
)

Definition at line 1652 of file GEWorkspace.cpp.

bool rvGEWorkspace::NewFile ( void  )

Definition at line 244 of file GEWorkspaceFile.cpp.

idWindow * rvGEWorkspace::NewWindow ( idDict state,
rvGEWindowWrapper::EWindowType  type 
)
protected

Definition at line 1478 of file GEWorkspace.cpp.

void rvGEWorkspace::Paste ( void  )

Definition at line 1990 of file GEWorkspace.cpp.

void rvGEWorkspace::Render ( HDC  hDC)

Definition at line 265 of file GEWorkspace.cpp.

void rvGEWorkspace::RenderGrid ( void  )
protected

Definition at line 206 of file GEWorkspace.cpp.

bool rvGEWorkspace::SaveFile ( const char *  filename)

Definition at line 43 of file GEWorkspaceFile.cpp.

void rvGEWorkspace::Scroll ( int  scrollbar,
int  offset 
)
protected

Definition at line 415 of file GEWorkspace.cpp.

void rvGEWorkspace::SendSelectedBackward ( void  )

Definition at line 1639 of file GEWorkspace.cpp.

void rvGEWorkspace::SendSelectedToBack ( void  )

Definition at line 1633 of file GEWorkspace.cpp.

void rvGEWorkspace::SetModified ( bool  mod)

Definition at line 2055 of file GEWorkspace.cpp.

bool rvGEWorkspace::SetupPixelFormat ( void  )
protected

Definition at line 176 of file GEWorkspace.cpp.

bool rvGEWorkspace::ShowAllEnumProc ( rvGEWindowWrapper wrapper,
void data 
)
staticprivate

Definition at line 1432 of file GEWorkspace.cpp.

ID_INLINE void rvGEWorkspace::ShowHidden ( void  )

Definition at line 298 of file GEWorkspace.h.

bool rvGEWorkspace::UndoCheckout ( void  )

Definition at line 391 of file GEWorkspaceFile.cpp.

void rvGEWorkspace::UnhideSelected ( void  )

Definition at line 2029 of file GEWorkspace.cpp.

void rvGEWorkspace::UnhideWindow ( idWindow window)

Definition at line 2041 of file GEWorkspace.cpp.

void rvGEWorkspace::UpdateCursor ( void  )
protected

Definition at line 634 of file GEWorkspace.cpp.

void rvGEWorkspace::UpdateCursor ( float  x,
float  y 
)
protected

Definition at line 612 of file GEWorkspace.cpp.

void rvGEWorkspace::UpdateCursor ( rvGESelectionMgr::EHitTest  type)
protected

Definition at line 578 of file GEWorkspace.cpp.

void rvGEWorkspace::UpdateRectangle ( bool  useScroll = true)
protected

Definition at line 379 of file GEWorkspace.cpp.

void rvGEWorkspace::UpdateScrollbars ( void  )
protected

Definition at line 506 of file GEWorkspace.cpp.

void rvGEWorkspace::UpdateSelections ( void  )
protected
void rvGEWorkspace::UpdateTitle ( void  )
protected

Definition at line 364 of file GEWorkspace.cpp.

idVec2 & rvGEWorkspace::WindowToWorkspace ( idVec2 point)

Definition at line 1213 of file GEWorkspace.cpp.

idRectangle & rvGEWorkspace::WindowToWorkspace ( idRectangle rect)

Definition at line 1221 of file GEWorkspace.cpp.

idVec2 & rvGEWorkspace::WorkspaceToWindow ( idVec2 point)

Definition at line 1238 of file GEWorkspace.cpp.

idRectangle & rvGEWorkspace::WorkspaceToWindow ( idRectangle rect)

Definition at line 1246 of file GEWorkspace.cpp.

void rvGEWorkspace::WriteTabs ( idFile file,
int  depth 
)
protected

Definition at line 99 of file GEWorkspaceFile.cpp.

bool rvGEWorkspace::WriteWindow ( idFile file,
int  depth,
idWindow window 
)
protected

Definition at line 116 of file GEWorkspaceFile.cpp.

rvGEWorkspace::EZoomLevel rvGEWorkspace::ZoomIn ( void  )

Definition at line 1263 of file GEWorkspace.cpp.

rvGEWorkspace::EZoomLevel rvGEWorkspace::ZoomOut ( void  )

Definition at line 1286 of file GEWorkspace.cpp.

Member Data Documentation

rvGEApp* rvGEWorkspace::mApplication
protected

Definition at line 241 of file GEWorkspace.h.

idList< rvGEClipboardItem * > rvGEWorkspace::mClipboard
staticprotected

Definition at line 243 of file GEWorkspace.h.

bool rvGEWorkspace::mDontAdd
private

Definition at line 256 of file GEWorkspace.h.

idVec2 rvGEWorkspace::mDragPoint
protected

Definition at line 235 of file GEWorkspace.h.

bool rvGEWorkspace::mDragScroll
protected

Definition at line 239 of file GEWorkspace.h.

int rvGEWorkspace::mDragTime
protected

Definition at line 236 of file GEWorkspace.h.

rvGESelectionMgr::EHitTest rvGEWorkspace::mDragType
protected

Definition at line 234 of file GEWorkspace.h.

bool rvGEWorkspace::mDragX
protected

Definition at line 237 of file GEWorkspace.h.

bool rvGEWorkspace::mDragY
protected

Definition at line 238 of file GEWorkspace.h.

idStr rvGEWorkspace::mFilename
protected

Definition at line 229 of file GEWorkspace.h.

HCURSOR rvGEWorkspace::mHandCursor
private

Definition at line 260 of file GEWorkspace.h.

idUserInterfaceLocal* rvGEWorkspace::mInterface
protected

Definition at line 217 of file GEWorkspace.h.

bool rvGEWorkspace::mModified
private

Definition at line 254 of file GEWorkspace.h.

rvGEModifierStack rvGEWorkspace::mModifiers
protected

Definition at line 231 of file GEWorkspace.h.

bool rvGEWorkspace::mNew
private

Definition at line 255 of file GEWorkspace.h.

idRectangle rvGEWorkspace::mRect
protected

Definition at line 221 of file GEWorkspace.h.

bool rvGEWorkspace::mScrollHorz
protected

Definition at line 223 of file GEWorkspace.h.

bool rvGEWorkspace::mScrollVert
protected

Definition at line 224 of file GEWorkspace.h.

rvGESelectionMgr rvGEWorkspace::mSelections
protected

Definition at line 232 of file GEWorkspace.h.

idList<idWindow*> rvGEWorkspace::mSelectMenu
protected

Definition at line 244 of file GEWorkspace.h.

idVec2 rvGEWorkspace::mSelectMenuPos
protected

Definition at line 245 of file GEWorkspace.h.

ESourceControlState rvGEWorkspace::mSourceControlState
private

Definition at line 257 of file GEWorkspace.h.

int rvGEWorkspace::mWindowHeight
protected

Definition at line 227 of file GEWorkspace.h.

int rvGEWorkspace::mWindowWidth
protected

Definition at line 226 of file GEWorkspace.h.

HWND rvGEWorkspace::mWnd
protected

Definition at line 218 of file GEWorkspace.h.

int rvGEWorkspace::mZoom
protected

Definition at line 220 of file GEWorkspace.h.


The documentation for this class was generated from the following files: