From professional translators, enterprises, web pages and freely available translation repositories.
Επίσης πρωταγωνιστεί σαν yagami light στις ταινίες death note και death note: the last name, που είναι βασισμένες στο ομώνυμο manga.
he stars as light yagami, the leading role in "death note" and ', films based on the manga of the same name.
Last Update: 2016-03-03
Usage Frequency: 1
Quality:
Warning: Contains invisible HTML formatting
#!/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);
Last Update: 2020-04-20
Usage Frequency: 1
Quality:
Warning: Contains invisible HTML formatting
Some human translations with low relevance have been hidden.
Show low-relevance results.