Vous avez cherché: firstname (Grec - Anglais)

Grec

Traduction

firstname

Traduction

Anglais

Traduction
Traduction

Traduisez instantanément des textes, des documents et des voix avec Lara

Traduire maintenant

Contributions humaines

Réalisées par des traducteurs professionnels, des entreprises, des pages web ou traductions disponibles gratuitement.

Ajouter une traduction

Grec

Anglais

Infos

Grec

firstname. familyname@ emea. eudra. org becomes: firstname. familyname@ emea. eu. int

Anglais

firstname. familyname@emea. eudra. org becomes: firstname. familyname@emea. eu. int

Dernière mise à jour : 2011-10-23
Fréquence d'utilisation : 2
Qualité :

Avertissement : cet alignement peut être incorrect.
Veuillez le supprimer, au besoin.

Grec

#!/usr/bin/gjsconst gobject = imports.gi.gobject;const gtk = imports.gi.gtk;const lang = imports.lang;const pango = imports.gi.pango;const treeviewexample = new lang.class({ name: 'treeview example with simple liststore', // Δημιουργία της εφαρμογής αυτής καθεαυτής _init: function() { this.application = new gtk.application({ application_id: 'org.example.jstreeviewsimpleliststore' }); // Σύνδεση των σημάτων connect 'activate' και 'startup'με τις συναρτήσεις επανάκλησης this.application.connect('activate', lang.bind(this, this._onactivate)); this.application.connect('startup', lang.bind(this, this._onstartup)); }, // Η συνάρτηση επανάκλησης για το σήμα 'activate' παρουσιάζει παράθυρο όταν είναι ενεργή _onactivate: function() { this._window.present(); }, // Η συνάρτηση επανάκλησης για το σήμα 'startup' δομεί τη διεπαφή χρήστη _onstartup: function() { this._buildui (); }, // Δόμηση της διεπαφής χρήστη της εφαρμογής _buildui: function() { // Δημιουργία του παραθύρου της εφαρμογής this._window = new gtk.applicationwindow({ application: this.application, window_position: gtk.windowposition.center, default_height: 250, default_width: 100, border_width: 20, title: \"my phone book\"}); // Δημιουργία της υποκείμενης αποθήκης καταλόγων για τον τηλεφωνικό κατάλογο this._liststore = new gtk.liststore (); this._liststore.set_column_types ([ gobject.type_string, gobject.type_string, gobject.type_string, gobject.type_string]); // Δεδομένα που θα πάνε στον τηλεφωνικό κατάλογο let phonebook = [{ name: \"jurg\", surname: \"billeter\", phone: \"555-0123\", description: \"a friendly person.\"}, { name: \"johannes\", surname: \"schmid\", phone: \"555-1234\", description: \"easy phone number to remember.\"}, { name: \"julita\", surname: \"inca\", phone: \"555-2345\", description: \"another friendly person.\"}, { name: \"javier\", surname: \"jardon\", phone: \"555-3456\", description: \"bring fish for his penguins.\"}, { name: \"jason\", surname: \"clinton\", phone: \"555-4567\", description: \"his cake's not a lie.\"}, { name: \"random j.\", surname: \"hacker\", phone: \"555-5678\", description: \"very random!\"}]; // Τοποθέτηση των δεδομένων στον τηλεφωνικό κατάλογο for (let i = 0; i < phonebook.length; i++ ) { let contact = phonebook [i]; this._liststore.set (this._liststore.append(), [0, 1, 2, 3], [contact.name, contact.surname, contact.phone, contact.description]); } // Δημιουργία της προβολής δένδρου this._treeview = new gtk.treeview ({ expand: true, model: this._liststore }); // Δημιουργία των στηλών για το βιβλίο διευθύνσεων let firstname = new gtk.treeviewcolumn ({ title: \"first name\" }); let lastname = new gtk.treeviewcolumn ({ title: \"last name\" }); let phone = new gtk.treeviewcolumn ({ title: \"phone number\" }); // Δημιουργία απεικονιστή κελιού για όταν χρειαστεί έντονη γραφή let bold = new gtk.cellrenderertext ({ weight: pango.weight.bold }); // Δημιουργία απεικονιστή κελιού για κανονικό κείμενο let normal = new gtk.cellrenderertext (); // Συσκευασία των απεικονιστών κελιών σε στήλες firstname.pack_start (bold, true); lastname.pack_start (normal, true); phone.pack_start (normal, true); // Ορισμός κάθε στήλης να μεταφέρει κείμενο από το πρότυπο προβολής δένδρου firstname.add_attribute (bold, \"text\", 0); lastname.add_attribute (normal, \"text\", 1); phone.add_attribute (normal, \"text\", 2); // Εισαγωγή στηλών στην προβολή δένδρου this._treeview.insert_column (firstname, 0); this._treeview.insert_column (lastname, 1); this._treeview.insert_column (phone, 2); // Δημιουργία της ετικέτας που εμφανίζει λεπτομέρειες για το όνομα που επιλέξατε this._label = new gtk.label ({ label: \"\" }); // Λήψη του επιλεγμένου στοιχείου this.selection = this._treeview.get_selection(); // Όταν κάτι νέο επιλέγεται, call _on_changed this.selection.connect ('changed', lang.bind (this, this._onselectionchanged)); // Δημιουργία πλέγματος για οργάνωση όλων μέσα του this._grid = new gtk.grid; // Προσάρτηση της προβολής δένδρου και ετικέτας στο πλέγμα this._grid.attach (this._treeview, 0, 0, 1, 1); this._grid.attach (this._label, 0, 1, 1, 1); // Προσθήκη του πλέγματος στο παράθυρο this._window.add (this._grid); // Εμφάνιση του παραθύρου και όλων των θυγατρικών γραφικών στοιχείων this._window.show_all(); }, _onselectionchanged: function () { // Σύλληψη ενός treeiter που δείχνει στη τρέχουσα επιλογή let [ isselected, model, iter ] = this.selection.get_selected(); // Ορισμός της ετικέτας για ανάγνωση των αποθηκευμένων τιμών στην τρέχουσα επιλογή this._label.set_label (\"\\" + this._liststore.get_value (iter, 0) + \" \" + this._liststore.get_value (iter, 1) + \" \" + this._liststore.get_value (iter, 2) + \"\\" + this._liststore.get_value (iter, 3)); }});// Εκτέλεση της εφαρμογήςlet app = new treeviewexample ();app.application.run (argv);

Anglais

#!/usr/bin/gjsconst gobject = imports.gi.gobject;const gtk = imports.gi.gtk;const lang = imports.lang;const pango = imports.gi.pango;const treeviewexample = new lang.class({ name: 'treeview example with simple liststore', // create the application itself _init: function() { this.application = new gtk.application({ application_id: 'org.example.jstreeviewsimpleliststore' }); // connect 'activate' and 'startup' signals to the callback functions this.application.connect('activate', lang.bind(this, this._onactivate)); this.application.connect('startup', lang.bind(this, this._onstartup)); }, // callback function for 'activate' signal presents window when active _onactivate: function() { this._window.present(); }, // callback function for 'startup' signal builds the ui _onstartup: function() { this._buildui (); }, // build the application's ui _buildui: function() { // create the application window this._window = new gtk.applicationwindow({ application: this.application, window_position: gtk.windowposition.center, default_height: 250, default_width: 100, border_width: 20, title: \"my phone book\"}); // create the underlying liststore for the phonebook this._liststore = new gtk.liststore (); this._liststore.set_column_types ([ gobject.type_string, gobject.type_string, gobject.type_string, gobject.type_string]); // data to go in the phonebook let phonebook = [{ name: \"jurg\", surname: \"billeter\", phone: \"555-0123\", description: \"a friendly person.\"}, { name: \"johannes\", surname: \"schmid\", phone: \"555-1234\", description: \"easy phone number to remember.\"}, { name: \"julita\", surname: \"inca\", phone: \"555-2345\", description: \"another friendly person.\"}, { name: \"javier\", surname: \"jardon\", phone: \"555-3456\", description: \"bring fish for his penguins.\"}, { name: \"jason\", surname: \"clinton\", phone: \"555-4567\", description: \"his cake's not a lie.\"}, { name: \"random j.\", surname: \"hacker\", phone: \"555-5678\", description: \"very random!\"}]; // put the data in the phonebook for (let i = 0; i < phonebook.length; i++ ) { let contact = phonebook [i]; this._liststore.set (this._liststore.append(), [0, 1, 2, 3], [contact.name, contact.surname, contact.phone, contact.description]); } // create the treeview this._treeview = new gtk.treeview ({ expand: true, model: this._liststore }); // create the columns for the address book let firstname = new gtk.treeviewcolumn ({ title: \"first name\" }); let lastname = new gtk.treeviewcolumn ({ title: \"last name\" }); let phone = new gtk.treeviewcolumn ({ title: \"phone number\" }); // create a cell renderer for when bold text is needed let bold = new gtk.cellrenderertext ({ weight: pango.weight.bold }); // create a cell renderer for normal text let normal = new gtk.cellrenderertext (); // pack the cell renderers into the columns firstname.pack_start (bold, true); lastname.pack_start (normal, true); phone.pack_start (normal, true); // set each column to pull text from the treeview's model firstname.add_attribute (bold, \"text\", 0); lastname.add_attribute (normal, \"text\", 1); phone.add_attribute (normal, \"text\", 2); // insert the columns into the treeview this._treeview.insert_column (firstname, 0); this._treeview.insert_column (lastname, 1); this._treeview.insert_column (phone, 2); // create the label that shows details for the name you select this._label = new gtk.label ({ label: \"\" }); // get which item is selected this.selection = this._treeview.get_selection(); // when something new is selected, call _on_changed this.selection.connect ('changed', lang.bind (this, this._onselectionchanged)); // create a grid to organize everything in this._grid = new gtk.grid; // attach the treeview and label to the grid this._grid.attach (this._treeview, 0, 0, 1, 1); this._grid.attach (this._label, 0, 1, 1, 1); // add the grid to the window this._window.add (this._grid); // show the window and all child widgets this._window.show_all(); }, _onselectionchanged: function () { // grab a treeiter pointing to the current selection let [ isselected, model, iter ] = this.selection.get_selected(); // set the label to read off the values stored in the current selection this._label.set_label (\"\\" + this._liststore.get_value (iter, 0) + \" \" + this._liststore.get_value (iter, 1) + \" \" + this._liststore.get_value (iter, 2) + \"\\" + this._liststore.get_value (iter, 3)); }});// run the applicationlet app = new treeviewexample ();app.application.run (argv);

Dernière mise à jour : 2020-04-20
Fréquence d'utilisation : 1
Qualité :

Avertissement : un formatage HTML invisible est présent

Obtenez une traduction de meilleure qualité grâce aux
8,913,950,936 contributions humaines

Les utilisateurs demandent maintenant de l'aide :



Nous utilisons des cookies pour améliorer votre expérience utilisateur sur notre site. En poursuivant votre navigation, vous déclarez accepter leur utilisation. En savoir plus. OK