• Skip to content
  • Skip to link menu
KDE 4.5 API Reference
  • KDE API Reference
  • kdesdk
  • Sitemap
  • Contact Us
 

kbugbuster

centralwidget.h

Go to the documentation of this file.
00001 /*
00002     centralwidget.h  -  Central widget for the KBB main window
00003 
00004     copyright   : (c) 2001 by Martijn Klingens
00005     email       : klingens@kde.org
00006 
00007     *************************************************************************
00008     *                                                                       *
00009     * This program is free software; you can redistribute it and/or modify  *
00010     * it under the terms of the GNU General Public License as published by  *
00011     * the Free Software Foundation; either version 2 of the License, or     *
00012     * (at your option) any later version.                                   *
00013     *                                                                       *
00014     *************************************************************************
00015 */
00016 
00017 #ifndef KBBMAINWINDOW_CENTRALWIDGET_H
00018 #define KBBMAINWINDOW_CENTRALWIDGET_H
00019 
00020 #include <qwidget.h>
00021 
00022 #include "package.h"
00023 #include "bug.h"
00024 #include "bugdetails.h"
00025 
00026 class QSplitter;
00027 
00028 namespace KBugBusterMainWindow
00029 {
00030 
00031 class CWBugListContainer;
00032 class CWBugDetailsContainer;
00033 class CWBugDetails;
00034 
00038 class CentralWidget : public QWidget
00039 {
00040     Q_OBJECT
00041 
00042 public:
00043     CentralWidget( const QByteArray &initialPackage,
00044                    const QByteArray &initalComponent,
00045                    const QByteArray &initialBug,
00046                    QWidget* parent = 0);
00047     ~CentralWidget();
00048 
00049     void initialize( const QString &initialPackage = QString(),
00050                      const QString &initalComponent = QString(),
00051                      const QString &initialBug = QString() );
00052 
00053     void readConfig();
00054     void writeConfig();
00055 
00056     void searchBugByTitle( int options, const QString& pattern );
00057 
00058     virtual QString currentNumber() const;
00059     virtual QString currentTitle() const;
00060 
00061     void updatePackage();
00062 
00063     CWBugDetails *bugDetailsWidget();
00064 
00065 public slots:
00066     void slotRetrieveBugList( const QString &package, const QString &component );
00067     void slotRetrieveBugList( const QString &package );
00068     void slotRetrieveBugDetails( const Bug & );
00069     void slotSetActiveBug( const Bug & );
00070     void slotRetrieveAllBugDetails();
00071 
00072     void updatePackageList( const Package::List &pkgs );
00073     void updateBugList( const Package &pkg, const QString &component, const Bug::List &bugs );
00074     void updateBugList( const QString &label, const Bug::List &bugs );
00075     void updateBugDetails( const Bug &, const BugDetails & );
00076 
00077     void slotReloadPackageList();
00078     void slotReloadPackage();
00079     void slotReloadBug();
00080     void slotExtractAttachments();
00081 
00085     void slotLoadMyBugs();
00086 
00087     void mergeBugs();
00088     void unmergeBugs();
00089 
00090     void closeBug();
00091     void closeBugSilently();
00092     void reopenBug();
00093     void titleBug();
00094     void severityBug();
00095     void replyBug();
00096     void replyPrivateBug();
00097     void reassignBug();
00098 
00099     void clearCommand();
00100 
00101 signals:
00102     void resetProgressBar();
00103     void searchPackage(); // when clicking on the initial package widget
00104     void searchBugNumber(); // when clicking on the initial bug-details widget
00105 
00106 protected slots:
00107     void showLoadingError( const QString & );
00108 
00109 private:
00110     CWBugListContainer    *m_listPane;
00111     CWBugDetailsContainer *m_bugPane;
00112 
00113     QSplitter *m_vertSplitter;
00114 
00118     Package m_currentPackage;
00119     QString m_currentComponent;
00120     Bug     m_currentBug;
00121 
00122     QMap<QString, Package> m_packageList;
00123 
00128     Bug m_activeBug;
00129 
00130     // For "load all bugs"
00131     bool m_bLoadingAllBugs;
00132 };
00133 
00134 }   // namespace
00135 
00136 #endif // KBBMAINWINDOW_CENTRALWIGET_H
00137 
00138 /* vim: set et ts=4 softtabstop=4 sw=4: */
00139 

kbugbuster

Skip menu "kbugbuster"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kdesdk

Skip menu "kdesdk"
  • kapptemplate
  • kate
  •     kate
  • kbugbuster
  • kcachegrind
  • kompare
  • lokalize
  • umbrello
  •   umbrello
Generated for kdesdk by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal