Rearrange the Preferences window
- Move all status display into a new window "NFD Status"
- Keep "Auto-config Status" at the original tab place
- Remove security tab
- Remove useless statements
Change-Id: Iecdae2619f50124e151323f4b52b5df01e5cc6fb
diff --git a/src/tray-menu.hpp b/src/tray-menu.hpp
index 878c0a6..1159a1d 100644
--- a/src/tray-menu.hpp
+++ b/src/tray-menu.hpp
@@ -37,6 +37,7 @@
#include <QtQml/QQmlContext>
#include "key-viewer-dialog.hpp"
+#include "status-viewer.hpp"
#ifdef OSX_BUILD
#include "osx-auto-update-sparkle.hpp"
@@ -64,7 +65,7 @@
public:
explicit
- TrayMenu(QQmlContext* context, Face& face);
+ TrayMenu(QQmlContext* context, Face& face, KeyChain& keyChain);
~TrayMenu();
@@ -147,6 +148,7 @@
QSystemTrayIcon* m_tray;
QMenu* m_menu;
QAction* m_entryPref;
+ QAction* m_entryStatus;
QAction* m_entrySec;
QProcess* m_acProc;
QSettings* m_settings;
@@ -161,6 +163,8 @@
ncc::KeyViewerDialog* m_keyViewerDialog;
Face& m_face;
+ KeyChain& m_keyChain;
+ StatusViewer* m_statusViewer;
};
} // namespace ncc