• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • KDevelop Platform Libraries
  • Sitemap
  • Contact Us
 

outputview

outputjob.h

00001 /* This file is part of KDevelop
00002 Copyright 2007-2008 Hamish Rodda <rodda@kde.org>
00003 
00004 This library is free software; you can redistribute it and/or
00005 modify it under the terms of the GNU Library General Public
00006 License as published by the Free Software Foundation; either
00007 version 2 of the License, or (at your option) any later version.
00008 
00009 This library is distributed in the hope that it will be useful,
00010 but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012 Library General Public License for more details.
00013 
00014 You should have received a copy of the GNU Library General Public License
00015 along with this library; see the file COPYING.LIB.  If not, write to
00016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017 Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef OUTPUTJOB_H
00021 #define OUTPUTJOB_H
00022 
00023 #include <QPointer>
00024 
00025 #include <interfaces/irun.h>
00026 #include <interfaces/irunprovider.h>
00027 #include <interfaces/iruncontroller.h>
00028 
00029 #include <outputview/ioutputview.h>
00030 #include <outputview/outputviewexport.h>
00031 
00032 class QStandardItemModel;
00033 class QItemDelegate;
00034 
00035 namespace KDevelop
00036 {
00037 
00038 class KDEVPLATFORMOUTPUTVIEW_EXPORT OutputJob : public KJob
00039 {
00040     Q_OBJECT
00041 
00042 public:
00043     OutputJob(QObject* parent = 0);
00044 
00045     void startOutput();
00046 
00047     void setRaiseOnCreation(bool raise);
00048 
00049 protected:
00050     void setStandardToolView(IOutputView::StandardToolView standard);
00051     void setToolTitle(const QString& title);
00052     void setToolIcon(const KIcon& icon);
00054     void setTitle(const QString& title);
00055     void setViewType(IOutputView::ViewType type);
00056     void setBehaviours(IOutputView::Behaviours behaviours);
00057     void setKillJobOnOutputClose(bool killJobOnOutputClose);
00058 
00059     QAbstractItemModel* model() const;
00060     void setModel(QAbstractItemModel* model, IOutputView::Ownership takeOwnership = IOutputView::KeepOwnership);
00061     void setDelegate(QAbstractItemDelegate* delegate, IOutputView::Ownership takeOwnership = IOutputView::KeepOwnership);
00062 
00063     int outputId() const;
00064 
00065 private Q_SLOTS:
00066     void outputViewRemoved(int , int id);
00067 
00068 private:
00069     int m_standardToolView;
00070     QString m_title, m_toolTitle;
00071     KIcon m_toolIcon;
00072     IOutputView::ViewType m_type;
00073     IOutputView::Behaviours m_behaviours;
00074     bool m_killJobOnOutputClose;
00075     bool m_raiseOnCreation;
00076     int m_outputId;
00077     QAbstractItemModel* m_outputModel;
00078     IOutputView::Ownership m_modelOwnership;
00079     QAbstractItemDelegate* m_outputDelegate;
00080     IOutputView::Ownership m_delegateOwnership;
00081 };
00082 
00083 }
00084 
00085 #endif

outputview

Skip menu "outputview"
  • Main Page
  • Namespace List
  • File List
  • Related Pages

KDevelop Platform Libraries

Skip menu "KDevelop Platform Libraries"
  • interfaces
  • language
  •   codegen
  •   duchain
  •   editor
  • outputview
  •     interfaces
  • project
  • shell
  • sublime
  • util
  • vcs
Generated for KDevelop Platform Libraries by doxygen 1.5.4
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