GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4Browser.h
Go to the documentation of this file.
1// $Id$
2//-----------------------------------------------------------------------
3// The GSI Online Offline Object Oriented (Go4) Project
4// Experiment Data Processing at EE department, GSI
5//-----------------------------------------------------------------------
6// Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7// Planckstr. 1, 64291 Darmstadt, Germany
8// Contact: http://go4.gsi.de
9//-----------------------------------------------------------------------
10// This software can be used under the license agreements as stated
11// in Go4License.txt file which is part of the distribution.
12//-----------------------------------------------------------------------
13
14#ifndef TGO4BROWSER_H
15#define TGO4BROWSER_H
16
17#include "QGo4Widget.h"
19#include "ui_TGo4Browser.h"
20
22
23class TGo4Browser : public QGo4Widget, public Ui::TGo4Browser
24{
25 Q_OBJECT
26
27 public:
28 enum { NColumns = 7 };
29
30 TGo4Browser(QWidget *parent = nullptr, const char *name = nullptr);
31
32 void StartWorking();
33
34 void linkedObjectUpdated(const char *linkname, TObject *obj) override;
35
36 void ResetWidget() override;
37
39
40 QString FullItemName(QTreeWidgetItem* item);
41
42 QTreeWidgetItem* FindItemFor(TGo4Slot *slot);
43
44 void SetViewItemProperties(TGo4Slot *itemslot, QTreeWidgetItem* item);
45
46 void checkVisisbilityFlags(bool showall);
47
49
51
52 bool canDrawItem(QTreeWidgetItem* item);
53
54 void ExpandItem(const QString& itemname);
55
56 void ExecuteItem(const QString& itemname);
57
58 void ShootUpdateTimer();
59
60 void SaveSelectedItems();
61
62 void ExportSelectedItems(const char *filtername);
63
64 void ExportSelectedItems(const char *filename, const char *filedir, const char *format, const char *description);
65
66 public slots:
67
68 void RequestDragObjectSlot(QDrag**);
69
70 void ItemDropAcceptSlot(void *item, void *mime, bool* res);
71
72 void ItemDropProcessSlot(void *item, void *e);
73
75
76 void ListView_doubleClicked(QTreeWidgetItem* item, int ncol);
77
78 void ListView_customContextMenuRequested(const QPoint &);
79
80 void Header_customContextMenuRequested(const QPoint &);
81
82 void ColumnToggled(int indx);
83
84 void HeaderSectionResizedSlot(int, int, int);
85
86 void ContextMenuActivated(int id);
87
88 protected:
89
91 bool fVisibleColumns[NColumns] = { false, false, false, false, false, false, false };
92
93};
94
95#endif
96
QGo4Widget(QWidget *parent=nullptr, const char *name=nullptr, Qt::WindowFlags f=Qt::Widget)
void RequestDragObjectSlot(QDrag **)
void SuperImposeSelectedItems()
TGo4Browser(QWidget *parent=nullptr, const char *name=nullptr)
void checkVisisbilityFlags(bool showall)
void ColumnToggled(int indx)
void ContextMenuActivated(int id)
void ShootUpdateTimer()
void updateListViewItems()
bool canDrawItem(QTreeWidgetItem *item)
void DisplaySelectedItems()
void ItemDropAcceptSlot(void *item, void *mime, bool *res)
void Header_customContextMenuRequested(const QPoint &)
void ExecuteItem(const QString &itemname)
QTreeWidgetItem * FindItemFor(TGo4Slot *slot)
void SaveSelectedItems()
void linkedObjectUpdated(const char *linkname, TObject *obj) override
void HeaderSectionResizedSlot(int, int, int)
void ExpandItem(const QString &itemname)
void SetViewItemProperties(TGo4Slot *itemslot, QTreeWidgetItem *item)
void ExportSelectedItems(const char *filtername)
void StartWorking()
QString FullItemName(QTreeWidgetItem *item)
void ListView_doubleClicked(QTreeWidgetItem *item, int ncol)
void ResetWidget() override
void ItemDropProcessSlot(void *item, void *e)
TGo4BrowserProxy * BrowserProxy()
bool fbUpdateTimerActive
Definition TGo4Browser.h:90
void ListView_customContextMenuRequested(const QPoint &)
bool fVisibleColumns[NColumns]
Definition TGo4Browser.h:91