22 #include <tdeapplication.h>
23 #include <tdeconfig.h>
24 #include <kstandarddirs.h>
25 #include <tdelocale.h>
27 #include <tdeaction.h>
28 #include <tdeglobal.h>
30 #include "koprojectview.h"
32 #include "projectview.h"
34 #include "projectview.moc"
36 class ProjectViewFactory : public KOrg::PartFactory {
40 TDEGlobal::locale()->insertCatalogue( "kgantt" );
41 return new ProjectView(parent,name);
45 K_EXPORT_COMPONENT_FACTORY( libkorg_projectview, ProjectViewFactory )
49 KOrg::Part(parent,name), mView(0)
51 setInstance( new TDEInstance( "korganizer" ) );
53 setXMLFile( "plugins/projectviewui.rc");
55 new TDEAction(i18n( "&Project"), "project", 0, this, TQ_SLOT(showView()),
56 actionCollection(), "view_project");
59 ProjectView::~ProjectView()
63 TQString ProjectView::info()
65 return i18n( "This plugin provides a Gantt diagram as project view.");
68 TQString ProjectView::shortInfo()
70 return i18n( "Project View Plugin");
73 void ProjectView::showView()
77 mainWindow()-> view());
78 mainWindow()->view()->addView(mView);
80 mainWindow()->view()->showView(mView);
This class provides a Gantt-like project view on todo items.
interface for korganizer main window
bool view(TQWidget *parent, Attachment *attachment)
|