GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
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"
18 #include "QGo4BrowserTreeWidget.h"
19 #include "ui_TGo4Browser.h"
20 
21 class TGo4BrowserProxy;
22 
23 class 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 
48  void DisplaySelectedItems();
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 
74  void updateListViewItems();
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 
90  bool fbUpdateTimerActive{false};
91  bool fVisibleColumns[NColumns] = { false, false, false, false, false, false, false };
92 
93 };
94 
95 #endif
96 
void SuperImposeSelectedItems()
void ExecuteItem(const QString &itemname)
void ContextMenuActivated(int id)
void ListView_doubleClicked(QTreeWidgetItem *item, int ncol)
void SaveSelectedItems()
void ColumnToggled(int indx)
void checkVisisbilityFlags(bool showall)
void ShootUpdateTimer()
void DisplaySelectedItems()
TGo4Browser(QWidget *parent=nullptr, const char *name=nullptr)
Definition: TGo4Browser.cpp:64
void updateListViewItems()
void SetViewItemProperties(TGo4Slot *itemslot, QTreeWidgetItem *item)
bool canDrawItem(QTreeWidgetItem *item)
void ItemDropAcceptSlot(void *item, void *mime, bool *res)
void HeaderSectionResizedSlot(int, int, int)
QString FullItemName(QTreeWidgetItem *item)
void ResetWidget() override
void StartWorking()
void ItemDropProcessSlot(void *item, void *e)
void ExpandItem(const QString &itemname)
bool fVisibleColumns[NColumns]
Definition: TGo4Browser.h:91
void Header_customContextMenuRequested(const QPoint &)
void ListView_customContextMenuRequested(const QPoint &)
void ExportSelectedItems(const char *filtername)
void RequestDragObjectSlot(QDrag **)
QTreeWidgetItem * FindItemFor(TGo4Slot *slot)
TGo4BrowserProxy * BrowserProxy()
void linkedObjectUpdated(const char *linkname, TObject *obj) override
bool fbUpdateTimerActive
Definition: TGo4Browser.h:90