ROOT logo
// @(#)root/memstat:$Name$:$Id: TMemStatDrawDlg.h 30815 2009-10-20 13:49:22Z rdm $
// Author: Anar Manafov (A.Manafov@gsi.de) 31/05/2008

/*************************************************************************
 * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TMemStatDrawDlg
#define ROOT_TMemStatDrawDlg

// STD
#include <vector>
#include <string>
// ROOT
#ifndef ROOT_RQ_OBJECT
#include "RQ_OBJECT.h"
#endif
#ifndef ROOT_TGFrame
#include "TGFrame.h"
#endif

class TMemStat;
class TGComboBox;
class TGNumberEntry;
class TRootEmbeddedCanvas;

typedef std::vector<std::string> StringVector_t;

class TMemStatDrawDlg
{
   RQ_OBJECT("TMemStatDrawDlg")

public:
   TMemStatDrawDlg(TGCompositeFrame *parent, TMemStat *MemStat);
   virtual ~TMemStatDrawDlg();

   // slots
   void HandleDrawMemStat();

private:
   void PlaceCtrls(TGCompositeFrame *frame);
   void PlaceLBoxCtrl(TGCompositeFrame *frame, TGComboBox **box ,
                      const std::string &Label, const StringVector_t &Vealues, Int_t resource);
   void PlaceDeepCtrl(TGCompositeFrame *frame);
   void PlaceEmbeddedCanvas(TGCompositeFrame *frame);
   void ReDraw();

private:
   TMemStat *fMemStat;
   TGComboBox *fboxOrder;
   TGComboBox *fboxSortStat;
   TGComboBox *fboxSortStamp;
   TGNumberEntry *fNmbStackDeep;
   TGNumberEntry *fNmbSortDeep;
   TGNumberEntry *fNmbMaxLength;
   TRootEmbeddedCanvas *fEc;
};

#endif
 TMemStatDrawDlg.h:1
 TMemStatDrawDlg.h:2
 TMemStatDrawDlg.h:3
 TMemStatDrawDlg.h:4
 TMemStatDrawDlg.h:5
 TMemStatDrawDlg.h:6
 TMemStatDrawDlg.h:7
 TMemStatDrawDlg.h:8
 TMemStatDrawDlg.h:9
 TMemStatDrawDlg.h:10
 TMemStatDrawDlg.h:11
 TMemStatDrawDlg.h:12
 TMemStatDrawDlg.h:13
 TMemStatDrawDlg.h:14
 TMemStatDrawDlg.h:15
 TMemStatDrawDlg.h:16
 TMemStatDrawDlg.h:17
 TMemStatDrawDlg.h:18
 TMemStatDrawDlg.h:19
 TMemStatDrawDlg.h:20
 TMemStatDrawDlg.h:21
 TMemStatDrawDlg.h:22
 TMemStatDrawDlg.h:23
 TMemStatDrawDlg.h:24
 TMemStatDrawDlg.h:25
 TMemStatDrawDlg.h:26
 TMemStatDrawDlg.h:27
 TMemStatDrawDlg.h:28
 TMemStatDrawDlg.h:29
 TMemStatDrawDlg.h:30
 TMemStatDrawDlg.h:31
 TMemStatDrawDlg.h:32
 TMemStatDrawDlg.h:33
 TMemStatDrawDlg.h:34
 TMemStatDrawDlg.h:35
 TMemStatDrawDlg.h:36
 TMemStatDrawDlg.h:37
 TMemStatDrawDlg.h:38
 TMemStatDrawDlg.h:39
 TMemStatDrawDlg.h:40
 TMemStatDrawDlg.h:41
 TMemStatDrawDlg.h:42
 TMemStatDrawDlg.h:43
 TMemStatDrawDlg.h:44
 TMemStatDrawDlg.h:45
 TMemStatDrawDlg.h:46
 TMemStatDrawDlg.h:47
 TMemStatDrawDlg.h:48
 TMemStatDrawDlg.h:49
 TMemStatDrawDlg.h:50
 TMemStatDrawDlg.h:51
 TMemStatDrawDlg.h:52
 TMemStatDrawDlg.h:53
 TMemStatDrawDlg.h:54
 TMemStatDrawDlg.h:55
 TMemStatDrawDlg.h:56
 TMemStatDrawDlg.h:57
 TMemStatDrawDlg.h:58
 TMemStatDrawDlg.h:59
 TMemStatDrawDlg.h:60
 TMemStatDrawDlg.h:61
 TMemStatDrawDlg.h:62
 TMemStatDrawDlg.h:63