summaryrefslogtreecommitdiffstats
path: root/konversation/src/konsolepanel.h
blob: b8dd2f6a6f40686c12984c12d5c8f1a1a2050dad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
  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.
*/

/*
  Copyright (C) 2003 Mickael Marchand <marchand@kde.org>
*/

#ifndef KONSOLE_PANEL_H
#define KONSOLE_PANEL_H

#include "chatwindow.h"

#include <tdeparts/part.h>


class KonsolePanel : public ChatWindow
{
    TQ_OBJECT
  

    public:
        explicit KonsolePanel(TQWidget *p);
        ~KonsolePanel();

        virtual void setName(const TQString& newName) { ChatWindow::setName(newName); }

        TQWidget* getWidget();

    signals:
        void closeView(ChatWindow* view);

    public slots:
        void partDestroyed();

        /** Called from ChatWindow adjustFocus */
        virtual void childAdjustFocus();

    protected slots:
        void konsoleChanged(const TQString& data);

    private:
        KParts::ReadOnlyPart *k_part;
};
#endif                                            /* KONSOLE_PANEL_H */