1 /***************************************************************************
2 * Copyright 2007 Robert Gruber <rgruber@users.sourceforge.net> *
5 * Copyright 2008 Evgeniy Ivanov <powerfox@kde.ru> *
7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. *
12 ***************************************************************************/
20 #include "ui_logview.h"
26 class DistributedVersionControlPlugin
;
30 * Shows the output from @code dvcs log @endcode in a nice way.
31 * Create a DVCSjob by calling DVCSexecutor::log() and connect the job's
32 * result(KJob*) signal to LogView::slotJobFinished(KJob* job)
33 * @author Robert Gruber <rgruber@users.sourceforge.net>
35 class LogView
: public QWidget
, private Ui::LogViewBase
39 explicit LogView(KDevelop::DistributedVersionControlPlugin
* plugin
, DVCSjob
* job
=0, QWidget
*parent
= 0);
44 * Connect a job's result() signal to this slot. When called, the output from the job
45 * will be passed to the parseOutput() method and all found revisions will be displayed.
46 * @note If you pass a DVCSjob object to the ctor, it's result() signal
47 * will automatically be connected to this slot.
49 void slotJobFinished(KJob
* job
);
52 KDevelop::DistributedVersionControlPlugin
* m_plugin
;