OSDN Git Service

Move the directories
[kita/kita.git] / src / writetabwidget.h
1 /***************************************************************************
2 *   Copyright (C) 2003 by Hideki Ikemoto, 2004 by 421                     *
3 *   ikemo@users.sourceforge.jp                                            *
4 *                                                                         *
5 *   This program is free software; you can redistribute it and/or modify  *
6 *   it under the terms of the GNU General Public License as published by  *
7 *   the Free Software Foundation; either version 2 of the License, or     *
8 *   (at your option) any later version.                                   *
9 ***************************************************************************/
10 #ifndef KITAWRITETABWIDGET_H
11 #define KITAWRITETABWIDGET_H
12
13 #include "kitaui/tabwidgetbase.h"
14
15 namespace Kita {
16     class WriteView;
17
18     class WriteTabWidget : public TabWidgetBase
19     {
20         Q_OBJECT
21
22     public:
23         explicit WriteTabWidget(QWidget* parent = 0);
24         ~WriteTabWidget();
25         void slotShowWriteView(const KUrl& url, const QString& resStr);
26
27     private:
28         void openWriteView(const KUrl& url, const QString& resStr = QString(),
29                 const QString& subject = QString());
30         WriteView* findWriteView(const KUrl& url);
31         WriteView* isWriteView(QWidget* w);
32
33     public:
34         void slotChangeWriteTab(const KUrl& url);
35
36     protected:
37         virtual void deleteWidget(QWidget* w);
38
39
40         /*------------------------------------*/
41         /* WriteTabWidget actions */
42
43     private:
44         void setupActions();
45
46     public slots:
47         void slotQuoteClipboard();
48     };
49 }
50
51 #endif