00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #include "noteoverview.h"
00018 #include <qlabel.h>
00019 #include <qsqlquery.h>
00020 #include <qlayout.h>
00021 #include <qaction.h>
00022 #include "global.h"
00023
00024 NoteOverview::NoteOverview(LitUrl u, QObject *receiver, QString slot, QWidget *parent, const char *name): ReadOnlyFormBase(u, receiver, slot, parent, name) {
00025 noteoverviewform=new NoteOverviewForm(this, "NoteOverviewForm");
00026 Q_ASSERT(noteoverviewform);
00027 QHBoxLayout *l=new QHBoxLayout(this);
00028 l->addWidget(noteoverviewform);
00029 setValid(true);
00030 noteoverviewform->setData(false);
00031
00032 showPublsAction=new QAction("Show Publications", QIconSet(loadPixmap("showpubl.png")), "Show Publications", 0, this, "showpubls", true);
00033 connect(showPublsAction, SIGNAL(activated()), this, SLOT(showPubls()));
00034 showPublsAction->addTo(rotoolbar);
00035 }
00036
00037 void NoteOverview::showPubls() {
00038 setData();
00039 }
00040
00041 bool NoteOverview::setData() {
00042 Q_ASSERT(noteoverviewform);
00043 noteoverviewform->setData(showPublsAction->isOn());
00044 return true;
00045 }
00046
00047 NoteOverview::~NoteOverview() {
00048 }
00049
00050
00051