Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

noteoverview.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002  *                                                                         *
00003  *   noteoverview.cpp                                                              *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   Read the file COPYING for details.                                    *
00011  *                                                                         *
00012  *   copyright: (C) 2003 by Jan Mueller                                    *
00013  *   email: janmueller7@hotmail.com                                        *
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 

Generated on Sat Mar 27 19:20:41 2004 for Literature by doxygen 1.3.6-20040222