"Fossies" - the Fresh Open Source Software Archive

Member "cb2bib-2.0.1/src/c2bShortcutWidget.h" (12 Feb 2021, 1312 Bytes) of package /linux/privat/cb2bib-2.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "c2bShortcutWidget.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 2.0.0_vs_2.0.1.

    1 /***************************************************************************
    2  *   Copyright (C) 2004-2021 by Pere Constans
    3  *   constans@molspaces.com
    4  *   cb2Bib version 2.0.1. Licensed under the GNU GPL version 3.
    5  *   See the LICENSE file that comes with this distribution.
    6  ***************************************************************************/
    7 #ifndef C2BSHORTCUTWIDGET_H
    8 #define C2BSHORTCUTWIDGET_H
    9 
   10 #include "ui_c2bShortcutWidget.h"
   11 
   12 
   13 #include <QHash>
   14 #include <QWidget>
   15 
   16 
   17 class c2bSettings;
   18 
   19 
   20 class c2bShortcutWidget : public QWidget
   21 {
   22 
   23     Q_OBJECT
   24 
   25 public:
   26     explicit c2bShortcutWidget(QWidget* parentw = 0);
   27     inline ~c2bShortcutWidget() {}
   28 
   29     void setShortcutNames(const QString& path, const QStringList& fullnames);
   30     inline const QHash<QString, QKeySequence>& modifiedKeysequences() const
   31     {
   32         return _modified_keysequences;
   33     }
   34 
   35 
   36 signals:
   37     void statusMessage(const QString& ms);
   38 
   39 
   40 private slots:
   41     void currentIndexChanged(const QString& name);
   42     void shortcutChanged(const QKeySequence& oldks, const QKeySequence& newks);
   43 
   44 
   45 private:
   46     QHash<QString, QKeySequence> _modified_keysequences;
   47     QList<QKeySequence> _standard_keysequences;
   48     QString _shortcut_path;
   49     QStringList _fullnames;
   50     Ui::c2bShortcutWidget ui;
   51     c2bSettings* _settingsP;
   52 };
   53 
   54 #endif