[gnote] Add MainWindowAction class



commit 17ab12685342b52b6628fc73ed805cbb9a65346e
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sat Dec 5 17:13:55 2015 +0200

    Add MainWindowAction class

 src/Makefile.am          |    1 +
 src/mainwindowaction.cpp |   34 ++++++++++++++++++++++++++++++++++
 src/mainwindowaction.hpp |   44 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 79 insertions(+), 0 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 3d67979..9d56af7 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -129,6 +129,7 @@ libgnote_la_SOURCES = \
        itagmanager.hpp itagmanager.cpp \
        importaddin.hpp importaddin.cpp \
        mainwindow.hpp mainwindow.cpp \
+       mainwindowaction.hpp mainwindowaction.cpp \
        mainwindowembeds.hpp mainwindowembeds.cpp \
        noteaddin.hpp noteaddin.cpp \
        notebase.hpp notebase.cpp \
diff --git a/src/mainwindowaction.cpp b/src/mainwindowaction.cpp
new file mode 100644
index 0000000..7df927e
--- /dev/null
+++ b/src/mainwindowaction.cpp
@@ -0,0 +1,34 @@
+/*
+ * gnote
+ *
+ * Copyright (C) 2015 Aurimas Cernius
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "mainwindowaction.hpp"
+
+namespace gnote {
+
+MainWindowAction::Ptr MainWindowAction::create(const Glib::ustring & name)
+{
+  return Ptr(new MainWindowAction(name));
+}
+
+MainWindowAction::MainWindowAction(const Glib::ustring & name)
+  : Gio::SimpleAction(name)
+{
+}
+
+}
diff --git a/src/mainwindowaction.hpp b/src/mainwindowaction.hpp
new file mode 100644
index 0000000..b0240b9
--- /dev/null
+++ b/src/mainwindowaction.hpp
@@ -0,0 +1,44 @@
+/*
+ * gnote
+ *
+ * Copyright (C) 2015 Aurimas Cernius
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef _MAIN_WINDOW_ACTION_HPP_
+#define _MAIN_WINDOW_ACTION_HPP_
+
+#include <giomm/simpleaction.h>
+
+#include "base/macros.hpp"
+
+
+namespace gnote {
+
+class MainWindowAction
+  : public Gio::SimpleAction
+{
+public:
+  typedef Glib::RefPtr<MainWindowAction> Ptr;
+
+  static Ptr create(const Glib::ustring & name);
+protected:
+  MainWindowAction(const Glib::ustring & name);
+};
+
+}
+
+#endif
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]