gtkmm-documentation - master - Tutorial - Swedish
Uploaded file by Anders Jonsson on 2023-03-19 11:40:36+00:00 | Uploaded file by Anders Jonsson on 2023-04-08 04:34:42+00:00 | ||||
---|---|---|---|---|---|
5 | # | 5 | # | ||
6 | msgid "" | 6 | msgid "" | ||
7 | msgstr "" | 7 | msgstr "" | ||
8 | "Project-Id-Version: gtkmm-documentation master\n" | 8 | "Project-Id-Version: gtkmm-documentation master\n" | ||
9 | "POT-Creation-Date: 2025-07-08 14:05+0000\n" | 9 | "POT-Creation-Date: 2025-07-08 14:05+0000\n" | ||
n | 10 | "PO-Revision-Date: 2023-03-19 12:39+0100\n" | n | 10 | "PO-Revision-Date: 2023-04-08 06:34+0200\n" |
11 | "Last-Translator: Anders Jonsson <anders.jonsson@norsjovallen.se>\n" | 11 | "Last-Translator: Anders Jonsson <anders.jonsson@norsjovallen.se>\n" | ||
12 | "Language-Team: Swedish <tp-sv@listor.tp-sv.se>\n" | 12 | "Language-Team: Swedish <tp-sv@listor.tp-sv.se>\n" | ||
13 | "Language: sv\n" | 13 | "Language: sv\n" | ||
14 | "MIME-Version: 1.0\n" | 14 | "MIME-Version: 1.0\n" | ||
15 | "Content-Type: text/plain; charset=UTF-8\n" | 15 | "Content-Type: text/plain; charset=UTF-8\n" | ||
3369 | msgstr "Skalkomponenter" | 3369 | msgstr "Skalkomponenter" | ||
3370 | 3370 | ||||
3371 | # TODO: color | 3371 | # TODO: color | ||
3372 | #. (itstool) path: section/para | 3372 | #. (itstool) path: section/para | ||
3373 | #: C/index-in.docbook:1185 | 3373 | #: C/index-in.docbook:1185 | ||
n | 3374 | #, fuzzy | n | ||
3375 | msgid "" | 3374 | msgid "" | ||
3376 | "<classname>Gtk::Scale</classname> widgets (or \"sliders\") allow the user to " | 3375 | "<classname>Gtk::Scale</classname> widgets (or \"sliders\") allow the user to " | ||
3377 | "visually select and manipulate a value within a specific range. You might " | 3376 | "visually select and manipulate a value within a specific range. You might " | ||
3378 | "use one, for instance, to adjust the magnification level on a zoomed preview " | 3377 | "use one, for instance, to adjust the magnification level on a zoomed preview " | ||
3379 | "of a picture, or to control the brightness of a colour, or to specify the " | 3378 | "of a picture, or to control the brightness of a colour, or to specify the " | ||
14204 | "på en ogiltig plats. Du kan uppdatera ett objekts plats genom att använda " | 14203 | "på en ogiltig plats. Du kan uppdatera ett objekts plats genom att använda " | ||
14205 | "<methodname>move_item()</methodname>." | 14204 | "<methodname>move_item()</methodname>." | ||
14206 | 14205 | ||||
14207 | #. (itstool) path: section/para | 14206 | #. (itstool) path: section/para | ||
14208 | #: C/index-in.docbook:6148 | 14207 | #: C/index-in.docbook:6148 | ||
n | 14209 | #, fuzzy | n | ||
14210 | msgid "" | 14208 | msgid "" | ||
14211 | "In addition to changing a file's URI, you can also remove items from the " | 14209 | "In addition to changing a file's URI, you can also remove items from the " | ||
14212 | "list, either one at a time or by clearing them all at once. The former is " | 14210 | "list, either one at a time or by clearing them all at once. The former is " | ||
14213 | "accomplished with <methodname>remove_item()</methodname>, the latter with " | 14211 | "accomplished with <methodname>remove_item()</methodname>, the latter with " | ||
14214 | "<methodname>purge_items()</methodname>." | 14212 | "<methodname>purge_items()</methodname>." | ||
14408 | msgstr "Tangentbordshändelser" | 14406 | msgstr "Tangentbordshändelser" | ||
14409 | 14407 | ||||
14410 | #. (itstool) path: chapter/para | 14408 | #. (itstool) path: chapter/para | ||
14411 | #: C/index-in.docbook:6248 | 14409 | #: C/index-in.docbook:6248 | ||
14412 | #, fuzzy | 14410 | #, fuzzy | ||
n | n | 14411 | #| msgid "" | ||
14412 | #| "Event signals differ in some ways from other signals. These differences " | ||||
14413 | #| "are described in the <link linkend=\"sec-eventsignals\">Event signals</" | ||||
14414 | #| "link> section in the appendix. Here we will use keyboard events to show " | ||||
14415 | #| "how events can be used in a program." | ||||
14413 | msgid "" | 14416 | msgid "" | ||
14414 | "Event signals differ in some ways from other signals. These differences are " | 14417 | "Event signals differ in some ways from other signals. These differences are " | ||
14415 | "described in the <link linkend=\"sec-eventsignals\">Event signals</link> " | 14418 | "described in the <link linkend=\"sec-eventsignals\">Event signals</link> " | ||
14416 | "section in the appendix. Here we will use keyboard events and mouse events " | 14419 | "section in the appendix. Here we will use keyboard events and mouse events " | ||
14417 | "to show how events can be used in a program." | 14420 | "to show how events can be used in a program." | ||
14437 | "lägga till en händelsekontroll och ansluta en signalhanterare för att " | 14440 | "lägga till en händelsekontroll och ansluta en signalhanterare för att " | ||
14438 | "hantera sådana händelser." | 14441 | "hantera sådana händelser." | ||
14439 | 14442 | ||||
14440 | #. (itstool) path: section/para | 14443 | #. (itstool) path: section/para | ||
14441 | #: C/index-in.docbook:6261 | 14444 | #: C/index-in.docbook:6261 | ||
n | 14442 | #, fuzzy | n | ||
14443 | msgid "" | 14445 | msgid "" | ||
14444 | "The event signal handler will receive arguments that depend on the type of " | 14446 | "The event signal handler will receive arguments that depend on the type of " | ||
14445 | "event. For key press events the arguments are (<type>guint</type> " | 14447 | "event. For key press events the arguments are (<type>guint</type> " | ||
14446 | "<varname>keyval</varname>, <type>guint</type> <varname>keycode</varname>, " | 14448 | "<varname>keyval</varname>, <type>guint</type> <varname>keycode</varname>, " | ||
14447 | "<type>Gdk::ModifierType</type> <varname>state</varname>). As described in " | 14449 | "<type>Gdk::ModifierType</type> <varname>state</varname>). As described in " | ||
15396 | "run()</methodname> eller <methodname>Gtk::Application::" | 15398 | "run()</methodname> eller <methodname>Gtk::Application::" | ||
15397 | "make_window_and_run()</methodname> returnerar." | 15399 | "make_window_and_run()</methodname> returnerar." | ||
15398 | 15400 | ||||
15399 | #. (itstool) path: section/title | 15401 | #. (itstool) path: section/title | ||
15400 | #: C/index-in.docbook:6689 | 15402 | #: C/index-in.docbook:6689 | ||
n | 15401 | #, fuzzy | n | ||
15402 | msgid "Dynamic allocation with new and delete" | 15403 | msgid "Dynamic allocation with new and delete" | ||
15403 | msgstr "Dynamisk allokering med new och delete" | 15404 | msgstr "Dynamisk allokering med new och delete" | ||
15404 | 15405 | ||||
15405 | #. (itstool) path: section/para | 15406 | #. (itstool) path: section/para | ||
15406 | #: C/index-in.docbook:6690 | 15407 | #: C/index-in.docbook:6690 | ||
15652 | "smartpekaren <classname>Glib::RefPtr<></classname>. Cairomm har sin " | 15653 | "smartpekaren <classname>Glib::RefPtr<></classname>. Cairomm har sin " | ||
15653 | "egen smartpekare, <classname>Cairo::RefPtr<></classname>." | 15654 | "egen smartpekare, <classname>Cairo::RefPtr<></classname>." | ||
15654 | 15655 | ||||
15655 | #. (itstool) path: section/para | 15656 | #. (itstool) path: section/para | ||
15656 | #: C/index-in.docbook:6795 | 15657 | #: C/index-in.docbook:6795 | ||
n | 15657 | #, fuzzy | n | ||
15658 | msgid "" | 15658 | msgid "" | ||
15659 | "Objects such as <classname>Gdk::Pixbuf</classname> can only be instantiated " | 15659 | "Objects such as <classname>Gdk::Pixbuf</classname> can only be instantiated " | ||
15660 | "with a <methodname>create()</methodname> function. For instance," | 15660 | "with a <methodname>create()</methodname> function. For instance," | ||
15661 | msgstr "" | 15661 | msgstr "" | ||
15662 | "Objekt som <classname>Gdk::Pixbuf</classname> kan endast instansieras med en " | 15662 | "Objekt som <classname>Gdk::Pixbuf</classname> kan endast instansieras med en " | ||
21064 | "komponenthärledning är väldigt svårt i C. Vi har mycket mindre behov av " | 21064 | "komponenthärledning är väldigt svårt i C. Vi har mycket mindre behov av " | ||
21065 | "detta hack i <application>gtkmm</application>." | 21065 | "detta hack i <application>gtkmm</application>." | ||
21066 | 21066 | ||||
21067 | #. (itstool) path: section/title | 21067 | #. (itstool) path: section/title | ||
21068 | #: C/index-in.docbook:9229 | 21068 | #: C/index-in.docbook:9229 | ||
n | 21069 | #, fuzzy | n | ||
21070 | msgid "Event signals" | 21069 | msgid "Event signals" | ||
21071 | msgstr "Händelsesignaler" | 21070 | msgstr "Händelsesignaler" | ||
21072 | 21071 | ||||
21073 | #. (itstool) path: section/para | 21072 | #. (itstool) path: section/para | ||
21074 | #: C/index-in.docbook:9231 | 21073 | #: C/index-in.docbook:9231 | ||
n | 21075 | #, fuzzy | n | ||
21076 | msgid "" | 21074 | msgid "" | ||
21077 | "Event signals are emitted as a result of some user input, for instance a key " | 21075 | "Event signals are emitted as a result of some user input, for instance a key " | ||
21078 | "press or a mouse motion. Usually you don't handle these events directly. " | 21076 | "press or a mouse motion. Usually you don't handle these events directly. " | ||
21079 | "Instead, you use a subclass of <classname>Gtk::EventController</classname>, " | 21077 | "Instead, you use a subclass of <classname>Gtk::EventController</classname>, " | ||
21080 | "such as <classname>Gtk::EventControllerKey</classname> or <classname>Gtk::" | 21078 | "such as <classname>Gtk::EventControllerKey</classname> or <classname>Gtk::" | ||
21081 | "GestureClick</classname>. Event controllers can be added to a widget with " | 21079 | "GestureClick</classname>. Event controllers can be added to a widget with " | ||
21082 | "<methodname>Gtk::Widget::add_controller()</methodname>." | 21080 | "<methodname>Gtk::Widget::add_controller()</methodname>." | ||
21083 | msgstr "" | 21081 | msgstr "" | ||
21084 | "Händelsesignaler sänds ut som resultat av någon användarinmatning, " | 21082 | "Händelsesignaler sänds ut som resultat av någon användarinmatning, " | ||
n | 21085 | "exempelvis en tangenttryckning eller en musrörelse. Vanligen hanterare du " | n | 21083 | "exempelvis en tangenttryckning eller en musrörelse. Vanligen hanterar du " |
21086 | "inte dessa händelser direkt. I stället använder du en underklass till " | 21084 | "inte dessa händelser direkt. I stället använder du en underklass till " | ||
21087 | "<classname>Gtk::EventController</classname>, som <classname>Gtk::" | 21085 | "<classname>Gtk::EventController</classname>, som <classname>Gtk::" | ||
21088 | "EventControllerKey</classname> eller <classname>Gtk::GestureClick</" | 21086 | "EventControllerKey</classname> eller <classname>Gtk::GestureClick</" | ||
21089 | "classname>. Händelsekontroller kan läggas till i en komponent med " | 21087 | "classname>. Händelsekontroller kan läggas till i en komponent med " | ||
21090 | "<methodname>Gtk::Widget::add_controller()</methodname>." | 21088 | "<methodname>Gtk::Widget::add_controller()</methodname>." | ||
21157 | msgstr "" | 21155 | msgstr "" | ||
21158 | "\n" | 21156 | "\n" | ||
21159 | "void on_button_press(int n_press, double x, double y);\n" | 21157 | "void on_button_press(int n_press, double x, double y);\n" | ||
21160 | "Gtk::Button button(\"label\");\n" | 21158 | "Gtk::Button button(\"label\");\n" | ||
21161 | "auto controller = Gtk::GestureClick::create();\n" | 21159 | "auto controller = Gtk::GestureClick::create();\n" | ||
t | t | 21160 | "controller->set_propagation_phase(Gtk::PropagationPhase::CAPTURE);\n" | ||
21162 | "controller->signal_pressed().connect(sigc::ptr_fun(&on_button_press));\n | 21161 | "controller->signal_pressed().connect(sigc::ptr_fun(&on_button_press));\n | ||
> | " | > | " | ||
21163 | "button.add_controller(controller);\n" | 21162 | "button.add_controller(controller);\n" | ||
21164 | 21163 | ||||
21165 | #. (itstool) path: section/para | 21164 | #. (itstool) path: section/para | ||
21166 | #: C/index-in.docbook:9272 | 21165 | #: C/index-in.docbook:9272 |
Note: both files are merged with latest POT file.