gtkmm-documentation - master - Tutorial - Swedish

← Back to actions


Uploaded file by Anders Jonsson on 2023-03-06 17:16:08+00:00
Uploaded file by Anders Jonsson on 2023-04-08 09:19:12+00:00
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:26+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 "
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>"
59115909
5912#. (itstool) path: section/title5910#. (itstool) path: section/title
5913#: C/index-in.docbook:24275911#: C/index-in.docbook:2427
n5914#, fuzzyn
5915msgid "The Selection Model"5912msgid "The Selection Model"
n5916msgstr "Selection"n5913msgstr "Markeringsmodellen"
59175914
5918#. (itstool) path: section/para5915#. (itstool) path: section/para
5919#: C/index-in.docbook:24295916#: C/index-in.docbook:2429
n5920#, fuzzyn
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>."
5926msgid ""5917msgid ""
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>."
5931msgstr ""5922msgstr ""
n5932"Om du använder ett <classname>Gtk::ApplicationWindow</classname> behöver du "n5923"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>."
59365927
5937#. (itstool) path: section/para5928#. (itstool) path: section/para
5938#: C/index-in.docbook:24345929#: C/index-in.docbook:2434
5939msgid ""5930msgid ""
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>."
1421414205
14215#. (itstool) path: section/para14206#. (itstool) path: section/para
14216#: C/index-in.docbook:614814207#: C/index-in.docbook:6148
n14217#, fuzzyn
14218msgid ""14208msgid ""
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>."
14416msgstr "Tangentbordshändelser"14406msgstr "Tangentbordshändelser"
1441714407
14418#. (itstool) path: chapter/para14408#. (itstool) path: chapter/para
14419#: C/index-in.docbook:624814409#: C/index-in.docbook:6248
14420#, 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."
14421msgid ""14416msgid ""
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."
1444714442
14448#. (itstool) path: section/para14443#. (itstool) path: section/para
14449#: C/index-in.docbook:626114444#: C/index-in.docbook:6261
n14450#, fuzzyn
14451msgid ""14445msgid ""
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."
1540615400
15407#. (itstool) path: section/title15401#. (itstool) path: section/title
15408#: C/index-in.docbook:668915402#: C/index-in.docbook:6689
n15409#, fuzzyn
15410msgid "Dynamic allocation with new and delete"15403msgid "Dynamic allocation with new and delete"
15411msgstr "Dynamisk allokering med new och delete"15404msgstr "Dynamisk allokering med new och delete"
1541215405
15413#. (itstool) path: section/para15406#. (itstool) path: section/para
15414#: C/index-in.docbook:669015407#: C/index-in.docbook:6690
15660"smartpekaren <classname>Glib::RefPtr&lt;&gt;</classname>. Cairomm har sin "15653"smartpekaren <classname>Glib::RefPtr&lt;&gt;</classname>. Cairomm har sin "
15661"egen smartpekare, <classname>Cairo::RefPtr&lt;&gt;</classname>."15654"egen smartpekare, <classname>Cairo::RefPtr&lt;&gt;</classname>."
1566215655
15663#. (itstool) path: section/para15656#. (itstool) path: section/para
15664#: C/index-in.docbook:679515657#: C/index-in.docbook:6795
n15665#, fuzzyn
15666msgid ""15658msgid ""
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,"
15669msgstr ""15661msgstr ""
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>."
2107421066
21075#. (itstool) path: section/title21067#. (itstool) path: section/title
21076#: C/index-in.docbook:922921068#: C/index-in.docbook:9229
n21077#, fuzzyn
21078msgid "Event signals"21069msgid "Event signals"
21079msgstr "Händelsesignaler"21070msgstr "Händelsesignaler"
2108021071
21081#. (itstool) path: section/para21072#. (itstool) path: section/para
21082#: C/index-in.docbook:923121073#: C/index-in.docbook:9231
n21083#, fuzzyn
21084msgid ""21074msgid ""
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>."
21091msgstr ""21081msgstr ""
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, "
n21093"exempelvis en tangenttryckning eller en musrörelse. Vanligen hanterare du "n21083"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>."
21165msgstr ""21155msgstr ""
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"
nn21160"controller-&gt;set_propagation_phase(Gtk::PropagationPhase::CAPTURE);\n"
21170"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
>">"
21171"button.add_controller(controller);\n"21162"button.add_controller(controller);\n"
2117221163
21173#. (itstool) path: section/para21164#. (itstool) path: section/para
21174#: C/index-in.docbook:927221165#: 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."
2118121172
21182#. (itstool) path: section/para21173#. (itstool) path: section/para
21183#: C/index-in.docbook:927621174#: C/index-in.docbook:9276
nn21175#, fuzzy
21184msgid ""21176msgid ""
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."
21191msgstr ""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."
2119221190
21193#. (itstool) path: section/title21191#. (itstool) path: section/title
21194#: C/index-in.docbook:928521192#: C/index-in.docbook:9285
21195msgid "Signal Handler sequence"21193msgid "Signal Handler sequence"
21196msgstr "Signalhanterarsekvens"21194msgstr "Signalhanterarsekvens"
22029"<application>jhbuild</application>, you should copy the sample "22027"<application>jhbuild</application>, you should copy the sample "
22030"<application>jhbuild</application> configuration file into your home "22028"<application>jhbuild</application> configuration file into your home "
22031"directory by executing the following command from the <application>jhbuild</"22029"directory by executing the following command from the <application>jhbuild</"
22032"application> directory: <_:screen-1/>"22030"application> directory: <_:screen-1/>"
22033msgstr ""22031msgstr ""
nn22032"För att konfigurera <application>jhbuild</application> kan du följa de "
22034"Följ de grundläggande installationsinstruktionerna från <link xlink:"22033"grundläggande installationsinstruktionerna från <link xlink:href=\"https://"
22035"href=\"https://gnome.pages.gitlab.gnome.org/jhbuild/\">handboken för "22034"gnome.pages.gitlab.gnome.org/jhbuild/\">handboken för jhbuild</link>. Efter "
22036"jhbuild</link> för att konfigurera <application>jhbuild</application>. Efter "
22037"att du har installerat <application>jhbuild</application> bör du kopiera "22035"att du har installerat <application>jhbuild</application> bör du kopiera "
22038"<application>jhbuild</application>-exempelkonfigurationsfilen till din "22036"<application>jhbuild</application>-exempelkonfigurationsfilen till din "
t22039"hemkatalog genom att exekvera följande kommando från katalogen "t22037"hemkatalog genom att exekvera följande kommando från <application>jhbuild</"
22040"<application>jhbuild</application>: <_:screen-1/>"22038"application>-katalogen: <_:screen-1/>"
2204122039
22042#. (itstool) path: section/para22040#. (itstool) path: section/para
22043#: C/index-in.docbook:964122041#: C/index-in.docbook:9641
22044msgid ""22042msgid ""
22045"The <application>gtkmm</application> module is defined in the "22043"The <application>gtkmm</application> module is defined in the "

Note: both files are merged with latest POT file.