Revision
94
Author
leonpegg
Date
2007-01-05 08:37:05 -0800 (Fri, 05 Jan 2007)

Log Message

minor bug fixes

Modified Paths

Diff

Modified: trunk/programs/ide/lib/ide.class.php (93 => 94)


--- trunk/programs/ide/lib/ide.class.php	2007-01-05 15:56:00 UTC (rev 93)
+++ trunk/programs/ide/lib/ide.class.php	2007-01-05 16:37:05 UTC (rev 94)
@@ -235,7 +235,10 @@
 	}
 	
 	public function on_about(){
-		echo "show_about\n";
+		$about = new GtkAboutDialog();
+		$about->set_authors(array('Leon Pegg'));
+		$about->run();
+		//echo "show_about\n";
 	}
 	
 	public function on_new(){
@@ -244,11 +247,11 @@
 	}
 	
 	public function on_open(){
-		echo "open file\n";
+		//echo "open file\n";
 		$opendialog = new CC_Ide_fileopendialog(array('PHP' => '*.php'),$this);
 		if ($opendialog->run() == Gtk::RESPONSE_OK) {
        		$selected_file = $opendialog->get_filename(); // get the selected filename
-    	    echo "selected_file = $selected_file\n";
+    	    //echo "selected_file = $selected_file\n";
     	    $this->notebook->open_file($selected_file);
     	}
     	$opendialog->destroy();
@@ -256,11 +259,11 @@
 	
 	public function on_save(){
 		$this->notebook->save();
-		echo "save file\n";
+		//echo "save file\n";
 	}
 	
 	public function on_help(){
-		echo "show help\n";
+		//echo "show help\n";
 	}
 	
 	public function on_copy(){

Modified: trunk/programs/ide/lib/ide_notebook.class.php (93 => 94)


--- trunk/programs/ide/lib/ide_notebook.class.php	2007-01-05 15:56:00 UTC (rev 93)
+++ trunk/programs/ide/lib/ide_notebook.class.php	2007-01-05 16:37:05 UTC (rev 94)
@@ -19,8 +19,7 @@
 		}else{
 			$this->set_tab_pos(Gtk::POS_BOTTOM);
 		}
-		
-        $this->connect('drag-data-received', array($this, 'on_drop'));
+		$this->connect('drag-data-received', array($this, 'on_drop'));
         $this->drag_dest_set(Gtk::DEST_DEFAULT_DROP, array(array('text/uri-list', 0, 0)), Gdk::ACTION_COPY | Gdk::ACTION_MOVE);
 	}
 
@@ -65,7 +64,6 @@
 	public function open_file($filename){
 		if (file_exists($filename)) {
 			self::$count++;
-			echo "file exists $filename\n";
 			$view = new GtkScrolledWindow();
 			$lang_mgr = new GtkSourceLanguagesManager();
 			# removed lang_mgr to cant seem to get it working since using new builds
@@ -151,6 +149,7 @@
 	
 	public function run(){
 		// RUN FUNCTION NOT COMPLETE YET
+		CC_Os::launch('c:\callicore\php.exe');
 	}
 	
 	public function on_drop($widget, $context, $x, $y, $data, $info, $time){