Re: beginner building application

From: Date: Mon, 28 Aug 2006 15:00:40 +0000
Subject: Re: beginner building application
References: 1 2 3  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-7123@lists.php.net to get a copy of this message
Hello all, So I have tried to go with the 1 php file and 1 glade file apporach and am now stuck. After the user logins successfully, I would like to either destroy or hide the login window and swtich focus or unhide the main application at the same time passing the $dbConnection to the main application Window. Does anyone have any idea how to do this? Apologies for including the .glade and .php file, I am not a native english speaker and am finding problems to get my issue accross. Kind regards, Suomaf == my php file <?php class loginClass extends GtkWindow { function __construct() { parent::__construct(); $this->glade = new GladeXML(dirname(__FILE__) . '/ui/gmsmain.glade','gmsLoginForm'); $this->glade->signal_autoconnect_instance($this); $this->glade->get_widget("roleGtkComboBoxEntry")->set_active(0); } function on_loginButton_clicked(GtkButton $btn) { $loginName = $this->glade->get_widget("loginGtkEntry")->get_text(); $password = $this->glade->get_widget("passwordGtkEntry")->get_text(); $role = $this->glade->get_widget("roleGtkComboBoxEntry")->get_active_text(); $errors = null; if (strlen($loginName) == 0) { $errors .= "Username is missing.\r\n"; } if (strlen($password) == 0) { $errors .= "No password is given.\r\n"; } if (strlen($role) == 0) { $errors .= "Enter a role.\r\n"; } if ($errors !== null) { $dialog = new GtkMessageDialog($wnd, Gtk::DIALOG_MODAL, GTK::MESSAGE_ERROR, GTK::BUTTONS_OK, $errors); $dialog->set_markup("Please make sure all fields are entered:\r\n" . "<span foreground='red'>" .$errors . "</span>"); $dialog->run(); $dialog->destroy(); } else { $dbConnection = ibase_connect('192.168.0.3://opt/interbase/database/GMS/gmsprod.gdb',$loginName,$password,'ISO8859_1',16,3,$role); if (!$dbConnection) { echo "login unsuccessful.\r\n"; } else { echo "login successful\r\n"; //at this point we call the main app and pass $dbConnection to the main app and close this window Gtk::main_quit(); **** I think this is wrong too... I should not close the whole app just this login window } } } function on_clearButton_clicked() { Gtk::main_quit(); } } $myClassInstance = new loginClass(); //Start the main loop Gtk::main() ?> == my glade file <?xml version="1.0" standalone="no"?> <!--*- mode: xml -*--> <!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd"> <glade-interface> <widget class="GtkWindow" id="gmsMainForm"> <property name="visible">True</property> <property name="title" translatable="yes">gms</property> <property name="type">GTK_WINDOW_TOPLEVEL</property> <property name="window_position">GTK_WIN_POS_CENTER</property> <property name="modal">False</property> <property name="default_width">800</property> <property name="default_height">600</property> <property name="resizable">True</property> <property name="destroy_with_parent">False</property> <property name="decorated">True</property> <property name="skip_taskbar_hint">False</property> <property name="skip_pager_hint">False</property> <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property> <property name="gravity">GDK_GRAVITY_NORTH_WEST</property> <property name="focus_on_map">True</property> <property name="urgency_hint">False</property> <signal name="destroy" handler="gtk::main_quit" last_modification_time="Fri, 25 Aug 2006 02:39:22 GMT"/> <child> <widget class="GtkVBox" id="vbox1"> <property name="border_width">5</property> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">5</property> <child> <widget class="GtkMenuBar" id="menubar1"> <property name="visible">True</property> <property name="pack_direction">GTK_PACK_DIRECTION_LTR</property> <property name="child_pack_direction">GTK_PACK_DIRECTION_LTR</property> <child> <widget class="GtkMenuItem" id="menuitem1"> <property name="visible">True</property> <property name="label" translatable="yes">_File</property> <property name="use_underline">True</property> <child> <widget class="GtkMenu" id="menuitem1_menu"> <child> <widget class="GtkImageMenuItem" id="quit"> <property name="visible">True</property> <property name="label">gtk-quit</property> <property name="use_stock">True</property> <signal name="activate" handler="menuItemQuit" last_modification_time="Fri, 25 Aug 2006 03:03:47 GMT"/> </widget> </child> </widget> </child> </widget> </child> <child> <widget class="GtkMenuItem" id="menuitem2"> <property name="visible">True</property> <property name="label" translatable="yes">_Edit</property> <property name="use_underline">True</property> <child> <widget class="GtkMenu" id="menuitem2_menu"> <child> <widget class="GtkImageMenuItem" id="cut1"> <property name="visible">True</property> <property name="label">gtk-cut</property> <property name="use_stock">True</property> <signal name="activate" handler="menuItemCut" last_modification_time="Fri, 25 Aug 2006 03:04:53 GMT"/> </widget> </child> <child> <widget class="GtkImageMenuItem" id="copy1"> <property name="visible">True</property> <property name="label">gtk-copy</property> <property name="use_stock">True</property> <signal name="activate" handler="menuItemCopy" last_modification_time="Fri, 25 Aug 2006 03:04:53 GMT"/> </widget> </child> <child> <widget class="GtkImageMenuItem" id="paste1"> <property name="visible">True</property> <property name="label">gtk-paste</property> <property name="use_stock">True</property> <signal name="activate" handler="menuItemPaste" last_modification_time="Fri, 25 Aug 2006 03:04:53 GMT"/> </widget> </child> <child> <widget class="GtkImageMenuItem" id="delete1"> <property name="visible">True</property> <property name="label">gtk-delete</property> <property name="use_stock">True</property> <signal name="activate" handler="menuItemDelete" last_modification_time="Fri, 25 Aug 2006 03:04:53 GMT"/> </widget> </child> </widget> </child> </widget> </child> <child> <widget class="GtkMenuItem" id="menuitemOrders"> <property name="visible">True</property> <property name="label" translatable="yes">_Orders</property> <property name="use_underline">True</property> <child> <widget class="GtkMenu" id="menuitemOrders_menu"> <child> <widget class="GtkMenuItem" id="menuitemStyleInfo"> <property name="visible">True</property> <property name="label" translatable="yes">_Style Info</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuitemStyleInfo_activate" last_modification_time="Fri, 25 Aug 2006 02:57:12 GMT"/> </widget> </child> <child> <widget class="GtkMenuItem" id="menuitemAdviseOrder"> <property name="visible">True</property> <property name="label" translatable="yes">_Advice Order</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuitemAdviseOrder_activate" last_modification_time="Fri, 25 Aug 2006 02:58:06 GMT"/> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemFollowUp"> <property name="visible">True</property> <property name="label" translatable="yes">Follow _Up</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemFollowUp_activate" last_modification_time="Fri, 25 Aug 2006 02:59:11 GMT"/> </widget> </child> <child> <widget class="GtkSeparatorMenuItem" id="separator1"> <property name="visible">True</property> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemCosting"> <property name="visible">True</property> <property name="label" translatable="yes">_Costing</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemCosting_activate" last_modification_time="Fri, 25 Aug 2006 03:00:38 GMT"/> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemBuyerInfo"> <property name="visible">True</property> <property name="label" translatable="yes">_Buyer Info</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemBuyerInfo_activate" last_modification_time="Fri, 25 Aug 2006 03:02:34 GMT"/> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemAgentInfo"> <property name="visible">True</property> <property name="label" translatable="yes">A_gent Info</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemAgentInfo_activate" last_modification_time="Fri, 25 Aug 2006 03:02:34 GMT"/> </widget> </child> </widget> </child> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemPurchse"> <property name="visible">True</property> <property name="label" translatable="yes">_Purchase</property> <property name="use_underline">True</property> <child> <widget class="GtkMenu" id="menuItemPurchse_menu"> <child> <widget class="GtkMenuItem" id="menuItemFabric"> <property name="visible">True</property> <property name="label" translatable="yes">_Fabric</property> <property name="use_underline">True</property> <child> <widget class="GtkMenu" id="menuItemFabric_menu"> <child> <widget class="GtkMenuItem" id="menuItemFabricPO"> <property name="visible">True</property> <property name="label" translatable="yes">_Fabric PO</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemFabricPO_activate" last_modification_time="Fri, 25 Aug 2006 03:09:55 GMT"/> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemFabricPOAdditional"> <property name="visible">True</property> <property name="label" translatable="yes">Fabric PO _Additional</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemFabricPOAdditional_activate" last_modification_time="Fri, 25 Aug 2006 03:10:21 GMT"/> </widget> </child> </widget> </child> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemAccessoryPO"> <property name="visible">True</property> <property name="label" translatable="yes">_Accessory PO</property> <property name="use_underline">True</property> <child> <widget class="GtkMenu" id="menuItemAccessoryPO_menu"> <child> <widget class="GtkMenuItem" id="menuItemMutliItems"> <property name="visible">True</property> <property name="label" translatable="yes">_Multi Items</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemMutliItems_activate" last_modification_time="Fri, 25 Aug 2006 03:12:29 GMT"/> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemSingleItem"> <property name="visible">True</property> <property name="label" translatable="yes">_Single Item</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemSingleItem_activate" last_modification_time="Fri, 25 Aug 2006 03:15:15 GMT"/> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemAccessoryShipping"> <property name="visible">True</property> <property name="label" translatable="yes">Accessory _Shipping</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemAccessoryShipping_activate" last_modification_time="Fri, 25 Aug 2006 03:17:08 GMT"/> </widget> </child> </widget> </child> </widget> </child> <child> <widget class="GtkSeparatorMenuItem" id="separator2"> <property name="visible">True</property> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemAccessoryList"> <property name="visible">True</property> <property name="label" translatable="yes">Accessory _List</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemAccessoryList_activate" last_modification_time="Fri, 25 Aug 2006 03:19:12 GMT"/> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemSupplier"> <property name="visible">True</property> <property name="label" translatable="yes">_Supplier</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemSupplier_activate" last_modification_time="Fri, 25 Aug 2006 03:19:12 GMT"/> </widget> </child> </widget> </child> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemExport"> <property name="visible">True</property> <property name="label" translatable="yes">_Export</property> <property name="use_underline">True</property> <child> <widget class="GtkMenu" id="menuItemExport_menu"> <child> <widget class="GtkMenuItem" id="menuItemInvoice"> <property name="visible">True</property> <property name="label" translatable="yes">_Invoice</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemInvoice_activate" last_modification_time="Fri, 25 Aug 2006 03:23:54 GMT"/> </widget> </child> <child> <widget class="GtkSeparatorMenuItem" id="separator3"> <property name="visible">True</property> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemSeller"> <property name="visible">True</property> <property name="label" translatable="yes">_Seller</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemSeller_activate" last_modification_time="Fri, 25 Aug 2006 03:25:28 GMT"/> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemManufacturer"> <property name="visible">True</property> <property name="label" translatable="yes">_Manufacturer</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemManufacturer_activate" last_modification_time="Fri, 25 Aug 2006 03:25:28 GMT"/> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemConsignee"> <property name="visible">True</property> <property name="label" translatable="yes">_Consignee</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemConsignee_activate" last_modification_time="Fri, 25 Aug 2006 03:25:28 GMT"/> </widget> </child> <child> <widget class="GtkSeparatorMenuItem" id="separator4"> <property name="visible">True</property> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemQuotaCountry"> <property name="visible">True</property> <property name="label" translatable="yes">_Quota Country</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemQuotaCountry_activate" last_modification_time="Fri, 25 Aug 2006 03:28:20 GMT"/> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemQuotaProductionCountry"> <property name="visible">True</property> <property name="label" translatable="yes">Quota _Production Country</property> <property name="use_underline">True</property> <child> <widget class="GtkMenu" id="menuItemQuotaProductionCountry_menu"> <child> <widget class="GtkMenuItem" id="menuItemQuotaProductionCountryPrice"> <property name="visible">True</property> <property name="label" translatable="yes">Price</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemQuotaProductionCountryPrice_activate" last_modification_time="Fri, 25 Aug 2006 03:28:20 GMT"/> </widget> </child> </widget> </child> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemQuotaBuyingSelling"> <property name="visible">True</property> <property name="label" translatable="yes">Quota _Buying / Selling</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemQuotaBuyingSelling_activate" last_modification_time="Fri, 25 Aug 2006 03:28:20 GMT"/> </widget> </child> </widget> </child> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemMisc"> <property name="visible">True</property> <property name="label" translatable="yes">_Misc</property> <property name="use_underline">True</property> <child> <widget class="GtkMenu" id="menuItemMisc_menu"> <child> <widget class="GtkMenuItem" id="menuItemAOType"> <property name="visible">True</property> <property name="label" translatable="yes">AO Type</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemAOType_activate" last_modification_time="Fri, 25 Aug 2006 03:35:57 GMT"/> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemPOType"> <property name="visible">True</property> <property name="label" translatable="yes">PO Type</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemPOType_activate" last_modification_time="Fri, 25 Aug 2006 03:35:57 GMT"/> </widget> </child> <child> <widget class="GtkSeparatorMenuItem" id="separator5"> <property name="visible">True</property> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemSize"> <property name="visible">True</property> <property name="label" translatable="yes">Size</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemSize_activate" last_modification_time="Fri, 25 Aug 2006 03:35:57 GMT"/> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemFabricConstruction"> <property name="visible">True</property> <property name="label" translatable="yes">Fabric Construction</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemFabricConstruction_activate" last_modification_time="Fri, 25 Aug 2006 03:35:57 GMT"/> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemFiberType"> <property name="visible">True</property> <property name="label" translatable="yes">Fiber Type</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemFiberType_activate" last_modification_time="Fri, 25 Aug 2006 03:35:57 GMT"/> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemClassAccessory"> <property name="visible">True</property> <property name="label" translatable="yes">Class Accessory</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemClassAccessory_activate" last_modification_time="Fri, 25 Aug 2006 03:35:57 GMT"/> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemGroupProduct"> <property name="visible">True</property> <property name="label" translatable="yes">Group Product</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemGroupProduct_activate" last_modification_time="Fri, 25 Aug 2006 03:35:57 GMT"/> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemPayMethod"> <property name="visible">True</property> <property name="label" translatable="yes">Pay Method</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemPayMethod_activate" last_modification_time="Fri, 25 Aug 2006 03:35:57 GMT"/> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemMeasurementUnit"> <property name="visible">True</property> <property name="label" translatable="yes">Mesurement Unit</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemMeasurementUnit_activate" last_modification_time="Fri, 25 Aug 2006 03:35:57 GMT"/> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemCountry"> <property name="visible">True</property> <property name="label" translatable="yes">Country</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemCountry_activate" last_modification_time="Fri, 25 Aug 2006 03:35:57 GMT"/> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemApplicationDefaults"> <property name="visible">True</property> <property name="label" translatable="yes">Application Defaults</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemApplicationDefaults_activate" last_modification_time="Fri, 25 Aug 2006 03:35:57 GMT"/> </widget> </child> </widget> </child> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemReport"> <property name="visible">True</property> <property name="label" translatable="yes">_Report</property> <property name="use_underline">True</property> <child> <widget class="GtkMenu" id="menuItemReport_menu"> <child> <widget class="GtkMenuItem" id="menuItemFabricReport"> <property name="visible">True</property> <property name="label" translatable="yes">_Fabric Report</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemFabricReport_activate" last_modification_time="Fri, 25 Aug 2006 03:35:57 GMT"/> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemAccessoryReport"> <property name="visible">True</property> <property name="label" translatable="yes">_Accessory Report</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemAccessoryReport_activate" last_modification_time="Fri, 25 Aug 2006 03:35:57 GMT"/> </widget> </child> <child> <widget class="GtkSeparatorMenuItem" id="separator6"> <property name="visible">True</property> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemMasterSchedule"> <property name="visible">True</property> <property name="label" translatable="yes">_Master Schedule</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemMasterSchedule_activate" last_modification_time="Fri, 25 Aug 2006 03:35:57 GMT"/> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemMasterSketch"> <property name="visible">True</property> <property name="label" translatable="yes">Master S_ketch</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemMasterSketch_activate" last_modification_time="Fri, 25 Aug 2006 03:35:57 GMT"/> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemProductionSheet"> <property name="visible">True</property> <property name="label" translatable="yes">_Production Sheet</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemProductionSheet_activate" last_modification_time="Fri, 25 Aug 2006 03:35:57 GMT"/> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemFollowUpReport"> <property name="visible">True</property> <property name="label" translatable="yes">F_ollow Up Report</property> <property name="use_underline">True</property> <signal name="activate" handler="on_menuItemFollowUpReport_activate" last_modification_time="Fri, 25 Aug 2006 03:35:57 GMT"/> </widget> </child> </widget> </child> </widget> </child> <child> <widget class="GtkMenuItem" id="menuItemHelp"> <property name="visible">True</property> <property name="label" translatable="yes">_Help</property> <property name="use_underline">True</property> <child> <widget class="GtkMenu" id="menuItemHelp_menu"> <child> <widget class="GtkMenuItem" id="menuItemAbout"> <property name="visible">True</property> <property name="label" translatable="yes">_About</property> <property name="use_underline">True</property> <signal name="activate" handler="menuItemAbout" last_modification_time="Fri, 25 Aug 2006 03:04:53 GMT"/> </widget> </child> </widget> </child> </widget> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkVBox" id="vbox2"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">10</property> <child> <widget class="GtkHBox" id="hbox3"> <property name="visible">True</property> <property name="homogeneous">True</property> <property name="spacing">5</property> <child> <widget class="GtkCalendar" id="calendar1"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="display_options">GTK_CALENDAR_SHOW_HEADING|GTK_CALENDAR_SHOW_DAY_NAMES</property> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> <child> <widget class="GtkScrolledWindow" id="scrolledwindow1"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="hscrollbar_policy">GTK_POLICY_ALWAYS</property> <property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property> <property name="shadow_type">GTK_SHADOW_IN</property> <property name="window_placement">GTK_CORNER_TOP_LEFT</property> <child> <widget class="GtkTreeView" id="treeview1"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="headers_visible">True</property> <property name="rules_hint">False</property> <property name="reorderable">False</property> <property name="enable_search">True</property> <property name="fixed_height_mode">False</property> <property name="hover_selection">False</property> <property name="hover_expand">False</property> </widget> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> <child> <widget class="GtkHBox" id="hbox4"> <property name="border_width">10</property> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">1</property> <child> <widget class="GtkLabel" id="label2"> <property name="visible">True</property> <property name="label" translatable="yes">To Do List</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkEntry" id="toDoItemEntry"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="editable">False</property> <property name="visibility">True</property> <property name="max_length">0</property> <property name="text" translatable="yes"></property> <property name="has_frame">True</property> <property name="invisible_char">•</property> <property name="activates_default">False</property> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> <child> <widget class="GtkComboBoxEntry" id="priorityComboBoxEntry"> <property name="visible">True</property> <property name="items" translatable="yes">KIV Normal Urgent Top Prioty</property> <property name="add_tearoffs">False</property> <property name="has_frame">True</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkButton" id="AddButton"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">_Add</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <signal name="clicked" handler="on_AddButton_clicked" last_modification_time="Fri, 25 Aug 2006 04:23:32 GMT"/> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> <child> <widget class="GtkButton" id="clearButton"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">_Clear</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <signal name="clicked" handler="on_clearButton_clicked" last_modification_time="Fri, 25 Aug 2006 04:23:43 GMT"/> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> <child> <widget class="GtkStatusbar" id="statusbar1"> <property name="visible">True</property> <property name="has_resize_grip">True</property> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> </widget> </child> </widget> <widget class="GtkWindow" id="gmsLoginForm"> <property name="visible">True</property> <property name="title" translatable="yes">gms::login</property> <property name="type">GTK_WINDOW_TOPLEVEL</property> <property name="window_position">GTK_WIN_POS_CENTER</property> <property name="modal">False</property> <property name="default_width">150</property> <property name="default_height">100</property> <property name="resizable">True</property> <property name="destroy_with_parent">False</property> <property name="decorated">True</property> <property name="skip_taskbar_hint">False</property> <property name="skip_pager_hint">False</property> <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property> <property name="gravity">GDK_GRAVITY_NORTH_WEST</property> <property name="focus_on_map">True</property> <property name="urgency_hint">False</property> <signal name="destroy" handler="gtk::main_quit" last_modification_time="Mon, 28 Aug 2006 09:42:18 GMT"/> <child> <widget class="GtkVBox" id="vbox3"> <property name="border_width">5</property> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">5</property> <child> <widget class="GtkHBox" id="hbox5"> <property name="border_width">5</property> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">5</property> <child> <widget class="GtkLabel" id="loginGtkLabel"> <property name="visible">True</property> <property name="label" translatable="yes">Login</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> <child> <widget class="GtkEntry" id="loginGtkEntry"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="editable">True</property> <property name="visibility">True</property> <property name="max_length">0</property> <property name="text" translatable="yes"></property> <property name="has_frame">True</property> <property name="invisible_char">•</property> <property name="activates_default">False</property> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">True</property> </packing> </child> <child> <widget class="GtkHBox" id="hbox6"> <property name="border_width">5</property> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">5</property> <child> <widget class="GtkLabel" id="passwordGtkLabel"> <property name="visible">True</property> <property name="label" translatable="yes">Password</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> <child> <widget class="GtkEntry" id="passwordGtkEntry"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="editable">True</property> <property name="visibility">False</property> <property name="max_length">0</property> <property name="text" translatable="yes"></property> <property name="has_frame">True</property> <property name="invisible_char">•</property> <property name="activates_default">False</property> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">True</property> </packing> </child> <child> <widget class="GtkHBox" id="hbox7"> <property name="border_width">5</property> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">5</property> <child> <widget class="GtkLabel" id="RoleGtkLabel"> <property name="visible">True</property> <property name="label" translatable="yes">Role</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> <child> <widget class="GtkComboBoxEntry" id="roleGtkComboBoxEntry"> <property name="visible">True</property> <property name="items" translatable="yes">supervisor merchandiser</property> <property name="add_tearoffs">False</property> <property name="has_frame">True</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">True</property> </packing> </child> <child> <widget class="GtkHBox" id="hbox8"> <property name="border_width">5</property> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">5</property> <child> <widget class="GtkButton" id="loginButton"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">_Login</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <signal name="clicked" handler="on_loginButton_clicked" last_modification_time="Mon, 28 Aug 2006 10:05:57 GMT"/> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> <child> <widget class="GtkButton" id="clearButton"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">_Clear</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <signal name="clicked" handler="on_clearButton_clicked" last_modification_time="Mon, 28 Aug 2006 10:06:05 GMT"/> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> </widget> </child> </widget> </glade-interface> -- View this message in context: http://www.nabble.com/beginner-building-application-tf2167911.html#a6021846 Sent from the Php - GTK - General forum at Nabble.com.

« previous php.gtk.general (#7123) next »