/***************************************************************************
 *                                                                         *
 *   copyright : (C) 2007 The University of Toronto                        *
 *                   netterfield@astro.utoronto.ca                         *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef DEBUGDIALOG_H
#define DEBUGDIALOG_H

#include <QDialog>

#include "ui_debugdialog.h"

#include "kst_export.h"
#include "objectstore.h"

namespace Kst {

class LogWidget;

class DebugDialog : public QDialog, Ui::DebugDialog
{
  Q_OBJECT
  public:
    explicit DebugDialog(QWidget *parent);
    virtual ~DebugDialog();

    void setObjectStore(ObjectStore* store) { _store = store; }

  Q_SIGNALS:
    void notifyOfError();
    void notifyAllClear();

  public Q_SLOTS:
    void clear();
    void show();

  protected:
    bool event(QEvent *e);

  private:
    LogWidget *_log;
    ObjectStore *_store;
};

}

#endif

// vim: ts=2 sw=2 et
