Commits

afiskon  committed e520c0b

#include "AlchemyTaskWrap_stub.h"

  • Participants
  • Parent commits 3499f15

Comments (0)

Files changed (5)

File build-gui.sh

 ghc -c AlchemyTask.hs
 ghc -c AlchemyTaskWrap.hs
 g++ -c `wx-config --cppflags` gui.cpp
-g++ -c `wx-config --cppflags` main.cpp
+g++ -c `wx-config --cppflags` `./ghc-cppflags.pl` main.cpp
 g++ main.o gui.o AlchemyTaskWrap.o `wx-config --libs` `./ghc-libs.pl` -o main-gui
 # rm *.o
 # rm *.hi

File ghc-cppflags.pl

+#!/usr/bin/env perl
+
+use strict;
+use warnings;
+
+my $libdir = `ghc --print-libdir`;
+chomp($libdir);
+
+print "-I$libdir/include\n";
 	m_staticText1->Wrap( -1 );
 	bSizer3->Add( m_staticText1, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
 	
-	m_startText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0|wxTAB_TRAVERSAL );
+	m_startText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_TAB|wxTAB_TRAVERSAL );
 	bSizer3->Add( m_startText, 1, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
 	
 	m_staticText2 = new wxStaticText( this, wxID_ANY, wxT("Target:"), wxDefaultPosition, wxDefaultSize, 0 );
 	m_staticText2->Wrap( -1 );
 	bSizer3->Add( m_staticText2, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
 	
-	m_targetText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0|wxTAB_TRAVERSAL );
+	m_targetText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_TAB|wxTAB_TRAVERSAL );
 	bSizer3->Add( m_targetText, 1, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
 	
 	bSizer2->Add( bSizer3, 1, wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
                                         <property name="permission">protected</property>
                                         <property name="pos"></property>
                                         <property name="size"></property>
-                                        <property name="style"></property>
+                                        <property name="style">wxTE_PROCESS_TAB</property>
                                         <property name="subclass"></property>
                                         <property name="tooltip"></property>
                                         <property name="validator_data_type"></property>
                                         <property name="permission">protected</property>
                                         <property name="pos"></property>
                                         <property name="size"></property>
-                                        <property name="style"></property>
+                                        <property name="style">wxTE_PROCESS_TAB</property>
                                         <property name="subclass"></property>
                                         <property name="tooltip"></property>
                                         <property name="validator_data_type"></property>
 #include "main.h" 
 #include "gui.h" 
+#include "AlchemyTaskWrap_stub.h"
 
 IMPLEMENT_APP(SolverApp)