gtkmm-documentation - master - Tutorial - Swedish

← Back to actions


Uploaded file by Anders Jonsson on 2023-03-05 22:04:02+00:00
Uploaded file by Anders Jonsson on 2023-04-08 09:19:12+00:00
f1# Swedish translation for gtkmm-documentation.f1# Swedish translation for gtkmm-documentation.
n2# Copyright © 2022 gtkmm-documentation's COPYRIGHT HOLDERn2# Copyright © 2022, 2023 gtkmm-documentation's COPYRIGHT HOLDER
3# This file is distributed under the same license as the gtkmm-documentation pac3# This file is distributed under the same license as the gtkmm-documentation pac
>kage.>kage.
n4# Anders Jonsson <anders.jonsson@norsjovallen.se>, 2022.n4# Anders Jonsson <anders.jonsson@norsjovallen.se>, 2022, 2023.
5#5#
6msgid ""6msgid ""
7msgstr ""7msgstr ""
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"
n10"PO-Revision-Date: 2023-03-05 23:03+0100\n"n10"PO-Revision-Date: 2023-04-08 11:18+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"
3369msgstr "Skalkomponenter"3369msgstr "Skalkomponenter"
33703370
3371# TODO: color3371# TODO: color
3372#. (itstool) path: section/para3372#. (itstool) path: section/para
3373#: C/index-in.docbook:11853373#: C/index-in.docbook:1185
n3374#, fuzzyn
3375msgid ""3374msgid ""
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."
57435742
5744#. (itstool) path: chapter/para5743#. (itstool) path: chapter/para
5745#: C/index-in.docbook:23665744#: C/index-in.docbook:2366
n5746#, fuzzyn
5747msgid ""5745msgid ""
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."
5751msgstr ""5749msgstr ""
n5752"Kapitlet <link xlink:href=\"https://docs.gtk.org/gtk4/input-handling."n5750"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."
57555753
5756#. (itstool) path: chapter/para5754#. (itstool) path: chapter/para
5757#: C/index-in.docbook:23715755#: C/index-in.docbook:2371
5758msgid ""5756msgid ""
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 "
5781"classname>, <classname>Gtk:DirectoryList</classname> and <classname>Pango::"5779"classname>, <classname>Gtk:DirectoryList</classname> and <classname>Pango::"
5782"FontMap</classname>."5780"FontMap</classname>."
5783msgstr ""5781msgstr ""
5784"Datamodellen är en klass som implementerar <classname>Gio::ListModel</"5782"Datamodellen är en klass som implementerar <classname>Gio::ListModel</"
5785"classname>-gränssnittet. Exempel på sådana klasser är <classname>Gio::"5783"classname>-gränssnittet. Exempel på sådana klasser är <classname>Gio::"
n5786"ListStore</classname> (inte att förväxlas med de föråldrade <classname>Gtk::"n5784"ListStore</classname> (inte att förväxlas med den föråldrade <classname>Gtk::"
5787"ListStore</classname>), <classname>Gtk:StringList</classname>, "5785"ListStore</classname>), <classname>Gtk:StringList</classname>, "
5788"<classname>Gtk:DirectoryList</classname> och <classname>Pango::FontMap</"5786"<classname>Gtk:DirectoryList</classname> och <classname>Pango::FontMap</"
5789"classname>."5787"classname>."
57905788
5791#. (itstool) path: section/para5789#. (itstool) path: section/para
5792#: C/index-in.docbook:23875790#: C/index-in.docbook:2387
n5793#, fuzzyn
5794msgid ""5791msgid ""
5795"The elements in a model are called <emphasis>items</emphasis>. All items are "5792"The elements in a model are called <emphasis>items</emphasis>. All items are "
5796"instances of a subclass of <classname>Glib::Object</classname>. For "5793"instances of a subclass of <classname>Glib::Object</classname>. For "
5797"instance, you might have a <classname>ColumnView</classname> with one "5794"instance, you might have a <classname>ColumnView</classname> with one "
5798"integer and one text column, like so:"5795"integer and one text column, like so:"
5799msgstr ""5796msgstr ""
n5800"Modellen för en <classname>DropDown</classname> kan definieras och fyllas i "n5797"Elementen i en modell kallas <emphasis>objekt</emphasis>. Alla objekt är "
5801"exakt som för en <classname>ListView</classname> eller en "5798"instanser av en underklass till <classname>Glib::Object</classname>. "
5802"<classname>ColumnView</classname>. Den måste vara en underklass till "5799"Exempelvis kan du ha en <classname>ColumnView</classname> med ett heltal och "
5803"<classname>Glib::Object</classname>. Exempelvis kan du ha en "5800"en textkolumn, så här:"
5804"<classname>DropDown</classname> med ett heltal och en textkolumn, så här:"
58055801
5806#. (itstool) path: section/programlisting5802#. (itstool) path: section/programlisting
5807#: C/index-in.docbook:2393 C/index-in.docbook:33915803#: C/index-in.docbook:2393 C/index-in.docbook:3391
5808#, fuzzy, no-wrap5804#, fuzzy, no-wrap
5809#| msgid ""5805#| msgid ""
5911"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"5907"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
5912"classGtk_1_1DirectoryList.html\">Referens för DirectoryList</link>"5908"classGtk_1_1DirectoryList.html\">Referens för DirectoryList</link>"
59135909
5914#. (itstool) path: section/title5910#. (itstool) path: section/title
5915#: C/index-in.docbook:24275911#: C/index-in.docbook:2427
n5916#, fuzzyn
5917msgid "The Selection Model"5912msgid "The Selection Model"
n5918msgstr "Selection"n5913msgstr "Markeringsmodellen"
59195914
5920#. (itstool) path: section/para5915#. (itstool) path: section/para
5921#: C/index-in.docbook:24295916#: C/index-in.docbook:2429
n5922#, fuzzyn
5923#| msgid ""
5924#| "If you use an <classname>Gtk::ApplicationWindow</classname>, you don't "
5925#| "have to create your own action group. <classname>Gio::ActionGroup</"
5926#| "classname> and <classname>Gio::ActionMap</classname> are base classes of "
5927#| "<classname>Gtk::ApplicationWindow</classname>."
5928msgid ""5917msgid ""
5929"The selection model is a class that implements the <classname>Gtk::"5918"The selection model is a class that implements the <classname>Gtk::"
5930"SelectionModel</classname> interface. You can choose between "5919"SelectionModel</classname> interface. You can choose between "
5931"<classname>NoSelection</classname>, <classname>SingleSelection</classname> "5920"<classname>NoSelection</classname>, <classname>SingleSelection</classname> "
5932"and <classname>MultiSelection</classname>."5921"and <classname>MultiSelection</classname>."
5933msgstr ""5922msgstr ""
n5934"Om du använder ett <classname>Gtk::ApplicationWindow</classname> behöver du "n5923"Markeringsmodellen är en klass som implementerar gränssnittet "
5935"inte skapa din egen åtgärdsgrupp. <classname>Gio::ActionGroup</classname> "5924"<classname>Gtk::SelectionModel</classname>. You can choose between "
5936"och <classname>Gio::ActionMap</classname> är basklasser för <classname>Gtk::"5925"<classname>NoSelection</classname>, <classname>SingleSelection</classname> "
5937"ApplicationWindow</classname>."5926"and <classname>MultiSelection</classname>."
59385927
5939#. (itstool) path: section/para5928#. (itstool) path: section/para
5940#: C/index-in.docbook:24345929#: C/index-in.docbook:2434
5941msgid ""5930msgid ""
5942"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"5931"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6071msgctxt "_"6060msgctxt "_"
6072msgid ""6061msgid ""
6073"external ref='figures/listmodel_listview.png' "6062"external ref='figures/listmodel_listview.png' "
6074"md5='5e49d159f43fdc5242998713bdedafc8'"6063"md5='5e49d159f43fdc5242998713bdedafc8'"
6075msgstr ""6064msgstr ""
n6076"external ref='figures/textview.png' md5='451e30f66cc32c4231bb6bc442cf0d2f'"n6065"external ref='figures/listmodel_listview.png' "
6066"md5='5e49d159f43fdc5242998713bdedafc8'"
60776067
6078#. (itstool) path: section/para6068#. (itstool) path: section/para
6079#: C/index-in.docbook:24906069#: C/index-in.docbook:2490
6080msgid ""6070msgid ""
6081"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6071"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
6114msgctxt "_"6104msgctxt "_"
6115msgid ""6105msgid ""
6116"external ref='figures/listmodel_gridview.png' "6106"external ref='figures/listmodel_gridview.png' "
6117"md5='0d87e962deacc452f32513f0d5e07e04'"6107"md5='0d87e962deacc452f32513f0d5e07e04'"
6118msgstr ""6108msgstr ""
n6119"external ref='figures/treeview_list.png' "n6109"external ref='figures/listmodel_gridview.png' "
6120"md5='60e5e4ecb284d0cdc53373fe0ec858ee'"6110"md5='0d87e962deacc452f32513f0d5e07e04'"
61216111
6122#. (itstool) path: section/para6112#. (itstool) path: section/para
6123#: C/index-in.docbook:25146113#: C/index-in.docbook:2514
6124msgid ""6114msgid ""
6125"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6115"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
6162msgctxt "_"6152msgctxt "_"
6163msgid ""6153msgid ""
6164"external ref='figures/listmodel_columnview.png' "6154"external ref='figures/listmodel_columnview.png' "
6165"md5='fd8445f1904773397a7252bf843e2c38'"6155"md5='fd8445f1904773397a7252bf843e2c38'"
6166msgstr ""6156msgstr ""
n6167"external ref='figures/aspectframe.png' md5='9d8aac9521789ed27036a97a22fedece'"n6157"external ref='figures/listmodel_columnview.png' "
6158"md5='fd8445f1904773397a7252bf843e2c38'"
61686159
6169#. (itstool) path: section/para6160#. (itstool) path: section/para
6170#: C/index-in.docbook:25386161#: C/index-in.docbook:2538
6171msgid ""6162msgid ""
6172"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6163"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
6265msgctxt "_"6256msgctxt "_"
6266msgid ""6257msgid ""
6267"external ref='figures/listmodel_sort.png' "6258"external ref='figures/listmodel_sort.png' "
6268"md5='9f6ee5fc4c2f03172fefc8027d97063e'"6259"md5='9f6ee5fc4c2f03172fefc8027d97063e'"
6269msgstr ""6260msgstr ""
n6270"external ref='figures/treeview_list.png' "n6261"external ref='figures/listmodel_sort.png' "
6271"md5='60e5e4ecb284d0cdc53373fe0ec858ee'"6262"md5='9f6ee5fc4c2f03172fefc8027d97063e'"
62726263
6273#. (itstool) path: section/para6264#. (itstool) path: section/para
6274#: C/index-in.docbook:25766265#: C/index-in.docbook:2576
6275msgid ""6266msgid ""
6276"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6267"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
6345msgctxt "_"6336msgctxt "_"
6346msgid ""6337msgid ""
6347"external ref='figures/listmodel_filter.png' "6338"external ref='figures/listmodel_filter.png' "
6348"md5='b1407e88c99b90c2ad7698ce30a46a1e'"6339"md5='b1407e88c99b90c2ad7698ce30a46a1e'"
6349msgstr ""6340msgstr ""
n6350"external ref='figures/recentfiles.png' md5='2ca280c98b5c8822ad48ca40f7ce0bb4'"n6341"external ref='figures/listmodel_filter.png' "
6342"md5='b1407e88c99b90c2ad7698ce30a46a1e'"
63516343
6352#. (itstool) path: section/para6344#. (itstool) path: section/para
6353#: C/index-in.docbook:26046345#: C/index-in.docbook:2604
6354msgid ""6346msgid ""
6355"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6347"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
6419msgctxt "_"6411msgctxt "_"
6420msgid ""6412msgid ""
6421"external ref='figures/listmodel_tree.png' "6413"external ref='figures/listmodel_tree.png' "
6422"md5='656307ee78c8fd9ac379f2a0d01b8a81'"6414"md5='656307ee78c8fd9ac379f2a0d01b8a81'"
6423msgstr ""6415msgstr ""
n6424"external ref='figures/notebook.png' md5='b46c25388d4c250b0ab737f71f82d81b'"n6416"external ref='figures/listmodel_tree.png' "
6417"md5='656307ee78c8fd9ac379f2a0d01b8a81'"
64256418
6426#. (itstool) path: section/para6419#. (itstool) path: section/para
6427#: C/index-in.docbook:26356420#: C/index-in.docbook:2635
6428msgid ""6421msgid ""
6429"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6422"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
7805msgstr ""7798msgstr ""
7806"<classname>Gtk::TreeView</classname> implementerar redan enkelt dra-och-"7799"<classname>Gtk::TreeView</classname> implementerar redan enkelt dra-och-"
7807"släpp när den används med <classname>Gtk::ListStore</classname>- eller "7800"släpp när den används med <classname>Gtk::ListStore</classname>- eller "
7808"<classname>Gtk::TreeStore</classname>-modellerna (sedan gtk 4.8). Om "7801"<classname>Gtk::TreeStore</classname>-modellerna (sedan gtk 4.8). Om "
7809"nödvändigt låter den dig också implementera mer komplext beteende när objekt "7802"nödvändigt låter den dig också implementera mer komplext beteende när objekt "
n7810"dras och släpps, med det vanliga <link linkend=\"chapter-draganddrop\">Dra "n7803"dras och släpps, med det vanliga <link linkend=\"chapter-draganddrop\">dra "
7811"och släpp</link>-API:t."7804"och släpp</link>-API:t."
78127805
7813#. (itstool) path: section/title7806#. (itstool) path: section/title
7814#: C/index-in.docbook:32067807#: C/index-in.docbook:3206
7815#, fuzzy7808#, fuzzy
14210"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 "
14211"<methodname>move_item()</methodname>."14204"<methodname>move_item()</methodname>."
1421214205
14213#. (itstool) path: section/para14206#. (itstool) path: section/para
14214#: C/index-in.docbook:614814207#: C/index-in.docbook:6148
n14215#, fuzzyn
14216msgid ""14208msgid ""
14217"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 "
14218"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 "
14219"accomplished with <methodname>remove_item()</methodname>, the latter with "14211"accomplished with <methodname>remove_item()</methodname>, the latter with "
14220"<methodname>purge_items()</methodname>."14212"<methodname>purge_items()</methodname>."
14414msgstr "Tangentbordshändelser"14406msgstr "Tangentbordshändelser"
1441514407
14416#. (itstool) path: chapter/para14408#. (itstool) path: chapter/para
14417#: C/index-in.docbook:624814409#: C/index-in.docbook:6248
14418#, fuzzy14410#, fuzzy
nn14411#| 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."
14419msgid ""14416msgid ""
14420"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 "
14421"described in the <link linkend=\"sec-eventsignals\">Event signals</link> "14418"described in the <link linkend=\"sec-eventsignals\">Event signals</link> "
14422"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 "
14423"to show how events can be used in a program."14420"to show how events can be used in a program."
14443"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 "
14444"hantera sådana händelser."14441"hantera sådana händelser."
1444514442
14446#. (itstool) path: section/para14443#. (itstool) path: section/para
14447#: C/index-in.docbook:626114444#: C/index-in.docbook:6261
n14448#, fuzzyn
14449msgid ""14445msgid ""
14450"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 "
14451"event. For key press events the arguments are (<type>guint</type> "14447"event. For key press events the arguments are (<type>guint</type> "
14452"<varname>keyval</varname>, <type>guint</type> <varname>keycode</varname>, "14448"<varname>keyval</varname>, <type>guint</type> <varname>keycode</varname>, "
14453"<type>Gdk::ModifierType</type> <varname>state</varname>). As described in "14449"<type>Gdk::ModifierType</type> <varname>state</varname>). As described in "
14795"<classname>Gtk::GestureZoom</classname>, <classname>Gtk::GestureSwipe</"14791"<classname>Gtk::GestureZoom</classname>, <classname>Gtk::GestureSwipe</"
14796"classname>, <classname>Gtk::GestureLongPress</classname>."14792"classname>, <classname>Gtk::GestureLongPress</classname>."
14797msgstr ""14793msgstr ""
14798"Datamodellen är en klass som implementerar <classname>Gio::ListModel</"14794"Datamodellen är en klass som implementerar <classname>Gio::ListModel</"
14799"classname>-gränssnittet. Exempel på sådana klasser är <classname>Gio::"14795"classname>-gränssnittet. Exempel på sådana klasser är <classname>Gio::"
n14800"ListStore</classname> (inte att förväxlas med de föråldrade <classname>Gtk::"n14796"ListStore</classname> (inte att förväxlas med den föråldrade <classname>Gtk::"
14801"ListStore</classname>), <classname>Gtk:StringList</classname>, "14797"ListStore</classname>), <classname>Gtk:StringList</classname>, "
14802"<classname>Gtk:DirectoryList</classname> och <classname>Pango::FontMap</"14798"<classname>Gtk:DirectoryList</classname> och <classname>Pango::FontMap</"
14803"classname>."14799"classname>."
1480414800
14805#. (itstool) path: section/para14801#. (itstool) path: section/para
15402"run()</methodname> eller <methodname>Gtk::Application::"15398"run()</methodname> eller <methodname>Gtk::Application::"
15403"make_window_and_run()</methodname> returnerar."15399"make_window_and_run()</methodname> returnerar."
1540415400
15405#. (itstool) path: section/title15401#. (itstool) path: section/title
15406#: C/index-in.docbook:668915402#: C/index-in.docbook:6689
n15407#, fuzzyn
15408msgid "Dynamic allocation with new and delete"15403msgid "Dynamic allocation with new and delete"
15409msgstr "Dynamisk allokering med new och delete"15404msgstr "Dynamisk allokering med new och delete"
1541015405
15411#. (itstool) path: section/para15406#. (itstool) path: section/para
15412#: C/index-in.docbook:669015407#: C/index-in.docbook:6690
15658"smartpekaren <classname>Glib::RefPtr&lt;&gt;</classname>. Cairomm har sin "15653"smartpekaren <classname>Glib::RefPtr&lt;&gt;</classname>. Cairomm har sin "
15659"egen smartpekare, <classname>Cairo::RefPtr&lt;&gt;</classname>."15654"egen smartpekare, <classname>Cairo::RefPtr&lt;&gt;</classname>."
1566015655
15661#. (itstool) path: section/para15656#. (itstool) path: section/para
15662#: C/index-in.docbook:679515657#: C/index-in.docbook:6795
n15663#, fuzzyn
15664msgid ""15658msgid ""
15665"Objects such as <classname>Gdk::Pixbuf</classname> can only be instantiated "15659"Objects such as <classname>Gdk::Pixbuf</classname> can only be instantiated "
15666"with a <methodname>create()</methodname> function. For instance,"15660"with a <methodname>create()</methodname> function. For instance,"
15667msgstr ""15661msgstr ""
15668"Objekt som <classname>Gdk::Pixbuf</classname> kan endast instansieras med en "15662"Objekt som <classname>Gdk::Pixbuf</classname> kan endast instansieras med en "
21070"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 "
21071"detta hack i <application>gtkmm</application>."21065"detta hack i <application>gtkmm</application>."
2107221066
21073#. (itstool) path: section/title21067#. (itstool) path: section/title
21074#: C/index-in.docbook:922921068#: C/index-in.docbook:9229
n21075#, fuzzyn
21076msgid "Event signals"21069msgid "Event signals"
21077msgstr "Händelsesignaler"21070msgstr "Händelsesignaler"
2107821071
21079#. (itstool) path: section/para21072#. (itstool) path: section/para
21080#: C/index-in.docbook:923121073#: C/index-in.docbook:9231
n21081#, fuzzyn
21082msgid ""21074msgid ""
21083"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 "
21084"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. "
21085"Instead, you use a subclass of <classname>Gtk::EventController</classname>, "21077"Instead, you use a subclass of <classname>Gtk::EventController</classname>, "
21086"such as <classname>Gtk::EventControllerKey</classname> or <classname>Gtk::"21078"such as <classname>Gtk::EventControllerKey</classname> or <classname>Gtk::"
21087"GestureClick</classname>. Event controllers can be added to a widget with "21079"GestureClick</classname>. Event controllers can be added to a widget with "
21088"<methodname>Gtk::Widget::add_controller()</methodname>."21080"<methodname>Gtk::Widget::add_controller()</methodname>."
21089msgstr ""21081msgstr ""
21090"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, "
n21091"exempelvis en tangenttryckning eller en musrörelse. Vanligen hanterare du "n21083"exempelvis en tangenttryckning eller en musrörelse. Vanligen hanterar du "
21092"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 "
21093"<classname>Gtk::EventController</classname>, som <classname>Gtk::"21085"<classname>Gtk::EventController</classname>, som <classname>Gtk::"
21094"EventControllerKey</classname> eller <classname>Gtk::GestureClick</"21086"EventControllerKey</classname> eller <classname>Gtk::GestureClick</"
21095"classname>. Händelsekontroller kan läggas till i en komponent med "21087"classname>. Händelsekontroller kan läggas till i en komponent med "
21096"<methodname>Gtk::Widget::add_controller()</methodname>."21088"<methodname>Gtk::Widget::add_controller()</methodname>."
21163msgstr ""21155msgstr ""
21164"\n"21156"\n"
21165"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"
21166"Gtk::Button button(\"label\");\n"21158"Gtk::Button button(\"label\");\n"
21167"auto controller = Gtk::GestureClick::create();\n"21159"auto controller = Gtk::GestureClick::create();\n"
nn21160"controller-&gt;set_propagation_phase(Gtk::PropagationPhase::CAPTURE);\n"
21168"controller-&gt;signal_pressed().connect(sigc::ptr_fun(&amp;on_button_press));\n21161"controller-&gt;signal_pressed().connect(sigc::ptr_fun(&amp;on_button_press));\n
>">"
21169"button.add_controller(controller);\n"21162"button.add_controller(controller);\n"
2117021163
21171#. (itstool) path: section/para21164#. (itstool) path: section/para
21172#: C/index-in.docbook:927221165#: C/index-in.docbook:9272
21177"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 "
21178"<methodname>on_button_press()</methodname> att anropas."21171"<methodname>on_button_press()</methodname> att anropas."
2117921172
21180#. (itstool) path: section/para21173#. (itstool) path: section/para
21181#: C/index-in.docbook:927621174#: C/index-in.docbook:9276
nn21175#, fuzzy
21182msgid ""21176msgid ""
21183"The call to <methodname>set_propagation_phase()</methodname> is necessary in "21177"The call to <methodname>set_propagation_phase()</methodname> is necessary in "
21184"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 "
21185"controller, handling button clicks in the capture phase. "21179"controller, handling button clicks in the capture phase. "
21186"<classname>GtkButton</classname> claims the event, meaning that the event is "21180"<classname>GtkButton</classname> claims the event, meaning that the event is "
21187"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 "
21188"default."21182"default."
21189msgstr ""21183msgstr ""
nn21184"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."
2119021190
21191#. (itstool) path: section/title21191#. (itstool) path: section/title
21192#: C/index-in.docbook:928521192#: C/index-in.docbook:9285
21193msgid "Signal Handler sequence"21193msgid "Signal Handler sequence"
21194msgstr "Signalhanterarsekvens"21194msgstr "Signalhanterarsekvens"
22027"<application>jhbuild</application>, you should copy the sample "22027"<application>jhbuild</application>, you should copy the sample "
22028"<application>jhbuild</application> configuration file into your home "22028"<application>jhbuild</application> configuration file into your home "
22029"directory by executing the following command from the <application>jhbuild</"22029"directory by executing the following command from the <application>jhbuild</"
22030"application> directory: <_:screen-1/>"22030"application> directory: <_:screen-1/>"
22031msgstr ""22031msgstr ""
nn22032"För att konfigurera <application>jhbuild</application> kan du följa de "
22032"Följ de grundläggande installationsinstruktionerna från <link xlink:"22033"grundläggande installationsinstruktionerna från <link xlink:href=\"https://"
22033"href=\"https://gnome.pages.gitlab.gnome.org/jhbuild/\">handboken för "22034"gnome.pages.gitlab.gnome.org/jhbuild/\">handboken för jhbuild</link>. Efter "
22034"jhbuild</link> för att konfigurera <application>jhbuild</application>. Efter "
22035"att du har installerat <application>jhbuild</application> bör du kopiera "22035"att du har installerat <application>jhbuild</application> bör du kopiera "
22036"<application>jhbuild</application>-exempelkonfigurationsfilen till din "22036"<application>jhbuild</application>-exempelkonfigurationsfilen till din "
n22037"hemkatalog genom att exekvera följande kommando från katalogen "n22037"hemkatalog genom att exekvera följande kommando från <application>jhbuild</"
22038"<application>jhbuild</application>: <_:screen-1/>"22038"application>-katalogen: <_:screen-1/>"
2203922039
22040#. (itstool) path: section/para22040#. (itstool) path: section/para
22041#: C/index-in.docbook:964122041#: C/index-in.docbook:9641
22042msgid ""22042msgid ""
22043"The <application>gtkmm</application> module is defined in the "22043"The <application>gtkmm</application> module is defined in the "
27494#~ "This compiler error might look like this: <_:programlisting-1/> or this: "27494#~ "This compiler error might look like this: <_:programlisting-1/> or this: "
27495#~ "<_:programlisting-2/>"27495#~ "<_:programlisting-2/>"
27496#~ msgstr ""27496#~ msgstr ""
27497#~ "Detta kompileringsfel kan se ut så här: <_:programlisting-1/> eller så "27497#~ "Detta kompileringsfel kan se ut så här: <_:programlisting-1/> eller så "
27498#~ "här: <_:programlisting-2/>"27498#~ "här: <_:programlisting-2/>"
t27499 t
27500#~ msgid "Widget Name and CSS Node Name"
27501#~ msgstr "Komponentnamn och CSS-nodnamn"
27502 
27503#, fuzzy
27504#~ msgid ""
27505#~ "<classname>MessageDialog</classname> is a convenience class, used to "
27506#~ "create simple, standard message dialogs, with a message and buttons for "
27507#~ "user response. You can specify the type of message and the text in the "
27508#~ "constructor, as well as specifying standard buttons via the <type>Gtk::"
27509#~ "ButtonsType</type> enum."
27510#~ msgstr ""
27511#~ "<classname>MessageDialog</classname> är en bekvämlighetsklass, som "
27512#~ "används för att skapa enkla standardmeddelandedialoger med ett meddelande "
27513#~ "och knappar för svar från användaren. Du kan ange meddelandetypen och "
27514#~ "texten i konstruktorn, såväl som att ange standardknappar via <type>Gtk::"
27515#~ "ButtonsType</type>-uppräkningen."
27516 
27517#~ msgid ""
27518#~ "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
27519#~ "tree/master/examples/book/dialogs/messagedialog\">Source Code</link>"
27520#~ msgstr ""
27521#~ "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
27522#~ "tree/master/examples/book/dialogs/messagedialog\">Källkod</link>"
27523 
27524#~ msgid ""
27525#~ "The <classname>FileChooserDialog</classname> is suitable for use with "
27526#~ "\"Open\" or \"Save\" menu items."
27527#~ msgstr ""
27528#~ "<classname>FileChooserDialog</classname> är lämplig för användning med "
27529#~ "menyobjekten ”Öppna” eller ”Spara”."
27530 
27531#~ msgid "FileChooser"
27532#~ msgstr "FileChooser"
27533 
27534#, fuzzy
27535#~ msgid ""
27536#~ "The <classname>ColorChooserDialog</classname> allows the user to choose a "
27537#~ "color. The <classname>ColorButton</classname> opens a color selection "
27538#~ "dialog when it is clicked."
27539#~ msgstr ""
27540#~ "<classname>ColorChooserDialog</classname> låter användaren välja en färg. "
27541#~ "<classname>ColorButton</classname> öppnar en färgvalsdialog när den "
27542#~ "klickas på."
27543 
27544#, fuzzy
27545#~ msgid ""
27546#~ "The <classname>FontChooserDialog</classname> allows the user to choose a "
27547#~ "font. The <classname>FontButton</classname> opens a font chooser dialog "
27548#~ "when it is clicked."
27549#~ msgstr ""
27550#~ "<classname>FontChooserDialog</classname> låter användaren välja ett "
27551#~ "typsnitt. <classname>FontButton</classname>-knappen öppnar en "
27552#~ "typsnittsväljardialog när den klickas på."
27553 
27554#~ msgid ""
27555#~ "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
27556#~ "tree/master/examples/book/dialogs/fontchooserdialog\">Source Code</link>"
27557#~ msgstr ""
27558#~ "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
27559#~ "tree/master/examples/book/dialogs/fontchooserdialog\">Källkod</link>"
27560 
27561#, fuzzy
27562#~ msgid ""
27563#~ "Your widget class, whether it's derived directly from <classname>Gtk::"
27564#~ "Widget</classname> or from another widget class, can read some style "
27565#~ "information from a CSS (Cascading Style Sheets) file. The users of your "
27566#~ "widget, or the users of an application program with your widget, can then "
27567#~ "modify the style of your widget without modifying the source code. Useful "
27568#~ "classes are <classname>Gtk::StyleContext</classname> and <classname>Gtk::"
27569#~ "CssProvider</classname>. With the methods of <classname>Gtk::"
27570#~ "StyleContext</classname> you can read the values of your widget's style "
27571#~ "information. CSS files are described in the documentation of "
27572#~ "<application>GTK</application>. The following example shows a simple use "
27573#~ "of <methodname>Gtk::StyleContext::get_padding()</methodname>."
27574#~ msgstr ""
27575#~ "Din komponentklass kan läsa viss stilinformation från en CSS-fil "
27576#~ "(Cascading Style Sheets), oavsett om den härleds direkt från "
27577#~ "<classname>Gtk::Widget</classname> eller från en annan komponentklass. "
27578#~ "Användarna av din komponent, eller användarna av ett program med din "
27579#~ "komponent, kan sedan ändra stilen för din komponent utan att ändra "
27580#~ "källkoden. Användbara klasser är <classname>Gtk::StyleContext</classname> "
27581#~ "och <classname>Gtk::CssProvider</classname>. Med metoderna i "
27582#~ "<classname>Gtk::StyleContext</classname> kan du läsa värden för din "
27583#~ "komponents stilinformation. CSS-filer beskrivs i dokumentationen för "
27584#~ "<application>GTK</application>. Följande exempel visar enkel användning "
27585#~ "av <methodname>Gtk::StyleContext::get_padding()</methodname>."
27586 
27587#, no-wrap
27588#~ msgid ""
27589#~ "\n"
27590#~ "gboolean gtk_icon_view_get_cell_rect(GtkIconView* icon_view,\n"
27591#~ "  GtkTreePath* path, GtkCellRenderer* cell, GdkRectangle* rect);\n"
27592#~ msgstr ""
27593#~ "\n"
27594#~ "gboolean gtk_icon_view_get_cell_rect(GtkIconView* icon_view,\n"
27595#~ "  GtkTreePath* path, GtkCellRenderer* cell, GdkRectangle* rect);\n"
27596 
27597#, no-wrap
27598#~ msgid ""
27599#~ "\n"
27600#~ "_WRAP_METHOD(bool get_cell_rect(const TreeModel::Path&amp; path,\n"
27601#~ "  const CellRenderer&amp; cell, Gdk::Rectangle&amp; rect{&gt;&gt;}) const,\n
>" 
27602#~ "  gtk_icon_view_get_cell_rect)\n"
27603#~ msgstr ""
27604#~ "\n"
27605#~ "_WRAP_METHOD(bool get_cell_rect(const TreeModel::Path&amp; path,\n"
27606#~ "  const CellRenderer&amp; cell, Gdk::Rectangle&amp; rect{&gt;&gt;}) const,\n
>" 
27607#~ "  gtk_icon_view_get_cell_rect)\n"
27608 
27609#, no-wrap
27610#~ msgid ""
27611#~ "\n"
27612#~ "_INITIALIZATION(`Gdk::Rectangle&amp;',`GdkRectangle',`$3 = Glib::wrap(&amp;(
>$4))')\n" 
27613#~ msgstr ""
27614#~ "\n"
27615#~ "_INITIALIZATION(`Gdk::Rectangle&amp;',`GdkRectangle',`$3 = Glib::wrap(&amp;(
>$4))')\n" 
27616 
27617# TODO: Fixed sep 2022?
27618#~ msgid ""
27619#~ "At the time of writing (July 2022) drag-and-drop in <classname>Gtk::"
27620#~ "TreeView</classname>s does not work. See the <link xlink:href=\"https://"
27621#~ "gitlab.gnome.org/GNOME/gtk/-/issues/3649\">gtk#3649 issue</link> for the "
27622#~ "latest info."
27623#~ msgstr ""
27624#~ "I skrivande stund (juli 2022) fungerar inte dra-och-släpp i "
27625#~ "<classname>Gtk::TreeView</classname>. Se <link xlink:href=\"https://"
27626#~ "gitlab.gnome.org/GNOME/gtk/-/issues/3649\">ärendet gtk#3649</link> för "
27627#~ "den senaste informationen."
27628 
27629#~ msgid "An preference dialog"
27630#~ msgstr "En inställningsdialog"

Note: both files are merged with latest POT file.