Switch to unified view

a b/src/qtgui/snippets_w.h
1
/* Copyright (C) 2012 J.F.Dockes
2
 *   This program is free software; you can redistribute it and/or modify
3
 *   it under the terms of the GNU General Public License as published by
4
 *   the Free Software Foundation; either version 2 of the License, or
5
 *   (at your option) any later version.
6
 *
7
 *   This program is distributed in the hope that it will be useful,
8
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
 *   GNU General Public License for more details.
11
 *
12
 *   You should have received a copy of the GNU General Public License
13
 *   along with this program; if not, write to the
14
 *   Free Software Foundation, Inc.,
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
16
 */
17
#ifndef _SNIPPETS_W_H_INCLUDED_
18
#define _SNIPPETS_W_H_INCLUDED_
19
20
#include "rcldoc.h"
21
#include "refcntr.h"
22
#include "docseq.h"
23
#include "rclmain_w.h"
24
25
#include "ui_snippets.h"
26
27
class SnippetsW : public QWidget, public Ui::Snippets
28
{
29
    Q_OBJECT
30
public:
31
    SnippetsW(Rcl::Doc doc, RefCntr<DocSequence> source, QWidget* parent = 0) 
32
  : QWidget(parent), m_doc(doc), m_source(source)
33
    {
34
  setupUi((QDialog*)this);
35
  init();
36
    }
37
38
protected slots:
39
    virtual void linkWasClicked(const QUrl &);
40
41
signals:
42
    void startNativeViewer(Rcl::Doc, int pagenum);
43
  
44
private:
45
    void init();
46
    Rcl::Doc m_doc;
47
    RefCntr<DocSequence> m_source;
48
};
49
50
#endif /* _SNIPPETS_W_H_INCLUDED_ */