Warning, file /multimedia/kid3/src/app/qt/browserdialog.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /** 0002 * \file browserdialog.h 0003 * Help browser. 0004 * 0005 * \b Project: Kid3 0006 * \author Urs Fleisch 0007 * \date 10 Jun 2009 0008 * 0009 * Copyright (C) 2003-2024 Urs Fleisch 0010 * 0011 * This file is part of Kid3. 0012 * 0013 * Kid3 is free software; you can redistribute it and/or modify 0014 * it under the terms of the GNU General Public License as published by 0015 * the Free Software Foundation; either version 2 of the License, or 0016 * (at your option) any later version. 0017 * 0018 * Kid3 is distributed in the hope that it will be useful, 0019 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0021 * GNU General Public License for more details. 0022 * 0023 * You should have received a copy of the GNU General Public License 0024 * along with this program. If not, see <http://www.gnu.org/licenses/>. 0025 */ 0026 0027 #pragma once 0028 0029 #include <QDialog> 0030 0031 class QTextBrowser; 0032 class QLineEdit; 0033 0034 /** 0035 * Help browser. 0036 */ 0037 class BrowserDialog : public QDialog { 0038 Q_OBJECT 0039 public: 0040 /** 0041 * Constructor. 0042 */ 0043 BrowserDialog(QWidget* parent, const QString& caption); 0044 0045 /** 0046 * Destructor. 0047 */ 0048 ~BrowserDialog() override = default; 0049 0050 /** 0051 * Show context help. 0052 * @param anchor name of anchor 0053 */ 0054 void goToAnchor(const QString& anchor); 0055 0056 private slots: 0057 /** 0058 * Find previous occurrence of search text. 0059 */ 0060 void findPrevious(); 0061 0062 /** 0063 * Find next occurrence of search text. 0064 */ 0065 void findNext(); 0066 0067 private: 0068 QTextBrowser* m_textBrowser; 0069 QLineEdit* m_findLineEdit; 0070 QString m_filename; 0071 };