diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /utils/mdmpRipper/CMDRipperMain.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'utils/mdmpRipper/CMDRipperMain.h')
| -rw-r--r-- | utils/mdmpRipper/CMDRipperMain.h | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/utils/mdmpRipper/CMDRipperMain.h b/utils/mdmpRipper/CMDRipperMain.h new file mode 100644 index 0000000..0ab62e0 --- /dev/null +++ b/utils/mdmpRipper/CMDRipperMain.h @@ -0,0 +1,83 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#ifndef MDRIPPERMAIN_H +#define MDRIPPERMAIN_H +#ifdef _WIN32 +#pragma once +#endif + +#include <vgui_controls/Frame.h> +#include <vgui_controls/ImageList.h> +#include <vgui_controls/SectionedListPanel.h> +#include <vgui_controls/PHandle.h> +#include <vgui_controls/MenuBar.h> +#include <FileSystem.h> +#include "vgui/mousecode.h" +#include "vgui/IScheme.h" +#include "CMDErrorPanel.h" +#include "CMDModulePanel.h" +#include "CMDDetailPanel.h" +#include "isqlwrapper.h" + +using namespace vgui; + + +void VGUIMessageBox( vgui::Panel *pParent, const char *pTitle, PRINTF_FORMAT_STRING const char *pMsg, ... ); + +//----------------------------------------------------------------------------- +// Purpose: Main dialog for media browser +//----------------------------------------------------------------------------- +class CMDRipperMain : public Frame +{ + DECLARE_CLASS_SIMPLE( CMDRipperMain, Frame ); + +public: + + CMDRipperMain(Panel *parent, const char *name); + virtual ~CMDRipperMain(); + ISQLWrapper *GetSqlWrapper() { return sqlWrapper; } + +protected: + + virtual void OnClose(); + virtual void OnCommand( const char *command ); + virtual bool RequestInfo( KeyValues *outputData ); + +private: + + void SetGlobalConfig( const char *modDir ); + + vgui::ComboBox *m_pConfigCombo; + bool m_bChanged; + vgui::MenuBar *m_pMenuBar; + vgui::Panel *m_pClientArea; + CMDErrorPanel *m_pErrorPanel; + CMDModulePanel *m_pModulePanel; + CMDDetailPanel *m_pDetailPanel; + + MESSAGE_FUNC( OnOpen, "Open" ); + MESSAGE_FUNC( OnError, "Error" ); + MESSAGE_FUNC( OnRefresh, "refresh" ); + MESSAGE_FUNC_PARAMS( OnDetail, "detail", data ); + MESSAGE_FUNC_CHARPTR( OnFileSelected, "FileSelected", fullpath ); + MESSAGE_FUNC_PARAMS( OnLookUp, "ModuleLookUp", url ); + MESSAGE_FUNC_PARAMS( OnDragDrop, "DragDrop", pData ); + + CSysModule *hSQLWrapper; + ISQLWrapperFactory *sqlWrapperFactory; + ISQLWrapper *sqlWrapper; + + +// MESSAGE_FUNC( OnManageSelect, "ManageSelect" ); +// MESSAGE_FUNC( OnAddSelect, "AddSelect" ); +}; + + +extern CMDRipperMain *g_pCMDRipperMain; + + +#endif // MDRIPPERMAIN_H |