00001 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef TQQGCONTROL_H 00019 #define TQQGCONTROL_H 00020 00021 #include <TQObject.h> 00022 #include <TGWindow.h> 00023 #include <TGListTree.h> 00024 #include <TGButton.h> 00025 #include <TGCanvas.h> 00026 00027 #include <TQQObject.h> 00028 #include <TGControlList.h> 00029 00036 class TQQGControl : public TQQObject { 00037 00038 protected: 00039 00040 // Graphical ListTree 00041 00042 TGControlList *fControlList; 00043 TGListTreeItem *fTopItem; 00044 00045 TGCanvas *fCanvas; 00046 00047 00048 public: 00049 00050 TGControlList* GetControlList() { return fControlList; }; 00051 TGListTreeItem* GetFirstItem() { return fTopItem; }; 00052 00053 TGCanvas* GetCanvas() { return fCanvas; }; 00054 void SetCanvas(TGCanvas* c) { fCanvas=c;}; 00055 00056 TQQGControl(const TGWindow *parent = NULL, 00057 UInt_t w=150, 00058 UInt_t h=150, 00059 UInt_t options = 0); // Own Canvas for the Object 00060 00061 virtual void ListTree(TGControlList *list = NULL, 00062 TGListTreeItem *parent = NULL); 00063 00064 00065 virtual ~TQQGControl(); 00066 00067 ClassDef(TQQGControl,1) 00068 00069 }; 00070 00071 #endif
1.3.2