libyui-qt
Loading...
Searching...
No Matches
QY2RelNotesDialog.h
1/*
2 Copyright (c) 2000-2012 Novell, Inc
3 Copyright (c) 2022 SUSE LLC
4 This library is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as
6 published by the Free Software Foundation; either version 2.1 of the
7 License, or (at your option) version 3.0 of the License. This library
8 is distributed in the hope that it will be useful, but WITHOUT ANY
9 WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
11 License for more details. You should have received a copy of the GNU
12 Lesser General Public License along with this library; if not, write
13 to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
14 Floor, Boston, MA 02110-1301 USA
15*/
16
17
18/*-/
19
20 File: QY2RelNotesDialog.h
21
22 Author: Jiri Srain <jsrain@suse.de>
23
24 Textdomain "qt"
25
26/-*/
27
28#ifndef QY2RelNotesDialog_h
29#define QY2RelNotesDialog_h
30
31#include <string>
32#include <map>
33#include <vector>
34
35#include <QDialog>
36#include <QTextBrowser>
37#include <QPushButton>
38#include <QTabBar>
39#include <QUrl>
40
41class QY2TextBrowser;
42
55class QY2RelNotesDialog : public QDialog
56{
57 Q_OBJECT
58
59public:
60 QY2RelNotesDialog( QWidget *parent );
62 void setRelNotes( const std::map<std::string,std::string>& relNotes );
63 void retranslate();
64
65public slots:
66 void tabChanged( int index );
67
68protected:
69
70 QTabBar * _tabBar;
71 QY2TextBrowser * _textBrowser;
72 QPushButton * _closeButton;
73
74 std::map<std::string,std::string> _relNotes;
75 std::vector<std::string> _tabKeys;
76};
77
78
79class QY2TextBrowser: public QTextBrowser
80{
81 Q_OBJECT
82
83public:
84 QY2TextBrowser( QWidget * parent ):
85 QTextBrowser( parent )
86 {}
87
88public slots:
93 virtual void setSource( const QUrl & name );
94};
95
96
97#endif // QY2RelNotesDialog_h
Definition QY2RelNotesDialog.h:56
Definition QY2RelNotesDialog.h:80
virtual void setSource(const QUrl &name)
Definition QY2RelNotesDialog.cc:149