4 #include "KVTestListView.h"
18 MainFrame =
new TGMainFrame(gClient->GetRoot(), 10, 10, kMainFrame | kVerticalFrame);
19 MainFrame->SetName(
"Test GUI");
20 fLV =
new KVListView(obclass, MainFrame, 900, 400);
21 fLV->SetDataColumns(ncols);
22 for (
int i = 0; i < ncols; i++) fLV->SetDataColumn(i, columns[i]);
23 fLV->ActivateSortButtons();
25 MainFrame->AddFrame(fLV,
new TGLayoutHints(kLHintsTop | kLHintsExpandX | kLHintsExpandY, 5, 5, 10, 10));
26 MainFrame->SetMWMHints(kMWMDecorAll,
29 MainFrame->MapSubwindows();
31 MainFrame->Resize(MainFrame->GetDefaultSize());
32 MainFrame->MapWindow();
34 MainFrame->Connect(
"CloseWindow()",
"KVTestListView",
this,
"DoClose()");
35 MainFrame->DontCallClose();
55 TTimer::SingleShot(150,
"KVTestListView",
this,
"CloseWindow()");
Enhanced version of ROOT TGListView widget.
virtual ~KVTestListView()
Destructor.