summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/konqnavpanel/konqnavpanel.cpp
blob: 4f0d7557a1812fda8c53ffdaafb44b76260c92aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

#include <tqlabel.h>
#include <kinstance.h>
#include <tqstring.h>
#include <tqwidget.h>

#include "%{APPNAMELC}.h"
#include "%{APPNAMELC}.moc"

%{APPNAME}::%{APPNAME}(KInstance *inst,TQObject *tqparent,TQWidget *widgetParent, TQString &desktopName, const char* name):
                   KonqSidebarPlugin(inst,tqparent,widgetParent,desktopName,name)
{
	widget=new TQLabel("Init Value",widgetParent);
}


%{APPNAME}::~%{APPNAME}()
{
}

void %{APPNAME}::handleURL(const KURL &url)
{
	widget->setText(TQString("%{APPNAME}")+"::"+url.url());
}



extern "C"
{
    void* create_konqsidebar_%{APPNAME}(KInstance *instance,TQObject *par,TQWidget *widp,TQString &desktopname,const char *name)
    {
        return new %{APPNAME}(instance,par,widp,desktopname,name);
    }
};