get_text(); if (!class_exists($class)){ $error = "Vyraz '".$class."' neni tridou."; $dialog = new GtkMessageDialog($wnd, Gtk::DIALOG_MODAL, Gtk::MESSAGE_WARNING, Gtk::BUTTONS_OK, $error); $dialog->set_markup("Vyraz '".$class."' neni tridou."); $dialog->run(); $dialog->destroy(); } else { $methods = get_class_methods($class); sort($methods); $out = ''; foreach ($methods as $key => $value) $out .= "$key : $value\n"; $frame->set_label($class.' methods'); $label->set_text($out); } } $wnd = new GtkWindow(); $vb = new GtkVBox(); {$wnd->add($vb);} $inputName = new GtkEntry(); {$vb->pack_start($inputName, false);} $button = new GtkButton('Show methods'); {$vb->pack_start($button, false);} $sw = new GtkScrolledWindow(); {$vb->pack_start($sw);} $frame = new GtkFrame(' methods'); {$sw->add_with_viewport($frame);} $label = new GtkLabel(); {$frame->add($label);} $wnd->set_title('Object method inspector'); $wnd->set_size_request(480, 600 ); $wnd->set_position(Gtk::WIN_POS_CENTER); $wnd->connect_simple('destroy', array('gtk', 'main_quit')); $button->connect_simple('clicked', 'scanMethods', $wnd, $inputName, $frame, $label); $label->set_alignment(0.05,0.05); $wnd->show_all(); Gtk::main(); ?>