mirror of
https://github.com/chris2511/xca.git
synced 2026-09-13 18:46:25 +05:00
All dialogs get the "Qt::WindowModal" modality to operate the Help window in parallel while also blocking the dialog parent windows. The manageRevocations() moved from model to view The Details dialogs become more self-sufficient. There is a statc start method that shows the dialog and updates name and comment after accept(). This allows recursive starts of certificate details and independence of mainwin. It is necessary to set the current toplevel widget as parent for the next dialog to not block the application.
38 lines
602 B
C++
38 lines
602 B
C++
/* vi: set sw=4 ts=4:
|
|
*
|
|
* Copyright (C) 2021 Christian Hohnstaedt.
|
|
*
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#ifndef __HELP_H
|
|
#define __HELP_H
|
|
|
|
#include "ui_Help.h"
|
|
|
|
#include <QDialog>
|
|
|
|
class QHelpEngineCore;
|
|
|
|
class Help: public QWidget, public Ui::Help
|
|
{
|
|
Q_OBJECT
|
|
|
|
QHelpEngineCore *helpengine;
|
|
void display(const QUrl &url);
|
|
|
|
public:
|
|
Help();
|
|
~Help();
|
|
void register_ctxhelp_button(QDialog *dlg,
|
|
const QString &help_ctx) const;
|
|
QMap<QString, QUrl> url_by_ctx(const QString &ctx) const;
|
|
|
|
public slots:
|
|
void contexthelp();
|
|
void contexthelp(const QString &context);
|
|
void content();
|
|
|
|
};
|
|
#endif
|