Scribus
Open source desktop publishing at your fingertips
openpalette.h
1 /***************************************************************************
2  * Copyright (C) 2009 by Pierre Marchand *
3  * pierre@oep-h.com *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
19  ***************************************************************************/
20 
21 #ifndef OPENPALETTE_H
22 #define OPENPALETTE_H
23 
24 #include "ui/scrpalettebase.h"
25 
26 #include <QDialog>
27 #include <QList>
28 #include <QVBoxLayout>
29 
30 class PageItemSetterBase;
31 
37 class OpenPalette : public QDialog
38 {
39  Q_OBJECT
40 
41  OpenPalette(){}
42 public:
43  OpenPalette(QWidget * parent);
44  ~OpenPalette(){}
45  QStringList hostedList() const;
46  void setHosted(const QStringList& sList);
47 
48 protected:
49  void closeEvent(QCloseEvent *event);
50  void showEvent(QShowEvent *event);
51  void hideEvent(QHideEvent *event);
52  void dragEnterEvent( QDragEnterEvent *event );
53  void dropEvent ( QDropEvent * event );
54 
55 private:
56  QList<PageItemSetterBase*> hosted;
57  QVBoxLayout * mainLayout;
58 
59 signals:
60  void changed();
61 
62 };
63 
64 #endif // OPENPALETTE_H
Definition: openpalette.h:37
Definition: pageitemsetterbase.h:43