KDevelop API Documentation

MakeViewPart Class Reference

Two output views: one displays compiler output, the other displays the application output. More...

#include <makeviewpart.h>

Inheritance diagram for MakeViewPart:

KDevMakeFrontend KDevPlugin QObject KXMLGUIClient List of all members.

Public Member Functions

 MakeViewPart (QObject *parent, const char *name, const QStringList &)
 ~MakeViewPart ()
virtual QWidgetwidget ()
 Returns the widget of the plugin.

virtual void updateSettingsFromConfig ()
 Advices to synchronize the settings from KConfig because they've changed externally.


Protected Member Functions

virtual void queueCommand (const QString &dir, const QString &command)
 The component shall start to execute a make-like command.

virtual bool isRunning ()
 Returns whether the application is currently running.


Private Slots

void slotStopButtonClicked (KDevPlugin *)

Private Attributes

QGuardedPtr< MakeWidgetm_widget
KDevMakeFrontendIfacem_dcop

Detailed Description

Two output views: one displays compiler output, the other displays the application output.

Author(s):
Bernd Gehrmann

Feature(s):
Auto scroll down

Auto hide when it's not needed

Jump to error when clicked

Bug:
bugs in outputviews component at Bugzilla database

Todo:
Make the contents of the application output copyable.

F.A.Q.:
How does the auto-hide feature work? If there are no compilation errors the output view hides itself (if it was hidden before compilation start) or switches to the previously selected view.

Definition at line 23 of file makeviewpart.h.


Constructor & Destructor Documentation

MakeViewPart::MakeViewPart QObject parent,
const char *  name,
const QStringList
 

Definition at line 29 of file makeviewpart.cpp.

References KXMLGUIClient::actionCollection(), KDevPlugin::core(), KDevMainWindow::embedOutputView(), m_dcop, m_widget, KDevPlugin::mainWindow(), MakeViewPart(), and slotStopButtonClicked().

Referenced by MakeViewPart().

MakeViewPart::~MakeViewPart  ) 
 

Definition at line 65 of file makeviewpart.cpp.

References m_dcop, m_widget, KDevPlugin::mainWindow(), and KDevMainWindow::removeView().


Member Function Documentation

bool MakeViewPart::isRunning  )  [protected, virtual]
 

Returns whether the application is currently running.

Implements KDevMakeFrontend.

Definition at line 86 of file makeviewpart.cpp.

References m_widget.

void MakeViewPart::queueCommand const QString dir,
const QString command
[protected, virtual]
 

The component shall start to execute a make-like command.

Commands are always asynchronous. You can submit several jobs without caring about another job already running. There are executed in the order in which they are submitted. If one of then fails, all following jobs are dropped. You should not make any assumptions about the directory in which the command is started. If the command depends on that, put and explicit 'cd' into the command. The parameter dir is interpreted as a starting directory to find files when parsing compiler error messages.

Implements KDevMakeFrontend.

Definition at line 80 of file makeviewpart.cpp.

References m_widget, and queueCommand().

Referenced by queueCommand().

void MakeViewPart::slotStopButtonClicked KDevPlugin  )  [private, slot]
 

Definition at line 73 of file makeviewpart.cpp.

References m_widget, and slotStopButtonClicked().

Referenced by MakeViewPart(), and slotStopButtonClicked().

void MakeViewPart::updateSettingsFromConfig  )  [virtual]
 

Advices to synchronize the settings from KConfig because they've changed externally.

Implements KDevMakeFrontend.

Definition at line 96 of file makeviewpart.cpp.

References m_widget.

QWidget * MakeViewPart::widget  )  [virtual]
 

Returns the widget of the plugin.

This must be overridden.

Reimplemented from KDevMakeFrontend.

Definition at line 91 of file makeviewpart.cpp.

References m_widget.


Member Data Documentation

KDevMakeFrontendIface* MakeViewPart::m_dcop [private]
 

Definition at line 42 of file makeviewpart.h.

Referenced by MakeViewPart(), and ~MakeViewPart().

QGuardedPtr<MakeWidget> MakeViewPart::m_widget [private]
 

Definition at line 41 of file makeviewpart.h.

Referenced by isRunning(), MakeViewPart(), queueCommand(), slotStopButtonClicked(), updateSettingsFromConfig(), widget(), and ~MakeViewPart().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Oct 19 08:02:04 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003