chalk

kis_autobrush.h
1/*
2 * Copyright (c) 2004 Cyrille Berger <cberger@cberger.net>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18
19#ifndef _KIS_AUTOBRUSH_H_
20#define _KIS_AUTOBRUSH_H_
21
22#include <tqobject.h>
23#include "wdgautobrush.h"
24#include <kis_autobrush_resource.h>
25
26class KisAutobrush : public KisWdgAutobrush
27{
28 TQ_OBJECT
29
30public:
31 KisAutobrush(TQWidget *parent, const char* name, const TQString& caption);
32 void activate();
33
34signals:
35 void activatedResource(KisResource *r);
36
37private slots:
38 void paramChanged();
39 void spinBoxWidthChanged(int );
40 void spinBoxHeightChanged(int );
41 void spinBoxHorizontalChanged(int);
42 void spinBoxVerticalChanged(int);
43 void linkSizeToggled(bool);
44 void linkFadeToggled(bool);
45
46protected:
47 virtual void resizeEvent ( TQResizeEvent * );
48
49private:
50 TQImage* m_brsh;
51 bool m_linkSize;
52 bool m_linkFade;
53};
54
55
56#endif
The KisResource class provides a representation of Chalk image resources.