summaryrefslogtreecommitdiff
path: root/public/toolutils/savewindowpositions.h
blob: 9ac9680e60646dd53b677d14078e51c42e0bdb4c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
//=============================================================================

#ifndef SAVEWINDOWPOSITIONS_H
#define SAVEWINDOWPOSITIONS_H
#ifdef _WIN32
#pragma once
#endif

namespace vgui
{
	class Panel;
	class ToolWindow;
	class IToolWindowFactory;
};

class CMovieView;


//-----------------------------------------------------------------------------
// Purpose: This will save the bounds and the visibility state of UI elements registered during startup
//-----------------------------------------------------------------------------
class IWindowPositionMgr
{
public:
	virtual void	SavePositions( char const *filename, char const *key ) = 0;
	virtual bool	LoadPositions( char const *filename, vgui::Panel *parent, vgui::IToolWindowFactory *factory, char const *key, bool force = false ) = 0;
	virtual void	RegisterPanel( char const *saveName, vgui::Panel *panel, bool contextMenu ) = 0;
	virtual void	UnregisterPanel( vgui::Panel *panel ) = 0;
};

extern IWindowPositionMgr *windowposmgr;

#endif // SAVEWINDOWPOSITIONS_H