/* ============================================================ * * This file is a part of kipi-plugins project * http://www.kipi-plugins.org * * Date : 2004-10-01 * Description : Screenshot batch dialog * * Copyright (C) 2004-2007 by Gilles Caulier * Copyright (C) Richard J. Moore 1997-2002 from KSnapshot * Copyright (C) Matthias Ettrich 2000 from KSnapshot * Copyright (C) Aaron J. Seigo 2002 from KSnapshot * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #ifndef SCREENSHOOTDIALOG_H #define SCREENSHOOTDIALOG_H // Include files for TQt #include #include #include // Include files for KDE #include // Include files for X11 extern "C" { #include #include } // Include files for libKipi. #include class TQWidget; class TQCheckBox; class TQPushButton; class TDEConfig; class KIntNumInput; namespace KIPIAcquireImagesPlugin { class AcquireImageDialog; class ScreenGrabDialog : public KDialogBase { TQ_OBJECT public: ScreenGrabDialog( KIPI::Interface* interface, TQWidget *parent=0, const char *name=0); ~ScreenGrabDialog(); private slots: void slotHelp(); void slotClose(void); void slotGrab(void); void slotPerformGrab(void); private: bool eventFilter( TQObject* o, TQEvent* e); void endGrab(void); private: KIPI::Interface *m_interface; bool m_inSelect; TQCheckBox *m_desktopCB; TQCheckBox *m_hideCB; KIntNumInput *m_delay; AcquireImageDialog *m_acquireImageDialog; TQImage m_screenshotImage; TDEConfig *m_config; TQWidget *m_grabber; TQTimer m_grabTimer; TQPixmap m_snapshot; TQPushButton *m_helpButton; TQValueList< TQWidget* > m_hiddenWindows; }; } // NameSpace KIPIAcquireImagesPlugin #endif // SCREENSHOOTDIALOG_H