KDevelop API Documentation

buglist.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           buglist.h  -  description
00003                              -------------------
00004     begin                : Sat Nov 11 22:19:31 GMT 2000
00005     copyright            : (C) 2000 by Ivan Hawkes
00006     email                : blackhawk@ivanhawkes.com
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef BUGLIST_H
00019 #define BUGLIST_H
00020 
00021 #ifdef HAVE_CONFIG_H
00022 #include <config.h>
00023 #endif
00024 
00025 #include "bug.h"
00026 #include "bugcounter.h"
00027 #include <kapplication.h>
00028 #include <kdebug.h>
00029 #include <qwidget.h>
00030 #include <qlistview.h>
00031 #include <qpushbutton.h>
00032 #include <qhbox.h>
00033 #include <qvbox.h>
00034 #include <qdict.h>
00035 
00036 
00037 class BugList : public QWidget
00038 {
00039 Q_OBJECT
00040 
00041 public:
00042     // construtor/destructor
00043     BugList(QWidget* parent, const char *name, QString FileName,
00044             QString Initials, QString UserName, QString UserEMail);
00045     ~BugList();
00046 
00047     // Resize method.
00048     void resizeEvent ( QResizeEvent * );
00049 
00050     // Parse the XML file to fill our listbox.
00051     void ParseFile ();
00052     void WriteXMLFile ();
00053 
00054     // Takes care of adding a bug to the list.
00055     void InsertBug (Bug *);
00056 
00057 signals:
00058     void signalDeactivate ();
00059 
00060 public slots:
00061     void slotCloseClicked();
00062     void slotCancelClicked();
00063 
00064 private slots:
00065     void slotAddClicked ();
00066     void slotEditClicked ();
00067     void slotListDoubleClicked (QListViewItem *);
00068     void slotRemoveClicked ();
00069     void slotCompletedClicked ();
00070 
00071     void slotAddBug (Bug *);
00072     void slotUpdateBug (Bug *);
00073     void slotFilter ();
00074     void slotOwnership ();
00075 
00076 protected:
00077     QListView *         pMainBugList;
00078     QDict <Bug>         BugDictionary;
00079     QDict <BugCounter>  Developers;
00080 
00081 private:
00082     QHBox *             pExitBox;
00083     QHBox *             pMaintenanceBox;
00084     QHBox *             pBugListBox;
00085     int                 MyCounter;
00086     bool                Dirty;                  // True if the file has been chnaged in memory.
00087 
00088 public:
00089     // Configuration information from the user and global files.
00090     QString             m_FileName;
00091     QString             m_Initials;
00092     QString             m_UserName;
00093     QString             m_UserEMail;
00094 };
00095 
00096 #endif
00097 
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:22:38 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003