1 /************************************************************************
2 **
3 **  Copyright (C) 2020 Kevin B. Hendricks, Stratford, Ontario Canada
4 **  Copyright (C) 2012 John Schember <john@nachtimwald.com>
5 **
6 **  This file is part of Sigil.
7 **
8 **  Sigil is free software: you can redistribute it and/or modify
9 **  it under the terms of the GNU General Public License as published by
10 **  the Free Software Foundation, either version 3 of the License, or
11 **  (at your option) any later version.
12 **
13 **  Sigil is distributed in the hope that it will be useful,
14 **  but WITHOUT ANY WARRANTY; without even the implied warranty of
15 **  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 **  GNU General Public License for more details.
17 **
18 **  You should have received a copy of the GNU General Public License
19 **  along with Sigil.  If not, see <http://www.gnu.org/licenses/>.
20 **
21 *************************************************************************/
22 
23 #pragma once
24 #ifndef FONTTAB_H
25 #define FONTTAB_H
26 
27 #include "Tabs/ContentTab.h"
28 #include "ResourceObjects/Resource.h"
29 
30 class FontView;
31 
32 class FontTab : public ContentTab
33 {
34     Q_OBJECT
35 
36 public:
37     FontTab(Resource *resource, QWidget *parent=0);
38 
39 public slots:
40     void ShowFont();
41     void RefreshContent();
42 
43     // dummy implementations for signals
Undo()44     void Undo() { };
Redo()45     void Redo() { };
Cut()46     void Cut() { };
Copy()47     void Copy() { };
Paste()48     void Paste() { };
DeleteLine()49     void DeleteLine() { };
PrintPreview()50     void PrintPreview() { };
Print()51     void Print() { };
52 
53 private:
54     void ConnectSignalsToSlots();
55     FontView *m_fv;
56 };
57 
58 #endif // FONTTAB_H
59