22#include <tdeapplication.h>
24#include <tdestandarddirs.h>
30#include "kotimespanview.h"
32#include "timespanview.h"
34#include "timespanview.moc"
36class TimespanViewFactory : public KOrg::PartFactory {
40 return new TimespanView( parent, name );
44K_EXPORT_COMPONENT_FACTORY( libkorg_timespanview, TimespanViewFactory )
48 KOrg::Part(parent,name), mView(0)
50 setInstance( new TDEInstance( "korganizer" ) );
52 setXMLFile( "plugins/timespanviewui.rc" );
54 new TDEAction( i18n( "&Timespan"), "timespan", 0, this, TQ_SLOT( showView() ),
55 actionCollection(), "view_timespan" );
58TimespanView::~TimespanView()
62TQString TimespanView::info()
64 return i18n( "This plugin provides a Gantt-like Timespan view.");
67TQString TimespanView::shortInfo()
69 return i18n( "Timespan View Plugin" );
72void TimespanView::showView()
75 mView = new KOTimeSpanView( mainWindow()-> view()->calendar(),
76 mainWindow()-> view() );
77 mainWindow()->view()->addView( mView );
79 mainWindow()->view()->showView( mView );
interface for korganizer main window
bool view(TQWidget *parent, Attachment *attachment)
|