gtkmm-documentation - master - Tutorial - Swedish
Uploaded file by Anders Jonsson on 2023-03-06 17:16:08+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-05 23:26+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 " | ||
5741 | "ändras samt då listan lägger till och tar bort objekt. De fungerar förstås " | 5740 | "ändras samt då listan lägger till och tar bort objekt. De fungerar förstås " | ||
5742 | "precis lika bra med statiska data." | 5741 | "precis lika bra med statiska data." | ||
5743 | 5742 | ||||
5744 | #. (itstool) path: chapter/para | 5743 | #. (itstool) path: chapter/para | ||
5745 | #: C/index-in.docbook:2366 | 5744 | #: C/index-in.docbook:2366 | ||
n | 5746 | #, fuzzy | n | ||
5747 | msgid "" | 5745 | msgid "" | ||
5748 | "The <link xlink:href=\"https://docs.gtk.org/gtk4/section-list-widget." | 5746 | "The <link xlink:href=\"https://docs.gtk.org/gtk4/section-list-widget." | ||
5749 | "html\">List Widget Overview</link> chapter in the GTK documentation contains " | 5747 | "html\">List Widget Overview</link> chapter in the GTK documentation contains " | ||
5750 | "more information about list widgets." | 5748 | "more information about list widgets." | ||
5751 | msgstr "" | 5749 | msgstr "" | ||
n | 5752 | "Kapitlet <link xlink:href=\"https://docs.gtk.org/gtk4/input-handling." | n | 5750 | "Kapitlet <link xlink:href=\"https://docs.gtk.org/gtk4/section-list-widget." |
5753 | "html\">Input Handling</link> i GTK-dokumentationen beskriver hantering av " | 5751 | "html\">List Widget Overview</link> i GTK-dokumentationen innehåller mer " | ||
5754 | "användarinmatning mer detaljerat." | 5752 | "information om listkomponenter." | ||
5755 | 5753 | ||||
5756 | #. (itstool) path: chapter/para | 5754 | #. (itstool) path: chapter/para | ||
5757 | #: C/index-in.docbook:2371 | 5755 | #: C/index-in.docbook:2371 | ||
5758 | msgid "" | 5756 | msgid "" | ||
5759 | "Some examples are shown in this chapter. There are more examples in the " | 5757 | "Some examples are shown in this chapter. There are more examples in the " | ||
5909 | "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/" | 5907 | "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/" | ||
5910 | "classGtk_1_1DirectoryList.html\">Referens för DirectoryList</link>" | 5908 | "classGtk_1_1DirectoryList.html\">Referens för DirectoryList</link>" | ||
5911 | 5909 | ||||
5912 | #. (itstool) path: section/title | 5910 | #. (itstool) path: section/title | ||
5913 | #: C/index-in.docbook:2427 | 5911 | #: C/index-in.docbook:2427 | ||
n | 5914 | #, fuzzy | n | ||
5915 | msgid "The Selection Model" | 5912 | msgid "The Selection Model" | ||
n | 5916 | msgstr "Selection" | n | 5913 | msgstr "Markeringsmodellen" |
5917 | 5914 | ||||
5918 | #. (itstool) path: section/para | 5915 | #. (itstool) path: section/para | ||
5919 | #: C/index-in.docbook:2429 | 5916 | #: C/index-in.docbook:2429 | ||
n | 5920 | #, fuzzy | n | ||
5921 | #| msgid "" | ||||
5922 | #| "If you use an <classname>Gtk::ApplicationWindow</classname>, you don't " | ||||
5923 | #| "have to create your own action group. <classname>Gio::ActionGroup</" | ||||
5924 | #| "classname> and <classname>Gio::ActionMap</classname> are base classes of " | ||||
5925 | #| "<classname>Gtk::ApplicationWindow</classname>." | ||||
5926 | msgid "" | 5917 | msgid "" | ||
5927 | "The selection model is a class that implements the <classname>Gtk::" | 5918 | "The selection model is a class that implements the <classname>Gtk::" | ||
5928 | "SelectionModel</classname> interface. You can choose between " | 5919 | "SelectionModel</classname> interface. You can choose between " | ||
5929 | "<classname>NoSelection</classname>, <classname>SingleSelection</classname> " | 5920 | "<classname>NoSelection</classname>, <classname>SingleSelection</classname> " | ||
5930 | "and <classname>MultiSelection</classname>." | 5921 | "and <classname>MultiSelection</classname>." | ||
5931 | msgstr "" | 5922 | msgstr "" | ||
n | 5932 | "Om du använder ett <classname>Gtk::ApplicationWindow</classname> behöver du " | n | 5923 | "Markeringsmodellen är en klass som implementerar gränssnittet " |
5933 | "inte skapa din egen åtgärdsgrupp. <classname>Gio::ActionGroup</classname> " | 5924 | "<classname>Gtk::SelectionModel</classname>. You can choose between " | ||
5934 | "och <classname>Gio::ActionMap</classname> är basklasser för <classname>Gtk::" | 5925 | "<classname>NoSelection</classname>, <classname>SingleSelection</classname> " | ||
5935 | "ApplicationWindow</classname>." | 5926 | "and <classname>MultiSelection</classname>." | ||
5936 | 5927 | ||||
5937 | #. (itstool) path: section/para | 5928 | #. (itstool) path: section/para | ||
5938 | #: C/index-in.docbook:2434 | 5929 | #: C/index-in.docbook:2434 | ||
5939 | msgid "" | 5930 | msgid "" | ||
5940 | "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/" | 5931 | "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/" | ||
14212 | "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 " | ||
14213 | "<methodname>move_item()</methodname>." | 14204 | "<methodname>move_item()</methodname>." | ||
14214 | 14205 | ||||
14215 | #. (itstool) path: section/para | 14206 | #. (itstool) path: section/para | ||
14216 | #: C/index-in.docbook:6148 | 14207 | #: C/index-in.docbook:6148 | ||
n | 14217 | #, fuzzy | n | ||
14218 | msgid "" | 14208 | msgid "" | ||
14219 | "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 " | ||
14220 | "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 " | ||
14221 | "accomplished with <methodname>remove_item()</methodname>, the latter with " | 14211 | "accomplished with <methodname>remove_item()</methodname>, the latter with " | ||
14222 | "<methodname>purge_items()</methodname>." | 14212 | "<methodname>purge_items()</methodname>." | ||
14416 | msgstr "Tangentbordshändelser" | 14406 | msgstr "Tangentbordshändelser" | ||
14417 | 14407 | ||||
14418 | #. (itstool) path: chapter/para | 14408 | #. (itstool) path: chapter/para | ||
14419 | #: C/index-in.docbook:6248 | 14409 | #: C/index-in.docbook:6248 | ||
14420 | #, 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." | ||||
14421 | msgid "" | 14416 | msgid "" | ||
14422 | "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 " | ||
14423 | "described in the <link linkend=\"sec-eventsignals\">Event signals</link> " | 14418 | "described in the <link linkend=\"sec-eventsignals\">Event signals</link> " | ||
14424 | "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 " | ||
14425 | "to show how events can be used in a program." | 14420 | "to show how events can be used in a program." | ||
14445 | "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 " | ||
14446 | "hantera sådana händelser." | 14441 | "hantera sådana händelser." | ||
14447 | 14442 | ||||
14448 | #. (itstool) path: section/para | 14443 | #. (itstool) path: section/para | ||
14449 | #: C/index-in.docbook:6261 | 14444 | #: C/index-in.docbook:6261 | ||
n | 14450 | #, fuzzy | n | ||
14451 | msgid "" | 14445 | msgid "" | ||
14452 | "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 " | ||
14453 | "event. For key press events the arguments are (<type>guint</type> " | 14447 | "event. For key press events the arguments are (<type>guint</type> " | ||
14454 | "<varname>keyval</varname>, <type>guint</type> <varname>keycode</varname>, " | 14448 | "<varname>keyval</varname>, <type>guint</type> <varname>keycode</varname>, " | ||
14455 | "<type>Gdk::ModifierType</type> <varname>state</varname>). As described in " | 14449 | "<type>Gdk::ModifierType</type> <varname>state</varname>). As described in " | ||
15404 | "run()</methodname> eller <methodname>Gtk::Application::" | 15398 | "run()</methodname> eller <methodname>Gtk::Application::" | ||
15405 | "make_window_and_run()</methodname> returnerar." | 15399 | "make_window_and_run()</methodname> returnerar." | ||
15406 | 15400 | ||||
15407 | #. (itstool) path: section/title | 15401 | #. (itstool) path: section/title | ||
15408 | #: C/index-in.docbook:6689 | 15402 | #: C/index-in.docbook:6689 | ||
n | 15409 | #, fuzzy | n | ||
15410 | msgid "Dynamic allocation with new and delete" | 15403 | msgid "Dynamic allocation with new and delete" | ||
15411 | msgstr "Dynamisk allokering med new och delete" | 15404 | msgstr "Dynamisk allokering med new och delete" | ||
15412 | 15405 | ||||
15413 | #. (itstool) path: section/para | 15406 | #. (itstool) path: section/para | ||
15414 | #: C/index-in.docbook:6690 | 15407 | #: C/index-in.docbook:6690 | ||
15660 | "smartpekaren <classname>Glib::RefPtr<></classname>. Cairomm har sin " | 15653 | "smartpekaren <classname>Glib::RefPtr<></classname>. Cairomm har sin " | ||
15661 | "egen smartpekare, <classname>Cairo::RefPtr<></classname>." | 15654 | "egen smartpekare, <classname>Cairo::RefPtr<></classname>." | ||
15662 | 15655 | ||||
15663 | #. (itstool) path: section/para | 15656 | #. (itstool) path: section/para | ||
15664 | #: C/index-in.docbook:6795 | 15657 | #: C/index-in.docbook:6795 | ||
n | 15665 | #, fuzzy | n | ||
15666 | msgid "" | 15658 | msgid "" | ||
15667 | "Objects such as <classname>Gdk::Pixbuf</classname> can only be instantiated " | 15659 | "Objects such as <classname>Gdk::Pixbuf</classname> can only be instantiated " | ||
15668 | "with a <methodname>create()</methodname> function. For instance," | 15660 | "with a <methodname>create()</methodname> function. For instance," | ||
15669 | msgstr "" | 15661 | msgstr "" | ||
15670 | "Objekt som <classname>Gdk::Pixbuf</classname> kan endast instansieras med en " | 15662 | "Objekt som <classname>Gdk::Pixbuf</classname> kan endast instansieras med en " | ||
21072 | "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 " | ||
21073 | "detta hack i <application>gtkmm</application>." | 21065 | "detta hack i <application>gtkmm</application>." | ||
21074 | 21066 | ||||
21075 | #. (itstool) path: section/title | 21067 | #. (itstool) path: section/title | ||
21076 | #: C/index-in.docbook:9229 | 21068 | #: C/index-in.docbook:9229 | ||
n | 21077 | #, fuzzy | n | ||
21078 | msgid "Event signals" | 21069 | msgid "Event signals" | ||
21079 | msgstr "Händelsesignaler" | 21070 | msgstr "Händelsesignaler" | ||
21080 | 21071 | ||||
21081 | #. (itstool) path: section/para | 21072 | #. (itstool) path: section/para | ||
21082 | #: C/index-in.docbook:9231 | 21073 | #: C/index-in.docbook:9231 | ||
n | 21083 | #, fuzzy | n | ||
21084 | msgid "" | 21074 | msgid "" | ||
21085 | "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 " | ||
21086 | "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. " | ||
21087 | "Instead, you use a subclass of <classname>Gtk::EventController</classname>, " | 21077 | "Instead, you use a subclass of <classname>Gtk::EventController</classname>, " | ||
21088 | "such as <classname>Gtk::EventControllerKey</classname> or <classname>Gtk::" | 21078 | "such as <classname>Gtk::EventControllerKey</classname> or <classname>Gtk::" | ||
21089 | "GestureClick</classname>. Event controllers can be added to a widget with " | 21079 | "GestureClick</classname>. Event controllers can be added to a widget with " | ||
21090 | "<methodname>Gtk::Widget::add_controller()</methodname>." | 21080 | "<methodname>Gtk::Widget::add_controller()</methodname>." | ||
21091 | msgstr "" | 21081 | msgstr "" | ||
21092 | "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 | 21093 | "exempelvis en tangenttryckning eller en musrörelse. Vanligen hanterare du " | n | 21083 | "exempelvis en tangenttryckning eller en musrörelse. Vanligen hanterar du " |
21094 | "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 " | ||
21095 | "<classname>Gtk::EventController</classname>, som <classname>Gtk::" | 21085 | "<classname>Gtk::EventController</classname>, som <classname>Gtk::" | ||
21096 | "EventControllerKey</classname> eller <classname>Gtk::GestureClick</" | 21086 | "EventControllerKey</classname> eller <classname>Gtk::GestureClick</" | ||
21097 | "classname>. Händelsekontroller kan läggas till i en komponent med " | 21087 | "classname>. Händelsekontroller kan läggas till i en komponent med " | ||
21098 | "<methodname>Gtk::Widget::add_controller()</methodname>." | 21088 | "<methodname>Gtk::Widget::add_controller()</methodname>." | ||
21165 | msgstr "" | 21155 | msgstr "" | ||
21166 | "\n" | 21156 | "\n" | ||
21167 | "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" | ||
21168 | "Gtk::Button button(\"label\");\n" | 21158 | "Gtk::Button button(\"label\");\n" | ||
21169 | "auto controller = Gtk::GestureClick::create();\n" | 21159 | "auto controller = Gtk::GestureClick::create();\n" | ||
n | n | 21160 | "controller->set_propagation_phase(Gtk::PropagationPhase::CAPTURE);\n" | ||
21170 | "controller->signal_pressed().connect(sigc::ptr_fun(&on_button_press));\n | 21161 | "controller->signal_pressed().connect(sigc::ptr_fun(&on_button_press));\n | ||
> | " | > | " | ||
21171 | "button.add_controller(controller);\n" | 21162 | "button.add_controller(controller);\n" | ||
21172 | 21163 | ||||
21173 | #. (itstool) path: section/para | 21164 | #. (itstool) path: section/para | ||
21174 | #: C/index-in.docbook:9272 | 21165 | #: C/index-in.docbook:9272 | ||
21179 | "När musen är ovanför knappen och en musknapp trycks ned kommer " | 21170 | "När musen är ovanför knappen och en musknapp trycks ned kommer " | ||
21180 | "<methodname>on_button_press()</methodname> att anropas." | 21171 | "<methodname>on_button_press()</methodname> att anropas." | ||
21181 | 21172 | ||||
21182 | #. (itstool) path: section/para | 21173 | #. (itstool) path: section/para | ||
21183 | #: C/index-in.docbook:9276 | 21174 | #: C/index-in.docbook:9276 | ||
n | n | 21175 | #, fuzzy | ||
21184 | msgid "" | 21176 | msgid "" | ||
21185 | "The call to <methodname>set_propagation_phase()</methodname> is necessary in " | 21177 | "The call to <methodname>set_propagation_phase()</methodname> is necessary in " | ||
21186 | "this case because the <classname>GtkButton</classname> C class adds an event " | 21178 | "this case because the <classname>GtkButton</classname> C class adds an event " | ||
21187 | "controller, handling button clicks in the capture phase. " | 21179 | "controller, handling button clicks in the capture phase. " | ||
21188 | "<classname>GtkButton</classname> claims the event, meaning that the event is " | 21180 | "<classname>GtkButton</classname> claims the event, meaning that the event is " | ||
21189 | "not propagated in the bubble phase, where event controllers handle events by " | 21181 | "not propagated in the bubble phase, where event controllers handle events by " | ||
21190 | "default." | 21182 | "default." | ||
21191 | msgstr "" | 21183 | msgstr "" | ||
t | t | 21184 | "Anropet till <methodname>set_propagation_phase()</methodname> är nödvändigt " | ||
21185 | "i detta fall eftersom C-klassen <classname>GtkButton</classname> lägger till " | ||||
21186 | "en händelsekontroll som hanterar knapptryck i fångstfasen. " | ||||
21187 | "<classname>GtkButton</classname> gör anspråk på händelsen, vilket betyder " | ||||
21188 | "att händelsen inte sprids i bubbelfasen, där händelsekontroller hanterar " | ||||
21189 | "händelser som standard." | ||||
21192 | 21190 | ||||
21193 | #. (itstool) path: section/title | 21191 | #. (itstool) path: section/title | ||
21194 | #: C/index-in.docbook:9285 | 21192 | #: C/index-in.docbook:9285 | ||
21195 | msgid "Signal Handler sequence" | 21193 | msgid "Signal Handler sequence" | ||
21196 | msgstr "Signalhanterarsekvens" | 21194 | msgstr "Signalhanterarsekvens" |
Note: both files are merged with latest POT file.