검색어: firstname (그리스어 - 영어)

인적 기여

전문 번역가, 번역 회사, 웹 페이지 및 자유롭게 사용할 수 있는 번역 저장소 등을 활용합니다.

번역 추가

그리스어

영어

정보

그리스어

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

영어

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

마지막 업데이트: 2011-10-23
사용 빈도: 2
품질:

경고: 이 정렬은 잘못되었을 수 있습니다.
잘못된 경우 삭제해 주십시오.

그리스어

#!/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);

영어

#!/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);

마지막 업데이트: 2020-04-20
사용 빈도: 1
품질:

경고: 보이지 않는 HTML 형식이 포함되어 있습니다

인적 기여로
8,877,187,972 더 나은 번역을 얻을 수 있습니다

사용자가 도움을 필요로 합니다:



당사는 사용자 경험을 향상시키기 위해 쿠키를 사용합니다. 귀하께서 본 사이트를 계속 방문하시는 것은 당사의 쿠키 사용에 동의하시는 것으로 간주됩니다. 자세히 보기. 확인