2 Copyright (C) 2010-2024 Ben Kibbey <bjk@luxsci.net>
4 This file is part of qpwmc.
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with this library; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
21 #ifndef EDITSHORTCUTDIALOG_H
22 #define EDITSHORTCUTDIALOG_H
24 #include "ui_editShortcutDialog.h"
27 class EditShortcutDialog
: public QDialog
31 EditShortcutDialog ();
32 ~EditShortcutDialog ();
35 void knownHostRc (gpg_error_t
);
38 void slotNewShortcut ();
39 void slotRemoveShortcut ();
40 void slotShortcutItemChanged (QListWidgetItem
*, QListWidgetItem
*);
41 void slotShortcutFilenameChanged (const QString
&);
42 void slotShortcutNameChanged (const QString
&);
43 void slotShortcutSubMenuChanged (const QString
&);
44 void slotShortcutPathChanged (const QString
&);
45 void slotShortcutSocketChanged (const QString
&);
46 void slotChooseElement ();
47 void slotCancelled ();
50 void slotChooseSocket ();
51 void slotKnownHostCallback (void *data
, const char *host
, const char *key
,
55 Ui::EditShortcutDialog ui
;
63 EditShortcut (const QString
& f
, const QString
& n
, const QString
& p
,
64 const QString
& s
= 0, const QString
&sub
= 0)
90 void setName (const QString
& n
)
100 void setPath (const QString
& p
)
105 void setFilename (const QString
& f
)
110 void setSocket (const QString
& s
)
115 void setSubMenu(const QString
&s
)
133 Q_DECLARE_METATYPE (EditShortcut
);