KDevelop API Documentation

bugedit.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           bugedit.h  -  description
00003                              -------------------
00004     begin                : Mon Nov 13 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 BUGEDIT_H
00019 #define BUGEDIT_H
00020 
00021 #include "buglist.h"
00022 #include <qtabdialog.h>
00023 #include <qdialog.h>
00024 #include <qhbox.h>
00025 #include <qlineedit.h>
00026 #include <qmultilineedit.h>
00027 #include <qcombobox.h>
00028 #include <qcheckbox.h>
00029 #include <qframe.h>
00030 #include <qlayout.h>
00031 #include <qgrid.h>
00032 
00033 
00039 class BugEdit : public QTabDialog
00040 {
00041 Q_OBJECT
00042 
00043 public:
00044     // Constructor and destructor.
00045     BugEdit (QWidget * parent=0,
00046              const char * name=0,
00047              Bug * pBug = 0,
00048              bool AddItem = TRUE,
00049              bool modal=FALSE,
00050              WFlags f=0);
00051       ~BugEdit ();
00052     
00053     // Resize method.
00054     void resizeEvent (QResizeEvent *);
00055 
00056 signals:
00057     void sigAddBug (Bug *);
00058     void sigUpdateBug (Bug *);
00059 
00060 private:
00061     void updateRecord();
00062     const QString DateToQString (QDate InputDate);
00063     const QDate QStringToDate (QString InputString);
00064 
00065 private slots:
00066     void closeClicked();
00067     void cancelClicked();
00068 
00069 private:
00070     // Need to keep a pointer to the edit controls so we know what values they entered.
00071     QLineEdit *         editBugID;
00072     QLineEdit *         editDescription;
00073     QComboBox *         cboSeverity;
00074     QComboBox *         cboPriority;
00075     QLineEdit *         editBugClass;
00076     QLineEdit *         editLocation;
00077     QLineEdit *         editAssignedTo;
00078     QLineEdit *         editAssignedDate;
00079     QLineEdit *         editAssignedEMail;
00080     QLineEdit *         editReportUserName;
00081     QLineEdit *         editReportEMail;
00082     QLineEdit *         editReportDate;
00083     QLineEdit *         editPackage;
00084     QLineEdit *         editVersionNo;
00085     QMultiLineEdit *    editNotes;
00086     QMultiLineEdit *    editRepeat;
00087     QMultiLineEdit *    editWorkaround;
00088     QMultiLineEdit *    editSysInfo;
00089     QLineEdit *         editFixScheduled;
00090 
00091 private:
00092     QFrame *        pMainFrame;
00093     bool            Dirty;
00094     Bug *           m_pBug;
00095     bool            m_AddItem;
00096 
00097     // Tab sheets.
00098     QHBox *         pSheetGeneral;
00099     QHBox *         pSheetNotes;
00100     QHBox *         pSheetRepeat;
00101     QHBox *         pSheetWorkaround;
00102     QHBox *         pSheetSysInfo;
00103 
00104     // Layouts.
00105     QGrid *         GeneralLayout;
00106 };
00107 
00108 #endif
00109 
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