Modify extension dir, add Edit menu

This commit is contained in:
Timothy Warren 2012-12-03 14:13:22 -05:00
parent 174f7cd07a
commit abb126c400
2 changed files with 14 additions and 4 deletions

View File

@ -19,10 +19,10 @@
int main(int argc, char *argv[])
{
PHP_EMBED_START_BLOCK(argc,argv)
/* Change extension directory */
zend_alter_ini_entry("extension_dir", sizeof("extension_dir"), ".", sizeof("."), PHP_INI_ALL, PHP_INI_STAGE_RUNTIME);
zend_eval_string(" \
chdir(dirname($argv[0])); \
$name = './wxwidgets.'.PHP_SHLIB_SUFFIX; \
dl($name); \
require ('OpenSQLManager.php'); \
", NULL, "TEST" TSRMLS_CC);
PHP_EMBED_END_BLOCK()

View File

@ -181,7 +181,8 @@ class Main extends \wxFrame {
// Menu Bar Top Items
$top_file_menu = new \wxMenu();
$top_export_menu = new \wxMenu();
$top_edit_menu = new \wxMenu();
//$top_export_menu = new \wxMenu();
$top_help_menu = new \wxMenu();
// File Menu
@ -196,10 +197,19 @@ class Main extends \wxFrame {
$menu_bar->Append($top_file_menu, "&File");
}
// Edit Menu
{
$top_edit_menu->Append(wxID_CUT, "Cut\tCtrl+X", "Cut");
$top_edit_menu->Append(wxID_COPY, "Copy\tCtrl+C", "Copy");
$top_edit_menu->Append(wxID_PASTE, "Paste\tCtrl+V", "Paste");
$menu_bar->Append($top_edit_menu, "&Edit");
}
// Export Menu
{
// Add the top level menu to the menubar
$menu_bar->Append($top_export_menu, "E&xport");
//$menu_bar->Append($top_export_menu, "E&xport");
}
// Help Menu