chalk

kis_clipboard.h
1/*
2 * kis_clipboard.h - part of Krayon
3 *
4 * Copyright (c) 2004 Boudewijn Rempt <boud@valdyas.org>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 */
20
21#ifndef __KIS_CLIPBOARD_H_
22#define __KIS_CLIPBOARD_H_
23
24
25#include <tqsize.h>
26#include "kis_types.h"
27
28class TQImage;
29
34class KisClipboard : public TQObject {
35
36 TQ_OBJECT
37
38
39public:
40
41 virtual ~KisClipboard();
42
43 static KisClipboard* instance();
44
50 void setClip(KisPaintDeviceSP layer);
51
55 KisPaintDeviceSP clip();
56
57 bool hasClip();
58
59 TQSize clipSize();
60
61private slots:
62
63 void clipboardDataChanged();
64private:
65
66 KisClipboard();
67 KisClipboard(const KisClipboard &);
68 KisClipboard operator=(const KisClipboard &);
69
70 static KisClipboard * m_singleton;
71
72 KisPaintDeviceSP m_clip;
73 bool m_hasClip;
74
75 bool m_pushedClipboard;
76
77
78};
79
80#endif // __KIS_CLIPBOARD_H_
void setClip(KisPaintDeviceSP layer)
Sets the clipboard to the contents of the specified paint device; also set the system clipboard to a ...
KisPaintDeviceSP clip()
Get the contents of the clipboard in the form of a paint device.