chalk

kis_previewdialog.cpp
1/*
2 * kis_previewdialog.cpp - part of Chalk
3 *
4 * Copyright (c) 2005 Sven Langkamp <longamp@reallygood.de>
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#include <tqframe.h>
21#include <tqhbox.h>
22#include <tqgroupbox.h>
23#include <tqlayout.h>
24
25#include "kis_previewwidget.h"
26#include "kis_previewdialog.h"
27
28KisPreviewDialog::KisPreviewDialog( TQWidget * parent, const char * name, bool modal, const TQString &caption)
29 : super (parent, name, modal, caption, Ok | Cancel, Ok)
30{
31 TQHBox* layout = new TQHBox(this);
32 layout->setSpacing( 6 );
33
34 m_containerFrame = new TQFrame( layout, "container" );
35
36 m_preview = new KisPreviewWidget( layout, "previewWidget" );
37
38 setMainWidget(layout);
39}
40
41KisPreviewDialog::~KisPreviewDialog()
42{
43
44}
45
46#include "kis_previewdialog.moc"
A widget that can be used by plugins to show a preview of the effect of the plugin to the user.