38 #include <tqsplitter.h>
40 #include <tdepopupmenu.h>
41 #include <tdemacros.h>
43 #include "KGanttItem.h"
44 #include "xQGanttListView.h"
45 #include "xQGanttBarView.h"
90 class TDE_EXPORT
KGantt :
public TQWidget
106 TQWidget* parent = 0,
const char * name=0, WFlags f=0 );
126 delete _toplevelitem;
127 _toplevelitem = item;
137 return _toplevelitem;
162 TQSplitter* splitter() {
172 void zoom(
double factor) {
173 barView()->viewport()->zoom(factor);
183 return _ganttbar->viewport()->menu();
199 return _ganttbar->viewport()->toolbar(mw);
217 _ganttbar->viewport()->getSelectedItems(list);
222 void addHoliday(
int y,
int m,
int d) {
223 _ganttbar->viewport()->addHoliday(y,m,d);
228 void removeHoliday(
int y,
int m,
int d) {
229 _ganttbar->viewport()->addHoliday(y,m,d);
238 _ganttbar->viewport()->setSelect();
242 _ganttbar->viewport()->setZoom();
246 _ganttbar->viewport()->setMove();
251 _ganttbar->viewport()->zoomIn();
255 _ganttbar->viewport()->zoomOut();
259 _ganttbar->viewport()->zoomAll();
263 _ganttbar->viewport()->selectAll();
267 _ganttbar->viewport()->unselectAll();
270 void deleteSelectedItems() {
271 _ganttbar->viewport()->deleteSelectedItems();
274 void insertIntoSelectedItem() {
275 _ganttbar->viewport()->insertIntoSelectedItem();
300 void resizeEvent(TQResizeEvent* ) {
301 _splitter->resize(width(),height());
309 TQSplitter *_splitter;
void getSelectedItems(TQPtrList< KGanttItem > &list)
Get all selected items.
void setToplevelItem(KGanttItem *item)
Set toplevel item.
TDEToolBar * toolbar(TQMainWindow *mw=0)
Add gantt toolbar to main window.
void hideList()
Hide list view.
xQGanttListView * listView()
Get list view of items.
KGanttItem * getToplevelItem()
Get toplevel item.
void showList()
Show list view.
xQGanttBarView * barView()
Get bar view of items.
TDEPopupMenu * menu()
Get popup menu.