Commit 7745d994 authored by franjo_j@hotmail.com's avatar franjo_j@hotmail.com

Removal of the dual mesher + renamed MeshLibrary into meshLibrary

git-svn-id: https://pl5.projectlocker.com/igui/meshGeneration/svn@54 fdcce57e-7e00-11e2-b579-49867b4cea03
parent 1d08aaa5
This diff is collapsed.
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-project SYSTEM "http://glade.gnome.org/glade-project-2.0.dtd">
<glade-project>
<name>GeneralPage</name>
<program_name>generalpage</program_name>
<gnome_support>FALSE</gnome_support>
</glade-project>
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-project SYSTEM "http://glade.gnome.org/glade-project-2.0.dtd">
<glade-project>
<name>KeepCellsIntersectingPatches</name>
<program_name>keepcellsintersectingpatches</program_name>
<gnome_support>FALSE</gnome_support>
</glade-project>
This diff is collapsed.
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-project SYSTEM "http://glade.gnome.org/glade-project-2.0.dtd">
<glade-project>
<name>LocalRefinement</name>
<program_name>localrefinement</program_name>
<gnome_support>FALSE</gnome_support>
</glade-project>
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
<glade-interface>
<widget class="GtkWindow" id="window_localSettingsMainWindow">
<property name="visible">True</property>
<property name="title" translatable="yes">Local settings</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">False</property>
<property name="resizable">True</property>
<property name="destroy_with_parent">False</property>
<property name="decorated">True</property>
<property name="skip_taskbar_hint">False</property>
<property name="skip_pager_hint">False</property>
<property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
<property name="focus_on_map">True</property>
<property name="urgency_hint">False</property>
<child>
<widget class="GtkNotebook" id="notebook1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="show_tabs">True</property>
<property name="show_border">True</property>
<property name="tab_pos">GTK_POS_TOP</property>
<property name="scrollable">False</property>
<property name="enable_popup">False</property>
<child>
<placeholder/>
</child>
<child>
<widget class="GtkLabel" id="label_localRefinement">
<property name="visible">True</property>
<property name="label" translatable="yes">Local refinement</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="type">tab</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child>
<widget class="GtkLabel" id="label_keepBoxesIntersectingPatches">
<property name="visible">True</property>
<property name="label" translatable="yes">Keep octree boxes intersecting patches</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="type">tab</property>
</packing>
</child>
</widget>
</child>
</widget>
</glade-interface>
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-project SYSTEM "http://glade.gnome.org/glade-project-2.0.dtd">
<glade-project>
<name>LocalSettingsMainWindow</name>
<program_name>localsettingsmainwindow</program_name>
<gnome_support>FALSE</gnome_support>
</glade-project>
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
<glade-interface>
<widget class="GtkWindow" id="window1">
<property name="visible">True</property>
<property name="title" translatable="yes">window1</property>
<property name="type">GTK_WINDOW_POPUP</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">False</property>
<property name="resizable">True</property>
<property name="destroy_with_parent">False</property>
<property name="decorated">True</property>
<property name="skip_taskbar_hint">False</property>
<property name="skip_pager_hint">False</property>
<property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
<property name="focus_on_map">True</property>
<property name="urgency_hint">False</property>
<child>
<widget class="GtkVBox" id="vbox1">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkToolbar" id="toolbar1">
<property name="visible">True</property>
<property name="orientation">GTK_ORIENTATION_HORIZONTAL</property>
<property name="toolbar_style">GTK_TOOLBAR_ICONS</property>
<property name="tooltips">True</property>
<property name="show_arrow">True</property>
<child>
<widget class="GtkToolItem" id="toolitem1">
<property name="visible">True</property>
<property name="visible_horizontal">True</property>
<property name="visible_vertical">True</property>
<property name="is_important">False</property>
<child>
<widget class="GtkButton" id="button_mainWindow_save">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Save meshDict</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
</widget>
</child>
</widget>
<packing>
<property name="expand">False</property>
<property name="homogeneous">False</property>
</packing>
</child>
<child>
<widget class="GtkToolItem" id="toolitem2">
<property name="visible">True</property>
<property name="visible_horizontal">True</property>
<property name="visible_vertical">True</property>
<property name="is_important">False</property>
<child>
<widget class="GtkButton" id="button_mainWindow_exit">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Exit</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
</widget>
</child>
</widget>
<packing>
<property name="expand">False</property>
<property name="homogeneous">False</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkNotebook" id="notebook1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="show_tabs">True</property>
<property name="show_border">True</property>
<property name="tab_pos">GTK_POS_TOP</property>
<property name="scrollable">False</property>
<property name="enable_popup">False</property>
<child>
<placeholder/>
</child>
<child>
<widget class="GtkLabel" id="label_generalSettings">
<property name="visible">True</property>
<property name="label" translatable="yes">General settings</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="type">tab</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child>
<widget class="GtkLabel" id="label_localSettings">
<property name="visible">True</property>
<property name="label" translatable="yes">Local settings</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="type">tab</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
</widget>
</child>
</widget>
</glade-interface>
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-project SYSTEM "http://glade.gnome.org/glade-project-2.0.dtd">
<glade-project>
<name>MainWindow</name>
<program_name>mainwindow</program_name>
<gnome_support>FALSE</gnome_support>
</glade-project>
meshGenGUI = meshGenGUI
meshGenGTK = meshGenGTK
meshGenQt = meshGenQt
GTKHelpers = meshGenGTK/helpers
meshGenFLTK = meshGenFLTK
$(meshGenGUI)/meshGenGUI.C
$(meshGenGUI)/meshGenGUIGeneral.C
$(meshGenGUI)/meshGenGUIPatchRefinement.C
$(meshGenGUI)/meshGenGUIKeepCellsIntersectingPatches.C
$(meshGenGUI)/meshGenGUIBndLayers.C
$(meshGenGUI)/meshGenGUIObjectRefinement.C
//$(meshGenGUI)/meshGenGUISubsetRefinement.C
$(meshGenGUI)/meshGenGUIRenameBoundary.C
$(meshGenGTK)/meshGenGTK.C
$(meshGenGTK)/meshGenGTKGeneralPage.C
$(meshGenGTK)/meshGenGTKLocalRefinement.C
$(meshGenGTK)/meshGenGTKLocalSettingsMainWindow.C
$(meshGenGTK)/meshGenGTKObjectRefinementMainWindow.C
$(meshGenGTK)/meshGenGTKMainWindow.C
$(meshGenGTK)/meshGenGTKKeepCellsIntersectingPatches.C
$(meshGenGTK)/meshGenGTKBndLayers.C
$(meshGenGTK)/meshGenGTKBoxRefinement.C
$(meshGenGTK)/meshGenGTKLineRefinement.C
$(meshGenGTK)/meshGenGTKConeRefinement.C
$(meshGenGTK)/meshGenGTKSphereRefinement.C
$(meshGenGTK)/meshGenGTKRenameBoundary.C
$(meshGenQt)/meshGenQt.C
$(meshGenQt)/meshGenQt.moc.C
$(meshGenQt)/meshGenQtGeneralSettings.C
$(meshGenQt)/meshGenQtGeneralSettings.moc.C
LIB = $(FOAM_LIBBIN)/libMeshGenerationGui
EXE_INC = \
-g -ggdb -DFULLDEBUG -O0 -Wno-old-style-cast \
-I$(FOAM_USER_LIB)/meshGeneration/meshLibrary/lnInclude \
-I$(FOAM_USER_LIB)/meshGeneration/GUI/lnInclude \
-I$(FOAM_SRC)/triSurface/lnInclude \
-I/usr/include/cairo \
-I/usr/include/freetype2 \
-I/usr/include/libpng12 \
-I/opt/gnome/include/gtk-2.0 \
-I/opt/gnome/lib64/gtk-2.0/include \
-I/opt/gnome/include/atk-1.0 \
-I/opt/gnome/include/pango-1.0 \
-I/opt/gnome/include/glib-2.0 \
-I/opt/gnome/lib64/glib-2.0/include \
-I$(QTDIR)/include -I$(QTDIR)/include/QtCore -I$(QTDIR)/include/QtGui \
-I$(QTDIR)/include/QtOpenGL
MOC = $(QTDIR)/bin/moc
EXE_LIBS = \
-lMeshLibrary \
-ltriSurface \
-L/opt/gnome/lib64 \
-lgtk-x11-2.0 \
-lgdk-x11-2.0 \
-latk-1.0 \
-lgdk_pixbuf-2.0 \
-lpangocairo-1.0 \
-lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl \
-lglib-2.0 -lfreetype -lz -lfontconfig -lexpat -lglitz \
-lm -lpng12 -lXrender -lX11 -lpthread -lXau -lXdmcp \
-L/usr/local/lib -L/usr/X11R6/lib \
-L$(QTDIR)/lib \
-lGL -lGLU -lqt-mt
/*
* DO NOT EDIT THIS FILE - it is generated by Glade.
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <gtk/gtk.h>
#include <iostream>
#include "gtkHelpers.H"
GtkWidget* lookup_widget
(
GtkWidget* widget,
const gchar* widget_name
)
{
GtkWidget *parent, *found_widget;
for(;;)
{
if( GTK_IS_MENU(widget) )
{
parent = gtk_menu_get_attach_widget(GTK_MENU(widget));
std::cout << "Here!" << std::endl;
}
else
{
parent = widget->parent;
std::cout << "Parent " << parent << std::endl;
}
if( !parent )
{
parent =
(GtkWidget*)g_object_get_data
(
G_OBJECT(widget),
"GladeParentKey"
);
}
if( parent == NULL )
break;
widget = parent;
}
std::cout << "Start " << widget << std::endl;
found_widget = (GtkWidget*)g_object_get_data(G_OBJECT(widget), widget_name);
if( !found_widget )
g_warning("Widget not found: %s", widget_name);
return found_widget;
}
/*
* DO NOT EDIT THIS FILE - it is generated by Glade.
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <gtk/gtk.h>
/*
* Standard gettext macros.
*/
#ifdef ENABLE_NLS
# include <libintl.h>
# undef _
# define _(String) dgettext (PACKAGE, String)
# define Q_(String) g_strip_context ((String), gettext (String))
# ifdef gettext_noop
# define N_(String) gettext_noop (String)
# else
# define N_(String) (String)
# endif
#else
# define textdomain(String) (String)
# define gettext(String) (String)
# define dgettext(Domain,Message) (Message)
# define dcgettext(Domain,Message,Type) (Message)
# define bindtextdomain(Domain,Directory) (Domain)
# define _(String) (String)
# define Q_(String) g_strip_context ((String), (String))
# define N_(String) (String)
#endif
/*
* Public Functions.
*/
/*
* This function returns a widget in a component created by Glade.
* Call it with the toplevel widget in the component (i.e. a window/dialog),
* or alternatively any widget in the component, and the name of the widget
* you want returned.
*/
GtkWidget* lookup_widget(GtkWidget* widget, const gchar* widget_name);
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2005-2007 Franjo Juretic
\\/ M anipulation |
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM 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.
OpenFOAM 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 OpenFOAM; if not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Description
\*---------------------------------------------------------------------------*/
#include "meshGenGTK.H"
#include "objectRegistry.H"
#include "Time.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from objectRegistry
meshGenGTK::meshGenGTK
(
label argc, char* argv[], const objectRegistry& reg
)
:
meshGui_(reg),
generalPageFramePtr_(NULL),
mainWindowPtr_(NULL),
localRefinementFramePtr_(NULL),
keepCellsIntersectingPatchesFramePtr_(NULL),
bndLayersFramePtr_(NULL),
localSettingsMainFramePtr_(NULL),
boxRefinementFramePtr_(NULL),
lineRefinementFramePtr_(NULL),
coneRefinementFramePtr_(NULL),
sphereRefinementFramePtr_(NULL),
objectRefinementMainFramePtr_(NULL),
renameBoundaryFramePtr_(NULL)
{
gtk_init(&argc, &argv);
createLocalSettingsMainWindowPage();
createGeneralPage();
createObjectRefinementMainWindowPage();
createRenameBoundaryMainWindowPage();
createMainWindowPage();
gtk_main();
}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
meshGenGTK::~meshGenGTK()
{
meshGui_.writeDict();
gtk_main_quit();
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2005-2007 Franjo Juretic
\\/ M anipulation |
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM 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.
OpenFOAM 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 OpenFOAM; if not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Class
meshGenGTK
Description
Graphical user inteface using GTK
SourceFiles
meshGenGTK.C
\*---------------------------------------------------------------------------*/