You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
100 lines
2.6 KiB
100 lines
2.6 KiB
15 years ago
|
/**********************************************************************
|
||
|
** Copyright (C) 2001 Trolltech AS. All rights reserved.
|
||
|
**
|
||
14 years ago
|
** This file is part of TQt Designer.
|
||
15 years ago
|
**
|
||
|
** This file may be distributed and/or modified under the terms of the
|
||
|
** GNU General Public License version 2 as published by the Free Software
|
||
|
** Foundation and appearing in the file LICENSE.GPL included in the
|
||
|
** packaging of this file.
|
||
|
**
|
||
14 years ago
|
** Licensees holding valid TQt Enterprise Edition or TQt Professional Edition
|
||
|
** licenses may use this file in accordance with the TQt Commercial License
|
||
15 years ago
|
** Agreement provided with the Software.
|
||
|
**
|
||
|
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||
|
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||
|
**
|
||
|
** See http://www.trolltech.com/gpl/ for GPL licensing information.
|
||
|
** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
|
||
14 years ago
|
** information about TQt Commercial License Agreements.
|
||
15 years ago
|
**
|
||
|
** Contact info@trolltech.com if any conditions of this licensing are
|
||
|
** not clear to you.
|
||
|
**
|
||
|
**********************************************************************/
|
||
|
|
||
|
#ifndef OUTPUTWINDOW_H
|
||
|
#define OUTPUTWINDOW_H
|
||
|
|
||
15 years ago
|
#include <tqtabwidget.h>
|
||
|
#include <tqstringlist.h>
|
||
|
#include <tqvaluelist.h>
|
||
|
#include <tqlistview.h>
|
||
15 years ago
|
|
||
|
struct DesignerOutputDock;
|
||
15 years ago
|
class TQTextEdit;
|
||
|
class TQListView;
|
||
15 years ago
|
|
||
14 years ago
|
class ErrorItem : public TQListViewItem
|
||
15 years ago
|
{
|
||
|
public:
|
||
|
enum Type { Error, Warning };
|
||
|
|
||
14 years ago
|
ErrorItem( TQListView *parent, TQListViewItem *after, const TQString &message, int line,
|
||
15 years ago
|
const TQString &locationString, TQObject *locationObject );
|
||
15 years ago
|
|
||
15 years ago
|
void paintCell( TQPainter *, const TQColorGroup & cg,
|
||
13 years ago
|
int column, int width, int alignment );
|
||
15 years ago
|
|
||
13 years ago
|
void setRead( bool b ) { read = b; repaint(); }
|
||
15 years ago
|
|
||
15 years ago
|
TQObject *location() const { return object; }
|
||
15 years ago
|
int line() const { return text( 2 ).toInt(); }
|
||
|
|
||
|
private:
|
||
15 years ago
|
TQObject *object;
|
||
15 years ago
|
Type type;
|
||
|
bool read;
|
||
|
|
||
|
};
|
||
|
|
||
14 years ago
|
class OutputWindow : public TQTabWidget
|
||
15 years ago
|
{
|
||
|
Q_OBJECT
|
||
13 years ago
|
|
||
15 years ago
|
|
||
|
public:
|
||
14 years ago
|
OutputWindow( TQWidget *parent );
|
||
15 years ago
|
~OutputWindow();
|
||
|
|
||
15 years ago
|
void setErrorMessages( const TQStringList &errors, const TQValueList<uint> &lines,
|
||
|
bool clear, const TQStringList &locations,
|
||
|
const TQObjectList &locationObjects );
|
||
|
void appendDebug( const TQString& );
|
||
15 years ago
|
void clearErrorMessages();
|
||
|
void clearDebug();
|
||
|
void showDebugTab();
|
||
|
|
||
|
DesignerOutputDock *iFace();
|
||
|
|
||
|
void shuttingDown();
|
||
|
|
||
14 years ago
|
static TQtMsgHandler oldMsgHandler;
|
||
15 years ago
|
|
||
|
private slots:
|
||
15 years ago
|
void currentErrorChanged( TQListViewItem *i );
|
||
15 years ago
|
|
||
|
private:
|
||
|
void setupError();
|
||
|
void setupDebug();
|
||
|
|
||
15 years ago
|
TQTextEdit *debugView;
|
||
|
TQListView *errorView;
|
||
15 years ago
|
|
||
|
DesignerOutputDock *iface;
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif
|