krita/ui
kis_control_frame.h
Go to the documentation of this file.00001 /* 00002 * kis_control_frame.h - part of Krita 00003 * 00004 * Copyright (c) 1999 Matthias Elter <elter@kde.org> 00005 * Copyright (c) 2003 Patrick Julien <freak@codepimps.org> 00006 * Copyright (c) 2004 Sven Langkamp <sven.langkamp@gmail.com> 00007 * Copyright (c) 2003-2008 Boudewijn Rempt <boud@valdyas.org> 00008 * 00009 * This program is free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00022 */ 00023 #ifndef __kis_control_frame_h__ 00024 #define __kis_control_frame_h__ 00025 00026 #include <QMenu> 00027 #include <QKeyEvent> 00028 #include <QObject> 00029 00030 class QWidget; 00031 class QTabWidget; 00032 class QTableWidgetItem; 00033 class QPushButton; 00034 00035 class KToolBar; 00036 00037 class KoResourceItem; 00038 00039 class KoAbstractGradient; 00040 class KisGradientChooser; 00041 class KoResourceItemChooser; 00042 class KisPaintopBox; 00043 class KisView2; 00044 class KisIconWidget; 00045 class KisPattern; 00046 class KXmlGuiWindow; 00047 00052 class KisControlFrame : public QObject 00053 { 00054 Q_OBJECT 00055 00056 public: 00057 00058 KisControlFrame(KisView2 * view, const char *name = 0); 00059 virtual ~KisControlFrame() {} 00060 00061 KisPaintopBox* paintopBox() { 00062 return m_paintopBox; 00063 } 00064 00065 public slots: 00066 00067 void slotSetPattern(KisPattern * pattern); 00068 void slotSetGradient(KoAbstractGradient * gradient); 00069 void slotSaveToFavouriteBrushes(); 00070 00071 private: 00072 00073 void createPatternsChooser(KisView2 * view); 00074 void createGradientsChooser(KisView2 * view); 00075 00076 private: 00077 00078 QFont m_font; 00079 KisView2 * m_view; 00080 00081 QTabWidget * m_gradientTab; 00082 QTabWidget * m_patternsTab; 00083 00084 KisIconWidget *m_patternWidget; 00085 KisIconWidget *m_gradientWidget; 00086 00087 QWidget * m_patternChooserPopup; 00088 QWidget * m_gradientChooserPopup; 00089 00090 KisGradientChooser * m_gradientChooser; 00091 00092 KisPaintopBox * m_paintopBox; 00093 QPushButton* m_paletteButton; 00094 }; 00095 00096 #endif 00097
