Modified: trunk/programs/ide/lib/ide.class.php (96 => 97)
--- trunk/programs/ide/lib/ide.class.php 2007-01-05 17:41:47 UTC (rev 96)
+++ trunk/programs/ide/lib/ide.class.php 2007-01-05 17:41:40 UTC (rev 97)
@@ -43,8 +43,7 @@
'edit:redo',
),
'_Tools' => array(
- //'toolbar:toggle',
- //'view:fullscreen',
+ 'tools:preferences',
),
'_View' => array(
//'toolbar:toggle',
@@ -128,6 +127,18 @@
protected function register_actions(){
$actions = CC_Actions::instance();
+ //tools:preferences;
+ $actions->add_action('tools',
+ array(
+ 'type' => 'action',
+ 'name' => 'preferences',
+ 'label' => 'Preferences',
+ 'short-label' => 'Preferences',
+ 'tooltip' => 'Preferences',
+ //'callback' => array($this, 'on_run'),
+ 'image' => 'gtk-properties',
+ )
+ );
$actions->add_action('project',
array(
'type' => 'action',
@@ -237,6 +248,8 @@
public function on_about(){
$about = new GtkAboutDialog();
$about->set_authors(array('Leon Pegg'));
+ $about->set_license(file_get_contents(CC::$dir . docs . DS . 'gpl.txt'));
+ $about->set_version('0.2.0-Dev');
$about->run();
//echo "show_about\n";
}
@@ -247,11 +260,9 @@
}
public function on_open(){
- //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";
$this->notebook->open_file($selected_file);
}
$opendialog->destroy();
Modified: trunk/programs/ide/lib/ide_notebook.class.php (96 => 97)
--- trunk/programs/ide/lib/ide_notebook.class.php 2007-01-05 17:41:47 UTC (rev 96)
+++ trunk/programs/ide/lib/ide_notebook.class.php 2007-01-05 17:41:40 UTC (rev 97)
@@ -18,6 +18,7 @@
}
}else{
$this->set_tab_pos(Gtk::POS_BOTTOM);
+ $config->tab_pos = 'POS_BOTTOM';
}
$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);
@@ -149,7 +150,6 @@
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){