summaryrefslogtreecommitdiff
path: root/tracker/AdminServer/MapCycleEditDialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'tracker/AdminServer/MapCycleEditDialog.h')
-rw-r--r--tracker/AdminServer/MapCycleEditDialog.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/tracker/AdminServer/MapCycleEditDialog.h b/tracker/AdminServer/MapCycleEditDialog.h
new file mode 100644
index 0000000..8d97799
--- /dev/null
+++ b/tracker/AdminServer/MapCycleEditDialog.h
@@ -0,0 +1,45 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================
+
+#ifndef MAPCYCLEEDITDIALOG_H
+#define MAPCYCLEEDITDIALOG_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include <vgui_controls/Frame.h>
+#include "utlvector.h"
+#include "utlsymbol.h"
+
+//-----------------------------------------------------------------------------
+// Purpose: Dialog for editing the game server map cycle list
+//-----------------------------------------------------------------------------
+class CMapCycleEditDialog : public vgui::Frame
+{
+ DECLARE_CLASS_SIMPLE( CMapCycleEditDialog, vgui::Frame );
+public:
+ CMapCycleEditDialog(vgui::Panel *parent, const char *name);
+ ~CMapCycleEditDialog();
+ virtual void Activate(vgui::Panel *updateTarget, CUtlVector<CUtlSymbol> &availableMaps, CUtlVector<CUtlSymbol> &mapCycle);
+
+protected:
+ virtual void OnCommand(const char *command);
+ virtual void PerformLayout();
+
+private:
+ MESSAGE_FUNC_PTR( OnItemSelected, "ItemSelected", panel );
+
+ vgui::ListPanel *m_pAvailableMapList;
+ vgui::ListPanel *m_pMapCycleList;
+ vgui::Button *m_RightArrow;
+ vgui::Button *m_LeftArrow;
+ vgui::Button *m_UpArrow;
+ vgui::Button *m_DownArrow;
+};
+
+
+#endif // MAPCYCLEEDITDIALOG_H