|
Odamex
Setting the Standard in Multiplayer Doom
|
00001 // Emacs style mode select -*- C++ -*- 00002 //----------------------------------------------------------------------------- 00003 // 00004 // $Id: lst_srvdetails.h 1788 2010-08-24 04:42:57Z russellrice $ 00005 // 00006 // Copyright (C) 2006-2010 by The Odamex Team. 00007 // 00008 // This program is free software; you can redistribute it and/or 00009 // modify it under the terms of the GNU General Public License 00010 // as published by the Free Software Foundation; either version 2 00011 // of the License, or (at your option) any later version. 00012 // 00013 // This program is distributed in the hope that it will be useful, 00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 // GNU General Public License for more details. 00017 // 00018 // DESCRIPTION: 00019 // List control for handling extra server details 00020 // 00021 //----------------------------------------------------------------------------- 00022 00023 #ifndef __LST_SRVDETAILS_H__ 00024 #define __LST_SRVDETAILS_H__ 00025 00026 #include "net_packet.h" 00027 00028 #include <wx/listctrl.h> 00029 00030 class LstOdaSrvDetails : public wxListCtrl 00031 { 00032 public: 00033 LstOdaSrvDetails() { }; 00034 virtual ~LstOdaSrvDetails() { }; 00035 00036 void LoadDetailsFromServer(Server &); 00037 00038 //wxEvent *Clone(void); 00039 protected: 00040 void ResizeNameValueColumns(); 00041 00042 void InsertLine(const wxString &Name, const wxString &Value); 00043 void InsertHeader(const wxString &Name, 00044 const wxColor *NameColor, 00045 const wxColor *NameBGColor); 00046 00047 wxColour BGItemAlternator; 00048 00049 DECLARE_DYNAMIC_CLASS(LstOdaSrvDetails) 00050 }; 00051 00052 #endif // __LST_SRVDETAILS_H__