X-Git-Url: https://vaikene.ee/gitweb/pswgen09.html?a=blobdiff_plain;f=src%2Fapps%2FFileFinder%2FGUI%2Fgui.h;h=3b584c3cb08a5a1ea6800a770a61cd66634be545;hb=4c0329c5c2690bde28212c89029015a5da4c7e34;hp=02f4f22fa9b0986e5360b116678e8f31fdff788e;hpb=25d800db07942aadab4140a4ed05196e7f4dcd12;p=evaf
diff --git a/src/apps/FileFinder/GUI/gui.h b/src/apps/FileFinder/GUI/gui.h
index 02f4f22..3b584c3 100644
--- a/src/apps/FileFinder/GUI/gui.h
+++ b/src/apps/FileFinder/GUI/gui.h
@@ -3,7 +3,7 @@
* @brief GUI for the FileFinder application
* @author Enar Vaikene
*
- * Copyright (c) 2011 Enar Vaikene
+ * Copyright (c) 2011-2019 Enar Vaikene
*
* This file is part of the eVaf C++ cross-platform application development framework.
*
@@ -20,8 +20,10 @@
#ifndef __FILEFINDER_GUI_GUI_H
# define __FILEFINDER_GUI_GUI_H
+#include "version.h"
+
#include
-#include
+#include
#include
#include
@@ -41,7 +43,7 @@ namespace SdiWindow {
struct iSdiWindow;
} // namespace eVaf::SdiWindow
namespace FileFinder {
- struct iFileFinder;
+ class iFileFinder;
namespace GUI {
namespace Internal {
@@ -49,14 +51,14 @@ namespace Internal {
/**
* Main widget for the FileFinder window
*/
-class MainWidget : public Gui::Window
+class MainWidget : public Gui::Panel
{
Q_OBJECT
public:
- MainWidget(QWidget * parent = 0)
- : Gui::Window(parent)
+ MainWidget(QWidget * parent = nullptr)
+ : Gui::Panel(parent)
{}
virtual void keyPressEvent(QKeyEvent * e);
@@ -82,6 +84,7 @@ class Module : public Plugins::iPlugin
{
Q_OBJECT
Q_INTERFACES(eVaf::Plugins::iPlugin)
+ Q_PLUGIN_METADATA(IID VER_MODULE_NAME_STR)
public:
@@ -112,6 +115,10 @@ private slots:
void openDirectory();
+ void copyName();
+
+ void copyAllNames();
+
private: // Members
@@ -127,6 +134,8 @@ private: // Members
/// Actions
QAction * mOpenFileAction;
QAction * mOpenDirectoryAction;
+ QAction * mCopyNameAction;
+ QAction * mCopyAllNamesAction;
/// Widgets on the screen
Internal::MainWidget * wMain;