Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Commit [4dc600] Maximize Restore History

merged signal_views branch back to trunk

svn-id: https://kwave.svn.sourceforge.net/svnroot/kwave/trunk@2674 bbf32e5a-961d-0410-9e10-91f32741c31e

Thomas Eschenbacher Thomas Eschenbacher 2011-11-16

1 2 3 .. 6 > >> (Page 1 of 6)
removed bin/date_release.awk
changed .kdev4/kwave.kdev4
changed bin/set_version.sh
changed cmake/KwaveL10N.cmake
changed doc/CMakeLists.txt
changed doc/help_cs.po
changed doc/help_de.po
changed doc/help_en.docbook
changed doc/help_fr.po
changed kwave/CMakeLists.txt
changed kwave/KwaveApp.cpp
changed kwave/MainWidget.cpp
changed kwave/MainWidget.h
changed kwave/TopWidget.cpp
changed kwave/TopWidget.h
changed kwave/main.cpp
changed kwave/menus.config
changed libgui/CMakeLists.txt
changed libgui/ImageView.h
changed libgui/OverViewCache.cpp
changed libgui/OverViewWidget.cpp
changed libgui/OverViewWidget.h
changed libgui/SignalWidget.cpp
copied bin/insert-changes.sh -> kwave/ApplicationContext.cpp
bin/date_release.awk
File was removed.
.kdev4/kwave.kdev4 Diff Switch to side-by-side view
Loading...
bin/set_version.sh Diff Switch to side-by-side view
Loading...
cmake/KwaveL10N.cmake Diff Switch to side-by-side view
Loading...
doc/CMakeLists.txt Diff Switch to side-by-side view
Loading...
doc/help_cs.po Diff Switch to side-by-side view
Loading...
doc/help_de.po Diff Switch to side-by-side view
Loading...
doc/help_en.docbook Diff Switch to side-by-side view
Loading...
doc/help_fr.po Diff Switch to side-by-side view
Loading...
kwave/CMakeLists.txt Diff Switch to side-by-side view
Loading...
kwave/KwaveApp.cpp Diff Switch to side-by-side view
Loading...
kwave/MainWidget.cpp Diff Switch to side-by-side view
Loading...
kwave/MainWidget.h Diff Switch to side-by-side view
Loading...
kwave/TopWidget.cpp Diff Switch to side-by-side view
Loading...
kwave/TopWidget.h Diff Switch to side-by-side view
Loading...
kwave/main.cpp Diff Switch to side-by-side view
Loading...
kwave/menus.config Diff Switch to side-by-side view
Loading...
libgui/CMakeLists.txt Diff Switch to side-by-side view
Loading...
libgui/ImageView.h Diff Switch to side-by-side view
Loading...
libgui/OverViewCache.cpp Diff Switch to side-by-side view
Loading...
libgui/OverViewWidget.cpp Diff Switch to side-by-side view
Loading...
libgui/OverViewWidget.h Diff Switch to side-by-side view
Loading...
libgui/SignalWidget.cpp Diff Switch to side-by-side view
Loading...
bin/insert-changes.sh to kwave/ApplicationContext.cpp
--- a/bin/insert-changes.sh
+++ b/kwave/ApplicationContext.cpp
@@ -1,56 +1,60 @@
-#!/bin/sh
-############################################################################
-#   insert-changes - inserts a CHANGES file into a docbook file
-#                            -------------------
-#   begin                : Wed Jun 21 2000
-#   copyright            : (C) 2000 by Thomas Eschenbacher
-#   email                : Thomas.Eschenbacher@gmx.de
-############################################################################
-#
-############################################################################
-#                                                                          #
-#    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 2 of the License, or     #
-#    (at your option) any later version.                                   #
-#                                                                          #
-############################################################################
-#
-# example for usage:
-# cat help_en.orig | insert-changes.sh changes.docbook > help_en.docbook
+/***************************************************************************
+    kwave/ApplicationContext.cpp  -  Context of one Kwave instance
+			     -------------------
+    begin                : 2010-01-02
+    copyright            : (C) 2010 by Thomas.Eschenbacher
+    email                : Thomas.Eschenbacher@gmx.de
+ ***************************************************************************/
 
-# set -x
+/***************************************************************************
+ *                                                                         *
+ *   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 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
 
-awk -v changes_file=$1 '
-/<!--\ AUTO_GENERATED_CHANGES_LIST_START\ -->/ {
-    start_tag_found=1;
-    end_tag_found=0;
+#include "config.h"
+
+#include "libkwave/ApplicationContext.h"
+#include "libkwave/PluginManager.h"
+#include "libkwave/SignalManager.h"
+
+#include "kwave/TopWidget.h"
+
+//***************************************************************************
+Kwave::ApplicationContext::ApplicationContext(KwaveApp &app)
+    :m_application(app), m_top_widget(0), m_signal_manager(0),
+     m_plugin_manager(0)
+{
 }
 
-/<!--\ AUTO_GENERATED_CHANGES_LIST_END\ -->/ {
-    start_tag_found=0;
-    end_tag_found=1;
+//***************************************************************************
+Kwave::ApplicationContext::~ApplicationContext()
+{
+    if (m_top_widget)     delete m_top_widget;
+    if (m_signal_manager) delete m_signal_manager;
+    if (m_plugin_manager) delete m_plugin_manager;
 }
 
+//***************************************************************************
+bool Kwave::ApplicationContext::init()
 {
-    if (start_tag_found==1 && ignore==0) {
-	# ignore everything until end tag found
-	print;
-	ignore=1;
-    } else if (end_tag_found==1) {
-	# insert the new version
-        while ((getline line < changes_file) > 0)
-	    print line;
-	close(changes_file);
+    m_top_widget = new TopWidget(*this);
+    Q_ASSERT(m_top_widget);
+    if (!m_top_widget) return false;
 
-	# set the end tag
-	ignore=0;
-	end_tag_found=0;
-    }
+    m_signal_manager = new SignalManager(m_top_widget);
+    Q_ASSERT(m_signal_manager);
+    if (!m_signal_manager) return false;
 
-    if (ignore==0) print;
+    m_plugin_manager = new Kwave::PluginManager(m_top_widget, *m_signal_manager);
+    Q_ASSERT(m_plugin_manager);
+    if (!m_plugin_manager) return false;
+
+    return m_top_widget->init();
 }
-'
 
-
-
+//***************************************************************************
+//***************************************************************************
1 2 3 .. 6 > >> (Page 1 of 6)