Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.4 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef VP4DIALOG_H
  7. #define VP4DIALOG_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "vgui_controls/Frame.h"
  12. #include "vgui_controls/ImageList.h"
  13. //-----------------------------------------------------------------------------
  14. // Purpose: Main app window
  15. //-----------------------------------------------------------------------------
  16. class CVP4Dialog : public vgui::Frame
  17. {
  18. DECLARE_CLASS_SIMPLE( CVP4Dialog, vgui::Frame );
  19. public:
  20. CVP4Dialog();
  21. ~CVP4Dialog();
  22. // overridden frame functions
  23. virtual void Activate();
  24. virtual void OnClose();
  25. private:
  26. void RefreshFileList();
  27. void RefreshClientList();
  28. void RefreshChangesList();
  29. MESSAGE_FUNC( OnFileSelected, "TreeViewItemSelected" );
  30. MESSAGE_FUNC( OnTextChanged, "TextChanged" );
  31. // changes
  32. MESSAGE_FUNC_INT( CloakFolder, "CloakFolder", item );
  33. MESSAGE_FUNC_INT( OpenFileForEdit, "EditFile", item );
  34. MESSAGE_FUNC_INT( OpenFileForDelete, "DeleteFile", item );
  35. vgui::ComboBox *m_pClientCombo;
  36. vgui::TreeView *m_pFileTree;
  37. vgui::ImageList m_Images;
  38. vgui::PropertySheet *m_pViewsSheet;
  39. vgui::PropertyPage *m_pRevisionsPage;
  40. vgui::PropertyPage *m_pChangesPage;
  41. vgui::ListPanel *m_pRevisionList;
  42. vgui::SectionedListPanel *m_pChangesList;
  43. };
  44. #endif // VP4DIALOG_H