gtkmm-documentation - master - Tutorial - Swedish

← Back to actions


Uploaded file by Anders Jonsson on 2022-08-25 23:52:54+00:00
Uploaded file by Anders Jonsson on 2023-04-08 04:34:42+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: 2022-08-26 01:52+0200\n"n10"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"
16"Content-Transfer-Encoding: 8bit\n"16"Content-Transfer-Encoding: 8bit\n"
17"Plural-Forms: nplurals=2; plural=(n != 1);\n"17"Plural-Forms: nplurals=2; plural=(n != 1);\n"
n18"X-Generator: Poedit 3.1.1\n"n18"X-Generator: Poedit 3.2.2\n"
1919
20#. Put one translator per line, in the form NAME <EMAIL>, YEAR1, YEAR220#. Put one translator per line, in the form NAME <EMAIL>, YEAR1, YEAR2
21msgctxt "_"21msgctxt "_"
22msgid "translator-credits"22msgid "translator-credits"
n23msgstr "Anders Jonsson <anders.jonsson@norsjovallen.se>, 2022"n23msgstr "Anders Jonsson <anders.jonsson@norsjovallen.se>, 2022, 2023"
2424
25#. (itstool) path: info/title25#. (itstool) path: info/title
26#: C/index-in.docbook:4626#: C/index-in.docbook:46
27msgid "Programming with <application>gtkmm</application> 4"27msgid "Programming with <application>gtkmm</application> 4"
28msgstr "Programmering med <application>gtkmm</application> 4"28msgstr "Programmering med <application>gtkmm</application> 4"
36"<personname><firstname>Murray</firstname><surname>Cumming</surname></"36"<personname><firstname>Murray</firstname><surname>Cumming</surname></"
37"personname>"37"personname>"
3838
39#. (itstool) path: authorgroup/author39#. (itstool) path: authorgroup/author
40#: C/index-in.docbook:5140#: C/index-in.docbook:51
n41#, fuzzyn
42msgid ""41msgid ""
43"<personname><firstname>Bernhard</firstname><surname>Rieder</surname></"42"<personname><firstname>Bernhard</firstname><surname>Rieder</surname></"
44"personname> <contrib>Chapter on \"Timeouts\".</contrib>"43"personname> <contrib>Chapter on \"Timeouts\".</contrib>"
45msgstr ""44msgstr ""
46"<personname><firstname>Bernhard</firstname><surname>Rieder</surname></"45"<personname><firstname>Bernhard</firstname><surname>Rieder</surname></"
79"personname> <contrib>Kapitlet om ”Utskrift”.</contrib> <contrib>Delar av "78"personname> <contrib>Kapitlet om ”Utskrift”.</contrib> <contrib>Delar av "
80"kapitlet ”Internationalisering”.</contrib>"79"kapitlet ”Internationalisering”.</contrib>"
8180
82#. (itstool) path: authorgroup/author81#. (itstool) path: authorgroup/author
83#: C/index-in.docbook:7082#: C/index-in.docbook:70
n84#, fuzzyn
85msgid ""83msgid ""
86"<personname><firstname>Daniel</firstname><surname>Elstner</surname></"84"<personname><firstname>Daniel</firstname><surname>Elstner</surname></"
87"personname> <contrib>Section \"Build Structure\" of chapter on \"Wrapping C "85"personname> <contrib>Section \"Build Structure\" of chapter on \"Wrapping C "
88"Libraries with gmmproc\".</contrib>"86"Libraries with gmmproc\".</contrib>"
89msgstr ""87msgstr ""
109"<personname><firstname>David</firstname><surname>King</surname></personname> "107"<personname><firstname>David</firstname><surname>King</surname></personname> "
110"<contrib>Avsnittet om Gtk::Grid.</contrib>"108"<contrib>Avsnittet om Gtk::Grid.</contrib>"
111109
112#. (itstool) path: authorgroup/author110#. (itstool) path: authorgroup/author
113#: C/index-in.docbook:82111#: C/index-in.docbook:82
n114#, fuzzyn
115#| msgid ""
116#| "<personname><firstname>Pedro</firstname><surname>Ferreira</surname></"
117#| "personname> <contrib>Chapter on Keyboard Events.</contrib>"
118msgid ""112msgid ""
119"<personname><firstname>Pedro</firstname><surname>Ferreira</surname></"113"<personname><firstname>Pedro</firstname><surname>Ferreira</surname></"
120"personname> <contrib>Chapter on \"Keyboard Events\".</contrib>"114"personname> <contrib>Chapter on \"Keyboard Events\".</contrib>"
121msgstr ""115msgstr ""
122"<personname><firstname>Pedro</firstname><surname>Ferreira</surname></"116"<personname><firstname>Pedro</firstname><surname>Ferreira</surname></"
n123"personname> <contrib>Kapitlet om tangentbordshändelser.</contrib>"n117"personname> <contrib>Kapitlet ”Tangentbordshändelser.</contrib>"
124118
125#. (itstool) path: authorgroup/author119#. (itstool) path: authorgroup/author
126#: C/index-in.docbook:86120#: C/index-in.docbook:86
n127#, fuzzyn
128#| msgid ""
129#| "<personname><firstname>Kjell</firstname><surname>Ahlstedt</surname></"
130#| "personname> <contrib>Update from gtkmm 3 to gtkmm 4.</contrib> "
131#| "<contrib>Chapter on \"Building applications\".</contrib>"
132msgid ""121msgid ""
133"<personname><firstname>Kjell</firstname><surname>Ahlstedt</surname></"122"<personname><firstname>Kjell</firstname><surname>Ahlstedt</surname></"
134"personname> <contrib>Update from gtkmm 3 to gtkmm 4.</contrib> "123"personname> <contrib>Update from gtkmm 3 to gtkmm 4.</contrib> "
135"<contrib>Chapter on \"Building applications\".</contrib> <contrib>Chapter on "124"<contrib>Chapter on \"Building applications\".</contrib> <contrib>Chapter on "
136"\"The DropDown Widget\".</contrib> <contrib>Chapter on \"ListView, GridView, "125"\"The DropDown Widget\".</contrib> <contrib>Chapter on \"ListView, GridView, "
137"ColumnView\".</contrib>"126"ColumnView\".</contrib>"
138msgstr ""127msgstr ""
139"<personname><firstname>Kjell</firstname><surname>Ahlstedt</surname></"128"<personname><firstname>Kjell</firstname><surname>Ahlstedt</surname></"
140"personname> <contrib>Uppdatering från gtkmm 3 till gtkmm 4.</contrib> "129"personname> <contrib>Uppdatering från gtkmm 3 till gtkmm 4.</contrib> "
n141"<contrib>Kapitlet ”Bygga program”.</contrib>"n130"<contrib>Kapitlet ”Bygga program”.</contrib> <contrib>Kapitlet ”DropDown-"
131"komponenten”.</contrib> <contrib>Kapitlet ”ListView, GridView, ColumnView”.</"
132"contrib>"
142133
143#. (itstool) path: authorgroup/author134#. (itstool) path: authorgroup/author
144#: C/index-in.docbook:93135#: C/index-in.docbook:93
145#, fuzzy136#, fuzzy
nn137#| msgid ""
138#| "<personname><firstname>Daniel</firstname><surname>Elstner</surname></"
139#| "personname> <contrib>Section \"Build Structure\" of chapter on \"Wrapping "
140#| "C Libraries with gmmproc\".</contrib>"
146msgid ""141msgid ""
147"<personname><firstname>Daniel</firstname><surname>Boles</surname></"142"<personname><firstname>Daniel</firstname><surname>Boles</surname></"
148"personname> <contrib>Notes on need to remove widgets in non-managed wrappers "143"personname> <contrib>Notes on need to remove widgets in non-managed wrappers "
149"from parents to dispose, other tweaks.</contrib>"144"from parents to dispose, other tweaks.</contrib>"
150msgstr ""145msgstr ""
303"<application>gtkmm</application>, and that's what we stuck with."298"<application>gtkmm</application>, and that's what we stuck with."
304msgstr ""299msgstr ""
305"<application>gtkmm</application> kallades ursprungligen gtk-- eftersom GTK i "300"<application>gtkmm</application> kallades ursprungligen gtk-- eftersom GTK i "
306"början hette GTK+ och hade ett + i namnet. Men eftersom -- inte lätt kan "301"början hette GTK+ och hade ett + i namnet. Men eftersom -- inte lätt kan "
307"indexeras av sökmotorer så gick paketet allmänt under namnet "302"indexeras av sökmotorer så gick paketet allmänt under namnet "
n308"<application>gtkmm</application> vilket vi nu är fast med."n303"<application>gtkmm</application> vilket vi sedan höll oss till."
309304
310#. (itstool) path: section/title305#. (itstool) path: section/title
311#: C/index-in.docbook:154306#: C/index-in.docbook:154
312msgid "Why use <application>gtkmm</application> instead of GTK?"307msgid "Why use <application>gtkmm</application> instead of GTK?"
313msgstr "Varför använda <application>gtkmm</application> i stället för GTK?"308msgstr "Varför använda <application>gtkmm</application> i stället för GTK?"
314309
n315# TODO: realizen
316#. (itstool) path: section/para310#. (itstool) path: section/para
317#: C/index-in.docbook:156311#: C/index-in.docbook:156
318#, fuzzy312#, fuzzy
319#| msgid ""313#| msgid ""
320#| "<application>gtkmm</application> allows you to write code using normal C+"314#| "<application>gtkmm</application> allows you to write code using normal C+"
321#| "+ techniques such as encapsulation, derivation, and polymorphism. As a C+"315#| "+ techniques such as encapsulation, derivation, and polymorphism. As a C+"
n322#| "+ programmer you probably already realise that this leads to clearer and "n316#| "+ programmer you probably already realize that this leads to clearer and "
323#| "better organized code."317#| "better organized code."
324msgid ""318msgid ""
325"<application>gtkmm</application> allows you to write code using normal "319"<application>gtkmm</application> allows you to write code using normal "
326"<phrase role=\"nowrap\">C++</phrase> techniques such as encapsulation, "320"<phrase role=\"nowrap\">C++</phrase> techniques such as encapsulation, "
327"derivation, and polymorphism. As a <phrase role=\"nowrap\">C++</phrase> "321"derivation, and polymorphism. As a <phrase role=\"nowrap\">C++</phrase> "
328"programmer you probably already realize that this leads to clearer and "322"programmer you probably already realize that this leads to clearer and "
329"better organized code."323"better organized code."
330msgstr ""324msgstr ""
331"<application>gtkmm</application> låter dig skriva kod med vanliga C++-"325"<application>gtkmm</application> låter dig skriva kod med vanliga C++-"
n332"tekniker som inkapsling, härledning och polymorfism. Som en C++-"n326"tekniker som inkapsling, härledning och polymorfism. Som C++-programmerare "
333"programmerare inser du förmodligen redan att detta leder till tydligare och "327"inser du förmodligen redan att detta leder till tydligare och bättre "
334"bättre organiserad kod."328"organiserad kod."
335329
336#. (itstool) path: section/para330#. (itstool) path: section/para
337#: C/index-in.docbook:157331#: C/index-in.docbook:157
338msgid ""332msgid ""
339"<application>gtkmm</application> is more type-safe, so the compiler can "333"<application>gtkmm</application> is more type-safe, so the compiler can "
402"application>, so it deserves discussion."396"application>, so it deserves discussion."
403msgstr ""397msgstr ""
404"Trolltechs Qt är den närmaste konkurrenten till <application>gtkmm</"398"Trolltechs Qt är den närmaste konkurrenten till <application>gtkmm</"
405"application>, så det förtjänar att diskuteras."399"application>, så det förtjänar att diskuteras."
406400
n407# TODO: Standardize?n
408#. (itstool) path: section/para401#. (itstool) path: section/para
409#: C/index-in.docbook:168402#: C/index-in.docbook:168
410#, fuzzy403#, fuzzy
411#| msgid ""404#| msgid ""
412#| "<application>gtkmm</application> developers tend to prefer "405#| "<application>gtkmm</application> developers tend to prefer "
413#| "<application>gtkmm</application> to Qt because <application>gtkmm</"406#| "<application>gtkmm</application> to Qt because <application>gtkmm</"
414#| "application> does things in a more C++ way. Qt originates from a time "407#| "application> does things in a more C++ way. Qt originates from a time "
n415#| "when C++ and the standard library were not standardised or well supported "n408#| "when C++ and the standard library were not standardized or well supported "
416#| "by compilers. It therefore duplicates a lot of stuff that is now in the "409#| "by compilers. It therefore duplicates a lot of stuff that is now in the "
417#| "standard library, such as containers and type information. Most "410#| "standard library, such as containers and type information. Most "
418#| "significantly, Trolltech modified the C++ language to provide signals, so "411#| "significantly, Trolltech modified the C++ language to provide signals, so "
419#| "that Qt classes cannot be used easily with non-Qt classes. "412#| "that Qt classes cannot be used easily with non-Qt classes. "
420#| "<application>gtkmm</application> was able to use standard C++ to provide "413#| "<application>gtkmm</application> was able to use standard C++ to provide "
548"Before attempting to install <application>gtkmm</"541"Before attempting to install <application>gtkmm</"
549"application><application>-4.0</application>, you might first need to install "542"application><application>-4.0</application>, you might first need to install "
550"these other packages."543"these other packages."
551msgstr ""544msgstr ""
552"Innan du försöker installera <application>gtkmm</"545"Innan du försöker installera <application>gtkmm</"
n553"application><application>-4.0</application>, kan du först behöva installera "n546"application><application>-4.0</application> kan du först behöva installera "
554"dessa andra paket."547"dessa andra paket."
555548
556#. (itstool) path: listitem/para549#. (itstool) path: listitem/para
557#: C/index-in.docbook:204550#: C/index-in.docbook:204
558msgid "<application>sigc++-3.0</application>"551msgid "<application>sigc++-3.0</application>"
671"<application>libgtkmm-4.0-dev</application> package."664"<application>libgtkmm-4.0-dev</application> package."
672msgstr ""665msgstr ""
673"Paketnamnen kommer inte ändras när nya API/ABI-kompatibla versioner av "666"Paketnamnen kommer inte ändras när nya API/ABI-kompatibla versioner av "
674"<application>gtkmm</application> släpps. Annars skulle de inte vara API/ABI-"667"<application>gtkmm</application> släpps. Annars skulle de inte vara API/ABI-"
675"kompatibla. Så bli inte överraskad om exempelvis <application>gtkmm</"668"kompatibla. Så bli inte överraskad om exempelvis <application>gtkmm</"
n676"application> 4.8 tillhandahålls av Debians <application>libgtkmm-4.0-dev</"n669"application> 4.8 tillhandahålls av paketet <application>libgtkmm-4.0-dev</"
677"application>-paket."670"application> i Debian."
678671
679#. (itstool) path: section/title672#. (itstool) path: section/title
680#: C/index-in.docbook:256673#: C/index-in.docbook:256
681msgid "Installing From Source"674msgid "Installing From Source"
682msgstr "Installera från källkod"675msgstr "Installera från källkod"
711"application>-källkoden, packar upp den, och går till den nyskapade "704"application>-källkoden, packar upp den, och går till den nyskapade "
712"katalogen. <application>gtkmm</application> kan byggas med Meson. Se filen "705"katalogen. <application>gtkmm</application> kan byggas med Meson. Se filen "
713"<filename>README</filename> i <application>gtkmm</application>-versionen som "706"<filename>README</filename> i <application>gtkmm</application>-versionen som "
714"du hämtat."707"du hämtat."
715708
n716# TODO: root password for su, not sudon709# TODO: root password for su, not sudo?
717#. (itstool) path: note/para710#. (itstool) path: note/para
718#: C/index-in.docbook:271711#: C/index-in.docbook:271
719msgid ""712msgid ""
720"Remember that on a Unix or Linux operating system, you will probably need to "713"Remember that on a Unix or Linux operating system, you will probably need to "
721"be <literal>root</literal> to install software. The <command>su</command> or "714"be <literal>root</literal> to install software. The <command>su</command> or "
893"To begin our introduction to <application>gtkmm</application>, we'll start "886"To begin our introduction to <application>gtkmm</application>, we'll start "
894"with the simplest program possible. This program will create an empty 200 x "887"with the simplest program possible. This program will create an empty 200 x "
895"200 pixel window."888"200 pixel window."
896msgstr ""889msgstr ""
897"För att inleda vår introduktion till <application>gtkmm</application> så "890"För att inleda vår introduktion till <application>gtkmm</application> så "
n898"börjar vi enklast möjliga program. Detta program kommer skapa ett tomt "n891"börjar vi med enklast möjliga program. Detta program kommer skapa ett tomt "
899"fönster på 200 × 200 bildpunkter."892"fönster på 200 × 200 bildpunkter."
900893
901#. (itstool) path: section/para894#. (itstool) path: section/para
902#: C/index-in.docbook:345895#: C/index-in.docbook:345
903msgid ""896msgid ""
920msgstr "#include &lt;gtkmm.h&gt;"913msgstr "#include &lt;gtkmm.h&gt;"
921914
922#. (itstool) path: section/para915#. (itstool) path: section/para
923#: C/index-in.docbook:349916#: C/index-in.docbook:349
924#, fuzzy917#, fuzzy
nn918#| msgid ""
919#| "All <application>gtkmm</application> programs must include certain "
920#| "<application>gtkmm</application> headers; <literal>gtkmm.h</literal> "
921#| "includes the entire <application>gtkmm</application> kit. This is usually "
922#| "not a good idea, because it includes a megabyte or so of headers, but for "
923#| "simple programs, it suffices."
925msgid ""924msgid ""
926"All <application>gtkmm</application> programs must include certain "925"All <application>gtkmm</application> programs must include certain "
927"<application>gtkmm</application> headers; <filename>gtkmm.h</filename> "926"<application>gtkmm</application> headers; <filename>gtkmm.h</filename> "
928"includes the entire <application>gtkmm</application> kit. This is usually "927"includes the entire <application>gtkmm</application> kit. This is usually "
929"not a good idea, because it includes a megabyte or so of headers, but for "928"not a good idea, because it includes a megabyte or so of headers, but for "
985msgid ""984msgid ""
986"defines the <classname>MyWindow</classname> class. Its default constructor "985"defines the <classname>MyWindow</classname> class. Its default constructor "
987"sets the window's title and default (initial) size."986"sets the window's title and default (initial) size."
988msgstr ""987msgstr ""
989"definierar klassen <classname>MyWindow</classname>. Dess standardkonstruktor "988"definierar klassen <classname>MyWindow</classname>. Dess standardkonstruktor "
n990"ställer in fönstrets titel and (initial) standardstorlek."n989"ställer in fönstrets titel och (initial) standardstorlek."
991990
992#. (itstool) path: section/para991#. (itstool) path: section/para
993#: C/index-in.docbook:373992#: C/index-in.docbook:373
994msgid "The <function>main()</function> function's first statement:"993msgid "The <function>main()</function> function's first statement:"
995msgstr "<function>main()</function>-funktionens första sats:"994msgstr "<function>main()</function>-funktionens första sats:"
1092"literal> är endast nödvändigt om din kompilator inte följer C++17 som "1091"literal> är endast nödvändigt om din kompilator inte följer C++17 som "
1093"standard."1092"standard."
10941093
1095#. (itstool) path: section/title1094#. (itstool) path: section/title
1096#: C/index-in.docbook:4041095#: C/index-in.docbook:404
n1097#, fuzzyn
1098msgid "Headers and Linking"1096msgid "Headers and Linking"
1099msgstr "Huvuden och länkning"1097msgstr "Huvuden och länkning"
11001098
1101#. (itstool) path: section/para1099#. (itstool) path: section/para
1102#: C/index-in.docbook:4061100#: C/index-in.docbook:406
1192"change for every version because that would be an incompatible API and ABI "1190"change for every version because that would be an incompatible API and ABI "
1193"break. There might be a future gtkmm-5.0 API which would install in parallel "1191"break. There might be a future gtkmm-5.0 API which would install in parallel "
1194"with gtkmm-4.0 without affecting existing applications."1192"with gtkmm-4.0 without affecting existing applications."
1195msgstr ""1193msgstr ""
1196"gtkmm-4.0 är namnet på det aktuella stabila API:t. Det finns äldre API:er "1194"gtkmm-4.0 är namnet på det aktuella stabila API:t. Det finns äldre API:er "
n1197"som heter gtkmm-2.4 och gtkmm-3.0 vilka installeras parallellt då de är "n1195"som heter gtkmm-2.4 och gtkmm-3.0 vilka installeras parallellt då de finns "
1198"tillgängliga. Det finns flera versioner av gtkmm-2.4, som gtkmm 2.10, och "1196"tillgängliga. Det finns flera versioner av gtkmm-2.4, som gtkmm 2.10, och "
1199"det finns flera versioner av gtkmm-3.0-API:t. Observera att API-namnet inte "1197"det finns flera versioner av gtkmm-3.0-API:t. Observera att API-namnet inte "
1200"ändras för varje version då det skulle vara ett inkompatibelt API- och ABI-"1198"ändras för varje version då det skulle vara ett inkompatibelt API- och ABI-"
1201"brott. Det kan komma ett framtida gtkmm-5.0-API som då skulle gå installera "1199"brott. Det kan komma ett framtida gtkmm-5.0-API som då skulle gå installera "
1202"parallellt med gtkmm-4.0 utan att påverka befintliga program."1200"parallellt med gtkmm-4.0 utan att påverka befintliga program."
1208"just for yourself, it's easier to start with a <filename>meson.build</"1206"just for yourself, it's easier to start with a <filename>meson.build</"
1209"filename> similar to the <filename>meson.build</filename> files in the <link "1207"filename> similar to the <filename>meson.build</filename> files in the <link "
1210"linkend=\"chapter-building-applications\">Building applications</link> "1208"linkend=\"chapter-building-applications\">Building applications</link> "
1211"chapter."1209"chapter."
1212msgstr ""1210msgstr ""
n1213"Om du börjar med att experimenting med ett litet program som du bara tänker "n1211"Om du börjar genom att experimentera med ett litet program som du bara "
1214"använda själv är det lättare att börja med en <filename>meson.build</"1212"tänker använda själv är det lättare att börja med en <filename>meson.build</"
1215"filename> liknande <filename>meson.build</filename>-filerna i kapitlet <link "1213"filename> liknande <filename>meson.build</filename>-filerna i kapitlet <link "
1216"linkend=\"chapter-building-applications\">Bygga program</link>."1214"linkend=\"chapter-building-applications\">Bygga program</link>."
12171215
1218#. (itstool) path: section/para1216#. (itstool) path: section/para
1219#: C/index-in.docbook:4491217#: C/index-in.docbook:449
1458"rest of this section. But read on if you want to use languages other than "1456"rest of this section. But read on if you want to use languages other than "
1459"English in your application."1457"English in your application."
1460msgstr ""1458msgstr ""
1461"Det kanske förvånar dig att höra att <application>gtkmm</application> inte "1459"Det kanske förvånar dig att höra att <application>gtkmm</application> inte "
1462"använder <classname>std::string</classname> i sina gränssnitt. I stället "1460"använder <classname>std::string</classname> i sina gränssnitt. I stället "
n1463"använder det <classname>Glib::ustring</classname> vilket är snarlikt och gör "n1461"använder det <classname>Glib::ustring</classname> vilket är snarlikt och "
1464"inget väsen av sig, så du skulle kunna låtsas att varje <classname>Glib::"1462"inte gör något väsen av sig, så du skulle kunna låtsas att varje "
1465"ustring</classname> är en <classname>std::string</classname> och ignorera "1463"<classname>Glib::ustring</classname> är en <classname>std::string</"
1466"resten av detta avsnitt. Men läs vidare om du vill använda andra språk än "1464"classname> och ignorera resten av detta avsnitt. Men läs vidare om du vill "
1467"engelska i ditt program."1465"använda andra språk än engelska i ditt program."
14681466
1469#. (itstool) path: section/para1467#. (itstool) path: section/para
1470#: C/index-in.docbook:5181468#: C/index-in.docbook:518
1471#, fuzzy1469#, fuzzy
1472#| msgid ""1470#| msgid ""
1473#| "std::string uses 8 bits per character, but 8 bits aren't enough to encode "1471#| "std::string uses 8 bits per character, but 8 bits aren't enough to encode "
1474#| "languages such as Arabic, Chinese, and Japanese. Although the encodings "1472#| "languages such as Arabic, Chinese, and Japanese. Although the encodings "
1475#| "for these languages have been specified by the <link xlink:href=\"http://"1473#| "for these languages have been specified by the <link xlink:href=\"http://"
1476#| "www.unicode.org/\">Unicode Consortium</link>, the C and C++ languages do "1474#| "www.unicode.org/\">Unicode Consortium</link>, the C and C++ languages do "
n1477#| "not yet provide any standardised Unicode support for UTF-8 encoding. GTK "n1475#| "not yet provide any standardized Unicode support for UTF-8 encoding. GTK "
1478#| "and GNOME chose to implement Unicode using UTF-8, and that's what is "1476#| "and GNOME chose to implement Unicode using UTF-8, and that's what is "
1479#| "wrapped by Glib::ustring. It provides almost exactly the same interface "1477#| "wrapped by Glib::ustring. It provides almost exactly the same interface "
1480#| "as std::string, along with automatic conversions to and from std::string."1478#| "as std::string, along with automatic conversions to and from std::string."
1481msgid ""1479msgid ""
1482"std::string uses 8 bits per character, but 8 bits aren't enough to encode "1480"std::string uses 8 bits per character, but 8 bits aren't enough to encode "
1525"byte in the UTF-8 encoding. If your code contains 8-bit string literals, you "1523"byte in the UTF-8 encoding. If your code contains 8-bit string literals, you "
1526"have to convert them to UTF-8 (e.g. the Bavarian greeting \"Grüß Gott\" "1524"have to convert them to UTF-8 (e.g. the Bavarian greeting \"Grüß Gott\" "
1527"would be \"Gr\\xC3\\xBC\\xC3\\x9F Gott\")."1525"would be \"Gr\\xC3\\xBC\\xC3\\x9F Gott\")."
1528msgstr ""1526msgstr ""
1529"Observera att UTF-8 inte är kompatibelt med 8-bitars kodningar som "1527"Observera att UTF-8 inte är kompatibelt med 8-bitars kodningar som "
n1530"ISO-8859-1. Exempelvis finns tyska umlaut inte i ASCII-intervallet och "n1528"ISO-8859-1. Exempelvis finns tyska omljud inte i ASCII-intervallet och "
1531"behöver mer än 1 byte i UTF-8-kodningen. Om din kod innehåller 8-bitars "1529"behöver mer än 1 byte i UTF-8-kodningen. Om din kod innehåller 8-bitars "
1532"stränglitteraler behöver du konvertera dem till UTF-8 (t.ex. skulle den "1530"stränglitteraler behöver du konvertera dem till UTF-8 (t.ex. skulle den "
1533"bayerska hälsningen ”Grüß Gott” bli ”Gr\\xC3\\xBC\\xC3\\x9F Gott”)."1531"bayerska hälsningen ”Grüß Gott” bli ”Gr\\xC3\\xBC\\xC3\\x9F Gott”)."
15341532
1535#. (itstool) path: section/para1533#. (itstool) path: section/para
1561"resulterar inte i körbara Unicode-program och bibliotek som är inkompatibla "1559"resulterar inte i körbara Unicode-program och bibliotek som är inkompatibla "
1562"med de som använder ASCII."1560"med de som använder ASCII."
15631561
1564#. (itstool) path: section/para1562#. (itstool) path: section/para
1565#: C/index-in.docbook:5291563#: C/index-in.docbook:529
n1566#, fuzzyn
1567#| msgid ""
1568#| "<link xlink:href=\"http://developer.gnome.org/glibmm/unstable/"
1569#| "classGlib_1_1ustring.html\">Reference</link>"
1570msgid ""1564msgid ""
1571"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/"1565"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/"
1572"classGlib_1_1ustring.html\">Reference</link>"1566"classGlib_1_1ustring.html\">Reference</link>"
1573msgstr ""1567msgstr ""
n1574"<link xlink:href=\"http://developer.gnome.org/glibmm/unstable/"n1568"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/"
1575"classGlib_1_1ustring.html\">Referens</link>"1569"classGlib_1_1ustring.html\">Referens</link>"
15761570
1577#. (itstool) path: section/para1571#. (itstool) path: section/para
1578#: C/index-in.docbook:5311572#: C/index-in.docbook:531
1579msgid ""1573msgid ""
1679#: C/index-in.docbook:5651673#: C/index-in.docbook:565
1680msgid ""1674msgid ""
1681"it's a widget or other class that inherits from <classname>Gtk::Object</"1675"it's a widget or other class that inherits from <classname>Gtk::Object</"
1682"classname>, and"1676"classname>, and"
1683msgstr ""1677msgstr ""
n1684"det är en komponent eller annan klass som ärver från<classname>Gtk::Object</"n1678"det är en komponent eller annan klass som ärver från <classname>Gtk::Object</"
1685"classname>, och"1679"classname>, och"
16861680
1687#. (itstool) path: listitem/para1681#. (itstool) path: listitem/para
1688#: C/index-in.docbook:5661682#: C/index-in.docbook:566
1689#, fuzzy1683#, fuzzy
1840"\n"1834"\n"
1841"  //Medlemskomponenter:\n"1835"  //Medlemskomponenter:\n"
1842"  Gtk::Button m_button;\n"1836"  Gtk::Button m_button;\n"
1843"};"1837"};"
18441838
n1845# TODO: initializationn
1846#. (itstool) path: section/para1839#. (itstool) path: section/para
1847#: C/index-in.docbook:6191840#: C/index-in.docbook:619
n1848#, fuzzyn
1849msgid ""1841msgid ""
1850"This class implements the \"Hello World\" window. It's derived from "1842"This class implements the \"Hello World\" window. It's derived from "
1851"<classname>Gtk::Window</classname>, and has a single <classname>Gtk::Button</"1843"<classname>Gtk::Window</classname>, and has a single <classname>Gtk::Button</"
1852"classname> as a member. We've chosen to use the constructor to do all of the "1844"classname> as a member. We've chosen to use the constructor to do all of the "
1853"initialization work for the window, including setting up the signals. Here "1845"initialization work for the window, including setting up the signals. Here "
1888"  m_button.signal_clicked().connect(sigc::mem_fun(*this,\n"1880"  m_button.signal_clicked().connect(sigc::mem_fun(*this,\n"
1889"    &amp;HelloWorld::on_button_clicked));\n"1881"    &amp;HelloWorld::on_button_clicked));\n"
1890"  set_child(m_button);\n"1882"  set_child(m_button);\n"
1891"}"1883"}"
18921884
n1893# TODO: initializern
1894#. (itstool) path: section/para1885#. (itstool) path: section/para
1895#: C/index-in.docbook:6371886#: C/index-in.docbook:637
n1896#, fuzzyn
1897#| msgid ""
1898#| "Notice that we've used an initialiser statement to give the "
1899#| "<literal>m_button</literal> object the label \"Hello World\"."
1900msgid ""1887msgid ""
1901"Notice that we've used an initializer statement to give the "1888"Notice that we've used an initializer statement to give the "
1902"<literal>m_button</literal> object the label \"Hello World\"."1889"<literal>m_button</literal> object the label \"Hello World\"."
1903msgstr ""1890msgstr ""
1904"Observera att vi har använt en initierarsats för att ge <literal>m_button</"1891"Observera att vi har använt en initierarsats för att ge <literal>m_button</"
2031"several small changes that were not possible while maintaining binary "2018"several small changes that were not possible while maintaining binary "
2032"compatibility. If you never used the <application>gtkmm</application>-2.4 "2019"compatibility. If you never used the <application>gtkmm</application>-2.4 "
2033"API then you can safely ignore this chapter."2020"API then you can safely ignore this chapter."
2034msgstr ""2021msgstr ""
2035"<application>gtkmm</application>-3.0 är en gammal version av "2022"<application>gtkmm</application>-3.0 är en gammal version av "
n2036"<application>gtkmm</application>-API:t som kan installeras parallellt med "n2023"<application>gtkmm</application>-API:t som installeras parallellt med det "
2037"det ännu äldre <application>gtkmm</application>-2.4-API:t och det nya "2024"ännu äldre <application>gtkmm</application>-2.4-API:t och det nya "
2038"<application>gtkmm</application>-4.0-API:t. Den senaste versionen av "2025"<application>gtkmm</application>-4.0-API:t. Den senaste versionen av "
2039"<application>gtkmm</application>-2.4-API:t var <application>gtkmm</"2026"<application>gtkmm</application>-2.4-API:t var <application>gtkmm</"
2040"application> 2.24. <application>gtkmm</application> 3 har inga större "2027"application> 2.24. <application>gtkmm</application> 3 har inga större "
2041"fundamentala skillnader mot <application>gtkmm</application> 2 men gör flera "2028"fundamentala skillnader mot <application>gtkmm</application> 2 men gör flera "
2042"små ändringar som inte var möjliga att göra samtidigt som binär "2029"små ändringar som inte var möjliga att göra samtidigt som binär "
2043"kompatibilitet behölls. Om du aldrig använt <application>gtkmm</"2030"kompatibilitet behölls. Om du aldrig använt <application>gtkmm</"
2044"application>-2.4-API:t kan du lugnt ignorera detta kapitel."2031"application>-2.4-API:t kan du lugnt ignorera detta kapitel."
20452032
2046#. (itstool) path: chapter/para2033#. (itstool) path: chapter/para
2047#: C/index-in.docbook:6962034#: C/index-in.docbook:696
n2048#, fuzzyn
2049msgid ""2035msgid ""
2050"<application>gtkmm</application> 3's library is called "2036"<application>gtkmm</application> 3's library is called "
2051"<literal>libgtkmm-3.0</literal> rather than <literal>libgtkmm-2.4</literal> "2037"<literal>libgtkmm-3.0</literal> rather than <literal>libgtkmm-2.4</literal> "
2052"and installs its headers in a similarly-versioned directory, so your pkg-"2038"and installs its headers in a similarly-versioned directory, so your pkg-"
2053"config check should ask for <literal>gtkmm-3.0</literal> rather than "2039"config check should ask for <literal>gtkmm-3.0</literal> rather than "
2110"t som du troligen kommer stöta på när du porterar kod som använt "2096"t som du troligen kommer stöta på när du porterar kod som använt "
2111"<application>gtkmm</application>-2.4. Här är en kort lista:"2097"<application>gtkmm</application>-2.4. Här är en kort lista:"
21122098
2113#. (itstool) path: listitem/simpara2099#. (itstool) path: listitem/simpara
2114#: C/index-in.docbook:7112100#: C/index-in.docbook:711
n2115#, fuzzyn
2116msgid ""2101msgid ""
2117"<classname>Gtk::CellLayout</classname>, used by <classname>Gtk::IconView</"2102"<classname>Gtk::CellLayout</classname>, used by <classname>Gtk::IconView</"
2118"classname>, <classname>Gtk::TreeView::Column</classname> and <classname>Gtk::"2103"classname>, <classname>Gtk::TreeView::Column</classname> and <classname>Gtk::"
2119"ComboBox</classname>, now has a <classname>Gtk::CellArea</classname> which "2104"ComboBox</classname>, now has a <classname>Gtk::CellArea</classname> which "
2120"can be used to specify more details of how the <classname>CellRenderer</"2105"can be used to specify more details of how the <classname>CellRenderer</"
2121"classname>s are arranged and aligned."2106"classname>s are arranged and aligned."
2122msgstr ""2107msgstr ""
2123"<classname>Gtk::CellLayout</classname> som används av <classname>Gtk::"2108"<classname>Gtk::CellLayout</classname> som används av <classname>Gtk::"
2124"IconView</classname>, <classname>Gtk::TreeView::Column</classname> och "2109"IconView</classname>, <classname>Gtk::TreeView::Column</classname> och "
2125"<classname>Gtk::ComboBox</classname> har nu en <classname>Gtk::CellArea</"2110"<classname>Gtk::ComboBox</classname> har nu en <classname>Gtk::CellArea</"
n2126"classname> som kan användas för att ange mer detaljer  hur "n2111"classname> som kan användas för att ange mer detaljer om hur "
2127"<classname>CellRenderer</classname>-renderarna arrangeras och justeras."2112"<classname>CellRenderer</classname>-renderarna arrangeras och justeras."
21282113
2129#. (itstool) path: listitem/simpara2114#. (itstool) path: listitem/simpara
2130#: C/index-in.docbook:7132115#: C/index-in.docbook:713
n2131#, fuzzyn
2132msgid ""2116msgid ""
2133"Gtk::ComboBox now derives from CellLayout, allowing easier layout and "2117"Gtk::ComboBox now derives from CellLayout, allowing easier layout and "
2134"alignment of its <classname>Gtk::CellRenderer</classname>s."2118"alignment of its <classname>Gtk::CellRenderer</classname>s."
2135msgstr ""2119msgstr ""
2136"Gtk::ComboBox härleds nu från CellLayout, vilket tillåter lättare layout och "2120"Gtk::ComboBox härleds nu från CellLayout, vilket tillåter lättare layout och "
2167"vilket låter deras orientering (vertikal eller horisontell) anges utan att "2151"vilket låter deras orientering (vertikal eller horisontell) anges utan att "
2168"kräva användningen av en härledd klass som <classname>Gtk::HBox</classname>."2152"kräva användningen av en härledd klass som <classname>Gtk::HBox</classname>."
21692153
2170#. (itstool) path: listitem/simpara2154#. (itstool) path: listitem/simpara
2171#: C/index-in.docbook:7202155#: C/index-in.docbook:720
n2172#, fuzzyn
2173msgid ""2156msgid ""
2174"<classname>Gtk::IconView</classname>, <classname>Gtk::TextView</classname>, "2157"<classname>Gtk::IconView</classname>, <classname>Gtk::TextView</classname>, "
2175"<classname>Gtk::TreeView</classname> and other widgets derive from "2158"<classname>Gtk::TreeView</classname> and other widgets derive from "
2176"Scrollable instead of having their own methods such as "2159"Scrollable instead of having their own methods such as "
2177"<methodname>get_vadjustment()</methodname> and instead of having their own "2160"<methodname>get_vadjustment()</methodname> and instead of having their own "
2183"<methodname>get_vadjustment()</methodname> och i stället för att ha sin egen "2166"<methodname>get_vadjustment()</methodname> och i stället för att ha sin egen "
2184"set_scroll_adjustments-signal."2167"set_scroll_adjustments-signal."
21852168
2186#. (itstool) path: listitem/simpara2169#. (itstool) path: listitem/simpara
2187#: C/index-in.docbook:7222170#: C/index-in.docbook:722
n2188#, fuzzyn
2189msgid ""2171msgid ""
2190"<classname>Gtk::Style</classname> and <classname>Gtk::Rc</classname> were "2172"<classname>Gtk::Style</classname> and <classname>Gtk::Rc</classname> were "
2191"removed, replaced by <classname>Gtk::StyleContext</classname>, and "2173"removed, replaced by <classname>Gtk::StyleContext</classname>, and "
2192"<classname>Gtk::StyleProvider</classname>s, such as <classname>Gtk::"2174"<classname>Gtk::StyleProvider</classname>s, such as <classname>Gtk::"
2193"CssProvider</classname>."2175"CssProvider</classname>."
2194msgstr ""2176msgstr ""
2195"<classname>Gtk::Style</classname> och <classname>Gtk::Rc</classname> togs "2177"<classname>Gtk::Style</classname> och <classname>Gtk::Rc</classname> togs "
2196"bort, ersatta av <classname>Gtk::StyleContext</classname> och olika "2178"bort, ersatta av <classname>Gtk::StyleContext</classname> och olika "
n2197"<classname>Gtk::StyleProvider</classname>, som <classname>Gtk::CssProvider</"n2179"<classname>Gtk::StyleProvider</classname>-klasser, som <classname>Gtk::"
2198"classname>."2180"CssProvider</classname>."
21992181
2200#. (itstool) path: listitem/simpara2182#. (itstool) path: listitem/simpara
2201#: C/index-in.docbook:7242183#: C/index-in.docbook:724
2202msgid ""2184msgid ""
2203"Widget::on_expose_event() was replaced by Widget::on_draw(), which assumes "2185"Widget::on_expose_event() was replaced by Widget::on_draw(), which assumes "
2204"that cairomm is used for drawing, via the provided <classname>Cairo::"2186"that cairomm is used for drawing, via the provided <classname>Cairo::"
2205"Context</classname> and does not require you to call <methodname>Cairo::"2187"Context</classname> and does not require you to call <methodname>Cairo::"
2206"Context::clip()</methodname>."2188"Context::clip()</methodname>."
2207msgstr ""2189msgstr ""
n2208"Widget::on_expose_event() ersattes av Widget::on_draw(), vilket antar att "n2190"Widget::on_expose_event() ersattes av Widget::on_draw(), vilken antar att "
2209"cairomm används för ritning genom tillhandahållen <classname>Cairo::Context</"2191"cairomm används för ritning genom tillhandahållen <classname>Cairo::Context</"
n2210"classname> och kräver inte att du anropar <methodname>Cairo::Context::"n2192"classname> och inte kräver att du anropar <methodname>Cairo::Context::"
2211"clip()</methodname>."2193"clip()</methodname>."
22122194
2213#. (itstool) path: listitem/simpara2195#. (itstool) path: listitem/simpara
2214#: C/index-in.docbook:7262196#: C/index-in.docbook:726
n2215#, fuzzyn
2216msgid ""2197msgid ""
2217"<classname>Gdk::RGBA</classname> replaces <classname>Color</classname>, "2198"<classname>Gdk::RGBA</classname> replaces <classname>Color</classname>, "
2218"adding an alpha component for opacity. <classname>Colormap</classname> was "2199"adding an alpha component for opacity. <classname>Colormap</classname> was "
2219"removed, along with its awkward use to allocate colors."2200"removed, along with its awkward use to allocate colors."
2220msgstr ""2201msgstr ""
2221"<classname>Gdk::RGBA</classname> ersätter <classname>Color</classname>, "2202"<classname>Gdk::RGBA</classname> ersätter <classname>Color</classname>, "
2222"vilket lägger till en alfakomponent för opacitet. <classname>Colormap</"2203"vilket lägger till en alfakomponent för opacitet. <classname>Colormap</"
2223"classname> togs bort, tillsammans med sin klumpiga användning för att "2204"classname> togs bort, tillsammans med sin klumpiga användning för att "
2224"allokera färger."2205"allokera färger."
22252206
n2226# TODO: favorn
2227#. (itstool) path: listitem/simpara2207#. (itstool) path: listitem/simpara
2228#: C/index-in.docbook:7282208#: C/index-in.docbook:728
n2229#, fuzzyn
2230#| msgid ""
2231#| "<classname>Gdk::Pixmap</classname> and <classname>Gdk::Bitmap</classname> "
2232#| "were removed in favour of <classname>Gdk::Pixbuf</classname>."
2233msgid ""2209msgid ""
2234"<classname>Gdk::Pixmap</classname> and <classname>Gdk::Bitmap</classname> "2210"<classname>Gdk::Pixmap</classname> and <classname>Gdk::Bitmap</classname> "
2235"were removed in favor of <classname>Gdk::Pixbuf</classname>."2211"were removed in favor of <classname>Gdk::Pixbuf</classname>."
2236msgstr ""2212msgstr ""
2237"<classname>Gdk::Pixmap</classname> och <classname>Gdk::Bitmap</classname> "2213"<classname>Gdk::Pixmap</classname> och <classname>Gdk::Bitmap</classname> "
2246"<classname>Gdk::Drawable</classname> togs bort, dess metoder har flyttat "2222"<classname>Gdk::Drawable</classname> togs bort, dess metoder har flyttat "
2247"till <classname>Gdk::Window</classname>."2223"till <classname>Gdk::Window</classname>."
22482224
2249#. (itstool) path: listitem/simpara2225#. (itstool) path: listitem/simpara
2250#: C/index-in.docbook:7322226#: C/index-in.docbook:732
n2251#, fuzzyn
2252msgid ""2227msgid ""
2253"We now use std::vector in several methods instead of the intermediate "2228"We now use std::vector in several methods instead of the intermediate "
2254"*Handle types to make the API clearer."2229"*Handle types to make the API clearer."
2255msgstr ""2230msgstr ""
2256"Vi använder nu std::vector i flera metoder i stället för mellanliggande "2231"Vi använder nu std::vector i flera metoder i stället för mellanliggande "
2267"nya föråldringar har gjorts i senare <application>gtkmm</application> 3.x-"2242"nya föråldringar har gjorts i senare <application>gtkmm</application> 3.x-"
2268"versioner."2243"versioner."
22692244
2270#. (itstool) path: chapter/para2245#. (itstool) path: chapter/para
2271#: C/index-in.docbook:7392246#: C/index-in.docbook:739
n2272#, fuzzyn
2273msgid ""2247msgid ""
2274"As a first step to porting your source code to <application>gtkmm</"2248"As a first step to porting your source code to <application>gtkmm</"
2275"application>-3.0 you should probably ensure that your application builds "2249"application>-3.0 you should probably ensure that your application builds "
2276"with the deprecated <application>gtkmm</application>-2.4 API disabled, by "2250"with the deprecated <application>gtkmm</application>-2.4 API disabled, by "
2277"defining macro such as GTKMM_DISABLE_DEPRECATED. There are some autotools "2251"defining macro such as GTKMM_DISABLE_DEPRECATED. There are some autotools "
2310"and large ones) that were not possible while maintaining binary "2284"and large ones) that were not possible while maintaining binary "
2311"compatibility. If you never used the <application>gtkmm</application>-3.0 "2285"compatibility. If you never used the <application>gtkmm</application>-3.0 "
2312"API then you can safely ignore this chapter."2286"API then you can safely ignore this chapter."
2313msgstr ""2287msgstr ""
2314"<application>gtkmm</application>-4.0 är en ny version av <application>gtkmm</"2288"<application>gtkmm</application>-4.0 är en ny version av <application>gtkmm</"
n2315"application>-API:t som kan installeras parallellt med de äldre API:erna "n2289"application>-API:t som installeras parallellt med de äldre API:erna "
2316"<application>gtkmm</application>-2.4 och <application>gtkmm</"2290"<application>gtkmm</application>-2.4 och <application>gtkmm</"
2317"application>-3.0. Den senaste versionen av <application>gtkmm</"2291"application>-3.0. Den senaste versionen av <application>gtkmm</"
2318"application>-3.0-API:t är <application>gtkmm</application> 3.24. "2292"application>-3.0-API:t är <application>gtkmm</application> 3.24. "
2319"<application>gtkmm</application> 4 har inga större fundamentala skillnader "2293"<application>gtkmm</application> 4 har inga större fundamentala skillnader "
2320"mot <application>gtkmm</application> 3 men gör flera ändringar (både stora "2294"mot <application>gtkmm</application> 3 men gör flera ändringar (både stora "
2322"behölls. Om du aldrig använt <application>gtkmm</application>-3.0-API:t kan "2296"behölls. Om du aldrig använt <application>gtkmm</application>-3.0-API:t kan "
2323"du lugnt ignorera detta kapitel."2297"du lugnt ignorera detta kapitel."
23242298
2325#. (itstool) path: chapter/para2299#. (itstool) path: chapter/para
2326#: C/index-in.docbook:7542300#: C/index-in.docbook:754
n2327#, fuzzyn
2328msgid ""2301msgid ""
2329"<application>gtkmm</application> 4's library is called "2302"<application>gtkmm</application> 4's library is called "
2330"<literal>libgtkmm-4.0</literal> rather than <literal>libgtkmm-3.0</literal> "2303"<literal>libgtkmm-4.0</literal> rather than <literal>libgtkmm-3.0</literal> "
2331"and installs its headers in a similarly-versioned directory, so your "2304"and installs its headers in a similarly-versioned directory, so your "
2332"<application>pkg-config</application> check should ask for "2305"<application>pkg-config</application> check should ask for "
2339"<literal>gtkmm-4.0</literal> snarare än <literal>gtkmm-3.0</literal>."2312"<literal>gtkmm-4.0</literal> snarare än <literal>gtkmm-3.0</literal>."
23402313
2341#. (itstool) path: chapter/para2314#. (itstool) path: chapter/para
2342#: C/index-in.docbook:7602315#: C/index-in.docbook:760
2343#, fuzzy2316#, fuzzy
nn2317#| msgid ""
2318#| "<application>gtkmm</application>-4.0 is used in combination with "
2319#| "<application>glibmm-2.68</application>, which sets the global locale for "
2320#| "your program. The older <application>glibmm-2.4</application> does not do "
2321#| "that, and <application>gtkmm</application>-3.0 does it only to some "
2322#| "extent. What this means is briefly that if your <application>gtkmm</"
2323#| "application>-3.0 program contains a call to <function>std::locale::"
2324#| "global(std::locale(\"\"))</function>, you can probably remove it. If you "
2325#| "don't want <application>glibmm</application> or <application>gtkmm</"
2326#| "application> to set the global locale for you, you should add a call to "
2327#| "<function>Glib::set_init_to_users_preferred_locale(false)</function> "
2328#| "before any call to <function>Glib::init()</function> or <methodname>Gtk::"
2329#| "Application::create()</methodname>."
2344msgid ""2330msgid ""
2345"<application>gtkmm</application>-4.0 is used in combination with "2331"<application>gtkmm</application>-4.0 is used in combination with "
2346"<application>glibmm-2.68</application>, which sets the global locale for "2332"<application>glibmm-2.68</application>, which sets the global locale for "
2347"your program. The older <application>glibmm-2.4</application> does not do "2333"your program. The older <application>glibmm-2.4</application> does not do "
2348"that, and <application>gtkmm</application>-3.0 does it only to some extent. "2334"that, and <application>gtkmm</application>-3.0 does it only to some extent. "
2527"<classname>Gtk::FontButton</classname> implementerar gränssnittet "2513"<classname>Gtk::FontButton</classname> implementerar gränssnittet "
2528"<classname>Gtk::FontChooser</classname>."2514"<classname>Gtk::FontChooser</classname>."
25292515
2530#. (itstool) path: listitem/simpara2516#. (itstool) path: listitem/simpara
2531#: C/index-in.docbook:8222517#: C/index-in.docbook:822
n2532#, fuzzyn
2533msgid ""2518msgid ""
2534"<classname>Gtk::Widget</classname>: The <methodname>get_preferred_*_vfunc()</"2519"<classname>Gtk::Widget</classname>: The <methodname>get_preferred_*_vfunc()</"
2535"methodname>s have been replaced by <methodname>measure_vfunc()</methodname>. "2520"methodname>s have been replaced by <methodname>measure_vfunc()</methodname>. "
2536"This change only affects custom widgets."2521"This change only affects custom widgets."
2537msgstr ""2522msgstr ""
n2538"<classname>Gtk::Widget</classname>: De olika "n2523"<classname>Gtk::Widget</classname>: De olika metoderna "
2539"<methodname>get_preferred_*_vfunc()</methodname> har ersatts med "2524"<methodname>get_preferred_*_vfunc()</methodname> har ersatts med "
2540"<methodname>measure_vfunc()</methodname>. Denna ändring påverkar bara "2525"<methodname>measure_vfunc()</methodname>. Denna ändring påverkar bara "
2541"anpassade komponenter."2526"anpassade komponenter."
25422527
2543#. (itstool) path: listitem/simpara2528#. (itstool) path: listitem/simpara
2559#, fuzzy2544#, fuzzy
2560msgid ""2545msgid ""
2561"<classname>Gtk::DrawingArea</classname> uses a draw function instead of the "2546"<classname>Gtk::DrawingArea</classname> uses a draw function instead of the "
2562"draw signal."2547"draw signal."
2563msgstr ""2548msgstr ""
n2564"<classname>Gtk::DrawingArea</classname> använder en ritfunktion istället för "n2549"<classname>Gtk::DrawingArea</classname> använder en ritfunktion i stället "
2565"signalen draw."2550"för signalen draw."
25662551
2567#. (itstool) path: listitem/simpara2552#. (itstool) path: listitem/simpara
2568#: C/index-in.docbook:8282553#: C/index-in.docbook:828
2569#, fuzzy2554#, fuzzy
2570#| msgid ""2555#| msgid ""
2597msgid "<classname>Gtk::Container</classname> has been removed."2582msgid "<classname>Gtk::Container</classname> has been removed."
2598msgstr "<classname>Gtk::Container</classname> har tagits bort."2583msgstr "<classname>Gtk::Container</classname> har tagits bort."
25992584
2600#. (itstool) path: listitem/simpara2585#. (itstool) path: listitem/simpara
2601#: C/index-in.docbook:8332586#: C/index-in.docbook:833
n2602#, fuzzyn
2603#| msgid ""
2604#| "<methodname>Gtk::Widget::show_all()</methodname> has been removed. The "
2605#| "default value of <methodname>Gtk::Widget::property_visible()</"
2606#| "methodname>has been changed from <literal>false</literal> to "
2607#| "<literal>true</literal>."
2608msgid ""2587msgid ""
2609"<methodname>Gtk::Widget::show_all()</methodname> has been removed. The "2588"<methodname>Gtk::Widget::show_all()</methodname> has been removed. The "
2610"default value of <methodname>Gtk::Widget::property_visible()</methodname> "2589"default value of <methodname>Gtk::Widget::property_visible()</methodname> "
2611"has been changed from <literal>false</literal> to <literal>true</literal>."2590"has been changed from <literal>false</literal> to <literal>true</literal>."
2612msgstr ""2591msgstr ""
2699"föråldringar i framtida versioner."2678"föråldringar i framtida versioner."
27002679
2701# TODO: copy paste of wiki page?2680# TODO: copy paste of wiki page?
2702#. (itstool) path: chapter/para2681#. (itstool) path: chapter/para
2703#: C/index-in.docbook:8622682#: C/index-in.docbook:862
n2704#, fuzzyn
2705msgid ""2683msgid ""
2706"As a first step to porting your source code to <application>gtkmm</"2684"As a first step to porting your source code to <application>gtkmm</"
2707"application>-4.0 you should probably ensure that your application builds "2685"application>-4.0 you should probably ensure that your application builds "
2708"with the deprecated <application>gtkmm</application>-3.0 and "2686"with the deprecated <application>gtkmm</application>-3.0 and "
2709"<application>glibmm-2.4</application> API disabled, by defining the macros "2687"<application>glibmm-2.4</application> API disabled, by defining the macros "
2725"Projects/gtkmm/PortingToGtkmm3\">portering från gtkmm-2.4 till gtkmm-3.0</"2703"Projects/gtkmm/PortingToGtkmm3\">portering från gtkmm-2.4 till gtkmm-3.0</"
2726"link> för mer detaljer."2704"link> för mer detaljer."
27272705
2728#. (itstool) path: chapter/para2706#. (itstool) path: chapter/para
2729#: C/index-in.docbook:8692707#: C/index-in.docbook:869
n2730#, fuzzyn
2731#| msgid ""
2732#| "See also <link xlink:href=\"https://developer.gnome.org/gtk4/unstable/gtk-"
2733#| "migrating-3-to-4.html\"> Migrating from GTK 3.x to GTK 4</link>."
2734msgid ""2708msgid ""
2735"See also <link xlink:href=\"https://docs.gtk.org/gtk4/migrating-3to4.html\"> "2709"See also <link xlink:href=\"https://docs.gtk.org/gtk4/migrating-3to4.html\"> "
2736"Migrating from GTK 3.x to GTK 4</link>."2710"Migrating from GTK 3.x to GTK 4</link>."
2737msgstr ""2711msgstr ""
n2738"Se även <link xlink:href=\"https://developer.gnome.org/gtk4/unstable/gtk-"n2712"Se även <link xlink:href=\"https://docs.gtk.org/gtk4/migrating-3to4.html\"> "
2739"migrating-3-to-4.html\"> Migrera från GTK 3.x till GTK 4</link>."2713"Migrera från GTK 3.x till GTK 4</link>."
27402714
2741#. (itstool) path: section/title2715#. (itstool) path: section/title
2742#: C/index-in.docbook:8732716#: C/index-in.docbook:873
n2743#, fuzzyn
2744#| msgid "Changes in <application>gtkmm</application> 3"
2745msgid "Deprecations in <application>gtkmm</application> 4.10"2717msgid "Deprecations in <application>gtkmm</application> 4.10"
n2746msgstr "Ändringar i <application>gtkmm</application> 3"n2718msgstr "Föråldringar i <application>gtkmm</application> 4.10"
27472719
2748#. (itstool) path: section/para2720#. (itstool) path: section/para
2749#: C/index-in.docbook:8742721#: C/index-in.docbook:874
2750msgid ""2722msgid ""
2751"Many classes are deprecated since <application>gtkmm</application> 4.10. "2723"Many classes are deprecated since <application>gtkmm</application> 4.10. "
2755"4.10, which replace some of the deprecated classes. Some example programs in "2727"4.10, which replace some of the deprecated classes. Some example programs in "
2756"this tutorial use classes deprecated since <application>gtkmm</application> "2728"this tutorial use classes deprecated since <application>gtkmm</application> "
2757"4.10. Some other programs use classes available since <application>gtkmm</"2729"4.10. Some other programs use classes available since <application>gtkmm</"
2758"application> 4.10."2730"application> 4.10."
2759msgstr ""2731msgstr ""
nn2732"Många klasser har föråldrats sedan <application>gtkmm</application> 4.10. De "
2733"kan fortfarande användas i <application>gtkmm</application>4-program, "
2734"förutsatt att GTKMM_DISABLE_DEPRECATED och GDKMM_DISABLE_DEPRECATED inte har "
2735"definierats. Det finns också många nya klasser i <application>gtkmm</"
2736"application> 4.10, vilka ersätter några av de föråldrade klasserna. Några "
2737"exempelprogram i denna handledning använder klasser som föråldrats sedan "
2738"<application>gtkmm</application> 4.10. Några andra program använder klasser "
2739"som är tillgängliga sedan <application>gtkmm</application> 4.10."
27602740
2761#. (itstool) path: section/para2741#. (itstool) path: section/para
2762#: C/index-in.docbook:8802742#: C/index-in.docbook:880
nn2743#, fuzzy
2763msgid ""2744msgid ""
2764"Deprecated classes: AppChooser, AppChooserButton, AppChooserDialog, "2745"Deprecated classes: AppChooser, AppChooserButton, AppChooserDialog, "
2765"AppChooserWidget, CellArea, CellAreaBox, CellAreaContext, CellLayout, "2746"AppChooserWidget, CellArea, CellAreaBox, CellAreaContext, CellLayout, "
2766"CellRenderer, CellRendererAccel, CellRendererCombo, CellRendererPixbuf, "2747"CellRenderer, CellRendererAccel, CellRendererCombo, CellRendererPixbuf, "
2767"CellRendererProgress, CellRendererSpin, CellRendererSpinner, "2748"CellRendererProgress, CellRendererSpin, CellRendererSpinner, "
2775"FileChooserNative, FileChooserWidget, FontButton, FontChooser, "2756"FileChooserNative, FileChooserWidget, FontButton, FontChooser, "
2776"FontChooserDialog, FontChooserWidget, MessageDialog, TreeModelColumn, "2757"FontChooserDialog, FontChooserWidget, MessageDialog, TreeModelColumn, "
2777"TreeModelColumnRecord, InfoBar, Assistant, AssistantPage, LockButton, "2758"TreeModelColumnRecord, InfoBar, Assistant, AssistantPage, LockButton, "
2778"Statusbar, VolumeButton."2759"Statusbar, VolumeButton."
2779msgstr ""2760msgstr ""
nn2761"Föråldrade klasser: AppChooser, AppChooserButton, AppChooserDialog, "
2762"AppChooserWidget, CellArea, CellAreaBox, CellAreaContext, CellLayout, "
2763"CellRenderer, CellRendererAccel, CellRendererCombo, CellRendererPixbuf, "
2764"CellRendererProgress, CellRendererSpin, CellRendererSpinner, "
2765"CellRendererText, CellRendererToggle, CellView, ComboBox, ComboBoxText, "
2766"EntryCompletion, IconView, ListStore, ListViewText, StyleContext, "
2767"TreeDragDest, TreeDragSource, TreeIter och andra klasser i treeiter.h, "
2768"TreeModel, TreeModelFilter, TreeModelSort, TreePath, TreeRowReference, "
2769"TreeSelection, TreeSortable, TreeStore, TreeView, TreeViewColumn, namnrymden "
2770"CellRenderer_Generation, namnrymden TreeView_Private, ColorButton, "
2771"ColorChooser, ColorChooserDialog, FileChooser, FileChooserDialog, "
2772"FileChooserNative, FileChooserWidget, FontButton, FontChooser, "
2773"FontChooserDialog, FontChooserWidget, MessageDialog, TreeModelColumn, "
2774"TreeModelColumnRecord, InfoBar."
27802775
2781#. (itstool) path: section/para2776#. (itstool) path: section/para
2782#: C/index-in.docbook:8982777#: C/index-in.docbook:898
nn2778#, fuzzy
2783msgid ""2779msgid ""
2784"New classes and enums: AlertDialog, ColorDialog, ColorDialogButton, "2780"New classes and enums: AlertDialog, ColorDialog, ColorDialogButton, "
2785"ColumnViewSorter, FileDialog, FontDialog, FontDialogButton, FileLauncher, "2781"ColumnViewSorter, FileDialog, FontDialog, FontDialogButton, FileLauncher, "
2786"UriLauncher, ATContext, enums DialogError, FontLevel, Collation."2782"UriLauncher, ATContext, enums DialogError, FontLevel, Collation."
2787msgstr ""2783msgstr ""
nn2784"Nya klasser och enum-uppräkningar: AlertDialog, ColorDialog, "
2785"ColorDialogButton, ColumnViewSorter, FileDialog, FontDialog, "
2786"FontDialogButton, enum: DialogError, FontLevel."
27882787
2789#. (itstool) path: section/para2788#. (itstool) path: section/para
2790#: C/index-in.docbook:9032789#: C/index-in.docbook:903
2791msgid ""2790msgid ""
2792"In most cases there are replacements for the deprecated classes. See the "2791"In most cases there are replacements for the deprecated classes. See the "
2793"reference documentation."2792"reference documentation."
2794msgstr ""2793msgstr ""
nn2794"I de flesta fall finns det ersättningar för de föråldrade klasserna. Se "
2795"referensdokumentationen."
27952796
2796#. (itstool) path: chapter/title2797#. (itstool) path: chapter/title
2797#: C/index-in.docbook:9112798#: C/index-in.docbook:911
2798msgid "Buttons"2799msgid "Buttons"
2799msgstr "Knappar"2800msgstr "Knappar"
2810msgid "Push buttons"2811msgid "Push buttons"
2811msgstr "Tryckknappar"2812msgstr "Tryckknappar"
28122813
2813#. (itstool) path: listitem/para2814#. (itstool) path: listitem/para
2814#: C/index-in.docbook:9222815#: C/index-in.docbook:922
n2815#, fuzzyn
2816#| msgid ""
2817#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
2818#| "classGtk_1_1Button.html\"><classname>Gtk::Button</classname></link>. "
2819#| "Standard buttons, usually marked with a label or picture. Pushing one "
2820#| "triggers an action. See the <link linkend=\"sec-pushbuttons\">Button</"
2821#| "link> section."
2822msgid ""2816msgid ""
2823"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"2817"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
2824"classGtk_1_1Button.html\"><classname>Gtk::Button</classname></link>. "2818"classGtk_1_1Button.html\"><classname>Gtk::Button</classname></link>. "
2825"Standard buttons, usually marked with a label or picture. Pushing one "2819"Standard buttons, usually marked with a label or picture. Pushing one "
2826"triggers an action. See the <link linkend=\"sec-pushbuttons\">Button</link> "2820"triggers an action. See the <link linkend=\"sec-pushbuttons\">Button</link> "
2827"section."2821"section."
2828msgstr ""2822msgstr ""
n2829"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n2823"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
2830"classGtk_1_1Button.html\"><classname>Gtk::Button</classname></link>. "2824"classGtk_1_1Button.html\"><classname>Gtk::Button</classname></link>. "
2831"Standardknappar, vanligen markerade med en etikett eller bild. Att trycka på "2825"Standardknappar, vanligen markerade med en etikett eller bild. Att trycka på "
n2832"en utlöser en åtgärd. Se avsnittet <link linkend=\"sec-pushbuttons\">Button</"n2826"en av dem utlöser en åtgärd. Se avsnittet <link linkend=\"sec-"
2833"link>."2827"pushbuttons\">Button</link>."
28342828
2835#. (itstool) path: varlistentry/term2829#. (itstool) path: varlistentry/term
2836#: C/index-in.docbook:9292830#: C/index-in.docbook:929
2837msgid "Toggle buttons"2831msgid "Toggle buttons"
2838msgstr "Växlingsknappar"2832msgstr "Växlingsknappar"
28392833
2840#. (itstool) path: listitem/para2834#. (itstool) path: listitem/para
2841#: C/index-in.docbook:9312835#: C/index-in.docbook:931
n2842#, fuzzyn
2843msgid ""2836msgid ""
2844"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"2837"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
2845"classGtk_1_1ToggleButton.html\"><classname>Gtk::ToggleButton</classname></"2838"classGtk_1_1ToggleButton.html\"><classname>Gtk::ToggleButton</classname></"
2846"link>. Unlike a normal Button, which springs back up, a ToggleButton stays "2839"link>. Unlike a normal Button, which springs back up, a ToggleButton stays "
2847"down until you press it again. It might be useful as an on/off switch. See "2840"down until you press it again. It might be useful as an on/off switch. See "
2848"the <link linkend=\"sec-toggle-buttons\">ToggleButton</link> section."2841"the <link linkend=\"sec-toggle-buttons\">ToggleButton</link> section."
2849msgstr ""2842msgstr ""
n2850"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n2843"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
2851"classGtk_1_1ToggleButton.html\"><classname>Gtk::ToggleButton</classname></"2844"classGtk_1_1ToggleButton.html\"><classname>Gtk::ToggleButton</classname></"
2852"link>. Till skillnad från en vanlig Button som fjädrar upp igen förblir en "2845"link>. Till skillnad från en vanlig Button som fjädrar upp igen förblir en "
2853"ToggleButton nedtryckt till du trycker på den igen. Den kan vara användbar "2846"ToggleButton nedtryckt till du trycker på den igen. Den kan vara användbar "
2854"som en på/av-brytare. Se avsnittet <link linkend=\"sec-toggle-"2847"som en på/av-brytare. Se avsnittet <link linkend=\"sec-toggle-"
2855"buttons\">ToggleButton</link>."2848"buttons\">ToggleButton</link>."
2859msgid "Check buttons"2852msgid "Check buttons"
2860msgstr "Kryssrutor"2853msgstr "Kryssrutor"
28612854
2862#. (itstool) path: listitem/para2855#. (itstool) path: listitem/para
2863#: C/index-in.docbook:9412856#: C/index-in.docbook:941
n2864#, fuzzyn
2865#| msgid ""
2866#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
2867#| "classGtk_1_1CheckButton.html\"><classname>Gtk::CheckButton</classname></"
2868#| "link>. These act like ToggleButtons, but show their state in small "
2869#| "squares, with their label at the side. They should be used in most "
2870#| "situations which require an on/off setting. See the <link linkend=\"sec-"
2871#| "checkbuttons\">CheckButton</link> section."
2872msgid ""2857msgid ""
2873"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"2858"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
2874"classGtk_1_1CheckButton.html\"><classname>Gtk::CheckButton</classname></"2859"classGtk_1_1CheckButton.html\"><classname>Gtk::CheckButton</classname></"
2875"link>. These act like ToggleButtons, but show their state in small squares, "2860"link>. These act like ToggleButtons, but show their state in small squares, "
2876"with their label at the side. They should be used in most situations which "2861"with their label at the side. They should be used in most situations which "
2877"require an on/off setting. See the <link linkend=\"sec-"2862"require an on/off setting. See the <link linkend=\"sec-"
2878"checkbuttons\">CheckButton</link> section."2863"checkbuttons\">CheckButton</link> section."
2879msgstr ""2864msgstr ""
n2880"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n2865"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
2881"classGtk_1_1CheckButton.html\"><classname>Gtk::CheckButton</classname></"2866"classGtk_1_1CheckButton.html\"><classname>Gtk::CheckButton</classname></"
2882"link>. Dessa fungerar som ToggleButton, men visar sitt tillstånd i små "2867"link>. Dessa fungerar som ToggleButton, men visar sitt tillstånd i små "
2883"rutor, med sin etikett på sidan. De bör användas i de flesta situationer som "2868"rutor, med sin etikett på sidan. De bör användas i de flesta situationer som "
2884"kräver en på/av-inställning. Se avsnittet <link linkend=\"sec-"2869"kräver en på/av-inställning. Se avsnittet <link linkend=\"sec-"
2885"checkbuttons\">CheckButton</link>."2870"checkbuttons\">CheckButton</link>."
2941"To define an accelerator key for keyboard navigation, place an underscore "2926"To define an accelerator key for keyboard navigation, place an underscore "
2942"before one of the label's characters and specify <literal>true</literal> for "2927"before one of the label's characters and specify <literal>true</literal> for "
2943"the optional <literal>mnemonic</literal> parameter. For instance:"2928"the optional <literal>mnemonic</literal> parameter. For instance:"
2944msgstr ""2929msgstr ""
2945"För att definiera en snabbtangent för tangentbordsnavigering sätter du ett "2930"För att definiera en snabbtangent för tangentbordsnavigering sätter du ett "
n2946"understreck för ett av etikettens tecken och anger <literal>true</literal> "n2931"understreck före ett av etikettens tecken och anger <literal>true</literal> "
2947"för den valfria parametern <literal>mnemonic</literal>. Till exempel:"2932"för den valfria parametern <literal>mnemonic</literal>. Till exempel:"
29482933
2949#. (itstool) path: section/programlisting2934#. (itstool) path: section/programlisting
2950#: C/index-in.docbook:9842935#: C/index-in.docbook:984
2951#, fuzzy, no-wrap2936#, fuzzy, no-wrap
2970"Komponenten <classname>Gtk::Button</classname> har signalen "2955"Komponenten <classname>Gtk::Button</classname> har signalen "
2971"<literal>clicked</literal> som sänds ut när knappen trycks ned och släpps."2956"<literal>clicked</literal> som sänds ut när knappen trycks ned och släpps."
29722957
2973#. (itstool) path: section/para2958#. (itstool) path: section/para
2974#: C/index-in.docbook:9972959#: C/index-in.docbook:997
n2975#, fuzzyn
2976#| msgid ""
2977#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
2978#| "classGtk_1_1Button.html\">Reference</link>"
2979msgid ""2960msgid ""
2980"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"2961"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
2981"classGtk_1_1Button.html\">Reference</link>"2962"classGtk_1_1Button.html\">Reference</link>"
2982msgstr ""2963msgstr ""
n2983"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n2964"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
2984"classGtk_1_1Button.html\">Referens</link>"2965"classGtk_1_1Button.html\">Referens</link>"
29852966
2986#. (itstool) path: section/title2967#. (itstool) path: section/title
2987#: C/index-in.docbook:1000 C/index-in.docbook:1054 C/index-in.docbook:11132968#: C/index-in.docbook:1000 C/index-in.docbook:1054 C/index-in.docbook:1113
2988#: C/index-in.docbook:1229 C/index-in.docbook:1287 C/index-in.docbook:16052969#: C/index-in.docbook:1229 C/index-in.docbook:1287 C/index-in.docbook:1605
3046"<classname>ToggleButton</classname>s are like normal <classname>Button</"3027"<classname>ToggleButton</classname>s are like normal <classname>Button</"
3047"classname>s, but when clicked they remain activated, or pressed, until "3028"classname>s, but when clicked they remain activated, or pressed, until "
3048"clicked again."3029"clicked again."
3049msgstr ""3030msgstr ""
3050"En <classname>ToggleButton</classname> är som en vanlig <classname>Button</"3031"En <classname>ToggleButton</classname> är som en vanlig <classname>Button</"
n3051"classname>, men när den klickas på för blir den aktiverad, eller nedtryckt, "n3032"classname>, men när den klickas på förblir den aktiverad, eller nedtryckt, "
3052"tills den klickas på igen."3033"tills den klickas på igen."
30533034
3054#. (itstool) path: section/para3035#. (itstool) path: section/para
3055#: C/index-in.docbook:10243036#: C/index-in.docbook:1024
3056msgid ""3037msgid ""
3080"knappens tillstånd, och får signalen <literal>toggled</literal> att sändas "3061"knappens tillstånd, och får signalen <literal>toggled</literal> att sändas "
3081"ut."3062"ut."
30823063
3083#. (itstool) path: section/para3064#. (itstool) path: section/para
3084#: C/index-in.docbook:10363065#: C/index-in.docbook:1036
n3085#, fuzzyn
3086#| msgid ""
3087#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
3088#| "classGtk_1_1ToggleButton.html\">Reference</link>"
3089msgid ""3066msgid ""
3090"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"3067"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
3091"classGtk_1_1ToggleButton.html\">Reference</link>"3068"classGtk_1_1ToggleButton.html\">Reference</link>"
3092msgstr ""3069msgstr ""
n3093"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n3070"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
3094"classGtk_1_1ToggleButton.html\">Referens</link>"3071"classGtk_1_1ToggleButton.html\">Referens</link>"
30953072
3096#. (itstool) path: section/title3073#. (itstool) path: section/title
3097#. (itstool) path: figure/title3074#. (itstool) path: figure/title
3098#: C/index-in.docbook:1041 C/index-in.docbook:10573075#: C/index-in.docbook:1041 C/index-in.docbook:1057
3115"CheckButton</classname>. Du kan kontrollera och ställa in en kryssruta med "3092"CheckButton</classname>. Du kan kontrollera och ställa in en kryssruta med "
3116"samma medlemsmetoder som för <classname>Gtk::ToggleButton</classname>."3093"samma medlemsmetoder som för <classname>Gtk::ToggleButton</classname>."
31173094
3118#. (itstool) path: section/para3095#. (itstool) path: section/para
3119#: C/index-in.docbook:10513096#: C/index-in.docbook:1051
n3120#, fuzzyn
3121#| msgid ""
3122#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
3123#| "classGtk_1_1CheckButton.html\">Reference</link>"
3124msgid ""3097msgid ""
3125"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"3098"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
3126"classGtk_1_1CheckButton.html\">Reference</link>"3099"classGtk_1_1CheckButton.html\">Reference</link>"
3127msgstr ""3100msgstr ""
n3128"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n3101"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
3129"classGtk_1_1CheckButton.html\">Referens</link>"3102"classGtk_1_1CheckButton.html\">Referens</link>"
31303103
3131#. (itstool) path: imageobject/imagedata3104#. (itstool) path: imageobject/imagedata
3132#. This is a reference to an external file such as an image or video. When3105#. This is a reference to an external file such as an image or video. When
3133#. the file changes, the md5 hash will change to let you know you need to3106#. the file changes, the md5 hash will change to let you know you need to
3216msgstr ""3189msgstr ""
3217"Vi sa till <application>gtkmm</application> att stoppa alla tre "3190"Vi sa till <application>gtkmm</application> att stoppa alla tre "
3218"<classname>CheckButton</classname>-knapparna i samma grupp genom att använda "3191"<classname>CheckButton</classname>-knapparna i samma grupp genom att använda "
3219"<methodname>set_group()</methodname> för att säga till de andra två "3192"<methodname>set_group()</methodname> för att säga till de andra två "
3220"<classname>CheckButton</classname>-knapparna att dela grupp med den första "3193"<classname>CheckButton</classname>-knapparna att dela grupp med den första "
n3221"<classname>CheckButton</classname>."n3194"<classname>CheckButton</classname>-knappen."
32223195
3223#. (itstool) path: section/title3196#. (itstool) path: section/title
3224#: C/index-in.docbook:1101 C/index-in.docbook:1566 C/index-in.docbook:53233197#: C/index-in.docbook:1101 C/index-in.docbook:1566 C/index-in.docbook:5323
3225msgid "Methods"3198msgid "Methods"
3226msgstr "Metoder"3199msgstr "Metoder"
3238"kommer alla vara ”av”. Glöm inte att slå på en av dem med "3211"kommer alla vara ”av”. Glöm inte att slå på en av dem med "
3239"<methodname>set_active()</methodname>."3212"<methodname>set_active()</methodname>."
32403213
3241#. (itstool) path: section/para3214#. (itstool) path: section/para
3242#: C/index-in.docbook:11083215#: C/index-in.docbook:1108
n3243#, fuzzyn
3244#| msgid ""
3245#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
3246#| "classGtk_1_1RadioButton.html\">Reference</link>"
3247msgid ""3216msgid ""
3248"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"3217"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
3249"classGtk_1_1RadioButton.html\">Reference</link>"3218"classGtk_1_1RadioButton.html\">Reference</link>"
3250msgstr ""3219msgstr ""
n3251"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n3220"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
3252"classGtk_1_1RadioButton.html\">Referens</link>"3221"classGtk_1_1RadioButton.html\">Referens</link>"
32533222
3254#. (itstool) path: section/para3223#. (itstool) path: section/para
3255#: C/index-in.docbook:11143224#: C/index-in.docbook:1114
3256msgid ""3225msgid ""
3347"classname>, kanske för att dela med en annan komponent. Se avsnittet <link "3316"classname>, kanske för att dela med en annan komponent. Se avsnittet <link "
3348"linkend=\"chapter-adjustment\">Justeringar</link> för mer detaljer."3317"linkend=\"chapter-adjustment\">Justeringar</link> för mer detaljer."
33493318
3350#. (itstool) path: chapter/para3319#. (itstool) path: chapter/para
3351#: C/index-in.docbook:11613320#: C/index-in.docbook:1161
n3352#, fuzzyn
3353#| msgid ""
3354#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
3355#| "classGtk_1_1Range.html\">Reference</link>"
3356msgid ""3321msgid ""
3357"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"3322"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
3358"classGtk_1_1Range.html\">Reference</link>"3323"classGtk_1_1Range.html\">Reference</link>"
3359msgstr ""3324msgstr ""
n3360"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n3325"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
3361"classGtk_1_1Range.html\">Referens</link>"3326"classGtk_1_1Range.html\">Referens</link>"
33623327
3363#. (itstool) path: section/title3328#. (itstool) path: section/title
3364#: C/index-in.docbook:11643329#: C/index-in.docbook:1164
3365msgid "Scrollbar Widgets"3330msgid "Scrollbar Widgets"
3388"Orienteringen för en <classname>Gtk::Scrollbar</classname> kan vara antingen "3353"Orienteringen för en <classname>Gtk::Scrollbar</classname> kan vara antingen "
3389"horisontell eller vertikal."3354"horisontell eller vertikal."
33903355
3391#. (itstool) path: section/para3356#. (itstool) path: section/para
3392#: C/index-in.docbook:11783357#: C/index-in.docbook:1178
n3393#, fuzzyn
3394#| msgid ""
3395#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
3396#| "classGtk_1_1Scrollbar.html\">Reference</link>"
3397msgid ""3358msgid ""
3398"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"3359"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
3399"classGtk_1_1Scrollbar.html\">Reference</link>"3360"classGtk_1_1Scrollbar.html\">Reference</link>"
3400msgstr ""3361msgstr ""
n3401"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n3362"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
3402"classGtk_1_1Scrollbar.html\">Referens</link>"3363"classGtk_1_1Scrollbar.html\">Referens</link>"
34033364
3404#. (itstool) path: section/title3365#. (itstool) path: section/title
3405#: C/index-in.docbook:11833366#: C/index-in.docbook:1183
3406#, fuzzy3367#, fuzzy
3408msgstr "Skalkomponenter"3369msgstr "Skalkomponenter"
34093370
3410# TODO: color3371# TODO: color
3411#. (itstool) path: section/para3372#. (itstool) path: section/para
3412#: C/index-in.docbook:11853373#: C/index-in.docbook:1185
n3413#, fuzzyn
3414msgid ""3374msgid ""
3415"<classname>Gtk::Scale</classname> widgets (or \"sliders\") allow the user to "3375"<classname>Gtk::Scale</classname> widgets (or \"sliders\") allow the user to "
3416"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 "
3417"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 "
3418"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 "
3423"Du använder exempelvis kanske en för att justera förstoringsnivån på en "3383"Du använder exempelvis kanske en för att justera förstoringsnivån på en "
3424"zoomad förhandsgranskning av en bild, eller för att styra ljusstyrkan för en "3384"zoomad förhandsgranskning av en bild, eller för att styra ljusstyrkan för en "
3425"färg, eller för att ange antalet inaktiva minuter innan en skärmsläckare tar "3385"färg, eller för att ange antalet inaktiva minuter innan en skärmsläckare tar "
3426"över skärmen."3386"över skärmen."
34273387
n3428# TODO: behaviorn
3429#. (itstool) path: section/para3388#. (itstool) path: section/para
3430#: C/index-in.docbook:11943389#: C/index-in.docbook:1194
n3431#, fuzzyn
3432#| msgid ""
3433#| "As with <classname>Scrollbar</classname>s, the orientation can be either "
3434#| "horizontal or vertical. The default constructor creates an "
3435#| "<classname>Adjustment</classname> with all of its values set to "
3436#| "<literal>0.0</literal>. This isn't useful so you will need to set some "
3437#| "<classname>Adjustment</classname> details to get meaningful behaviour."
3438msgid ""3390msgid ""
3439"As with <classname>Scrollbar</classname>s, the orientation can be either "3391"As with <classname>Scrollbar</classname>s, the orientation can be either "
3440"horizontal or vertical. The default constructor creates an "3392"horizontal or vertical. The default constructor creates an "
3441"<classname>Adjustment</classname> with all of its values set to "3393"<classname>Adjustment</classname> with all of its values set to "
3442"<literal>0.0</literal>. This isn't useful so you will need to set some "3394"<literal>0.0</literal>. This isn't useful so you will need to set some "
3490"Värdet kan också skrivas ut i olika positions relativt till tråget, angivet "3442"Värdet kan också skrivas ut i olika positions relativt till tråget, angivet "
3491"av metoden <methodname>set_value_pos()</methodname>."3443"av metoden <methodname>set_value_pos()</methodname>."
34923444
3493#. (itstool) path: section/para3445#. (itstool) path: section/para
3494#: C/index-in.docbook:12233446#: C/index-in.docbook:1223
n3495#, fuzzyn
3496#| msgid ""
3497#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
3498#| "classGtk_1_1Scale.html\">Reference</link>"
3499msgid ""3447msgid ""
3500"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"3448"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
3501"classGtk_1_1Scale.html\">Reference</link>"3449"classGtk_1_1Scale.html\">Reference</link>"
3502msgstr ""3450msgstr ""
n3503"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n3451"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
3504"classGtk_1_1Scale.html\">Referens</link>"3452"classGtk_1_1Scale.html\">Referens</link>"
35053453
3506#. (itstool) path: section/para3454#. (itstool) path: section/para
3507#: C/index-in.docbook:12313455#: C/index-in.docbook:1231
3508#, fuzzy3456#, fuzzy
3565msgstr ""3513msgstr ""
3566"Etiketter är huvudmetoden för att placera ej redigerbar text i fönster, "3514"Etiketter är huvudmetoden för att placera ej redigerbar text i fönster, "
3567"exempelvis för att placera en titel intill en <classname>Entry</classname>-"3515"exempelvis för att placera en titel intill en <classname>Entry</classname>-"
3568"komponent. Du kan ange texten i konstruktorn, eller senare med metoderna "3516"komponent. Du kan ange texten i konstruktorn, eller senare med metoderna "
3569"<methodname>set_text()</methodname> eller <methodname>set_markup()</"3517"<methodname>set_text()</methodname> eller <methodname>set_markup()</"
n3570"methodname> methods."n3518"methodname>."
35713519
3572#. (itstool) path: section/para3520#. (itstool) path: section/para
3573#: C/index-in.docbook:12653521#: C/index-in.docbook:1265
3574msgid ""3522msgid ""
3575"The width of the label will be adjusted automatically. You can produce multi-"3523"The width of the label will be adjusted automatically. You can produce multi-"
3609"Markup-syntax</link>. Exempelvis, <code> &lt;b&gt;text i fetstil&lt;/b&gt; "3557"Markup-syntax</link>. Exempelvis, <code> &lt;b&gt;text i fetstil&lt;/b&gt; "
3610"och &lt;s&gt;genomstruken text&lt;/s&gt; </code> ."3558"och &lt;s&gt;genomstruken text&lt;/s&gt; </code> ."
36113559
3612#. (itstool) path: section/para3560#. (itstool) path: section/para
3613#: C/index-in.docbook:12843561#: C/index-in.docbook:1284
n3614#, fuzzyn
3615#| msgid ""
3616#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
3617#| "classGtk_1_1Label.html\">Reference</link>"
3618msgid ""3562msgid ""
3619"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"3563"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
3620"classGtk_1_1Label.html\">Reference</link>"3564"classGtk_1_1Label.html\">Reference</link>"
3621msgstr ""3565msgstr ""
n3622"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n3566"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
3623"classGtk_1_1Label.html\">Referens</link>"3567"classGtk_1_1Label.html\">Referens</link>"
36243568
3625#. (itstool) path: section/para3569#. (itstool) path: section/para
3626#: C/index-in.docbook:12883570#: C/index-in.docbook:1288
3627msgid ""3571msgid ""
3634msgstr ""3578msgstr ""
3635"Nedan är ett kort exempel för att illustrera dessa funktioner. Detta exempel "3579"Nedan är ett kort exempel för att illustrera dessa funktioner. Detta exempel "
3636"använder komponenten Frame för att bättre demonstrera etikettstilarna. "3580"använder komponenten Frame för att bättre demonstrera etikettstilarna. "
3637"(Komponenten Frame förklaras i avsnittet <link linkend=\"sec-frame\">Frame</"3581"(Komponenten Frame förklaras i avsnittet <link linkend=\"sec-frame\">Frame</"
3638"link>.) Det är möjligt att det första tecknet i <literal>m_Label_Normal</"3582"link>.) Det är möjligt att det första tecknet i <literal>m_Label_Normal</"
n3639"literal> endast visas understreckat när du trycker på <keycap>Alt</keycap>-"n3583"literal> endast visas understruket när du trycker på <keycap>Alt</keycap>-"
3640"tangenten."3584"tangenten."
36413585
3642#. (itstool) path: imageobject/imagedata3586#. (itstool) path: imageobject/imagedata
3643#. This is a reference to an external file such as an image or video. When3587#. This is a reference to an external file such as an image or video. When
3644#. the file changes, the md5 hash will change to let you know you need to3588#. the file changes, the md5 hash will change to let you know you need to
3690"Occasionally you might want to make an <classname>Entry</classname> widget "3634"Occasionally you might want to make an <classname>Entry</classname> widget "
3691"read-only. This can be done by passing <literal>false</literal> to the "3635"read-only. This can be done by passing <literal>false</literal> to the "
3692"<methodname>set_editable()</methodname> method."3636"<methodname>set_editable()</methodname> method."
3693msgstr ""3637msgstr ""
3694"Ibland kan du vilja göra en <classname>Entry</classname>-komponent "3638"Ibland kan du vilja göra en <classname>Entry</classname>-komponent "
n3695"skrivskyddad. Detta kan göras genom att sätta metoden "n3639"skrivskyddad. Detta kan göras genom att skicka <literal>false</literal> till "
3696"<methodname>set_editable()</methodname> till <literal>false</literal>."3640"metoden <methodname>set_editable()</methodname>."
36973641
3698#. (itstool) path: section/para3642#. (itstool) path: section/para
3699#: C/index-in.docbook:13263643#: C/index-in.docbook:1326
3700msgid ""3644msgid ""
3701"For the input of passwords, passphrases and other information you don't want "3645"For the input of passwords, passphrases and other information you don't want "
3760"Använd <methodname>Gtk::Window::set_default_widget()</methodname> för att "3704"Använd <methodname>Gtk::Window::set_default_widget()</methodname> för att "
3761"ställa in en komponent som standardkomponenten."3705"ställa in en komponent som standardkomponenten."
37623706
3763#. (itstool) path: section/para3707#. (itstool) path: section/para
3764#: C/index-in.docbook:13553708#: C/index-in.docbook:1355
n3765#, fuzzyn
3766#| msgid ""
3767#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
3768#| "classGtk_1_1Entry.html\">Reference</link>"
3769msgid ""3709msgid ""
3770"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"3710"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
3771"classGtk_1_1Entry.html\">Reference</link>"3711"classGtk_1_1Entry.html\">Reference</link>"
3772msgstr ""3712msgstr ""
n3773"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n3713"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
3774"classGtk_1_1Entry.html\">Referens</link>"3714"classGtk_1_1Entry.html\">Referens</link>"
37753715
3776#. (itstool) path: section/title3716#. (itstool) path: section/title
3777#: C/index-in.docbook:13583717#: C/index-in.docbook:1358
3778#, fuzzy3718#, fuzzy
3785"This example uses <classname>Gtk::Entry</classname>. It also has two "3725"This example uses <classname>Gtk::Entry</classname>. It also has two "
3786"<classname>CheckButton</classname>s, with which you can toggle the editable "3726"<classname>CheckButton</classname>s, with which you can toggle the editable "
3787"and visible flags."3727"and visible flags."
3788msgstr ""3728msgstr ""
3789"Detta exempel använder <classname>Gtk::Entry</classname>. Det har också två "3729"Detta exempel använder <classname>Gtk::Entry</classname>. Det har också två "
n3790"<classname>CheckButton</classname>, med vilka du kan växla flaggorna för "n3730"<classname>CheckButton</classname>-knappar, med vilka du kan växla flaggorna "
3791"redigering och synlighet."3731"för redigering och synlighet."
37923732
3793#. (itstool) path: imageobject/imagedata3733#. (itstool) path: imageobject/imagedata
3794#. This is a reference to an external file such as an image or video. When3734#. This is a reference to an external file such as an image or video. When
3795#. the file changes, the md5 hash will change to let you know you need to3735#. the file changes, the md5 hash will change to let you know you need to
3796#. update your localized copy. The msgstr is not used at all. Set it to3736#. update your localized copy. The msgstr is not used at all. Set it to
3818msgid "Entry Completion"3758msgid "Entry Completion"
3819msgstr "Inmatningskomplettering"3759msgstr "Inmatningskomplettering"
38203760
3821#. (itstool) path: note/para3761#. (itstool) path: note/para
3822#: C/index-in.docbook:13813762#: C/index-in.docbook:1381
n3823#, fuzzyn
3824#| msgid ""
3825#| "Some new classes were added in <application>gtkmm</application> 4 and "
3826#| "<application>glibmm</application> 2.68:"
3827msgid ""3763msgid ""
3828"<classname>Gtk::EntryCompletion</classname> is deprecated since "3764"<classname>Gtk::EntryCompletion</classname> is deprecated since "
3829"<application>gtkmm</application> 4.10. There is no replacement in "3765"<application>gtkmm</application> 4.10. There is no replacement in "
3830"<application>gtkmm</application>."3766"<application>gtkmm</application>."
3831msgstr ""3767msgstr ""
n3832"Några nya klasser lades till i <application>gtkmm</application> 4 och "n3768"<classname>Gtk::EntryCompletion</classname> är föråldrad sedan "
3769"<application>gtkmm</application> 4.10. Det finns ingen ersättning i "
3833"<application>glibmm</application> 2.68:"3770"<application>gtkmm</application>."
38343771
3835#. (itstool) path: section/para3772#. (itstool) path: section/para
3836#: C/index-in.docbook:13853773#: C/index-in.docbook:1385
3837msgid ""3774msgid ""
3838"An <classname>Entry</classname> widget can offer a drop-down list of pre-"3775"An <classname>Entry</classname> widget can offer a drop-down list of pre-"
3879"too inconvenient to generate, a callback slot may instead be specified with "3816"too inconvenient to generate, a callback slot may instead be specified with "
3880"<methodname>set_match_func()</methodname>. This is also useful if you wish "3817"<methodname>set_match_func()</methodname>. This is also useful if you wish "
3881"to match on a part of the string other than the start."3818"to match on a part of the string other than the start."
3882msgstr ""3819msgstr ""
3883"Alternativt kan, om en fullständig lista över möjliga inmatningar skulle "3820"Alternativt kan, om en fullständig lista över möjliga inmatningar skulle "
n3884"vara för stor eller opraktisk att skapa, ett återanropsfack istället anges "n3821"vara för stor eller opraktisk att skapa, ett återanropsfack i stället anges "
3885"med <methodname>set_match_func()</methodname>. Detta är även användbart om "3822"med <methodname>set_match_func()</methodname>. Detta är även användbart om "
3886"du vill matcha strängen på en annan del än starten."3823"du vill matcha strängen på en annan del än starten."
38873824
3888#. (itstool) path: section/para3825#. (itstool) path: section/para
3889#: C/index-in.docbook:14073826#: C/index-in.docbook:1407
n3890#, fuzzyn
3891#| msgid ""
3892#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
3893#| "classGtk_1_1EntryCompletion.html\">Reference</link>"
3894msgid ""3827msgid ""
3895"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"3828"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
3896"classGtk_1_1EntryCompletion.html\">Reference</link>"3829"classGtk_1_1EntryCompletion.html\">Reference</link>"
3897msgstr ""3830msgstr ""
n3898"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n3831"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
3899"classGtk_1_1EntryCompletion.html\">Referens</link>"3832"classGtk_1_1EntryCompletion.html\">Referens</link>"
39003833
3901#. (itstool) path: section/title3834#. (itstool) path: section/title
3902#: C/index-in.docbook:14103835#: C/index-in.docbook:1410
3903#, fuzzy3836#, fuzzy
3947msgid "Entry Icons"3880msgid "Entry Icons"
3948msgstr "Inmatningsikoner"3881msgstr "Inmatningsikoner"
39493882
3950#. (itstool) path: section/para3883#. (itstool) path: section/para
3951#: C/index-in.docbook:14333884#: C/index-in.docbook:1433
n3952#, fuzzyn
3953#| msgid ""
3954#| "An <classname>Entry</classname> widget can show an icon at the start or "
3955#| "end of the text area. The icon can be specifed by methods such as "
3956#| "<methodname>set_icon_from_paintable()</methodname> or "
3957#| "<methodname>set_icon_from_icon_name()</methodname>. An application can "
3958#| "respond to the user pressing the icon by handling the "
3959#| "<methodname>signal_icon_press</methodname> signal."
3960msgid ""3885msgid ""
3961"An <classname>Entry</classname> widget can show an icon at the start or end "3886"An <classname>Entry</classname> widget can show an icon at the start or end "
3962"of the text area. The icon can be specified by methods such as "3887"of the text area. The icon can be specified by methods such as "
3963"<methodname>set_icon_from_paintable()</methodname> or "3888"<methodname>set_icon_from_paintable()</methodname> or "
3964"<methodname>set_icon_from_icon_name()</methodname>. An application can "3889"<methodname>set_icon_from_icon_name()</methodname>. An application can "
4224"behöver ange en <classname>Gtk::SpinType</classname> för att ange riktningen "4149"behöver ange en <classname>Gtk::SpinType</classname> för att ange riktningen "
4225"eller ny position."4150"eller ny position."
42264151
4227#. (itstool) path: section/para4152#. (itstool) path: section/para
4228#: C/index-in.docbook:15854153#: C/index-in.docbook:1585
n4229#, fuzzyn
4230msgid ""4154msgid ""
4231"To prevent the user from typing non-numeric characters into the entry box, "4155"To prevent the user from typing non-numeric characters into the entry box, "
4232"pass <literal>true</literal> to the <methodname>set_numeric()</methodname> "4156"pass <literal>true</literal> to the <methodname>set_numeric()</methodname> "
4233"method."4157"method."
4234msgstr ""4158msgstr ""
4235"För att hindra användaren från att mata in icke-numeriska tecken i "4159"För att hindra användaren från att mata in icke-numeriska tecken i "
n4236"inmatningsfältet sätter du metoden <methodname>set_numeric()</methodname> "n4160"inmatningsfältet skickar du <literal>true</literal> till metoden "
4237"till <literal>true</literal>."4161"<methodname>set_numeric()</methodname>."
42384162
4239#. (itstool) path: section/para4163#. (itstool) path: section/para
4240#: C/index-in.docbook:15904164#: C/index-in.docbook:1590
4241#, fuzzy4165#, fuzzy
4242msgid ""4166msgid ""
4257"För att tvinga den att fästa vid närmaste <literal>step_increment</literal>, "4181"För att tvinga den att fästa vid närmaste <literal>step_increment</literal>, "
4258"använd <methodname>set_snap_to_ticks()</methodname>."4182"använd <methodname>set_snap_to_ticks()</methodname>."
42594183
4260#. (itstool) path: section/para4184#. (itstool) path: section/para
4261#: C/index-in.docbook:16004185#: C/index-in.docbook:1600
n4262#, fuzzyn
4263#| msgid ""
4264#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
4265#| "classGtk_1_1SpinButton.html\">Reference</link>"
4266msgid ""4186msgid ""
4267"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"4187"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
4268"classGtk_1_1SpinButton.html\">Reference</link>"4188"classGtk_1_1SpinButton.html\">Reference</link>"
4269msgstr ""4189msgstr ""
n4270"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n4190"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
4271"classGtk_1_1SpinButton.html\">Referens</link>"4191"classGtk_1_1SpinButton.html\">Referens</link>"
42724192
4273#. (itstool) path: section/para4193#. (itstool) path: section/para
4274#: C/index-in.docbook:16074194#: C/index-in.docbook:1607
4275msgid "Here's an example of a <classname>SpinButton</classname> in action:"4195msgid "Here's an example of a <classname>SpinButton</classname> in action:"
4333"A <classname>ProgressBar</classname> is horizontal and left-to-right by "4253"A <classname>ProgressBar</classname> is horizontal and left-to-right by "
4334"default, but you can change it to a vertical progress bar by using the "4254"default, but you can change it to a vertical progress bar by using the "
4335"<methodname>set_orientation()</methodname> method."4255"<methodname>set_orientation()</methodname> method."
4336msgstr ""4256msgstr ""
4337"En <classname>ProgressBar</classname> är som standard horisontell och "4257"En <classname>ProgressBar</classname> är som standard horisontell och "
n4338"vänster-till-höjer, men du kan ändra den till en vertikal förloppsindikator "n4258"vänster-till-höger, men du kan ändra den till en vertikal förloppsindikator "
4339"genom att använda metoden <methodname>set_orientation()</methodname>."4259"genom att använda metoden <methodname>set_orientation()</methodname>."
43404260
4341#. (itstool) path: section/para4261#. (itstool) path: section/para
4342#: C/index-in.docbook:16444262#: C/index-in.docbook:1644
n4343#, fuzzyn
4344#| msgid ""
4345#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
4346#| "classGtk_1_1ProgressBar.html\">Reference</link>"
4347msgid ""4263msgid ""
4348"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"4264"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
4349"classGtk_1_1ProgressBar.html\">Reference</link>"4265"classGtk_1_1ProgressBar.html\">Reference</link>"
4350msgstr ""4266msgstr ""
n4351"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n4267"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
4352"classGtk_1_1ProgressBar.html\">Referens</link>"4268"classGtk_1_1ProgressBar.html\">Referens</link>"
43534269
4354#. (itstool) path: section/title4270#. (itstool) path: section/title
4355#: C/index-in.docbook:16474271#: C/index-in.docbook:1647
4356msgid "Activity Mode"4272msgid "Activity Mode"
4434"top of the current window instead of opening a new window. Its API is very "4350"top of the current window instead of opening a new window. Its API is very "
4435"similar to the <link linkend=\"chapter-dialogs\">Gtk::Dialog</link> API."4351"similar to the <link linkend=\"chapter-dialogs\">Gtk::Dialog</link> API."
4436msgstr ""4352msgstr ""
4437"En <classname>InfoBar</classname> kan visa små informationsobjekt eller "4353"En <classname>InfoBar</classname> kan visa små informationsobjekt eller "
4438"fråga korta frågor. Till skillnad från en <classname>Dialog</classname> "4354"fråga korta frågor. Till skillnad från en <classname>Dialog</classname> "
n4439"dyker den upp högst upp i det aktuella fönstret istället för att öppna ett "n4355"dyker den upp högst upp i det aktuella fönstret i stället för att öppna ett "
4440"nytt fönster. Dess API är väldigt likt API:t för <link linkend=\"chapter-"4356"nytt fönster. Dess API är väldigt likt API:t för <link linkend=\"chapter-"
4441"dialogs\">Gtk::Dialog</link>."4357"dialogs\">Gtk::Dialog</link>."
44424358
4443#. (itstool) path: section/para4359#. (itstool) path: section/para
4444#: C/index-in.docbook:16924360#: C/index-in.docbook:1692
n4445#, fuzzyn
4446#| msgid ""
4447#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
4448#| "classGtk_1_1InfoBar.html\">Reference</link>"
4449msgid ""4361msgid ""
4450"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"4362"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
4451"classGtk_1_1InfoBar.html\">Reference</link>"4363"classGtk_1_1InfoBar.html\">Reference</link>"
4452msgstr ""4364msgstr ""
n4453"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n4365"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
4454"classGtk_1_1InfoBar.html\">Referens</link>"4366"classGtk_1_1InfoBar.html\">Referens</link>"
44554367
4456#. (itstool) path: section/para4368#. (itstool) path: section/para
4457#: C/index-in.docbook:16974369#: C/index-in.docbook:1697
4458msgid ""4370msgid ""
4459"The <classname>InfoBar</classname> widget is deprecated since "4371"The <classname>InfoBar</classname> widget is deprecated since "
4460"<application>gtkmm</application> 4.10. The example shows an info bar "4372"<application>gtkmm</application> 4.10. The example shows an info bar "
4461"consisting of a <classname>Box</classname> with a <classname>Label</"4373"consisting of a <classname>Box</classname> with a <classname>Label</"
4462"classname> and a <classname>Button</classname>."4374"classname> and a <classname>Button</classname>."
4463msgstr ""4375msgstr ""
nn4376"<classname>InfoBar</classname>-komponenten är föråldrad sedan "
4377"<application>gtkmm</application> 4.10. Exemplen visar en inforad som består "
4378"av en <classname>Box</classname> med en <classname>Label</classname> och en "
4379"<classname>Button</classname>."
44644380
4465#. (itstool) path: imageobject/imagedata4381#. (itstool) path: imageobject/imagedata
4466#. This is a reference to an external file such as an image or video. When4382#. This is a reference to an external file such as an image or video. When
4467#. the file changes, the md5 hash will change to let you know you need to4383#. the file changes, the md5 hash will change to let you know you need to
4468#. update your localized copy. The msgstr is not used at all. Set it to4384#. update your localized copy. The msgstr is not used at all. Set it to
4504"<classname>Widget</classname>. <classname>Gtk::Tooltip</classname> används "4420"<classname>Widget</classname>. <classname>Gtk::Tooltip</classname> används "
4505"för mer avancerad inforuteanvändning, som att visa en bild såväl som text."4421"för mer avancerad inforuteanvändning, som att visa en bild såväl som text."
45064422
4507#. (itstool) path: section/para4423#. (itstool) path: section/para
4508#: C/index-in.docbook:17264424#: C/index-in.docbook:1726
n4509#, fuzzyn
4510#| msgid ""
4511#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
4512#| "classGtk_1_1Widget.html\">Widget Reference</link>"
4513msgid ""4425msgid ""
4514"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"4426"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
4515"classGtk_1_1Widget.html\">Widget Reference</link>"4427"classGtk_1_1Widget.html\">Widget Reference</link>"
4516msgstr ""4428msgstr ""
n4517"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n4429"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
4518"classGtk_1_1Widget.html\">Widget-referens</link>"4430"classGtk_1_1Widget.html\">Widget-referens</link>"
45194431
4520#. (itstool) path: section/para4432#. (itstool) path: section/para
4521#: C/index-in.docbook:17274433#: C/index-in.docbook:1727
n4522#, fuzzyn
4523#| msgid ""
4524#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
4525#| "classGtk_1_1Tooltip.html\">Tooltip Reference</link>"
4526msgid ""4434msgid ""
4527"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"4435"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
4528"classGtk_1_1Tooltip.html\">Tooltip Reference</link>"4436"classGtk_1_1Tooltip.html\">Tooltip Reference</link>"
4529msgstr ""4437msgstr ""
n4530"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n4438"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
4531"classGtk_1_1Tooltip.html\">Tooltip-referens</link>"4439"classGtk_1_1Tooltip.html\">Tooltip-referens</link>"
45324440
4533#. (itstool) path: figure/title4441#. (itstool) path: figure/title
4534#: C/index-in.docbook:17334442#: C/index-in.docbook:1733
4535#, fuzzy4443#, fuzzy
4631"classname> eller <classname>CheckButton</classname> i en <classname>Frame</"4539"classname> eller <classname>CheckButton</classname> i en <classname>Frame</"
4632"classname>."4540"classname>."
46334541
4634#. (itstool) path: section/para4542#. (itstool) path: section/para
4635#: C/index-in.docbook:17814543#: C/index-in.docbook:1781
n4636#, fuzzyn
4637#| msgid ""
4638#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
4639#| "classGtk_1_1Frame.html\">Reference</link>"
4640msgid ""4544msgid ""
4641"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"4545"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
4642"classGtk_1_1Frame.html\">Reference</link>"4546"classGtk_1_1Frame.html\">Reference</link>"
4643msgstr ""4547msgstr ""
n4644"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n4548"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
4645"classGtk_1_1Frame.html\">Referens</link>"4549"classGtk_1_1Frame.html\">Referens</link>"
46464550
4647#. (itstool) path: imageobject/imagedata4551#. (itstool) path: imageobject/imagedata
4648#. This is a reference to an external file such as an image or video. When4552#. This is a reference to an external file such as an image or video. When
4649#. the file changes, the md5 hash will change to let you know you need to4553#. the file changes, the md5 hash will change to let you know you need to
4706"Du kan justera avskiljarens position genom att använda metoden "4610"Du kan justera avskiljarens position genom att använda metoden "
4707"<methodname>set_position()</methodname>, och kommer troligen behöva göra det."4611"<methodname>set_position()</methodname>, och kommer troligen behöva göra det."
47084612
4709#. (itstool) path: section/para4613#. (itstool) path: section/para
4710#: C/index-in.docbook:18204614#: C/index-in.docbook:1820
n4711#, fuzzyn
4712#| msgid ""
4713#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
4714#| "classGtk_1_1Paned.html\">Reference</link>"
4715msgid ""4615msgid ""
4716"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"4616"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
4717"classGtk_1_1Paned.html\">Reference</link>"4617"classGtk_1_1Paned.html\">Reference</link>"
4718msgstr ""4618msgstr ""
n4719"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n4619"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
4720"classGtk_1_1Paned.html\">Referens</link>"4620"classGtk_1_1Paned.html\">Referens</link>"
47214621
4722#. (itstool) path: imageobject/imagedata4622#. (itstool) path: imageobject/imagedata
4723#. This is a reference to an external file such as an image or video. When4623#. This is a reference to an external file such as an image or video. When
4724#. the file changes, the md5 hash will change to let you know you need to4624#. the file changes, the md5 hash will change to let you know you need to
4786"<literal>Gtk::PolicyType::ALWAYS</literal> kommer få rullningslisten att "4686"<literal>Gtk::PolicyType::ALWAYS</literal> kommer få rullningslisten att "
4787"alltid visas."4687"alltid visas."
47884688
4789#. (itstool) path: section/para4689#. (itstool) path: section/para
4790#: C/index-in.docbook:18614690#: C/index-in.docbook:1861
n4791#, fuzzyn
4792#| msgid ""
4793#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
4794#| "classGtk_1_1ScrolledWindow.html\">Reference</link>"
4795msgid ""4691msgid ""
4796"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"4692"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
4797"classGtk_1_1ScrolledWindow.html\">Reference</link>"4693"classGtk_1_1ScrolledWindow.html\">Reference</link>"
4798msgstr ""4694msgstr ""
n4799"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n4695"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
4800"classGtk_1_1ScrolledWindow.html\">Referens</link>"4696"classGtk_1_1ScrolledWindow.html\">Referens</link>"
48014697
4802#. (itstool) path: section/para4698#. (itstool) path: section/para
4803#: C/index-in.docbook:18664699#: C/index-in.docbook:1866
4804msgid ""4700msgid ""
4856"Exempelvis skulle detta låta dig visa ett foto utan att användaren kan "4752"Exempelvis skulle detta låta dig visa ett foto utan att användaren kan "
4857"förvränga det horisontellt eller vertikalt då storleken ändras."4753"förvränga det horisontellt eller vertikalt då storleken ändras."
48584754
4859#. (itstool) path: section/para4755#. (itstool) path: section/para
4860#: C/index-in.docbook:18944756#: C/index-in.docbook:1894
n4861#, fuzzyn
4862#| msgid ""
4863#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
4864#| "classGtk_1_1AspectFrame.html\">Reference</link>"
4865msgid ""4757msgid ""
4866"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"4758"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
4867"classGtk_1_1AspectFrame.html\">Reference</link>"4759"classGtk_1_1AspectFrame.html\">Reference</link>"
4868msgstr ""4760msgstr ""
n4869"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n4761"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
4870"classGtk_1_1AspectFrame.html\">Referens</link>"4762"classGtk_1_1AspectFrame.html\">Referens</link>"
48714763
4872#. (itstool) path: section/para4764#. (itstool) path: section/para
4873#: C/index-in.docbook:18994765#: C/index-in.docbook:1899
4874msgid ""4766msgid ""
4918"fullständig lista. Här är länkar till några exempelprogram som visar "4810"fullständig lista. Här är länkar till några exempelprogram som visar "
4919"behållare som inte nämns någon annanstans i denna handledning."4811"behållare som inte nämns någon annanstans i denna handledning."
49204812
4921#. (itstool) path: section/para4813#. (itstool) path: section/para
4922#: C/index-in.docbook:19264814#: C/index-in.docbook:1926
n4923#, fuzzyn
4924msgid ""4815msgid ""
4925"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"4816"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
4926"master/examples/book/expander\">Source Code, Expander</link>"4817"master/examples/book/expander\">Source Code, Expander</link>"
4927msgstr ""4818msgstr ""
4928"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"4819"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
4929"master/examples/book/expander\">Källkod, Expander</link>"4820"master/examples/book/expander\">Källkod, Expander</link>"
49304821
4931#. (itstool) path: section/para4822#. (itstool) path: section/para
4932#: C/index-in.docbook:19274823#: C/index-in.docbook:1927
n4933#, fuzzyn
4934msgid ""4824msgid ""
4935"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"4825"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
4936"master/examples/book/popover\">Source Code, Popover</link>"4826"master/examples/book/popover\">Source Code, Popover</link>"
4937msgstr ""4827msgstr ""
4938"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"4828"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
4999"widgets are hidden when the window is made smaller, and lots of useless "4889"widgets are hidden when the window is made smaller, and lots of useless "
5000"space appears when the window is made larger."4890"space appears when the window is made larger."
5001msgstr ""4891msgstr ""
5002"Komponenterna arrangerar inte om sig själva när fönstrets storlek ändras. "4892"Komponenterna arrangerar inte om sig själva när fönstrets storlek ändras. "
5003"Vissa komponenter döljs när fönstret görs mindre, och mycket onödigt utrymme "4893"Vissa komponenter döljs när fönstret görs mindre, och mycket onödigt utrymme "
n5004"dyker upp när fönstret görs större."n4894"uppstår när fönstret görs större."
50054895
5006#. (itstool) path: listitem/para4896#. (itstool) path: listitem/para
5007#: C/index-in.docbook:19644897#: C/index-in.docbook:1964
5008msgid ""4898msgid ""
5009"It's impossible to predict the amount of space necessary for text after it "4899"It's impossible to predict the amount of space necessary for text after it "
5054"begärt att tillgängligt utrymme ska delas mellan uppsättningar av "4944"begärt att tillgängligt utrymme ska delas mellan uppsättningar av "
5055"komponenter. <application>gtkmm</application> använder sedan all denna "4945"komponenter. <application>gtkmm</application> använder sedan all denna "
5056"information för att ändra storlek och position på allt på ett rimligt och "4946"information för att ändra storlek och position på allt på ett rimligt och "
5057"smidigt sätt när användaren manipulerar fönstret."4947"smidigt sätt när användaren manipulerar fönstret."
50584948
n5059# TODO: flavorsn
5060#. (itstool) path: section/para4949#. (itstool) path: section/para
5061#: C/index-in.docbook:19834950#: C/index-in.docbook:1983
n5062#, fuzzyn
5063msgid ""4951msgid ""
5064"<application>gtkmm</application> arranges widgets hierarchically, using "4952"<application>gtkmm</application> arranges widgets hierarchically, using "
5065"<emphasis>containers</emphasis>. A container widget contains other widgets. "4953"<emphasis>containers</emphasis>. A container widget contains other widgets. "
5066"Most <application>gtkmm</application> widgets are containers. Windows, "4954"Most <application>gtkmm</application> widgets are containers. Windows, "
5067"Notebook tabs, and Buttons are all container widgets. There are two flavors "4955"Notebook tabs, and Buttons are all container widgets. There are two flavors "
5170"master/examples/book/helloworld2\">Source Code</link>"5058"master/examples/book/helloworld2\">Source Code</link>"
5171msgstr ""5059msgstr ""
5172"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"5060"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
5173"master/examples/book/helloworld2\">Källkod</link>"5061"master/examples/book/helloworld2\">Källkod</link>"
51745062
n5175# TODO: behaviorn
5176#. (itstool) path: section/para5063#. (itstool) path: section/para
5177#: C/index-in.docbook:20485064#: C/index-in.docbook:2048
5178#, fuzzy5065#, fuzzy
5179msgid ""5066msgid ""
5180"After building and running this program, try resizing the window to see the "5067"After building and running this program, try resizing the window to see the "
5273"Builder</classname>-API:t för att läsa in ditt GUI vid körning."5160"Builder</classname>-API:t för att läsa in ditt GUI vid körning."
52745161
5275#. (itstool) path: section/para5162#. (itstool) path: section/para
5276#: C/index-in.docbook:20955163#: C/index-in.docbook:2095
5277msgid "There are basically five different styles, as shown in this picture:"5164msgid "There are basically five different styles, as shown in this picture:"
n5278msgstr "Det finns i grunden fem olika stilar, som kan ses i denna bild:"n5165msgstr "Det finns i grunden fem olika stilar som kan ses i denna bild:"
52795166
5280#. (itstool) path: figure/title5167#. (itstool) path: figure/title
5281#: C/index-in.docbook:21015168#: C/index-in.docbook:2101
n5282#, fuzzyn
5283msgid "Box Packing 1"5169msgid "Box Packing 1"
5284msgstr "Boxpackning 1"5170msgstr "Boxpackning 1"
52855171
5286#. (itstool) path: imageobject/imagedata5172#. (itstool) path: imageobject/imagedata
5287#. This is a reference to an external file such as an image or video. When5173#. This is a reference to an external file such as an image or video. When
5316"<methodname>set_margin_start()</methodname> och "5202"<methodname>set_margin_start()</methodname> och "
5317"<methodname>set_margin_end()</methodname> methods."5203"<methodname>set_margin_end()</methodname> methods."
53185204
5319#. (itstool) path: section/para5205#. (itstool) path: section/para
5320#: C/index-in.docbook:21165206#: C/index-in.docbook:2116
n5321#, fuzzyn
5322#| msgid ""
5323#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
5324#| "classGtk_1_1Box.html\">Reference</link>"
5325msgid ""5207msgid ""
5326"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"5208"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
5327"classGtk_1_1Box.html\">Reference</link>"5209"classGtk_1_1Box.html\">Reference</link>"
5328msgstr ""5210msgstr ""
n5329"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/classGtk_1_1Box."n5211"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
5330"html\">Referens</link>"5212"classGtk_1_1Box.html\">Referens</link>"
53315213
5332#. (itstool) path: section/title5214#. (itstool) path: section/title
5333#: C/index-in.docbook:21215215#: C/index-in.docbook:2121
5334#, fuzzy5216#, fuzzy
5335msgid "Per-container packing options"5217msgid "Per-container packing options"
5393"Följande figur bör göra det tydligare. De visade marginalerna är vänster- "5275"Följande figur bör göra det tydligare. De visade marginalerna är vänster- "
5394"och högermarginalerna för varje knapp i raden."5276"och högermarginalerna för varje knapp i raden."
53955277
5396#. (itstool) path: figure/title5278#. (itstool) path: figure/title
5397#: C/index-in.docbook:21445279#: C/index-in.docbook:2144
n5398#, fuzzyn
5399msgid "Box Packing 2"5280msgid "Box Packing 2"
5400msgstr "Boxpackning 2"5281msgstr "Boxpackning 2"
54015282
5402#. (itstool) path: imageobject/imagedata5283#. (itstool) path: imageobject/imagedata
5403#. This is a reference to an external file such as an image or video. When5284#. This is a reference to an external file such as an image or video. When
5452msgstr ""5333msgstr ""
5453"Ge alla kommandoradsflaggor till <methodname>Gtk::Application::run()</"5334"Ge alla kommandoradsflaggor till <methodname>Gtk::Application::run()</"
5454"methodname> och lägg till flaggan <literal>Gio::Application::Flags::"5335"methodname> och lägg till flaggan <literal>Gio::Application::Flags::"
5455"HANDLES_COMMAND_LINE</literal> till <methodname>Gtk::Application::create()</"5336"HANDLES_COMMAND_LINE</literal> till <methodname>Gtk::Application::create()</"
5456"methodname>. Anslut en signalhanterare till signalen <literal>command_line</"5337"methodname>. Anslut en signalhanterare till signalen <literal>command_line</"
n5457"literal> signal, och hantera kommandoradsflaggorna i signalhanteraren."n5338"literal>, och hantera kommandoradsflaggorna i signalhanteraren."
54585339
5459#. (itstool) path: listitem/para5340#. (itstool) path: listitem/para
5460#: C/index-in.docbook:21755341#: C/index-in.docbook:2175
5461#, fuzzy5342#, fuzzy
5462msgid ""5343msgid ""
5508msgid ""5389msgid ""
5509"A <classname>Grid</classname> dynamically lays out child widgets in rows and "5390"A <classname>Grid</classname> dynamically lays out child widgets in rows and "
5510"columns. The dimensions of the grid do not need to be specified in the "5391"columns. The dimensions of the grid do not need to be specified in the "
5511"constructor."5392"constructor."
5512msgstr ""5393msgstr ""
n5513"En <classname>Grid</classname> organiserar dynamiskt underordnade "n5394"Ett <classname>Grid</classname> organiserar dynamiskt underordnade "
5514"komponenter i rader och kolumner. Dimensionerna på rutnätet behöver inte "5395"komponenter i rader och kolumner. Dimensionerna på rutnätet behöver inte "
5515"anges i konstruktorn."5396"anges i konstruktorn."
55165397
5517#. (itstool) path: section/para5398#. (itstool) path: section/para
5518#: C/index-in.docbook:22055399#: C/index-in.docbook:2205
5544"classname> för att styra deras utrymme och deras beteende när vår Grid får "5425"classname> för att styra deras utrymme och deras beteende när vår Grid får "
5545"storleken ändrad."5426"storleken ändrad."
55465427
5547#. (itstool) path: section/para5428#. (itstool) path: section/para
5548#: C/index-in.docbook:22165429#: C/index-in.docbook:2216
n5549#, fuzzyn
5550#| msgid ""
5551#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
5552#| "classGtk_1_1Grid.html\">Reference</link>"
5553msgid ""5430msgid ""
5554"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"5431"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
5555"classGtk_1_1Grid.html\">Reference</link>"5432"classGtk_1_1Grid.html\">Reference</link>"
5556msgstr ""5433msgstr ""
n5557"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n5434"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
5558"classGtk_1_1Grid.html\">Referens</link>"5435"classGtk_1_1Grid.html\">Referens</link>"
55595436
5560#. (itstool) path: section/para5437#. (itstool) path: section/para
5561#: C/index-in.docbook:22205438#: C/index-in.docbook:2220
5562msgid ""5439msgid ""
5648"Använd metoden <methodname>set_current_page()</methodname> för att "5525"Använd metoden <methodname>set_current_page()</methodname> för att "
5649"programmatiskt ändra den valda sidan."5526"programmatiskt ändra den valda sidan."
56505527
5651#. (itstool) path: section/para5528#. (itstool) path: section/para
5652#: C/index-in.docbook:22705529#: C/index-in.docbook:2270
n5653#, fuzzyn
5654#| msgid ""
5655#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
5656#| "classGtk_1_1Notebook.html\">Reference</link>"
5657msgid ""5530msgid ""
5658"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"5531"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
5659"classGtk_1_1Notebook.html\">Reference</link>"5532"classGtk_1_1Notebook.html\">Reference</link>"
5660msgstr ""5533msgstr ""
n5661"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n5534"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
5662"classGtk_1_1Notebook.html\">Referens</link>"5535"classGtk_1_1Notebook.html\">Referens</link>"
56635536
5664#. (itstool) path: imageobject/imagedata5537#. (itstool) path: imageobject/imagedata
5665#. This is a reference to an external file such as an image or video. When5538#. This is a reference to an external file such as an image or video. When
5666#. the file changes, the md5 hash will change to let you know you need to5539#. the file changes, the md5 hash will change to let you know you need to
5696"<application>gtkmm</application> 4.10. There is no replacement in "5569"<application>gtkmm</application> 4.10. There is no replacement in "
5697"<application>gtkmm</application>. libadwaita (a C library) has replacement "5570"<application>gtkmm</application>. libadwaita (a C library) has replacement "
5698"parts (like AdwCarousel). In some cases, a <classname>Gtk::Notebook</"5571"parts (like AdwCarousel). In some cases, a <classname>Gtk::Notebook</"
5699"classname> might be an acceptable replacement."5572"classname> might be an acceptable replacement."
5700msgstr ""5573msgstr ""
nn5574"<classname>Gtk::Assistant</classname> är föråldrad sedan <application>gtkmm</"
5575"application> 4.10. Det finns ingen ersättning i <application>gtkmm</"
5576"application>. libadwaita (ett C-bibliotek) har ersättningsdelar (som "
5577"AdwCarousel). I vissa fall kan en <classname>Gtk::Notebook</classname> vara "
5578"en acceptabel ersättning."
57015579
5702#. (itstool) path: section/para5580#. (itstool) path: section/para
5703#: C/index-in.docbook:22975581#: C/index-in.docbook:2297
5704#, fuzzy5582#, fuzzy
5705msgid ""5583msgid ""
5768"standardknapparna. Använd metoden <methodname>remove_action_widget()</"5646"standardknapparna. Använd metoden <methodname>remove_action_widget()</"
5769"methodname> för att ta bort komponenter."5647"methodname> för att ta bort komponenter."
57705648
5771#. (itstool) path: section/para5649#. (itstool) path: section/para
5772#: C/index-in.docbook:23175650#: C/index-in.docbook:2317
n5773#, fuzzyn
5774#| msgid ""
5775#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
5776#| "classGtk_1_1Assistant.html\">Reference</link>"
5777msgid ""5651msgid ""
5778"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"5652"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
5779"classGtk_1_1Assistant.html\">Reference</link>"5653"classGtk_1_1Assistant.html\">Reference</link>"
5780msgstr ""5654msgstr ""
n5781"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n5655"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
5782"classGtk_1_1Assistant.html\">Referens</link>"5656"classGtk_1_1Assistant.html\">Referens</link>"
57835657
5784#. (itstool) path: imageobject/imagedata5658#. (itstool) path: imageobject/imagedata
5785#. This is a reference to an external file such as an image or video. When5659#. This is a reference to an external file such as an image or video. When
5786#. the file changes, the md5 hash will change to let you know you need to5660#. the file changes, the md5 hash will change to let you know you need to
5828"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"5702"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
5829"master/examples/book/actionbar\">Källkod, ActionBar</link>"5703"master/examples/book/actionbar\">Källkod, ActionBar</link>"
58305704
5831#. (itstool) path: section/para5705#. (itstool) path: section/para
5832#: C/index-in.docbook:23455706#: C/index-in.docbook:2345
n5833#, fuzzyn
5834#| msgid ""
5835#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
5836#| "tree/master/examples/book/flowbox\">Source Code, FlowBox</link>"
5837msgid ""5707msgid ""
5838"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"5708"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
5839"master/examples/book/listbox_flowbox/flowbox\">Source Code, FlowBox</link>"5709"master/examples/book/listbox_flowbox/flowbox\">Source Code, FlowBox</link>"
5840msgstr ""5710msgstr ""
5841"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"5711"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n5842"master/examples/book/flowbox\">Källkod, FlowBox</link>"n5712"master/examples/book/listbox_flowbox/flowbox\">Källkod, FlowBox</link>"
58435713
5844#. (itstool) path: chapter/title5714#. (itstool) path: chapter/title
5845#: C/index-in.docbook:23525715#: C/index-in.docbook:2352
5846msgid "ListView, GridView, ColumnView"5716msgid "ListView, GridView, ColumnView"
n5847msgstr ""n5717msgstr "ListView, GridView, ColumnView"
58485718
5849#. (itstool) path: chapter/para5719#. (itstool) path: chapter/para
5850#: C/index-in.docbook:23545720#: C/index-in.docbook:2354
5851msgid ""5721msgid ""
5852"Lists are intended to be used whenever developers want to display many "5722"Lists are intended to be used whenever developers want to display many "
5853"objects in roughly the same way. They are perfectly fine to be used for very "5723"objects in roughly the same way. They are perfectly fine to be used for very "
5854"short lists of only 2 or 3 items, but generally scale fine to thousands of "5724"short lists of only 2 or 3 items, but generally scale fine to thousands of "
5855"items."5725"items."
5856msgstr ""5726msgstr ""
nn5727"Listor är avsedda att användas närhelst utvecklare vill visa många objekt på "
5728"i stort sett samma sätt. De fungerar utmärkt att använda för väldigt korta "
5729"listor på bara två eller tre objekt, men går även allmänt fint att skala upp "
5730"till tusentals objekt."
58575731
5858#. (itstool) path: chapter/para5732#. (itstool) path: chapter/para
5859#: C/index-in.docbook:23605733#: C/index-in.docbook:2360
5860msgid ""5734msgid ""
5861"Lists are meant to be used with changing data, both with the items "5735"Lists are meant to be used with changing data, both with the items "
5862"themselves changing as well as the list adding and removing items. Of "5736"themselves changing as well as the list adding and removing items. Of "
5863"course, they work just as well with static data."5737"course, they work just as well with static data."
5864msgstr ""5738msgstr ""
nn5739"Listor är tänkta att använda med data som ändras, både då objekten själva "
5740"ändras samt då listan lägger till och tar bort objekt. De fungerar förstås "
5741"precis lika bra med statiska data."
58655742
5866#. (itstool) path: chapter/para5743#. (itstool) path: chapter/para
5867#: C/index-in.docbook:23665744#: C/index-in.docbook:2366
n5868#, fuzzyn
5869msgid ""5745msgid ""
5870"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."
5871"html\">List Widget Overview</link> chapter in the GTK documentation contains "5747"html\">List Widget Overview</link> chapter in the GTK documentation contains "
5872"more information about list widgets."5748"more information about list widgets."
5873msgstr ""5749msgstr ""
n5874"Kapitlet <link xlink:href=\"https://docs.gtk.org/gtk4/input-handling."n5750"Kapitlet <link xlink:href=\"https://docs.gtk.org/gtk4/section-list-widget."
5875"html\">Input Handling</link> i GTK-dokumentationen beskriver hantering av "5751"html\">List Widget Overview</link> i GTK-dokumentationen innehåller mer "
5876"användarinmatning mer detaljerat."5752"information om listkomponenter."
58775753
5878#. (itstool) path: chapter/para5754#. (itstool) path: chapter/para
5879#: C/index-in.docbook:23715755#: C/index-in.docbook:2371
n5880#, fuzzyn
5881#| msgid ""
5882#| "Some <classname>TreeView</classname> examples are shown here. There are "
5883#| "more examples in the <link xlink:href=\"https://gitlab.gnome.org/GNOME/"
5884#| "gtkmm-documentation/tree/master/examples/book/treeview/\">treeview "
5885#| "directory</link> in <application>gtkmm-documentation</application>'s "
5886#| "examples."
5887msgid ""5756msgid ""
5888"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 "
5889"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"5758"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
5890"master/examples/book/listmodelviews/\">listmodelviews directory</link> in "5759"master/examples/book/listmodelviews/\">listmodelviews directory</link> in "
5891"<application>gtkmm-documentation</application>'s examples."5760"<application>gtkmm-documentation</application>'s examples."
5892msgstr ""5761msgstr ""
n5893"Några <classname>TreeView</classname>-exempel visas här. Det finns mer "n5762"Några exempel visas i detta kapitel. Det finns mer exempel i <link xlink:"
5894"exempel i <link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-"5763"href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/master/"
5895"documentation/tree/master/examples/book/treeview/\">treeview-katalogen</"5764"examples/book/listmodelviews/\">listmodelviews-katalogen</link> i "
5896"link> i <application>gtkmm-documentation</application>s exempel."5765"<application>gtkmm-documentation</application>s exempel."
58975766
5898#. (itstool) path: section/title5767#. (itstool) path: section/title
5899#: C/index-in.docbook:23775768#: C/index-in.docbook:2377
n5900#, fuzzyn
5901msgid "The Data Model"5769msgid "The Data Model"
n5902msgstr "Modellen"n5770msgstr "Datamodellen"
59035771
5904#. (itstool) path: section/para5772#. (itstool) path: section/para
5905#: C/index-in.docbook:23795773#: C/index-in.docbook:2379
5906msgid ""5774msgid ""
5907"The data model is a class that implements the <classname>Gio::ListModel</"5775"The data model is a class that implements the <classname>Gio::ListModel</"
5909"ListStore</classname> (not to be confused with the deprecated "5777"ListStore</classname> (not to be confused with the deprecated "
5910"<classname>Gtk::ListStore</classname>), <classname>Gtk:StringList</"5778"<classname>Gtk::ListStore</classname>), <classname>Gtk:StringList</"
5911"classname>, <classname>Gtk:DirectoryList</classname> and <classname>Pango::"5779"classname>, <classname>Gtk:DirectoryList</classname> and <classname>Pango::"
5912"FontMap</classname>."5780"FontMap</classname>."
5913msgstr ""5781msgstr ""
nn5782"Datamodellen är en klass som implementerar <classname>Gio::ListModel</"
5783"classname>-gränssnittet. Exempel på sådana klasser är <classname>Gio::"
5784"ListStore</classname> (inte att förväxlas med den föråldrade <classname>Gtk::"
5785"ListStore</classname>), <classname>Gtk:StringList</classname>, "
5786"<classname>Gtk:DirectoryList</classname> och <classname>Pango::FontMap</"
5787"classname>."
59145788
5915#. (itstool) path: section/para5789#. (itstool) path: section/para
5916#: C/index-in.docbook:23875790#: C/index-in.docbook:2387
n5917#, fuzzyn
5918#| msgid ""
5919#| "The model for a ComboBox can be defined and filled exactly as for a "
5920#| "<classname>TreeView</classname>. For instance, you might derive a "
5921#| "ComboBox class with one integer and one text column, like so:"
5922msgid ""5791msgid ""
5923"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 "
5924"instances of a subclass of <classname>Glib::Object</classname>. For "5793"instances of a subclass of <classname>Glib::Object</classname>. For "
5925"instance, you might have a <classname>ColumnView</classname> with one "5794"instance, you might have a <classname>ColumnView</classname> with one "
5926"integer and one text column, like so:"5795"integer and one text column, like so:"
5927msgstr ""5796msgstr ""
n5928"Modellen för en ComboBox kan definieras och fyllas i exakt som för en "n5797"Elementen i en modell kallas <emphasis>objekt</emphasis>. Alla objekt är "
5929"<classname>TreeView</classname>. Exempelvis kan du härleda en ComboBox med "5798"instanser av en underklass till <classname>Glib::Object</classname>. "
5799"Exempelvis kan du ha en <classname>ColumnView</classname> med ett heltal och "
5930"ett heltal och en textkolumn, så här:"5800"en textkolumn, så här:"
59315801
5932#. (itstool) path: section/programlisting5802#. (itstool) path: section/programlisting
5933#: C/index-in.docbook:2393 C/index-in.docbook:33915803#: C/index-in.docbook:2393 C/index-in.docbook:3391
n5934#, no-wrapn5804#, fuzzy, no-wrap
5805#| msgid ""
5806#| "class ModelColumns : public Glib::Object\n"
5807#| "{\n"
5808#| "public:\n"
5809#| "  int m_col_id;\n"
5810#| "  Glib::ustring m_col_name;\n"
5811#| "\n"
5812#| "  static Glib::RefPtr&lt;ModelColumns&gt; create(\n"
5813#| "    int col_id, const Glib::ustring&amp; col_name)\n"
5814#| "  {\n"
5815#| "    return Glib::make_refptr_for_instance&lt;ModelColumns&gt;(\n"
5816#| "      new ModelColumns(col_id, col_name));\n"
5817#| "  }\n"
5818#| "\n"
5819#| "protected:\n"
5820#| "  ModelColumns(int col_id, const Glib::ustring&amp; col_name)\n"
5821#| "  : m_col_id(col_id), m_col_name(col_name)\n"
5822#| "  {}\n"
5823#| "};\n"
5824#| "\n"
5825#| "Glib::RefPtr&lt;Gio::ListStore&lt;ModelColumns&gt;&gt; m_ListStore;\n"
5935msgid ""5826msgid ""
5936"<code>class ModelColumns : public Glib::Object\n"5827"<code>class ModelColumns : public Glib::Object\n"
5937"{\n"5828"{\n"
5938"public:\n"5829"public:\n"
5939"  int m_col_id;\n"5830"  int m_col_id;\n"
5953"};\n"5844"};\n"
5954"\n"5845"\n"
5955"Glib::RefPtr&lt;Gio::ListStore&lt;ModelColumns&gt;&gt; m_ListStore;\n"5846"Glib::RefPtr&lt;Gio::ListStore&lt;ModelColumns&gt;&gt; m_ListStore;\n"
5956"</code>"5847"</code>"
5957msgstr ""5848msgstr ""
nn5849"class ModelColumns : public Glib::Object\n"
5850"{\n"
5851"public:\n"
5852"  int m_col_id;\n"
5853"  Glib::ustring m_col_name;\n"
5854"\n"
5855"  static Glib::RefPtr&lt;ModelColumns&gt; create(\n"
5856"    int col_id, const Glib::ustring&amp; col_name)\n"
5857"  {\n"
5858"    return Glib::make_refptr_for_instance&lt;ModelColumns&gt;(\n"
5859"      new ModelColumns(col_id, col_name));\n"
5860"  }\n"
5861"\n"
5862"protected:\n"
5863"  ModelColumns(int col_id, const Glib::ustring&amp; col_name)\n"
5864"  : m_col_id(col_id), m_col_name(col_name)\n"
5865"  {}\n"
5866"};\n"
5867"\n"
5868"Glib::RefPtr&lt;Gio::ListStore&lt;ModelColumns&gt;&gt; m_ListStore;\n"
59585869
5959#. (itstool) path: section/para5870#. (itstool) path: section/para
5960#: C/index-in.docbook:24155871#: C/index-in.docbook:2415
5961msgid ""5872msgid ""
5962"Every item in a model has a position which is the unsigned integer that "5873"Every item in a model has a position which is the unsigned integer that "
5963"describes where in the model the item is located. The first item in a model "5874"describes where in the model the item is located. The first item in a model "
5964"is at position 0. The position of an item can of course change as other "5875"is at position 0. The position of an item can of course change as other "
5965"items are added to or removed from the model."5876"items are added to or removed from the model."
5966msgstr ""5877msgstr ""
nn5878"Varje objekt i en modell har en position vilken är det teckenlösa heltalet "
5879"som beskriver var i modellen som objektet finns. Det första objektet i en "
5880"modell har position 0. Positionen för ett objekt kan förstås ändras då andra "
5881"objekt läggs till eller tas bort från modellen."
59675882
5968#. (itstool) path: section/para5883#. (itstool) path: section/para
5969#: C/index-in.docbook:24215884#: C/index-in.docbook:2421
n5970#, fuzzyn
5971#| msgid ""
5972#| "<link xlink:href=\"http://developer.gnome.org/glibmm/unstable/"
5973#| "classGio_1_1Resource.html\">Gio::Resource Reference</link>"
5974msgid ""5885msgid ""
5975"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/"5886"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/"
5976"classGio_1_1ListStore.html\">Gio::ListStore Reference</link>"5887"classGio_1_1ListStore.html\">Gio::ListStore Reference</link>"
5977msgstr ""5888msgstr ""
n5978"<link xlink:href=\"http://developer.gnome.org/glibmm/unstable/"n5889"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/"
5979"classGio_1_1Resource.html\">Referens för Gio::Resource</link>"5890"classGio_1_1ListStore.html\">Referens för Gio::ListStore</link>"
59805891
5981#. (itstool) path: section/para5892#. (itstool) path: section/para
5982#: C/index-in.docbook:24225893#: C/index-in.docbook:2422
n5983#, fuzzyn
5984#| msgid ""
5985#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
5986#| "classGtk_1_1Widget.html\">Widget Reference</link>"
5987msgid ""5894msgid ""
5988"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"5895"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
5989"classGtk_1_1StringList.html\">StringList Reference</link>"5896"classGtk_1_1StringList.html\">StringList Reference</link>"
5990msgstr ""5897msgstr ""
n5991"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n5898"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
5992"classGtk_1_1Widget.html\">Widget-referens</link>"5899"classGtk_1_1StringList.html\">Referens för StringList</link>"
59935900
5994#. (itstool) path: section/para5901#. (itstool) path: section/para
5995#: C/index-in.docbook:24235902#: C/index-in.docbook:2423
n5996#, fuzzyn
5997#| msgid ""
5998#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
5999#| "classGtk_1_1Widget.html\">Widget Reference</link>"
6000msgid ""5903msgid ""
6001"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"5904"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6002"classGtk_1_1DirectoryList.html\">DirectoryList Reference</link>"5905"classGtk_1_1DirectoryList.html\">DirectoryList Reference</link>"
6003msgstr ""5906msgstr ""
n6004"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n5907"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6005"classGtk_1_1Widget.html\">Widget-referens</link>"5908"classGtk_1_1DirectoryList.html\">Referens för DirectoryList</link>"
60065909
6007#. (itstool) path: section/title5910#. (itstool) path: section/title
6008#: C/index-in.docbook:24275911#: C/index-in.docbook:2427
n6009#, fuzzyn
6010msgid "The Selection Model"5912msgid "The Selection Model"
n6011msgstr "Selection"n5913msgstr "Markeringsmodellen"
60125914
6013#. (itstool) path: section/para5915#. (itstool) path: section/para
6014#: C/index-in.docbook:24295916#: C/index-in.docbook:2429
n6015#, fuzzyn
6016#| msgid ""
6017#| "If you use an <classname>Gtk::ApplicationWindow</classname>, you don't "
6018#| "have to create your own action group. <classname>Gio::ActionGroup</"
6019#| "classname> and <classname>Gio::ActionMap</classname> are base classes of "
6020#| "<classname>Gtk::ApplicationWindow</classname>."
6021msgid ""5917msgid ""
6022"The selection model is a class that implements the <classname>Gtk::"5918"The selection model is a class that implements the <classname>Gtk::"
6023"SelectionModel</classname> interface. You can choose between "5919"SelectionModel</classname> interface. You can choose between "
6024"<classname>NoSelection</classname>, <classname>SingleSelection</classname> "5920"<classname>NoSelection</classname>, <classname>SingleSelection</classname> "
6025"and <classname>MultiSelection</classname>."5921"and <classname>MultiSelection</classname>."
6026msgstr ""5922msgstr ""
n6027"Om du använder ett <classname>Gtk::ApplicationWindow</classname> behöver du "n5923"Markeringsmodellen är en klass som implementerar gränssnittet "
6028"inte skapa din egen åtgärdsgrupp. <classname>Gio::ActionGroup</classname> "5924"<classname>Gtk::SelectionModel</classname>. You can choose between "
6029"och <classname>Gio::ActionMap</classname> är basklasser för <classname>Gtk::"5925"<classname>NoSelection</classname>, <classname>SingleSelection</classname> "
6030"ApplicationWindow</classname>."5926"and <classname>MultiSelection</classname>."
60315927
6032#. (itstool) path: section/para5928#. (itstool) path: section/para
6033#: C/index-in.docbook:24345929#: C/index-in.docbook:2434
n6034#, fuzzyn
6035#| msgid ""
6036#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
6037#| "classGtk_1_1Tooltip.html\">Tooltip Reference</link>"
6038msgid ""5930msgid ""
6039"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"5931"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6040"classGtk_1_1NoSelection.html\">NoSelection Reference</link>"5932"classGtk_1_1NoSelection.html\">NoSelection Reference</link>"
6041msgstr ""5933msgstr ""
n6042"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n5934"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6043"classGtk_1_1Tooltip.html\">Tooltip-referens</link>"5935"classGtk_1_1NoSelection.html\">Referens för NoSelection</link>"
60445936
6045#. (itstool) path: section/para5937#. (itstool) path: section/para
6046#: C/index-in.docbook:24355938#: C/index-in.docbook:2435
n6047#, fuzzyn
6048#| msgid ""
6049#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
6050#| "classGtk_1_1Widget.html\">Widget Reference</link>"
6051msgid ""5939msgid ""
6052"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"5940"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6053"classGtk_1_1SingleSelection.html\">SingleSelection Reference</link>"5941"classGtk_1_1SingleSelection.html\">SingleSelection Reference</link>"
6054msgstr ""5942msgstr ""
n6055"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n5943"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6056"classGtk_1_1Widget.html\">Widget-referens</link>"5944"classGtk_1_1SingleSelection.html\">Referens för SingleSelection</link>"
60575945
6058#. (itstool) path: section/para5946#. (itstool) path: section/para
6059#: C/index-in.docbook:24365947#: C/index-in.docbook:2436
n6060#, fuzzyn
6061#| msgid ""
6062#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
6063#| "classGtk_1_1Application.html\">Gtk::Application Reference</link>"
6064msgid ""5948msgid ""
6065"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"5949"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6066"classGtk_1_1MultiSelection.html\">MultiSelection Reference</link>"5950"classGtk_1_1MultiSelection.html\">MultiSelection Reference</link>"
6067msgstr ""5951msgstr ""
n6068"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n5952"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6069"classGtk_1_1Application.html\">Referens för Gtk::Application</link>"5953"classGtk_1_1MultiSelection.html\">Referens för MultiSelection</link>"
60705954
6071#. (itstool) path: section/title5955#. (itstool) path: section/title
6072#: C/index-in.docbook:24405956#: C/index-in.docbook:2440
6073#, fuzzy5957#, fuzzy
6074msgid "The Factory"5958msgid "The Factory"
n6075msgstr "Inmatningen"n5959msgstr "Fabriken"
60765960
6077#. (itstool) path: section/para5961#. (itstool) path: section/para
6078#: C/index-in.docbook:24425962#: C/index-in.docbook:2442
nn5963#, fuzzy
6079msgid ""5964msgid ""
6080"Data from the data model is added to the view by a factory, which is a "5965"Data from the data model is added to the view by a factory, which is a "
6081"subclass of <classname>ListItemFactory</classname>. There is only one such "5966"subclass of <classname>ListItemFactory</classname>. There is only one such "
6082"subclass in <application>gtkmm</application>, "5967"subclass in <application>gtkmm</application>, "
6083"<classname>SignalListItemFactory</classname>. Data from the model is added "5968"<classname>SignalListItemFactory</classname>. Data from the model is added "
6084"to the view with signal handlers connected to a "5969"to the view with signal handlers connected to a "
6085"<classname>SignalListItemFactory</classname>."5970"<classname>SignalListItemFactory</classname>."
6086msgstr ""5971msgstr ""
nn5972"Data från datamodellen läggs till i vyn av en fabrik, vilken är en "
5973"underklass av <classname>ListItemFactory</classname>. Det finns endast en "
5974"sådan underklass i <application>gtkmm</application>, "
5975"<classname>SignalListItemFactory</classname>. Data från modellen läggs till "
5976"i vyn med signalhanterare anslutna till en <classname>SignalListItemFactory</"
5977"classname>."
60875978
6088#. (itstool) path: section/para5979#. (itstool) path: section/para
6089#: C/index-in.docbook:24485980#: C/index-in.docbook:2448
n6090#, fuzzyn
6091#| msgid ""
6092#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
6093#| "classGtk_1_1Widget.html\">Widget Reference</link>"
6094msgid ""5981msgid ""
6095"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"5982"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6096"classGtk_1_1SignalListItemFactory.html\">SignalListItemFactory Reference</"5983"classGtk_1_1SignalListItemFactory.html\">SignalListItemFactory Reference</"
6097"link>"5984"link>"
6098msgstr ""5985msgstr ""
n6099"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n5986"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6100"classGtk_1_1Widget.html\">Widget-referens</link>"5987"classGtk_1_1SignalListItemFactory.html\">Referens för SignalListItemFactory</"
5988"link>"
61015989
6102#. (itstool) path: section/title5990#. (itstool) path: section/title
6103#: C/index-in.docbook:2452 C/index-in.docbook:2823 C/index-in.docbook:38725991#: C/index-in.docbook:2452 C/index-in.docbook:2823 C/index-in.docbook:3872
6104#, fuzzy5992#, fuzzy
6105msgid "The View"5993msgid "The View"
n6106msgstr "View"n5994msgstr "Vyn"
61075995
6108#. (itstool) path: section/para5996#. (itstool) path: section/para
6109#: C/index-in.docbook:24545997#: C/index-in.docbook:2454
6110#, fuzzy5998#, fuzzy
6111msgid ""5999msgid ""
6112"The View is the widget that displays the model data and allows the user to "6000"The View is the widget that displays the model data and allows the user to "
6113"interact with it. The View can show all of the model's columns, or just "6001"interact with it. The View can show all of the model's columns, or just "
6114"some, and it can show them in various ways."6002"some, and it can show them in various ways."
6115msgstr ""6003msgstr ""
n6116"Vyn är den faktiska komponenten (<classname>Gtk::TreeView</classname>) som "n6004"Vyn är komponenten som visar data för modellen och låter användaren "
6117"visar data för modellen (<classname>Gtk::TreeModel</classname>) och låter "
6118"användaren interagera med dem. Vyn kan visa alla modellens kolumner, eller "6005"interagera med dem. Vyn kan visa alla modellens kolumner, eller bara några, "
6119"bara några, och den kan visa dem på olika sätt."6006"och den kan visa dem på olika sätt."
61206007
6121#. (itstool) path: section/para6008#. (itstool) path: section/para
6122#: C/index-in.docbook:24606009#: C/index-in.docbook:2460
nn6010#, fuzzy
6123msgid ""6011msgid ""
6124"An important requirement for views (especially views of long lists) is that "6012"An important requirement for views (especially views of long lists) is that "
6125"they need to know which items are not visible so they can be recycled. Views "6013"they need to know which items are not visible so they can be recycled. Views "
6126"achieve that by implementing the <classname>Scrollable</classname> interface "6014"achieve that by implementing the <classname>Scrollable</classname> interface "
6127"and expecting to be placed directly into a <classname>ScrolledWindow</"6015"and expecting to be placed directly into a <classname>ScrolledWindow</"
6128"classname>."6016"classname>."
6129msgstr ""6017msgstr ""
nn6018"Ett viktigt krav för vyer (särskilt vyer över långa listor) är att de "
6019"behöver veta vilka objekt som inte är synliga, så att de kan återvinnas. "
6020"Vyer åstadkommer det genom att implementera gränssnittet "
6021"<classname>Scrollable</classname> och förväntar sig att placeras direkt i "
6022"ett <classname>ScrolledWindow</classname>."
61306023
6131#. (itstool) path: section/para6024#. (itstool) path: section/para
6132#: C/index-in.docbook:24676025#: C/index-in.docbook:2467
nn6026#, fuzzy
6133msgid "There are different view widgets to choose from."6027msgid "There are different view widgets to choose from."
n6134msgstr ""n6028msgstr "Det finns olika vykomponenter att välja från."
61356029
6136#. (itstool) path: section/title6030#. (itstool) path: section/title
6137#. (itstool) path: figure/title6031#. (itstool) path: figure/title
6138#: C/index-in.docbook:2472 C/index-in.docbook:24846032#: C/index-in.docbook:2472 C/index-in.docbook:2484
n6139#, fuzzyn
6140#| msgid "TextView"
6141msgid "ListView"6033msgid "ListView"
n6142msgstr "TextView"n6034msgstr "ListView"
61436035
6144#. (itstool) path: section/para6036#. (itstool) path: section/para
6145#: C/index-in.docbook:24746037#: C/index-in.docbook:2474
n6146#, fuzzyn
6147#| msgid ""
6148#| "The <classname>Gtk::TreeView</classname> widget can contain lists or "
6149#| "trees of data, in columns."
6150msgid ""6038msgid ""
6151"The <classname>ListView</classname> shows a 1-dimensional list with one "6039"The <classname>ListView</classname> shows a 1-dimensional list with one "
6152"column."6040"column."
6153msgstr ""6041msgstr ""
n6154"Komponenten <classname>Gtk::TreeView</classname> kan innehålla listor eller "n6042"<classname>ListView</classname> visar en 1-dimensionell lista med en kolumn."
6155"träd med data i kolumner."
61566043
6157#. (itstool) path: section/para6044#. (itstool) path: section/para
6158#: C/index-in.docbook:24786045#: C/index-in.docbook:2478
n6159#, fuzzyn
6160#| msgid ""
6161#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
6162#| "classGtk_1_1TextView.html\">Reference</link>"
6163msgid ""6046msgid ""
6164"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6047"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6165"classGtk_1_1ListView.html\">Reference</link>"6048"classGtk_1_1ListView.html\">Reference</link>"
6166msgstr ""6049msgstr ""
n6167"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n6050"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6168"classGtk_1_1TextView.html\">Referens</link>"6051"classGtk_1_1ListView.html\">Referens</link>"
61696052
6170#. (itstool) path: imageobject/imagedata6053#. (itstool) path: imageobject/imagedata
6171#. This is a reference to an external file such as an image or video. When6054#. This is a reference to an external file such as an image or video. When
6172#. the file changes, the md5 hash will change to let you know you need to6055#. the file changes, the md5 hash will change to let you know you need to
6173#. update your localized copy. The msgstr is not used at all. Set it to6056#. update your localized copy. The msgstr is not used at all. Set it to
6177msgctxt "_"6060msgctxt "_"
6178msgid ""6061msgid ""
6179"external ref='figures/listmodel_listview.png' "6062"external ref='figures/listmodel_listview.png' "
6180"md5='5e49d159f43fdc5242998713bdedafc8'"6063"md5='5e49d159f43fdc5242998713bdedafc8'"
6181msgstr ""6064msgstr ""
n6182"external ref='figures/textview.png' md5='451e30f66cc32c4231bb6bc442cf0d2f'"n6065"external ref='figures/listmodel_listview.png' "
6066"md5='5e49d159f43fdc5242998713bdedafc8'"
61836067
6184#. (itstool) path: section/para6068#. (itstool) path: section/para
6185#: C/index-in.docbook:24906069#: C/index-in.docbook:2490
n6186#, fuzzyn
6187#| msgid ""
6188#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
6189#| "tree/master/examples/book/treeview/list/\">Source Code</link>"
6190msgid ""6070msgid ""
6191"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6071"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
6192"master/examples/book/listmodelviews/list_listview\">Source Code</link>"6072"master/examples/book/listmodelviews/list_listview\">Source Code</link>"
6193msgstr ""6073msgstr ""
6194"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6074"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n6195"master/examples/book/treeview/list/\">Källkod</link>"n6075"master/examples/book/listmodelviews/list_listview\">Källkod</link>"
61966076
6197#. (itstool) path: section/title6077#. (itstool) path: section/title
6198#. (itstool) path: figure/title6078#. (itstool) path: figure/title
6199#: C/index-in.docbook:2496 C/index-in.docbook:25086079#: C/index-in.docbook:2496 C/index-in.docbook:2508
n6200#, fuzzyn
6201#| msgid "Grid"
6202msgid "GridView"6080msgid "GridView"
n6203msgstr "Grid"n6081msgstr "GridView"
62046082
6205#. (itstool) path: section/para6083#. (itstool) path: section/para
6206#: C/index-in.docbook:24986084#: C/index-in.docbook:2498
n6207#, fuzzyn
6208#| msgid "The <classname>Tag</classname> class has many other properties."
6209msgid "The <classname>GridView</classname> shows a 2-dimensional grid."6085msgid "The <classname>GridView</classname> shows a 2-dimensional grid."
n6210msgstr "Klassen <classname>Tag</classname> har många andra egenskaper."n6086msgstr "<classname>GridView</classname> visar ett 2-dimensionellt rutnät."
62116087
6212#. (itstool) path: section/para6088#. (itstool) path: section/para
6213#: C/index-in.docbook:25026089#: C/index-in.docbook:2502
n6214#, fuzzyn
6215#| msgid ""
6216#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
6217#| "classGtk_1_1Grid.html\">Reference</link>"
6218msgid ""6090msgid ""
6219"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6091"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6220"classGtk_1_1GridView.html\">Reference</link>"6092"classGtk_1_1GridView.html\">Reference</link>"
6221msgstr ""6093msgstr ""
n6222"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n6094"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6223"classGtk_1_1Grid.html\">Referens</link>"6095"classGtk_1_1GridView.html\">Referens</link>"
62246096
6225#. (itstool) path: imageobject/imagedata6097#. (itstool) path: imageobject/imagedata
6226#. This is a reference to an external file such as an image or video. When6098#. This is a reference to an external file such as an image or video. When
6227#. the file changes, the md5 hash will change to let you know you need to6099#. the file changes, the md5 hash will change to let you know you need to
6228#. update your localized copy. The msgstr is not used at all. Set it to6100#. update your localized copy. The msgstr is not used at all. Set it to
6232msgctxt "_"6104msgctxt "_"
6233msgid ""6105msgid ""
6234"external ref='figures/listmodel_gridview.png' "6106"external ref='figures/listmodel_gridview.png' "
6235"md5='0d87e962deacc452f32513f0d5e07e04'"6107"md5='0d87e962deacc452f32513f0d5e07e04'"
6236msgstr ""6108msgstr ""
n6237"external ref='figures/treeview_list.png' "n6109"external ref='figures/listmodel_gridview.png' "
6238"md5='60e5e4ecb284d0cdc53373fe0ec858ee'"6110"md5='0d87e962deacc452f32513f0d5e07e04'"
62396111
6240#. (itstool) path: section/para6112#. (itstool) path: section/para
6241#: C/index-in.docbook:25146113#: C/index-in.docbook:2514
n6242#, fuzzyn
6243#| msgid ""
6244#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
6245#| "tree/master/examples/book/textview/\">Source Code</link>"
6246msgid ""6114msgid ""
6247"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6115"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
6248"master/examples/book/listmodelviews/gridview\">Source Code</link>"6116"master/examples/book/listmodelviews/gridview\">Source Code</link>"
6249msgstr ""6117msgstr ""
6250"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6118"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n6251"master/examples/book/textview/\">Källkod</link>"n6119"master/examples/book/listmodelviews/gridview\">Källkod</link>"
62526120
6253#. (itstool) path: section/title6121#. (itstool) path: section/title
6254#. (itstool) path: figure/title6122#. (itstool) path: figure/title
6255#: C/index-in.docbook:2520 C/index-in.docbook:25326123#: C/index-in.docbook:2520 C/index-in.docbook:2532
6256msgid "ColumnView"6124msgid "ColumnView"
n6257msgstr ""n6125msgstr "ColumnView"
62586126
6259#. (itstool) path: section/para6127#. (itstool) path: section/para
6260#: C/index-in.docbook:25226128#: C/index-in.docbook:2522
n6261#, fuzzyn
6262#| msgid ""
6263#| "The <classname>Gtk::TreeView</classname> widget can contain lists or "
6264#| "trees of data, in columns."
6265msgid ""6129msgid ""
6266"The <classname>ColumnView</classname> shows a 1-dimensional list with one or "6130"The <classname>ColumnView</classname> shows a 1-dimensional list with one or "
6267"more columns."6131"more columns."
6268msgstr ""6132msgstr ""
n6269"Komponenten <classname>Gtk::TreeView</classname> kan innehålla listor eller "n6133"<classname>ColumnView</classname> visar en 1-dimensionell lista med en eller "
6270"träd med data i kolumner."6134"flera kolumner."
62716135
6272#. (itstool) path: section/para6136#. (itstool) path: section/para
6273#: C/index-in.docbook:25266137#: C/index-in.docbook:2526
n6274#, fuzzyn
6275#| msgid ""
6276#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
6277#| "classGtk_1_1TreeView.html\">Reference</link>"
6278msgid ""6138msgid ""
6279"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6139"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6280"classGtk_1_1ColumnView.html\">Reference</link>"6140"classGtk_1_1ColumnView.html\">Reference</link>"
6281msgstr ""6141msgstr ""
n6282"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n6142"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6283"classGtk_1_1TreeView.html\">Referens</link>"6143"classGtk_1_1ColumnView.html\">Referens</link>"
62846144
6285#. (itstool) path: imageobject/imagedata6145#. (itstool) path: imageobject/imagedata
6286#. This is a reference to an external file such as an image or video. When6146#. This is a reference to an external file such as an image or video. When
6287#. the file changes, the md5 hash will change to let you know you need to6147#. the file changes, the md5 hash will change to let you know you need to
6288#. update your localized copy. The msgstr is not used at all. Set it to6148#. update your localized copy. The msgstr is not used at all. Set it to
6292msgctxt "_"6152msgctxt "_"
6293msgid ""6153msgid ""
6294"external ref='figures/listmodel_columnview.png' "6154"external ref='figures/listmodel_columnview.png' "
6295"md5='fd8445f1904773397a7252bf843e2c38'"6155"md5='fd8445f1904773397a7252bf843e2c38'"
6296msgstr ""6156msgstr ""
n6297"external ref='figures/aspectframe.png' md5='9d8aac9521789ed27036a97a22fedece'"n6157"external ref='figures/listmodel_columnview.png' "
6158"md5='fd8445f1904773397a7252bf843e2c38'"
62986159
6299#. (itstool) path: section/para6160#. (itstool) path: section/para
6300#: C/index-in.docbook:25386161#: C/index-in.docbook:2538
n6301#, fuzzyn
6302#| msgid ""
6303#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
6304#| "tree/master/examples/book/treeview/list/\">Source Code</link>"
6305msgid ""6162msgid ""
6306"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6163"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
6307"master/examples/book/listmodelviews/list_columnview\">Source Code</link>"6164"master/examples/book/listmodelviews/list_columnview\">Source Code</link>"
6308msgstr ""6165msgstr ""
6309"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6166"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n6310"master/examples/book/treeview/list/\">Källkod</link>"n6167"master/examples/book/listmodelviews/list_columnview\">Källkod</link>"
63116168
6312#. (itstool) path: section/title6169#. (itstool) path: section/title
6313#: C/index-in.docbook:2545 C/index-in.docbook:31396170#: C/index-in.docbook:2545 C/index-in.docbook:3139
6314msgid "Sorting"6171msgid "Sorting"
6315msgstr "Sortering"6172msgstr "Sortering"
63166173
6317#. (itstool) path: section/para6174#. (itstool) path: section/para
6318#: C/index-in.docbook:25476175#: C/index-in.docbook:2547
nn6176#, fuzzy
6319msgid ""6177msgid ""
6320"The list can be sorted by wrapping it in a <classname>SortListModel</"6178"The list can be sorted by wrapping it in a <classname>SortListModel</"
6321"classname>. There are two ways to do this."6179"classname>. There are two ways to do this."
6322msgstr ""6180msgstr ""
nn6181"Listan kan sorteras genom att omsluta den i en <classname>SortListModel</"
6182"classname>. Det finns två sätt att göra detta."
63236183
6324#. (itstool) path: listitem/para6184#. (itstool) path: listitem/para
6325#: C/index-in.docbook:25526185#: C/index-in.docbook:2552
nn6186#, fuzzy
6326msgid ""6187msgid ""
6327"In a <classname>ColumnView</classname>, get the <classname>ColumnViewSorter</"6188"In a <classname>ColumnView</classname>, get the <classname>ColumnViewSorter</"
6328"classname> from the <classname>ColumnView</classname> and set it to the "6189"classname> from the <classname>ColumnView</classname> and set it to the "
6329"<classname>SortListModel</classname>. Set a <classname>Sorter</classname> to "6190"<classname>SortListModel</classname>. Set a <classname>Sorter</classname> to "
6330"each <classname>ColumnViewColumn</classname>. Then the user of your app can "6191"each <classname>ColumnViewColumn</classname>. Then the user of your app can "
6331"sort the items by clicking on a column heading."6192"sort the items by clicking on a column heading."
6332msgstr ""6193msgstr ""
nn6194"I en <classname>ColumnView</classname> hämtar du "
6195"<classname>ColumnViewSorter</classname> från denna <classname>ColumnView</"
6196"classname> och ställer in den till <classname>SortListModel</classname>-"
6197"modellen. Ställ in en <classname>Sorter</classname> för varje "
6198"<classname>ColumnViewColumn</classname>. Användaren av ditt program kan "
6199"sedan sortera objekten genom att klicka på en kolumnrubrik."
63336200
6334#. (itstool) path: listitem/para6201#. (itstool) path: listitem/para
6335#: C/index-in.docbook:25576202#: C/index-in.docbook:2557
6336#, fuzzy6203#, fuzzy
6337#| msgid ""6204#| msgid ""
6341msgid ""6208msgid ""
6342"In any view, set a <classname>Sorter</classname> such as a "6209"In any view, set a <classname>Sorter</classname> such as a "
6343"<classname>StringSorter</classname> or a <classname>NumericSorter</"6210"<classname>StringSorter</classname> or a <classname>NumericSorter</"
6344"classname> to the <classname>SortListModel</classname>."6211"classname> to the <classname>SortListModel</classname>."
6345msgstr ""6212msgstr ""
n6346"Som nämns ovan har varje <classname>TextView</classname> en "n6213"Ställ i valfri vy in en <classname>Sorter</classname> som en "
6347"<classname>TextBuffer</classname>, och en eller flera <classname>TextView</"6214"<classname>StringSorter</classname> eller en <classname>NumericSorter</"
6348"classname> kan dela på samma <classname>TextBuffer</classname>."6215"classname> till <classname>SortListModel</classname>-modellen."
63496216
6350#. (itstool) path: section/para6217#. (itstool) path: section/para
6351#: C/index-in.docbook:25626218#: C/index-in.docbook:2562
n6352#, fuzzyn
6353#| msgid ""
6354#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
6355#| "classGtk_1_1TreeModelSort.html\">TreeModelSort Reference</link>"
6356msgid ""6219msgid ""
6357"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6220"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6358"classGtk_1_1SortListModel.html\">SortListModel Reference</link>"6221"classGtk_1_1SortListModel.html\">SortListModel Reference</link>"
6359msgstr ""6222msgstr ""
n6360"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n6223"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6361"classGtk_1_1TreeModelSort.html\">Referens för TreeModelSort</link>"6224"classGtk_1_1SortListModel.html\">Referens för SortListModel</link>"
63626225
6363#. (itstool) path: section/para6226#. (itstool) path: section/para
6364#: C/index-in.docbook:25636227#: C/index-in.docbook:2563
n6365#, fuzzyn
6366#| msgid ""
6367#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
6368#| "classGtk_1_1TreeSortable.html\">TreeSortable Reference</link>"
6369msgid ""6228msgid ""
6370"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6229"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6371"classGtk_1_1StringSorter.html\">StringSorter Reference</link>"6230"classGtk_1_1StringSorter.html\">StringSorter Reference</link>"
6372msgstr ""6231msgstr ""
n6373"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n6232"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6374"classGtk_1_1TreeSortable.html\">Referens för TreeSortable</link>"6233"classGtk_1_1StringSorter.html\">Referens för StringSorter</link>"
63756234
6376#. (itstool) path: section/para6235#. (itstool) path: section/para
6377#: C/index-in.docbook:25646236#: C/index-in.docbook:2564
n6378#, fuzzyn
6379#| msgid ""
6380#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
6381#| "classGtk_1_1TreeSortable.html\">TreeSortable Reference</link>"
6382msgid ""6237msgid ""
6383"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6238"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6384"classGtk_1_1NumericSorter.html\">NumericSorter Reference</link>"6239"classGtk_1_1NumericSorter.html\">NumericSorter Reference</link>"
6385msgstr ""6240msgstr ""
n6386"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n6241"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6387"classGtk_1_1TreeSortable.html\">Referens för TreeSortable</link>"6242"classGtk_1_1NumericSorter.html\">Referens för NumericSorter</link>"
63886243
6389#. (itstool) path: figure/title6244#. (itstool) path: figure/title
6390#: C/index-in.docbook:25706245#: C/index-in.docbook:2570
6391msgid "SortListModel"6246msgid "SortListModel"
n6392msgstr ""n6247msgstr "SortListModel"
63936248
6394#. (itstool) path: imageobject/imagedata6249#. (itstool) path: imageobject/imagedata
6395#. This is a reference to an external file such as an image or video. When6250#. This is a reference to an external file such as an image or video. When
6396#. the file changes, the md5 hash will change to let you know you need to6251#. the file changes, the md5 hash will change to let you know you need to
6397#. update your localized copy. The msgstr is not used at all. Set it to6252#. update your localized copy. The msgstr is not used at all. Set it to
6401msgctxt "_"6256msgctxt "_"
6402msgid ""6257msgid ""
6403"external ref='figures/listmodel_sort.png' "6258"external ref='figures/listmodel_sort.png' "
6404"md5='9f6ee5fc4c2f03172fefc8027d97063e'"6259"md5='9f6ee5fc4c2f03172fefc8027d97063e'"
6405msgstr ""6260msgstr ""
n6406"external ref='figures/treeview_list.png' "n6261"external ref='figures/listmodel_sort.png' "
6407"md5='60e5e4ecb284d0cdc53373fe0ec858ee'"6262"md5='9f6ee5fc4c2f03172fefc8027d97063e'"
64086263
6409#. (itstool) path: section/para6264#. (itstool) path: section/para
6410#: C/index-in.docbook:25766265#: C/index-in.docbook:2576
n6411#, fuzzyn
6412#| msgid ""
6413#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
6414#| "tree/master/examples/book/textview/\">Source Code</link>"
6415msgid ""6266msgid ""
6416"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6267"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
6417"master/examples/book/listmodelviews/sort\">Source Code</link>"6268"master/examples/book/listmodelviews/sort\">Source Code</link>"
6418msgstr ""6269msgstr ""
6419"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6270"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n6420"master/examples/book/textview/\">Källkod</link>"n6271"master/examples/book/listmodelviews/sort\">Källkod</link>"
64216272
6422#. (itstool) path: section/title6273#. (itstool) path: section/title
6423#: C/index-in.docbook:25826274#: C/index-in.docbook:2582
n6424#, fuzzyn
6425#| msgid "Filtering Files"
6426msgid "Filtering"6275msgid "Filtering"
n6427msgstr "Filtrera filer"n6276msgstr "Filtrering"
64286277
6429#. (itstool) path: section/para6278#. (itstool) path: section/para
6430#: C/index-in.docbook:25846279#: C/index-in.docbook:2584
6431#, fuzzy6280#, fuzzy
nn6281#| msgid ""
6282#| "<classname>Gtk::Style</classname> and <classname>Gtk::Rc</classname> were "
6283#| "removed, replaced by <classname>Gtk::StyleContext</classname>, and "
6284#| "<classname>Gtk::StyleProvider</classname>s, such as <classname>Gtk::"
6285#| "CssProvider</classname>."
6432msgid ""6286msgid ""
6433"The list can be filtered by wrapping it in a <classname>FilterListModel</"6287"The list can be filtered by wrapping it in a <classname>FilterListModel</"
6434"classname>. Set a <classname>Filter</classname> such as a "6288"classname>. Set a <classname>Filter</classname> such as a "
6435"<classname>StringFilter</classname> or a <classname>BoolFilter</classname> "6289"<classname>StringFilter</classname> or a <classname>BoolFilter</classname> "
6436"to the <classname>FilterListModel</classname>."6290"to the <classname>FilterListModel</classname>."
6437msgstr ""6291msgstr ""
6438"<classname>Gtk::Style</classname> och <classname>Gtk::Rc</classname> togs "6292"<classname>Gtk::Style</classname> och <classname>Gtk::Rc</classname> togs "
6439"bort, ersatta av <classname>Gtk::StyleContext</classname> och olika "6293"bort, ersatta av <classname>Gtk::StyleContext</classname> och olika "
n6440"<classname>Gtk::StyleProvider</classname>, som <classname>Gtk::CssProvider</"n6294"<classname>Gtk::StyleProvider</classname>-klasser, som <classname>Gtk::"
6441"classname>."6295"CssProvider</classname>."
64426296
6443#. (itstool) path: section/para6297#. (itstool) path: section/para
6444#: C/index-in.docbook:25906298#: C/index-in.docbook:2590
n6445#, fuzzyn
6446#| msgid ""
6447#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
6448#| "classGtk_1_1TreeModelSort.html\">TreeModelSort Reference</link>"
6449msgid ""6299msgid ""
6450"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6300"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6451"classGtk_1_1FilterListModel.html\">FilterListModel Reference</link>"6301"classGtk_1_1FilterListModel.html\">FilterListModel Reference</link>"
6452msgstr ""6302msgstr ""
n6453"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n6303"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6454"classGtk_1_1TreeModelSort.html\">Referens för TreeModelSort</link>"6304"classGtk_1_1FilterListModel.html\">Referens för FilterListModel</link>"
64556305
6456#. (itstool) path: section/para6306#. (itstool) path: section/para
6457#: C/index-in.docbook:25916307#: C/index-in.docbook:2591
n6458#, fuzzyn
6459#| msgid ""
6460#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
6461#| "classGtk_1_1Widget.html\">Widget Reference</link>"
6462msgid ""6308msgid ""
6463"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6309"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6464"classGtk_1_1StringFilter.html\">StringFilter Reference</link>"6310"classGtk_1_1StringFilter.html\">StringFilter Reference</link>"
6465msgstr ""6311msgstr ""
n6466"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n6312"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6467"classGtk_1_1Widget.html\">Widget-referens</link>"6313"classGtk_1_1StringFilter.html\">Referens för StringFilter</link>"
64686314
6469#. (itstool) path: section/para6315#. (itstool) path: section/para
6470#: C/index-in.docbook:25926316#: C/index-in.docbook:2592
n6471#, fuzzyn
6472#| msgid ""
6473#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
6474#| "classGtk_1_1Tooltip.html\">Tooltip Reference</link>"
6475msgid ""6317msgid ""
6476"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6318"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6477"classGtk_1_1BoolFilter.html\">BoolFilter Reference</link>"6319"classGtk_1_1BoolFilter.html\">BoolFilter Reference</link>"
6478msgstr ""6320msgstr ""
n6479"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n6321"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6480"classGtk_1_1Tooltip.html\">Tooltip-referens</link>"6322"classGtk_1_1BoolFilter.html\">Referens för BoolFilter</link>"
64816323
6482#. (itstool) path: figure/title6324#. (itstool) path: figure/title
6483#: C/index-in.docbook:25986325#: C/index-in.docbook:2598
6484msgid "FilterListModel"6326msgid "FilterListModel"
n6485msgstr ""n6327msgstr "FilterListModel"
64866328
6487#. (itstool) path: imageobject/imagedata6329#. (itstool) path: imageobject/imagedata
6488#. This is a reference to an external file such as an image or video. When6330#. This is a reference to an external file such as an image or video. When
6489#. the file changes, the md5 hash will change to let you know you need to6331#. the file changes, the md5 hash will change to let you know you need to
6490#. update your localized copy. The msgstr is not used at all. Set it to6332#. update your localized copy. The msgstr is not used at all. Set it to
6494msgctxt "_"6336msgctxt "_"
6495msgid ""6337msgid ""
6496"external ref='figures/listmodel_filter.png' "6338"external ref='figures/listmodel_filter.png' "
6497"md5='b1407e88c99b90c2ad7698ce30a46a1e'"6339"md5='b1407e88c99b90c2ad7698ce30a46a1e'"
6498msgstr ""6340msgstr ""
n6499"external ref='figures/recentfiles.png' md5='2ca280c98b5c8822ad48ca40f7ce0bb4'"n6341"external ref='figures/listmodel_filter.png' "
6342"md5='b1407e88c99b90c2ad7698ce30a46a1e'"
65006343
6501#. (itstool) path: section/para6344#. (itstool) path: section/para
6502#: C/index-in.docbook:26046345#: C/index-in.docbook:2604
n6503#, fuzzyn
6504#| msgid ""
6505#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
6506#| "tree/master/examples/book/textview/\">Source Code</link>"
6507msgid ""6346msgid ""
6508"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6347"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
6509"master/examples/book/listmodelviews/filter\">Source Code</link>"6348"master/examples/book/listmodelviews/filter\">Source Code</link>"
6510msgstr ""6349msgstr ""
6511"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6350"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n6512"master/examples/book/textview/\">Källkod</link>"n6351"master/examples/book/listmodelviews/filter\">Källkod</link>"
65136352
6514#. (itstool) path: section/title6353#. (itstool) path: section/title
6515#: C/index-in.docbook:26106354#: C/index-in.docbook:2610
n6516#, fuzzyn
6517#| msgid "Applying Tags"
6518msgid "Displaying Trees"6355msgid "Displaying Trees"
n6519msgstr "Tillämpa taggar"n6356msgstr "Visa träd"
65206357
6521#. (itstool) path: section/para6358#. (itstool) path: section/para
6522#: C/index-in.docbook:26126359#: C/index-in.docbook:2612
nn6360#, fuzzy
6523msgid ""6361msgid ""
6524"While the deprecated <classname>TreeView</classname> provided built-in "6362"While the deprecated <classname>TreeView</classname> provided built-in "
6525"support for trees, the list widgets, and in particular <classname>Gio::"6363"support for trees, the list widgets, and in particular <classname>Gio::"
6526"ListModel</classname>, do not. However, <application>gtkmm</application> "6364"ListModel</classname>, do not. However, <application>gtkmm</application> "
6527"provides functionality to make trees look and behave like lists for the "6365"provides functionality to make trees look and behave like lists for the "
6528"people who still want to display lists. This is achieved by using the "6366"people who still want to display lists. This is achieved by using the "
6529"<classname>TreeListModel</classname> to flatten a tree into a list. The "6367"<classname>TreeListModel</classname> to flatten a tree into a list. The "
6530"<classname>TreeExpander</classname> widget can then be used inside a "6368"<classname>TreeExpander</classname> widget can then be used inside a "
6531"listitem to allow users to expand and collapse rows."6369"listitem to allow users to expand and collapse rows."
6532msgstr ""6370msgstr ""
nn6371"Medan den föråldrade <classname>TreeView</classname> tillhandahöll inbyggt "
6372"stöd för träd så gör listkomponenterna, och i synnerhet <classname>Gio::"
6373"ListModel</classname>, inte det. <application>gtkmm</application> "
6374"tillhandahåller dock funktionalitet för att få träd att se ut och uppföra "
6375"sig som listor för de som fortfarande vill visa listor. Detta åstadkoms "
6376"genom att använda <classname>TreeListModel</classname>-modellen för att "
6377"platta ut ett träd till en lista. <classname>TreeExpander</classname>-"
6378"komponenten kan sedan användas inuti ett listobjekt för att låta användare "
6379"expandera och fälla ihop rader."
65336380
6534#. (itstool) path: section/para6381#. (itstool) path: section/para
6535#: C/index-in.docbook:26226382#: C/index-in.docbook:2622
n6536#, fuzzyn
6537#| msgid ""
6538#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
6539#| "classGtk_1_1TreeModelSort.html\">TreeModelSort Reference</link>"
6540msgid ""6383msgid ""
6541"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6384"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6542"classGtk_1_1TreeListModel.html\">TreeListModel Reference</link>"6385"classGtk_1_1TreeListModel.html\">TreeListModel Reference</link>"
6543msgstr ""6386msgstr ""
n6544"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n6387"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6545"classGtk_1_1TreeModelSort.html\">Referens för TreeModelSort</link>"6388"classGtk_1_1TreeListModel.html\">Referens för TreeListModel</link>"
65466389
6547#. (itstool) path: section/para6390#. (itstool) path: section/para
6548#: C/index-in.docbook:26236391#: C/index-in.docbook:2623
n6549#, fuzzyn
6550#| msgid ""
6551#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
6552#| "classGtk_1_1TreeModelSort.html\">TreeModelSort Reference</link>"
6553msgid ""6392msgid ""
6554"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6393"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6555"classGtk_1_1TreeExpander.html\">TreeExpander Reference</link>"6394"classGtk_1_1TreeExpander.html\">TreeExpander Reference</link>"
6556msgstr ""6395msgstr ""
n6557"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n6396"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6558"classGtk_1_1TreeModelSort.html\">Referens för TreeModelSort</link>"6397"classGtk_1_1TreeExpander.html\">Referens för TreeExpander</link>"
65596398
6560#. (itstool) path: figure/title6399#. (itstool) path: figure/title
6561#: C/index-in.docbook:26296400#: C/index-in.docbook:2629
n6562#, fuzzyn
6563msgid "TreeListModel"6401msgid "TreeListModel"
n6564msgstr "Modellen"n6402msgstr "TreeListModel"
65656403
6566#. (itstool) path: imageobject/imagedata6404#. (itstool) path: imageobject/imagedata
6567#. This is a reference to an external file such as an image or video. When6405#. This is a reference to an external file such as an image or video. When
6568#. the file changes, the md5 hash will change to let you know you need to6406#. the file changes, the md5 hash will change to let you know you need to
6569#. update your localized copy. The msgstr is not used at all. Set it to6407#. update your localized copy. The msgstr is not used at all. Set it to
6573msgctxt "_"6411msgctxt "_"
6574msgid ""6412msgid ""
6575"external ref='figures/listmodel_tree.png' "6413"external ref='figures/listmodel_tree.png' "
6576"md5='656307ee78c8fd9ac379f2a0d01b8a81'"6414"md5='656307ee78c8fd9ac379f2a0d01b8a81'"
6577msgstr ""6415msgstr ""
n6578"external ref='figures/notebook.png' md5='b46c25388d4c250b0ab737f71f82d81b'"n6416"external ref='figures/listmodel_tree.png' "
6417"md5='656307ee78c8fd9ac379f2a0d01b8a81'"
65796418
6580#. (itstool) path: section/para6419#. (itstool) path: section/para
6581#: C/index-in.docbook:26356420#: C/index-in.docbook:2635
n6582#, fuzzyn
6583#| msgid ""
6584#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
6585#| "tree/master/examples/book/treeview/tree/\">Source Code</link>"
6586msgid ""6421msgid ""
6587"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6422"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
6588"master/examples/book/listmodelviews/tree_columnview\">Source Code</link>"6423"master/examples/book/listmodelviews/tree_columnview\">Source Code</link>"
6589msgstr ""6424msgstr ""
6590"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6425"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n6591"master/examples/book/treeview/tree/\">Källkod</link>"n6426"master/examples/book/listmodelviews/tree_columnview\">Källkod</link>"
65926427
6593#. (itstool) path: chapter/title6428#. (itstool) path: chapter/title
6594#: C/index-in.docbook:26436429#: C/index-in.docbook:2643
6595msgid "The TreeView widget"6430msgid "The TreeView widget"
6596msgstr "TreeView-komponenten"6431msgstr "TreeView-komponenten"
65976432
6598#. (itstool) path: note/para6433#. (itstool) path: note/para
6599#: C/index-in.docbook:26456434#: C/index-in.docbook:2645
n6600#, fuzzyn
6601#| msgid ""
6602#| "<classname>Gdk::DragContext</classname> has been split into "
6603#| "<classname>Gdk::Drag</classname> and <classname>Gdk::Drop</classname>."
6604msgid ""6435msgid ""
6605"<classname>Gtk::TreeView</classname> is deprecated since <application>gtkmm</"6436"<classname>Gtk::TreeView</classname> is deprecated since <application>gtkmm</"
6606"application> 4.10. In new code, use <classname>Gtk::ListView</classname> for "6437"application> 4.10. In new code, use <classname>Gtk::ListView</classname> for "
6607"lists and <classname>Gtk::ColumnView</classname> for tabular lists."6438"lists and <classname>Gtk::ColumnView</classname> for tabular lists."
6608msgstr ""6439msgstr ""
n6609"<classname>Gdk::DragContext</classname> har delats upp i <classname>Gdk::"n6440"<classname>Gtk::TreeView</classname> är föråldrad sedan <application>gtkmm</"
6610"Drag</classname> och <classname>Gdk::Drop</classname>."6441"application> 4.10. Använd i ny kod <classname>Gtk::ListView</classname> för "
6442"listor och <classname>Gtk::ColumnView</classname> för tabellistor."
66116443
6612#. (itstool) path: chapter/para6444#. (itstool) path: chapter/para
6613#: C/index-in.docbook:26506445#: C/index-in.docbook:2650
6614msgid ""6446msgid ""
6615"The <classname>Gtk::TreeView</classname> widget can contain lists or trees "6447"The <classname>Gtk::TreeView</classname> widget can contain lists or trees "
6618"Komponenten <classname>Gtk::TreeView</classname> kan innehålla listor eller "6450"Komponenten <classname>Gtk::TreeView</classname> kan innehålla listor eller "
6619"träd med data i kolumner."6451"träd med data i kolumner."
66206452
6621#. (itstool) path: section/title6453#. (itstool) path: section/title
6622#: C/index-in.docbook:26566454#: C/index-in.docbook:2656
n6623#, fuzzyn
6624msgid "The Model"6455msgid "The Model"
6625msgstr "Modellen"6456msgstr "Modellen"
66266457
6627#. (itstool) path: section/para6458#. (itstool) path: section/para
6628#: C/index-in.docbook:26586459#: C/index-in.docbook:2658
6658"använda antingen modellklasserna <classname>ListStore</classname> eller "6489"använda antingen modellklasserna <classname>ListStore</classname> eller "
6659"<classname>TreeStore</classname>."6490"<classname>TreeStore</classname>."
66606491
6661#. (itstool) path: section/para6492#. (itstool) path: section/para
6662#: C/index-in.docbook:26746493#: C/index-in.docbook:2674
n6663#, fuzzyn
6664#| msgid ""
6665#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
6666#| "classGtk_1_1TreeModel.html\">Reference</link>"
6667msgid ""6494msgid ""
6668"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6495"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6669"classGtk_1_1TreeModel.html\">Reference</link>"6496"classGtk_1_1TreeModel.html\">Reference</link>"
6670msgstr ""6497msgstr ""
n6671"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n6498"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6672"classGtk_1_1TreeModel.html\">Referens</link>"6499"classGtk_1_1TreeModel.html\">Referens</link>"
66736500
6674#. (itstool) path: section/title6501#. (itstool) path: section/title
6675#: C/index-in.docbook:26776502#: C/index-in.docbook:2677
6676msgid "ListStore, for rows"6503msgid "ListStore, for rows"
6705"external ref='figures/treeview_list.png' "6532"external ref='figures/treeview_list.png' "
6706"md5='60e5e4ecb284d0cdc53373fe0ec858ee'"6533"md5='60e5e4ecb284d0cdc53373fe0ec858ee'"
67076534
6708#. (itstool) path: section/para6535#. (itstool) path: section/para
6709#: C/index-in.docbook:26916536#: C/index-in.docbook:2691
n6710#, fuzzyn
6711#| msgid ""
6712#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
6713#| "classGtk_1_1ListStore.html\">Reference</link>"
6714msgid ""6537msgid ""
6715"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6538"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6716"classGtk_1_1ListStore.html\">Reference</link>"6539"classGtk_1_1ListStore.html\">Reference</link>"
6717msgstr ""6540msgstr ""
n6718"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n6541"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6719"classGtk_1_1ListStore.html\">Referens</link>"6542"classGtk_1_1ListStore.html\">Referens</link>"
67206543
6721#. (itstool) path: section/title6544#. (itstool) path: section/title
6722#: C/index-in.docbook:26966545#: C/index-in.docbook:2696
6723msgid "TreeStore, for a hierarchy"6546msgid "TreeStore, for a hierarchy"
6752"external ref='figures/treeview_tree.png' "6575"external ref='figures/treeview_tree.png' "
6753"md5='2270025659b23ebfc0e38d8b629289ef'"6576"md5='2270025659b23ebfc0e38d8b629289ef'"
67546577
6755#. (itstool) path: section/para6578#. (itstool) path: section/para
6756#: C/index-in.docbook:27106579#: C/index-in.docbook:2710
n6757#, fuzzyn
6758#| msgid ""
6759#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
6760#| "classGtk_1_1TreeStore.html\">Reference</link>"
6761msgid ""6580msgid ""
6762"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6581"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6763"classGtk_1_1TreeStore.html\">Reference</link>"6582"classGtk_1_1TreeStore.html\">Reference</link>"
6764msgstr ""6583msgstr ""
n6765"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n6584"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6766"classGtk_1_1TreeStore.html\">Referens</link>"6585"classGtk_1_1TreeStore.html\">Referens</link>"
67676586
6768#. (itstool) path: section/title6587#. (itstool) path: section/title
6769#: C/index-in.docbook:27156588#: C/index-in.docbook:2715
6770msgid "Model Columns"6589msgid "Model Columns"
7013#| "int number = row[m_Columns.m_col_text];"6832#| "int number = row[m_Columns.m_col_text];"
7014msgid ""6833msgid ""
7015"<code>//compiler error - no conversion from ustring to int.\n"6834"<code>//compiler error - no conversion from ustring to int.\n"
7016"int number = row[m_Columns.m_col_text];</code>"6835"int number = row[m_Columns.m_col_text];</code>"
7017msgstr ""6836msgstr ""
n7018"//kompilatorfel - ingen konvertering från ustring till int.\n"n6837"//kompileringsfel - ingen konvertering från ustring till int.\n"
7019"int number = row[m_Columns.m_col_text];"6838"int number = row[m_Columns.m_col_text];"
70206839
7021#. (itstool) path: section/title6840#. (itstool) path: section/title
7022#: C/index-in.docbook:28126841#: C/index-in.docbook:2812
7023msgid "\"Hidden\" Columns"6842msgid "\"Hidden\" Columns"
7047"användaren interagera med dem. Vyn kan visa alla modellens kolumner, eller "6866"användaren interagera med dem. Vyn kan visa alla modellens kolumner, eller "
7048"bara några, och den kan visa dem på olika sätt."6867"bara några, och den kan visa dem på olika sätt."
70496868
7050#. (itstool) path: section/para6869#. (itstool) path: section/para
7051#: C/index-in.docbook:28326870#: C/index-in.docbook:2832
n7052#, fuzzyn
7053#| msgid ""
7054#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
7055#| "classGtk_1_1TreeView.html\">Reference</link>"
7056msgid ""6871msgid ""
7057"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6872"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
7058"classGtk_1_1TreeView.html\">Reference</link>"6873"classGtk_1_1TreeView.html\">Reference</link>"
7059msgstr ""6874msgstr ""
n7060"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n6875"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
7061"classGtk_1_1TreeView.html\">Referens</link>"6876"classGtk_1_1TreeView.html\">Referens</link>"
70626877
7063#. (itstool) path: section/title6878#. (itstool) path: section/title
7064#: C/index-in.docbook:28356879#: C/index-in.docbook:2835
7065#, fuzzy6880#, fuzzy
7752"classname> eller <classname>Gtk::TreeModel::Row</classname>, så här:"7567"classname> eller <classname>Gtk::TreeModel::Row</classname>, så här:"
77537568
7754#. (itstool) path: section/programlisting7569#. (itstool) path: section/programlisting
7755#: C/index-in.docbook:31267570#: C/index-in.docbook:3126
7756#, fuzzy, no-wrap7571#, fuzzy, no-wrap
nn7572#| msgid ""
7573#| "auto row = m_refModel-&gt;children()[5]; //The sixth row.\n"
7574#| "if(row)\n"
7575#| "  refTreeSelection-&gt;select(row.get_iter());"
7757msgid ""7576msgid ""
7758"<code>auto row = m_refModel-&gt;children()[5]; //The sixth row.\n"7577"<code>auto row = m_refModel-&gt;children()[5]; //The sixth row.\n"
7759"if(row)\n"7578"if(row)\n"
7760"  refTreeSelection-&gt;select(row.get_iter());</code>"7579"  refTreeSelection-&gt;select(row.get_iter());</code>"
7761msgstr ""7580msgstr ""
7803"<methodname>set_sort_func()</methodname> för att implementera en mer "7622"<methodname>set_sort_func()</methodname> för att implementera en mer "
7804"komplicerad sorteringsalgoritm."7623"komplicerad sorteringsalgoritm."
78057624
7806#. (itstool) path: section/para7625#. (itstool) path: section/para
7807#: C/index-in.docbook:31457626#: C/index-in.docbook:3145
n7808#, fuzzyn
7809#| msgid ""
7810#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
7811#| "classGtk_1_1TreeSortable.html\">TreeSortable Reference</link>"
7812msgid ""7627msgid ""
7813"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"7628"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
7814"classGtk_1_1TreeSortable.html\">TreeSortable Reference</link>"7629"classGtk_1_1TreeSortable.html\">TreeSortable Reference</link>"
7815msgstr ""7630msgstr ""
n7816"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n7631"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
7817"classGtk_1_1TreeSortable.html\">Referens för TreeSortable</link>"7632"classGtk_1_1TreeSortable.html\">Referens för TreeSortable</link>"
78187633
7819#. (itstool) path: section/title7634#. (itstool) path: section/title
7820#: C/index-in.docbook:31487635#: C/index-in.docbook:3148
7821msgid "Sorting by clicking on columns"7636msgid "Sorting by clicking on columns"
7954"  }\n"7769"  }\n"
7955"}"7770"}"
79567771
7957#. (itstool) path: section/para7772#. (itstool) path: section/para
7958#: C/index-in.docbook:31897773#: C/index-in.docbook:3189
n7959#, fuzzyn
7960#| msgid ""
7961#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
7962#| "classGtk_1_1TreeModelSort.html\">TreeModelSort Reference</link>"
7963msgid ""7774msgid ""
7964"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"7775"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
7965"classGtk_1_1TreeModelSort.html\">TreeModelSort Reference</link>"7776"classGtk_1_1TreeModelSort.html\">TreeModelSort Reference</link>"
7966msgstr ""7777msgstr ""
n7967"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n7778"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
7968"classGtk_1_1TreeModelSort.html\">Referens för TreeModelSort</link>"7779"classGtk_1_1TreeModelSort.html\">Referens för TreeModelSort</link>"
79697780
7970#. (itstool) path: section/title7781#. (itstool) path: section/title
7971#. (itstool) path: chapter/title7782#. (itstool) path: chapter/title
7972#. (itstool) path: figure/title7783#. (itstool) path: figure/title
7975msgid "Drag and Drop"7786msgid "Drag and Drop"
7976msgstr "Dra och släpp"7787msgstr "Dra och släpp"
79777788
7978#. (itstool) path: section/para7789#. (itstool) path: section/para
7979#: C/index-in.docbook:31977790#: C/index-in.docbook:3197
n7980#, fuzzyn
7981msgid ""7791msgid ""
7982"<classname>Gtk::TreeView</classname> already implements simple drag-and-drop "7792"<classname>Gtk::TreeView</classname> already implements simple drag-and-drop "
7983"when used with the <classname>Gtk::ListStore</classname> or <classname>Gtk::"7793"when used with the <classname>Gtk::ListStore</classname> or <classname>Gtk::"
7984"TreeStore</classname> models (since gtk 4.8). If necessary, it also allows "7794"TreeStore</classname> models (since gtk 4.8). If necessary, it also allows "
7985"you to implement more complex behavior when items are dragged and dropped, "7795"you to implement more complex behavior when items are dragged and dropped, "
7986"using the normal <link linkend=\"chapter-draganddrop\">Drag and Drop</link> "7796"using the normal <link linkend=\"chapter-draganddrop\">Drag and Drop</link> "
7987"API."7797"API."
7988msgstr ""7798msgstr ""
7989"<classname>Gtk::TreeView</classname> implementerar redan enkelt dra-och-"7799"<classname>Gtk::TreeView</classname> implementerar redan enkelt dra-och-"
7990"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 "
n7991"<classname>Gtk::TreeStore</classname>-modellerna. Om nödvändigt låter den "n7801"<classname>Gtk::TreeStore</classname>-modellerna (sedan gtk 4.8). Om "
7992"dig också implementera mer komplext beteende när objekt dras och släpps, med "7802"nödvändigt låter den dig också implementera mer komplext beteende när objekt "
7993"det vanliga <link linkend=\"chapter-draganddrop\">Dra och släpp</link>-API:t."7803"dras och släpps, med det vanliga <link linkend=\"chapter-draganddrop\">dra "
7804"och släpp</link>-API:t."
79947805
7995#. (itstool) path: section/title7806#. (itstool) path: section/title
7996#: C/index-in.docbook:32067807#: C/index-in.docbook:3206
7997#, fuzzy7808#, fuzzy
7998msgid "Reorderable rows"7809msgid "Reorderable rows"
8034"tillåta eller förbjuda dragning eller släppning genom att returnera "7845"tillåta eller förbjuda dragning eller släppning genom att returnera "
8035"<literal>true</literal> eller <literal>false</literal>."7846"<literal>true</literal> eller <literal>false</literal>."
80367847
8037#. (itstool) path: section/para7848#. (itstool) path: section/para
8038#: C/index-in.docbook:32207849#: C/index-in.docbook:3220
n8039#, fuzzyn
8040msgid "This is demonstrated in the drag_and_drop example."7850msgid "This is demonstrated in the drag_and_drop example."
8041msgstr "Detta demonstreras i dra-och-släpp-exemplet."7851msgstr "Detta demonstreras i dra-och-släpp-exemplet."
80427852
8043#. (itstool) path: section/title7853#. (itstool) path: section/title
8044#: C/index-in.docbook:3226 C/index-in.docbook:33367854#: C/index-in.docbook:3226 C/index-in.docbook:3336
8288"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"8098"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
8289"master/examples/book/treeview/popup/\">Källkod</link>"8099"master/examples/book/treeview/popup/\">Källkod</link>"
82908100
8291#. (itstool) path: chapter/title8101#. (itstool) path: chapter/title
8292#: C/index-in.docbook:33598102#: C/index-in.docbook:3359
n8293#, fuzzyn
8294#| msgid "The DrawingArea Widget"
8295msgid "The DropDown Widget"8103msgid "The DropDown Widget"
n8296msgstr "DrawingArea-komponenten"n8104msgstr "DropDown-komponenten"
82978105
8298#. (itstool) path: chapter/para8106#. (itstool) path: chapter/para
8299#: C/index-in.docbook:33618107#: C/index-in.docbook:3361
8300msgid ""8108msgid ""
8301"The <classname>DropDown</classname> widget is an alternative to the "8109"The <classname>DropDown</classname> widget is an alternative to the "
8302"deprecated <classname>ComboBox</classname>. It uses list models instead of "8110"deprecated <classname>ComboBox</classname>. It uses list models instead of "
8303"tree models, and the content is displayed using widgets instead of cell "8111"tree models, and the content is displayed using widgets instead of cell "
8304"renderers."8112"renderers."
8305msgstr ""8113msgstr ""
nn8114"Komponenten <classname>DropDown</classname> är ett alternativ till den "
8115"föråldrade <classname>ComboBox</classname>. Den använder listmodeller i "
8116"stället för trädmodeller, och innehållet visas med komponenter i stället för "
8117"cellrenderare."
83068118
8307#. (itstool) path: chapter/para8119#. (itstool) path: chapter/para
8308#: C/index-in.docbook:33668120#: C/index-in.docbook:3366
8309#, fuzzy8121#, fuzzy
8310#| msgid ""8122#| msgid ""
8320"dropdown menu. If appropriate, it can show extra information about each "8132"dropdown menu. If appropriate, it can show extra information about each "
8321"item, such as text, a picture, or a check button. The <classname>DropDown</"8133"item, such as text, a picture, or a check button. The <classname>DropDown</"
8322"classname> widget can optionally have an <classname>Entry</classname> in the "8134"classname> widget can optionally have an <classname>Entry</classname> in the "
8323"dropdown menu, allowing the user to search in a long list."8135"dropdown menu, allowing the user to search in a long list."
8324msgstr ""8136msgstr ""
n8325"<classname>ComboBox</classname>-komponenten erbjuder en lista (eller träd) "n8137"<classname>ComboBox</classname>-komponenten erbjuder en lista (eller ett "
8326"av val i en rullgardinsmeny. Om lämpligt kan den visa extra information om "8138"träd) av val i en rullgardinsmeny. Om lämpligt kan den visa extra "
8327"varje objekt, som text, en bild, en kryssruta eller en förloppsindikator. "8139"information om varje objekt, som text, en bild, en kryssruta eller en "
8328"<classname>ComboBox</classname>-komponenten begränsar vanligen användaren "8140"förloppsindikator. <classname>ComboBox</classname>-komponenten begränsar "
8329"till de tillgängliga valen, men den kan valfritt ha ett <classname>Entry</"8141"vanligen användaren till de tillgängliga valen, men den kan valfritt ha ett "
8330"classname>, som låter användaren mata in godtycklig text om inget av de "8142"<classname>Entry</classname>, som låter användaren mata in godtycklig text "
8331"tillgängliga valen passar."8143"om inget av de tillgängliga valen passar."
83328144
8333#. (itstool) path: chapter/para8145#. (itstool) path: chapter/para
8334#: C/index-in.docbook:33738146#: C/index-in.docbook:3373
n8335#, fuzzyn
8336msgid ""8147msgid ""
8337"The list is provided via a <classname>Gio::ListModel</classname>, and data "8148"The list is provided via a <classname>Gio::ListModel</classname>, and data "
8338"from this model is added to the <classname>DropDown</classname>'s view with "8149"from this model is added to the <classname>DropDown</classname>'s view with "
8339"signal handlers connected to a <classname>SignalListItemFactory</classname>. "8150"signal handlers connected to a <classname>SignalListItemFactory</classname>. "
8340"This provides flexibility, but the <classname>StringList</classname> class "8151"This provides flexibility, but the <classname>StringList</classname> class "
8341"provides a simpler text-based specialization in case that flexibility is not "8152"provides a simpler text-based specialization in case that flexibility is not "
8342"required."8153"required."
8343msgstr ""8154msgstr ""
n8344"Listan tillhandahålls via en <classname>TreeModel</classname>, och kolumner "n8155"Listan tillhandahålls via en <classname>Gio::ListModel</classname>, och data "
8345"från denna modell läggs till vyn för ComboBox-komponenten med metoden "8156"från denna modell läggs till vyn för <classname>DropDown</classname>-"
8346"<methodname>ComboBox::pack_start()</methodname>. Detta tillhandahåller "8157"komponenten med signalhanterare anslutna till en "
8347"flexibilitet och typsäkerhet under kompilering, men <classname>ComboBoxText</"8158"<classname>SignalListItemFactory</classname>. Detta tillhandahåller "
8348"classname>-klassen tillhandahåller en enklare textbaserad specialisering om "8159"flexibilitet, men <classname>StringList</classname>-klassen tillhandahåller "
8349"den flexibiliteten inte behövs."8160"en enklare textbaserad specialisering om den flexibiliteten inte behövs."
83508161
8351#. (itstool) path: chapter/para8162#. (itstool) path: chapter/para
8352#: C/index-in.docbook:33808163#: C/index-in.docbook:3380
n8353#, fuzzyn
8354#| msgid ""
8355#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
8356#| "classGtk_1_1Box.html\">Reference</link>"
8357msgid ""8164msgid ""
8358"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"8165"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
8359"classGtk_1_1DropDown.html\">Reference</link>"8166"classGtk_1_1DropDown.html\">Reference</link>"
8360msgstr ""8167msgstr ""
n8361"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/classGtk_1_1Box."n8168"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
8362"html\">Referens</link>"8169"classGtk_1_1DropDown.html\">Referens</link>"
83638170
8364#. (itstool) path: section/title8171#. (itstool) path: section/title
8365#: C/index-in.docbook:3383 C/index-in.docbook:35588172#: C/index-in.docbook:3383 C/index-in.docbook:3558
n8366#, fuzzyn
8367msgid "The model"8173msgid "The model"
8368msgstr "Modellen"8174msgstr "Modellen"
83698175
8370#. (itstool) path: section/para8176#. (itstool) path: section/para
8371#: C/index-in.docbook:33858177#: C/index-in.docbook:3385
8372#, fuzzy8178#, fuzzy
n8373#| msgid ""n
8374#| "The model for a ComboBox can be defined and filled exactly as for a "
8375#| "<classname>TreeView</classname>. For instance, you might derive a "
8376#| "ComboBox class with one integer and one text column, like so:"
8377msgid ""8179msgid ""
8378"The model for a <classname>DropDown</classname> can be defined and filled "8180"The model for a <classname>DropDown</classname> can be defined and filled "
8379"exactly as for a <classname>ListView</classname> or a <classname>ColumnView</"8181"exactly as for a <classname>ListView</classname> or a <classname>ColumnView</"
8380"classname>. It must be a subclass of <classname>Glib::Object</classname>. "8182"classname>. It must be a subclass of <classname>Glib::Object</classname>. "
8381"For instance, you might have a <classname>DropDown</classname> with one "8183"For instance, you might have a <classname>DropDown</classname> with one "
8382"integer and one text column, like so:"8184"integer and one text column, like so:"
8383msgstr ""8185msgstr ""
n8384"Modellen för en ComboBox kan definieras och fyllas i exakt som för en "n8186"Modellen för en <classname>DropDown</classname> kan definieras och fyllas i "
8385"<classname>TreeView</classname>. Exempelvis kan du härleda en ComboBox med "8187"exakt som för en <classname>ListView</classname> eller en "
8386"ett heltal och en textkolumn, så här:"8188"<classname>ColumnView</classname>. Den måste vara en underklass till "
8189"<classname>Glib::Object</classname>. Exempelvis kan du ha en "
8190"<classname>DropDown</classname> med ett heltal och en textkolumn, så här:"
83878191
8388#. (itstool) path: section/para8192#. (itstool) path: section/para
8389#: C/index-in.docbook:34138193#: C/index-in.docbook:3413
nn8194#, fuzzy
8390msgid ""8195msgid ""
8391"After appending rows to this model, you should provide the model to the "8196"After appending rows to this model, you should provide the model to the "
8392"<classname>DropDown</classname> with the <methodname>set_model()</"8197"<classname>DropDown</classname> with the <methodname>set_model()</"
8393"methodname> method. Unless you use the <classname>StringList</classname> "8198"methodname> method. Unless you use the <classname>StringList</classname> "
8394"model, you also need to set a <classname>ListItemFactory</classname> with "8199"model, you also need to set a <classname>ListItemFactory</classname> with "
8396"dropdown menu to look different from the item in the <classname>DropDown</"8201"dropdown menu to look different from the item in the <classname>DropDown</"
8397"classname> widget, you also need to set a separate "8202"classname> widget, you also need to set a separate "
8398"<classname>ListItemFactory</classname> with <methodname>set_list_factory()</"8203"<classname>ListItemFactory</classname> with <methodname>set_list_factory()</"
8399"methodname>."8204"methodname>."
8400msgstr ""8205msgstr ""
nn8206"Efter att ha lagt till rader till denna modell bör du tillhandahålla "
8207"modellen till vår <classname>DropDown</classname> med metoden "
8208"<methodname>set_model()</methodname>. Om du inte använder modellen "
8209"<classname>StringList</classname> så kommer du också behöva ställa in en "
8210"<classname>ListItemFactory</classname> med <methodname>set_factory()</"
8211"methodname>. Om du vill att objekten i rullgardinsmenyn ska se annorlunda "
8212"från objektet i <classname>DropDown</classname>-komponenten så behöver du "
8213"också ställa in en separat <classname>ListItemFactory</classname> med "
8214"<methodname>set_list_factory()</methodname>."
84018215
8402#. (itstool) path: section/title8216#. (itstool) path: section/title
8403#: C/index-in.docbook:34248217#: C/index-in.docbook:3424
n8404#, fuzzyn
8405msgid "The selected item"8218msgid "The selected item"
n8406msgstr "De markerade raderna"n8219msgstr "Det valda objektet"
84078220
8408#. (itstool) path: section/para8221#. (itstool) path: section/para
8409#: C/index-in.docbook:34268222#: C/index-in.docbook:3426
8410#, fuzzy8223#, fuzzy
8411msgid ""8224msgid ""
8415"get the selected data from the model. For instance, you might read an "8228"get the selected data from the model. For instance, you might read an "
8416"integer ID value from the model, even though you have chosen only to show "8229"integer ID value from the model, even though you have chosen only to show "
8417"the human-readable description in the <classname>DropDown</classname>. For "8230"the human-readable description in the <classname>DropDown</classname>. For "
8418"instance:"8231"instance:"
8419msgstr ""8232msgstr ""
n8420"För att upptäcka vilket objekt, om något, som användaren har valt från en "n8233"För att upptäcka vilket objekt, om något, som användaren har valt från vår "
8421"ComboBox, anropa <methodname>ComboBox::get_active()</methodname>. "8234"<classname>DropDown</classname>, anropa <methodname>DropDown::"
8422"Detta<classname>TreeModel::iterator</classname> returnerar en som du kan "8235"get_selected()</methodname>. Detta returnerar en <type>unsigned int</type> "
8423"dereferera till en <classname>Row</classname> för att läsa värdena i dina "8236"som du kan använda för att få valda data från modellen. Exempelvis kanske du "
8424"kolumner. Exempelvis kanske du läser ett heltals-ID-värde från modellen, "8237"läser ett heltals-ID-värde från modellen, även om du valt att bara visa den "
8425"även om du valt att bara visa den mänskligt läsbara beskrivningen i vår "8238"mänskligt läsbara beskrivningen i vår <classname>DropDown</classname>. Till "
8426"ComboBox. Till exempel:"8239"exempel:"
84278240
8428#. (itstool) path: section/programlisting8241#. (itstool) path: section/programlisting
8429#: C/index-in.docbook:34338242#: C/index-in.docbook:3433
8430#, fuzzy, no-wrap8243#, fuzzy, no-wrap
8431msgid ""8244msgid ""
8438"}\n"8251"}\n"
8439"else\n"8252"else\n"
8440"  set_nothing_chosen(); // Your own function.\n"8253"  set_nothing_chosen(); // Your own function.\n"
8441"</code>"8254"</code>"
8442msgstr ""8255msgstr ""
n8443"Gtk::TreeModel::iterator iter = m_Combo.get_active();\n"n8256"unsigned int sel = m_DropDown.get_selected();\n"
8444"if(iter)\n"8257"if (sel != GTK_INVALID_LIST_POSITION)\n"
8445"{\n"8258"{\n"
n8446"  auto row = *iter;\n"n
8447"\n"
8448"  //Få data för markerad rad, med vår kunskap\n"8259"  // Få data för markerad rad, med vår kunskap om listmodellen:\n"
8449"  //om trädmodellen:\n"8260"  auto id = m_ListStore-&gt;get_item(sel).m_col_id;\n"
8450"  auto id = row[m_Columns.m_col_id];\n"
8451"  set_something_id_chosen(id); //Din egen funktion.\n"8261"  set_some_id_chosen(id); // Din egen funktion.\n"
8452"}\n"8262"}\n"
8453"else\n"8263"else\n"
n8454"  set_nothing_chosen(); //Din egen funktion."n8264"  set_nothing_chosen(); // Din egen funktion.\n"
84558265
8456#. (itstool) path: section/title8266#. (itstool) path: section/title
8457#: C/index-in.docbook:3446 C/index-in.docbook:3597 C/index-in.docbook:36588267#: C/index-in.docbook:3446 C/index-in.docbook:3597 C/index-in.docbook:3658
8458msgid "Responding to changes"8268msgid "Responding to changes"
8459msgstr "Svara på ändringar"8269msgstr "Svara på ändringar"
8465"You might need to react to every change of selection in the "8275"You might need to react to every change of selection in the "
8466"<classname>DropDown</classname>, for instance to update other widgets. To do "8276"<classname>DropDown</classname>, for instance to update other widgets. To do "
8467"so, you should connect to <methodname>property_selected().signal_changed()</"8277"so, you should connect to <methodname>property_selected().signal_changed()</"
8468"methodname>. For instance:"8278"methodname>. For instance:"
8469msgstr ""8279msgstr ""
n8470"Du behöver reagera på varje ändring av val i vår ComboBox, till exempel för "n8280"Du kan behöva reagera på varje ändring av val i vår <classname>DropDown</"
8471"att uppdatera andra komponenter. För att göra så bör du hantera signalen "8281"classname>, till exempel för att uppdatera andra komponenter. För att göra "
8472"<literal>changed</literal>. Till exempel:"8282"så bör du ansluta till <methodname>property_selected().signal_changed()</"
8283"methodname>. Till exempel:"
84738284
8474#. (itstool) path: section/programlisting8285#. (itstool) path: section/programlisting
8475#: C/index-in.docbook:34528286#: C/index-in.docbook:3452
8476#, fuzzy, no-wrap8287#, fuzzy, no-wrap
8477#| msgid ""8288#| msgid ""
n8478#| "m_combo.signal_changed().connect( sigc::mem_fun(*this,\n"n8289#| "m_DropDown.property_selected().signal_changed().connect(\n"
8479#| "      &amp;ExampleWindow::on_combo_changed) );"8290#| "  sigc::mem_fun(*this, &amp;ExampleWindow::on_dropdown_changed));\n"
8480msgid ""8291msgid ""
8481"<code>m_DropDown.property_selected().signal_changed().connect(\n"8292"<code>m_DropDown.property_selected().signal_changed().connect(\n"
8482"  sigc::mem_fun(*this, &amp;ExampleWindow::on_dropdown_changed));\n"8293"  sigc::mem_fun(*this, &amp;ExampleWindow::on_dropdown_changed));\n"
8483"</code>"8294"</code>"
8484msgstr ""8295msgstr ""
n8485"m_combo.signal_changed().connect( sigc::mem_fun(*this,\n"n8296"m_DropDown.property_selected().signal_changed().connect(\n"
8486"      &amp;ExampleWindow::on_combo_changed) );"8297"  sigc::mem_fun(*this, &amp;ExampleWindow::on_dropdown_changed));\n"
84878298
8488#. (itstool) path: section/title8299#. (itstool) path: section/title
8489#: C/index-in.docbook:34588300#: C/index-in.docbook:3458
n8490#, fuzzyn
8491msgid "Simple String Example"8301msgid "Simple String Example"
n8492msgstr "Enkelt inmatningsexempel"n8302msgstr "Enkelt stngexempel"
84938303
8494#. (itstool) path: figure/title8304#. (itstool) path: figure/title
8495#: C/index-in.docbook:34618305#: C/index-in.docbook:3461
8496msgid "Simple DropDown"8306msgid "Simple DropDown"
n8497msgstr ""n8307msgstr "Enkel DropDown"
84988308
8499#. (itstool) path: imageobject/imagedata8309#. (itstool) path: imageobject/imagedata
8500#. This is a reference to an external file such as an image or video. When8310#. This is a reference to an external file such as an image or video. When
8501#. the file changes, the md5 hash will change to let you know you need to8311#. the file changes, the md5 hash will change to let you know you need to
8502#. update your localized copy. The msgstr is not used at all. Set it to8312#. update your localized copy. The msgstr is not used at all. Set it to
8506msgctxt "_"8316msgctxt "_"
8507msgid ""8317msgid ""
8508"external ref='figures/dropdown_string.png' "8318"external ref='figures/dropdown_string.png' "
8509"md5='b1689605c645e1ada3040f6df3335c56'"8319"md5='b1689605c645e1ada3040f6df3335c56'"
8510msgstr ""8320msgstr ""
n8511"external ref='figures/printing.png' md5='d4565328475ec89edf5f2230cb3fc5d0'"n8321"external ref='figures/dropdown_string.png' "
8322"md5='b1689605c645e1ada3040f6df3335c56'"
85128323
8513#. (itstool) path: section/para8324#. (itstool) path: section/para
8514#: C/index-in.docbook:34678325#: C/index-in.docbook:3467
n8515#, fuzzyn
8516#| msgid ""
8517#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
8518#| "tree/master/examples/book/entry/icon\">Source Code</link>"
8519msgid ""8326msgid ""
8520"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"8327"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
8521"master/examples/book/dropdown/string\">Source Code</link>"8328"master/examples/book/dropdown/string\">Source Code</link>"
8522msgstr ""8329msgstr ""
8523"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"8330"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n8524"master/examples/book/entry/icon\">Källkod</link>"n8331"master/examples/book/dropdown/string\">Källkod</link>"
85258332
8526#. (itstool) path: section/title8333#. (itstool) path: section/title
8527#: C/index-in.docbook:34718334#: C/index-in.docbook:3471
8528msgid "Examples with a Search Entry"8335msgid "Examples with a Search Entry"
n8529msgstr ""n8336msgstr "Exempel med ett sökfält"
85308337
8531#. (itstool) path: section/para8338#. (itstool) path: section/para
8532#: C/index-in.docbook:34738339#: C/index-in.docbook:3473
n8533#, fuzzyn
8534#| msgid ""
8535#| "<classname>Gtk::Grid</classname> arranges its child widgets in rows and "
8536#| "columns. Use <methodname>attach()</methodname> and "
8537#| "<methodname>attach_next_to()</methodname> to insert child widgets."
8538msgid ""8340msgid ""
8539"The dropdown menu may contain an <classname>Entry</classname> that allows to "8341"The dropdown menu may contain an <classname>Entry</classname> that allows to "
8540"search for items in the list. Call <methodname>set_enable_search()</"8342"search for items in the list. Call <methodname>set_enable_search()</"
8541"methodname> and <methodname>set_expression()</methodname>. For instance:"8343"methodname> and <methodname>set_expression()</methodname>. For instance:"
8542msgstr ""8344msgstr ""
n8543"<classname>Gtk::Grid</classname> arrangerar sina underordnade komponenter i "n8345"Rullgardinsmenyn kan innehålla ett <classname>Entry</classname> som tillåter "
8544"rader och kolumner. Använd <methodname>attach()</methodname> och "8346"sökning efter objekt i listan. Anropa <methodname>set_enable_search()</"
8545"<methodname>attach_next_to()</methodname> för att infoga underordnade "8347"methodname> och <methodname>set_expression()</methodname>. Till exempel:"
8546"komponenter."
85478348
8548#. (itstool) path: section/programlisting8349#. (itstool) path: section/programlisting
8549#: C/index-in.docbook:34778350#: C/index-in.docbook:3477
n8550#, no-wrapn8351#, fuzzy, no-wrap
8352#| msgid ""
8353#| "m_DropDown.set_enable_search(true);\n"
8354#| "auto expression = Gtk::ClosureExpression&lt;Glib::ustring&gt;::create(\n"
8355#| "  sigc::mem_fun(*this, &amp;ExampleWindow::get_col_name));\n"
8356#| "m_DropDown.set_expression(expression);\n"
8357#| "\n"
8358#| "//-------\n"
8359#| "Glib::ustring ExampleWindow::get_col_name(const Glib::RefPtr&lt;Glib::Object
 >Base&gt;&amp; item)\n"
8360#| "{\n"
8361#| "  const auto col = std::dynamic_pointer_cast&lt;ModelColumns&gt;(item);\n"
8362#| "  return col ? col-&gt;m_col_name : \"\";\n"
8363#| "}\n"
8551msgid ""8364msgid ""
8552"<code>m_DropDown.set_enable_search(true);\n"8365"<code>m_DropDown.set_enable_search(true);\n"
8553"auto expression = Gtk::ClosureExpression&lt;Glib::ustring&gt;::create(\n"8366"auto expression = Gtk::ClosureExpression&lt;Glib::ustring&gt;::create(\n"
8554"  sigc::mem_fun(*this, &amp;ExampleWindow::get_col_name));\n"8367"  sigc::mem_fun(*this, &amp;ExampleWindow::get_col_name));\n"
8555"m_DropDown.set_expression(expression);\n"8368"m_DropDown.set_expression(expression);\n"
8560"  const auto col = std::dynamic_pointer_cast&lt;ModelColumns&gt;(item);\n"8373"  const auto col = std::dynamic_pointer_cast&lt;ModelColumns&gt;(item);\n"
8561"  return col ? col-&gt;m_col_name : \"\";\n"8374"  return col ? col-&gt;m_col_name : \"\";\n"
8562"}\n"8375"}\n"
8563"</code>"8376"</code>"
8564msgstr ""8377msgstr ""
nn8378"m_DropDown.set_enable_search(true);\n"
8379"auto expression = Gtk::ClosureExpression&lt;Glib::ustring&gt;::create(\n"
8380"  sigc::mem_fun(*this, &amp;ExampleWindow::get_col_name));\n"
8381"m_DropDown.set_expression(expression);\n"
8382"\n"
8383"//-------\n"
8384"Glib::ustring ExampleWindow::get_col_name(const Glib::RefPtr&lt;Glib::ObjectBas
 >e&gt;&amp; item)\n"
8385"{\n"
8386"  const auto col = std::dynamic_pointer_cast&lt;ModelColumns&gt;(item);\n"
8387"  return col ? col-&gt;m_col_name : \"\";\n"
8388"}\n"
85658389
8566#. (itstool) path: section/title8390#. (itstool) path: section/title
8567#: C/index-in.docbook:34918391#: C/index-in.docbook:3491
n8568#, fuzzyn
8569#| msgid "Simple Example"
8570msgid "String Example"8392msgid "String Example"
n8571msgstr "Enkelt exempel"n8393msgstr "Strängexempel"
85728394
8573#. (itstool) path: figure/title8395#. (itstool) path: figure/title
8574#: C/index-in.docbook:34948396#: C/index-in.docbook:3494
8575msgid "Search String"8397msgid "Search String"
n8576msgstr ""n8398msgstr "Sök sträng"
85778399
8578#. (itstool) path: imageobject/imagedata8400#. (itstool) path: imageobject/imagedata
8579#. This is a reference to an external file such as an image or video. When8401#. This is a reference to an external file such as an image or video. When
8580#. the file changes, the md5 hash will change to let you know you need to8402#. the file changes, the md5 hash will change to let you know you need to
8581#. update your localized copy. The msgstr is not used at all. Set it to8403#. update your localized copy. The msgstr is not used at all. Set it to
8589msgctxt "_"8411msgctxt "_"
8590msgid ""8412msgid ""
8591"external ref='figures/dropdown_search_string.png' "8413"external ref='figures/dropdown_search_string.png' "
8592"md5='e130e644e7cfb13a5b90ab1372b17503'"8414"md5='e130e644e7cfb13a5b90ab1372b17503'"
8593msgstr ""8415msgstr ""
n8594"external ref='figures/drawingarea_arcs.png' "n8416"external ref='figures/dropdown_search_string.png' "
8595"md5='d94b40e33b9fab7ea9e2c870b97fcf0c'"8417"md5='e130e644e7cfb13a5b90ab1372b17503'"
85968418
8597#. (itstool) path: section/para8419#. (itstool) path: section/para
8598#: C/index-in.docbook:35008420#: C/index-in.docbook:3500
n8599#, fuzzyn
8600#| msgid ""
8601#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
8602#| "tree/master/examples/book/drawingarea/arcs\">Source Code</link>"
8603msgid ""8421msgid ""
8604"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"8422"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
8605"master/examples/book/dropdown/search_string\">Source Code</link>"8423"master/examples/book/dropdown/search_string\">Source Code</link>"
8606msgstr ""8424msgstr ""
8607"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"8425"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n8608"master/examples/book/drawingarea/arcs\">Källkod</link>"n8426"master/examples/book/dropdown/search_string\">Källkod</link>"
86098427
8610#. (itstool) path: section/title8428#. (itstool) path: section/title
8611#: C/index-in.docbook:35048429#: C/index-in.docbook:3504
n8612#, fuzzyn
8613#| msgid "Full Example"
8614msgid "Font Example"8430msgid "Font Example"
n8615msgstr "Fullständigt exempel"n8431msgstr "Typsnittsexempel"
86168432
8617#. (itstool) path: section/para8433#. (itstool) path: section/para
8618#: C/index-in.docbook:35068434#: C/index-in.docbook:3506
n8619#, fuzzyn
8620#| msgid ""
8621#| "<classname>Gtk::Button</classname>, <classname>Gtk::ToolButton</"
8622#| "classname>, <classname>Gtk::MenuItem</classname> and <classname>Gtk::"
8623#| "Switch</classname> implement the <classname>Gtk::Actionable</classname> "
8624#| "interface instead of the removed <classname>Gtk::Activatable</classname> "
8625#| "interface."
8626msgid ""8435msgid ""
8627"This example uses a <classname>Pango::FontMap</classname> as its model. This "8436"This example uses a <classname>Pango::FontMap</classname> as its model. This "
8628"is possible because <classname>Pango::FontMap</classname> implements the "8437"is possible because <classname>Pango::FontMap</classname> implements the "
8629"<classname>Gio::ListModel</classname> interface. Of course you can use a "8438"<classname>Gio::ListModel</classname> interface. Of course you can use a "
8630"<classname>FontDialogButton</classname> instead."8439"<classname>FontDialogButton</classname> instead."
8631msgstr ""8440msgstr ""
n8632"<classname>Gtk::Button</classname>, <classname>Gtk::ToolButton</classname>, "n8441"Detta exempel använder en <classname>Pango::FontMap</classname> som sin "
8633"<classname>Gtk::MenuItem</classname> och <classname>Gtk::Switch</classname> "8442"modell. Detta är möjligt för att <classname>Pango::FontMap</classname> "
8634"implementerar <classname>Gtk::Actionable</classname>-gränssnittet i stället "8443"implementerar <classname>Gio::ListModel</classname>-gränssnittet. Du kan "
8635"för det borttagna <classname>Gtk::Activatable</classname>-gränssnittet."8444"förstås använda en <classname>FontDialogButton</classname> i stället."
86368445
8637#. (itstool) path: figure/title8446#. (itstool) path: figure/title
8638#: C/index-in.docbook:3513 C/index-in.docbook:35328447#: C/index-in.docbook:3513 C/index-in.docbook:3532
8639msgid "Search Font"8448msgid "Search Font"
n8640msgstr ""n8449msgstr "Sök typsnitt"
86418450
8642#. (itstool) path: imageobject/imagedata8451#. (itstool) path: imageobject/imagedata
8643#. This is a reference to an external file such as an image or video. When8452#. This is a reference to an external file such as an image or video. When
8644#. the file changes, the md5 hash will change to let you know you need to8453#. the file changes, the md5 hash will change to let you know you need to
8645#. update your localized copy. The msgstr is not used at all. Set it to8454#. update your localized copy. The msgstr is not used at all. Set it to
8649msgctxt "_"8458msgctxt "_"
8650msgid ""8459msgid ""
8651"external ref='figures/dropdown_search_font.png' "8460"external ref='figures/dropdown_search_font.png' "
8652"md5='1733e29c88c19dc6c4cbd1114446ac18'"8461"md5='1733e29c88c19dc6c4cbd1114446ac18'"
8653msgstr ""8462msgstr ""
n8654"external ref='figures/drawingarea_pango_text.png' "n8463"external ref='figures/dropdown_search_font.png' "
8655"md5='07c39668c9dda2ac1f9455caf6e4d16a'"8464"md5='1733e29c88c19dc6c4cbd1114446ac18'"
86568465
8657#. (itstool) path: section/para8466#. (itstool) path: section/para
8658#: C/index-in.docbook:35198467#: C/index-in.docbook:3519
n8659#, fuzzyn
8660#| msgid ""
8661#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
8662#| "tree/master/examples/book/paned\">Source Code</link>"
8663msgid ""8468msgid ""
8664"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"8469"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
8665"master/examples/book/dropdown/search_font\">Source Code</link>"8470"master/examples/book/dropdown/search_font\">Source Code</link>"
8666msgstr ""8471msgstr ""
8667"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"8472"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n8668"master/examples/book/paned\">Källkod</link>"n8473"master/examples/book/dropdown/search_font\">Källkod</link>"
86698474
8670#. (itstool) path: section/title8475#. (itstool) path: section/title
8671#: C/index-in.docbook:35248476#: C/index-in.docbook:3524
n8672#, fuzzyn
8673#| msgid "Simple Example"
8674msgid "Complex Example"8477msgid "Complex Example"
n8675msgstr "Enkelt exempel"n8478msgstr "Komplext exempel"
86768479
8677#. (itstool) path: section/para8480#. (itstool) path: section/para
8678#: C/index-in.docbook:35268481#: C/index-in.docbook:3526
8679msgid ""8482msgid ""
8680"This is a more complex example with two <classname>SignalListItemFactory</"8483"This is a more complex example with two <classname>SignalListItemFactory</"
8681"classname> objects and their signal handlers. This example would be simpler "8484"classname> objects and their signal handlers. This example would be simpler "
8682"without the checkmark in the dropdown menu."8485"without the checkmark in the dropdown menu."
8683msgstr ""8486msgstr ""
nn8487"Detta är ett mer komplext exempel med två <classname>SignalListItemFactory</"
8488"classname>-objekt och deras signalhanterare. Detta exempel skulle vara "
8489"enklare utan bocken i rullgardinsmenyn."
86848490
8685#. (itstool) path: imageobject/imagedata8491#. (itstool) path: imageobject/imagedata
8686#. This is a reference to an external file such as an image or video. When8492#. This is a reference to an external file such as an image or video. When
8687#. the file changes, the md5 hash will change to let you know you need to8493#. the file changes, the md5 hash will change to let you know you need to
8688#. update your localized copy. The msgstr is not used at all. Set it to8494#. update your localized copy. The msgstr is not used at all. Set it to
8692msgctxt "_"8498msgctxt "_"
8693msgid ""8499msgid ""
8694"external ref='figures/dropdown_complex.png' "8500"external ref='figures/dropdown_complex.png' "
8695"md5='2167fb44e42653aa7fd855604c4c1e65'"8501"md5='2167fb44e42653aa7fd855604c4c1e65'"
8696msgstr ""8502msgstr ""
n8697"external ref='figures/combobox_complex.png' "n8503"external ref='figures/dropdown_complex.png' "
8698"md5='ec96e29fe85caef072868284443e413e'"8504"md5='2167fb44e42653aa7fd855604c4c1e65'"
86998505
8700#. (itstool) path: section/para8506#. (itstool) path: section/para
8701#: C/index-in.docbook:35388507#: C/index-in.docbook:3538
n8702#, fuzzyn
8703#| msgid ""
8704#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
8705#| "tree/master/examples/book/combobox/complex\">Source Code</link>"
8706msgid ""8508msgid ""
8707"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"8509"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
8708"master/examples/book/dropdown/complex\">Source Code</link>"8510"master/examples/book/dropdown/complex\">Source Code</link>"
8709msgstr ""8511msgstr ""
8710"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"8512"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n8711"master/examples/book/combobox/complex\">Källkod</link>"n8513"master/examples/book/dropdown/complex\">Källkod</link>"
87128514
8713#. (itstool) path: chapter/title8515#. (itstool) path: chapter/title
8714#: C/index-in.docbook:35438516#: C/index-in.docbook:3543
8715msgid "Combo Boxes"8517msgid "Combo Boxes"
8716msgstr "Kombinationsrutor"8518msgstr "Kombinationsrutor"
87178519
8718#. (itstool) path: note/para8520#. (itstool) path: note/para
8719#: C/index-in.docbook:35458521#: C/index-in.docbook:3545
n8720#, fuzzyn
8721#| msgid ""
8722#| "<classname>Gdk::DrawContext</classname> and <classname>Gdk::CairoContext</"
8723#| "classname> are new. <classname>Gdk::DrawingContext</classname> has been "
8724#| "removed."
8725msgid ""8522msgid ""
8726"<classname>Gtk::ComboBox</classname> and <classname>Gtk::ComboBoxText</"8523"<classname>Gtk::ComboBox</classname> and <classname>Gtk::ComboBoxText</"
8727"classname> are deprecated since <application>gtkmm</application> 4.10. Use "8524"classname> are deprecated since <application>gtkmm</application> 4.10. Use "
8728"<classname>Gtk::DropDown</classname> in new code."8525"<classname>Gtk::DropDown</classname> in new code."
8729msgstr ""8526msgstr ""
n8730"<classname>Gdk::DrawContext</classname> och <classname>Gdk::CairoContext</"n8527"<classname>Gtk::ComboBox</classname> och <classname>Gtk::ComboBoxText</"
8731"classname> är nya. <classname>Gdk::DrawingContext</classname> har tagits "8528"classname> är föråldrade sedan <application>gtkmm</application> 4.10. Använd "
8732"bort."8529"<classname>Gtk::DropDown</classname> i ny kod."
87338530
8734#. (itstool) path: chapter/para8531#. (itstool) path: chapter/para
8735#: C/index-in.docbook:35498532#: C/index-in.docbook:3549
8736msgid ""8533msgid ""
8737"The <classname>ComboBox</classname> widget offers a list (or tree) of "8534"The <classname>ComboBox</classname> widget offers a list (or tree) of "
8740"The <classname>ComboBox</classname> widget usually restricts the user to the "8537"The <classname>ComboBox</classname> widget usually restricts the user to the "
8741"available choices, but it can optionally have an <classname>Entry</"8538"available choices, but it can optionally have an <classname>Entry</"
8742"classname>, allowing the user to enter arbitrary text if none of the "8539"classname>, allowing the user to enter arbitrary text if none of the "
8743"available choices are suitable."8540"available choices are suitable."
8744msgstr ""8541msgstr ""
n8745"<classname>ComboBox</classname>-komponenten erbjuder en lista (eller träd) "n8542"<classname>ComboBox</classname>-komponenten erbjuder en lista (eller ett "
8746"av val i en rullgardinsmeny. Om lämpligt kan den visa extra information om "8543"träd) av val i en rullgardinsmeny. Om lämpligt kan den visa extra "
8747"varje objekt, som text, en bild, en kryssruta eller en förloppsindikator. "8544"information om varje objekt, som text, en bild, en kryssruta eller en "
8748"<classname>ComboBox</classname>-komponenten begränsar vanligen användaren "8545"förloppsindikator. <classname>ComboBox</classname>-komponenten begränsar "
8749"till de tillgängliga valen, men den kan valfritt ha ett <classname>Entry</"8546"vanligen användaren till de tillgängliga valen, men den kan valfritt ha ett "
8750"classname>, som låter användaren mata in godtycklig text om inget av de "8547"<classname>Entry</classname>, som låter användaren mata in godtycklig text "
8751"tillgängliga valen passar."8548"om inget av de tillgängliga valen passar."
87528549
8753#. (itstool) path: chapter/para8550#. (itstool) path: chapter/para
8754#: C/index-in.docbook:35528551#: C/index-in.docbook:3552
n8755#, fuzzyn
8756msgid ""8552msgid ""
8757"The list is provided via a <classname>TreeModel</classname>, and columns "8553"The list is provided via a <classname>TreeModel</classname>, and columns "
8758"from this model are added to the ComboBox's view with the "8554"from this model are added to the ComboBox's view with the "
8759"<methodname>ComboBox::pack_start()</methodname> method. This provides "8555"<methodname>ComboBox::pack_start()</methodname> method. This provides "
8760"flexibility and compile-time type-safety, but the <classname>ComboBoxText</"8556"flexibility and compile-time type-safety, but the <classname>ComboBoxText</"
8768"classname>-klassen tillhandahåller en enklare textbaserad specialisering om "8564"classname>-klassen tillhandahåller en enklare textbaserad specialisering om "
8769"den flexibiliteten inte behövs."8565"den flexibiliteten inte behövs."
87708566
8771#. (itstool) path: chapter/para8567#. (itstool) path: chapter/para
8772#: C/index-in.docbook:35558568#: C/index-in.docbook:3555
n8773#, fuzzyn
8774#| msgid ""
8775#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
8776#| "classGtk_1_1ComboBox.html\">Reference</link>"
8777msgid ""8569msgid ""
8778"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"8570"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
8779"classGtk_1_1ComboBox.html\">Reference</link>"8571"classGtk_1_1ComboBox.html\">Reference</link>"
8780msgstr ""8572msgstr ""
n8781"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n8573"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
8782"classGtk_1_1ComboBox.html\">Referens</link>"8574"classGtk_1_1ComboBox.html\">Referens</link>"
87838575
8784#. (itstool) path: section/para8576#. (itstool) path: section/para
8785#: C/index-in.docbook:35608577#: C/index-in.docbook:3560
8786msgid ""8578msgid ""
8864"instance, you might read an integer ID value from the model, even though you "8656"instance, you might read an integer ID value from the model, even though you "
8865"have chosen only to show the human-readable description in the ComboBox. For "8657"have chosen only to show the human-readable description in the ComboBox. For "
8866"instance:"8658"instance:"
8867msgstr ""8659msgstr ""
8868"För att upptäcka vilket objekt, om något, som användaren har valt från en "8660"För att upptäcka vilket objekt, om något, som användaren har valt från en "
n8869"ComboBox, anropa <methodname>ComboBox::get_active()</methodname>. "n8661"ComboBox, anropa <methodname>ComboBox::get_active()</methodname>. Detta "
8870"Detta<classname>TreeModel::iterator</classname> returnerar en som du kan "8662"returnerar en <classname>TreeModel::iterator</classname> som du kan "
8871"dereferera till en <classname>Row</classname> för att läsa värdena i dina "8663"dereferera till en <classname>Row</classname> för att läsa värdena i dina "
8872"kolumner. Exempelvis kanske du läser ett heltals-ID-värde från modellen, "8664"kolumner. Exempelvis kanske du läser ett heltals-ID-värde från modellen, "
8873"även om du valt att bara visa den mänskligt läsbara beskrivningen i vår "8665"även om du valt att bara visa den mänskligt läsbara beskrivningen i vår "
8874"ComboBox. Till exempel:"8666"ComboBox. Till exempel:"
88758667
9264"<classname>TextBuffer</classname>, som du kan komma åt genom metoden "9056"<classname>TextBuffer</classname>, som du kan komma åt genom metoden "
9265"<methodname>get_buffer()</methodname>."9057"<methodname>get_buffer()</methodname>."
92669058
9267#. (itstool) path: section/para9059#. (itstool) path: section/para
9268#: C/index-in.docbook:37529060#: C/index-in.docbook:3752
n9269#, fuzzyn
9270#| msgid ""
9271#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
9272#| "classGtk_1_1TextBuffer.html\">Reference</link>"
9273msgid ""9061msgid ""
9274"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"9062"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
9275"classGtk_1_1TextBuffer.html\">Reference</link>"9063"classGtk_1_1TextBuffer.html\">Reference</link>"
9276msgstr ""9064msgstr ""
n9277"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n9065"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
9278"classGtk_1_1TextBuffer.html\">Referens</link>"9066"classGtk_1_1TextBuffer.html\">Referens</link>"
92799067
9280#. (itstool) path: section/title9068#. (itstool) path: section/title
9281#: C/index-in.docbook:37559069#: C/index-in.docbook:3755
9282msgid "Iterators"9070msgid "Iterators"
9302"positioner genom buffertändringar. För att bevara en position, använd "9090"positioner genom buffertändringar. För att bevara en position, använd "
9303"<classname>Gtk::TextBuffer::Mark</classname>."9091"<classname>Gtk::TextBuffer::Mark</classname>."
93049092
9305#. (itstool) path: section/para9093#. (itstool) path: section/para
9306#: C/index-in.docbook:37649094#: C/index-in.docbook:3764
n9307#, fuzzyn
9308#| msgid ""
9309#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
9310#| "classGtk_1_1TextIter.html\">Reference</link>"
9311msgid ""9095msgid ""
9312"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"9096"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
9313"classGtk_1_1TextIter.html\">Reference</link>"9097"classGtk_1_1TextIter.html\">Reference</link>"
9314msgstr ""9098msgstr ""
n9315"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n9099"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
9316"classGtk_1_1TextIter.html\">Referens</link>"9100"classGtk_1_1TextIter.html\">Referens</link>"
93179101
9318#. (itstool) path: section/title9102#. (itstool) path: section/title
9319#: C/index-in.docbook:37689103#: C/index-in.docbook:3768
9320msgid "Tags and Formatting"9104msgid "Tags and Formatting"
9367msgid "The <classname>Tag</classname> class has many other properties."9151msgid "The <classname>Tag</classname> class has many other properties."
9368msgstr "Klassen <classname>Tag</classname> har många andra egenskaper."9152msgstr "Klassen <classname>Tag</classname> har många andra egenskaper."
93699153
9370#. (itstool) path: section/para9154#. (itstool) path: section/para
9371#: C/index-in.docbook:37879155#: C/index-in.docbook:3787
n9372#, fuzzyn
9373#| msgid ""
9374#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
9375#| "classGtk_1_1TextTag.html\">Reference</link>"
9376msgid ""9156msgid ""
9377"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"9157"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
9378"classGtk_1_1TextTag.html\">Reference</link>"9158"classGtk_1_1TextTag.html\">Reference</link>"
9379msgstr ""9159msgstr ""
n9380"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n9160"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
9381"classGtk_1_1TextTag.html\">Referens</link>"9161"classGtk_1_1TextTag.html\">Referens</link>"
93829162
9383#. (itstool) path: section/title9163#. (itstool) path: section/title
9384#: C/index-in.docbook:37929164#: C/index-in.docbook:3792
9385msgid "TagTable"9165msgid "TagTable"
9431"och kanske modifiera, <classname>TextBuffer</classname>tens "9211"och kanske modifiera, <classname>TextBuffer</classname>tens "
9432"<classname>TagTable</classname> i stället för att skapa en explicit."9212"<classname>TagTable</classname> i stället för att skapa en explicit."
94339213
9434#. (itstool) path: section/para9214#. (itstool) path: section/para
9435#: C/index-in.docbook:38149215#: C/index-in.docbook:3814
n9436#, fuzzyn
9437#| msgid ""
9438#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
9439#| "classGtk_1_1TextTagTable.html\">Reference</link>"
9440msgid ""9216msgid ""
9441"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"9217"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
9442"classGtk_1_1TextTagTable.html\">Reference</link>"9218"classGtk_1_1TextTagTable.html\">Reference</link>"
9443msgstr ""9219msgstr ""
n9444"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n9220"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
9445"classGtk_1_1TextTagTable.html\">Referens</link>"9221"classGtk_1_1TextTagTable.html\">Referens</link>"
94469222
9447#. (itstool) path: section/title9223#. (itstool) path: section/title
9448#: C/index-in.docbook:38199224#: C/index-in.docbook:3819
9449msgid "Applying Tags"9225msgid "Applying Tags"
9549"<classname>TextBuffer</classname>tens metoder <methodname>get_insert()</"9325"<classname>TextBuffer</classname>tens metoder <methodname>get_insert()</"
9550"methodname> och <methodname>get_selection_bound()</methodname>."9326"methodname> och <methodname>get_selection_bound()</methodname>."
95519327
9552#. (itstool) path: section/para9328#. (itstool) path: section/para
9553#: C/index-in.docbook:38679329#: C/index-in.docbook:3867
n9554#, fuzzyn
9555#| msgid ""
9556#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
9557#| "classGtk_1_1TextMark.html\">Reference</link>"
9558msgid ""9330msgid ""
9559"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"9331"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
9560"classGtk_1_1TextMark.html\">Reference</link>"9332"classGtk_1_1TextMark.html\">Reference</link>"
9561msgstr ""9333msgstr ""
n9562"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n9334"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
9563"classGtk_1_1TextMark.html\">Referens</link>"9335"classGtk_1_1TextMark.html\">Referens</link>"
95649336
9565#. (itstool) path: section/para9337#. (itstool) path: section/para
9566#: C/index-in.docbook:38749338#: C/index-in.docbook:3874
9567msgid ""9339msgid ""
9587"för att låta användaren se och gå runt i hela textområdet med "9359"för att låta användaren se och gå runt i hela textområdet med "
9588"rullningslister."9360"rullningslister."
95899361
9590#. (itstool) path: section/para9362#. (itstool) path: section/para
9591#: C/index-in.docbook:38889363#: C/index-in.docbook:3888
n9592#, fuzzyn
9593#| msgid ""
9594#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
9595#| "classGtk_1_1TextView.html\">Reference</link>"
9596msgid ""9364msgid ""
9597"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"9365"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
9598"classGtk_1_1TextView.html\">Reference</link>"9366"classGtk_1_1TextView.html\">Reference</link>"
9599msgstr ""9367msgstr ""
n9600"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n9368"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
9601"classGtk_1_1TextView.html\">Referens</link>"9369"classGtk_1_1TextView.html\">Referens</link>"
96029370
9603#. (itstool) path: section/title9371#. (itstool) path: section/title
9604#: C/index-in.docbook:38919372#: C/index-in.docbook:3891
9605msgid "Default formatting"9373msgid "Default formatting"
9689msgid "<code>m_TextView.add_child_at_anchor(m_Button, refAnchor);</code>"9457msgid "<code>m_TextView.add_child_at_anchor(m_Button, refAnchor);</code>"
9690msgstr "m_TextView.add_child_at_anchor(m_Button, refAnchor);"9458msgstr "m_TextView.add_child_at_anchor(m_Button, refAnchor);"
96919459
9692#. (itstool) path: section/para9460#. (itstool) path: section/para
9693#: C/index-in.docbook:39389461#: C/index-in.docbook:3938
n9694#, fuzzyn
9695#| msgid ""
9696#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
9697#| "classGtk_1_1TextChildAnchor.html\">Reference</link>"
9698msgid ""9462msgid ""
9699"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"9463"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
9700"classGtk_1_1TextChildAnchor.html\">Reference</link>"9464"classGtk_1_1TextChildAnchor.html\">Reference</link>"
9701msgstr ""9465msgstr ""
n9702"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n9466"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
9703"classGtk_1_1TextChildAnchor.html\">Referens</link>"9467"classGtk_1_1TextChildAnchor.html\">Referens</link>"
97049468
9705#. (itstool) path: imageobject/imagedata9469#. (itstool) path: imageobject/imagedata
9706#. This is a reference to an external file such as an image or video. When9470#. This is a reference to an external file such as an image or video. When
9707#. the file changes, the md5 hash will change to let you know you need to9471#. the file changes, the md5 hash will change to let you know you need to
97409504
9741#. (itstool) path: section/para9505#. (itstool) path: section/para
9742#: C/index-in.docbook:39659506#: C/index-in.docbook:3965
9743#, fuzzy9507#, fuzzy
9744#| msgid ""9508#| msgid ""
n9745#| "Some <classname>TreeView</classname> examples are shown here. There are "n9509#| "Some examples are shown in this chapter. There are more examples in the "
9746#| "more examples in the <link xlink:href=\"https://gitlab.gnome.org/GNOME/"9510#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
9747#| "gtkmm-documentation/tree/master/examples/book/treeview/\">treeview "9511#| "tree/master/examples/book/listmodelviews/\">listmodelviews directory</"
9748#| "directory</link> in <application>gtkmm-documentation</application>'s "9512#| "link> in <application>gtkmm-documentation</application>'s examples."
9749#| "examples."
9750msgid ""9513msgid ""
9751"There is a more complicated example among <link xlink:href=\"https://gitlab."9514"There is a more complicated example among <link xlink:href=\"https://gitlab."
9752"gnome.org/GNOME/gtkmm/tree/master/demos/gtk-demo/example_textview."9515"gnome.org/GNOME/gtkmm/tree/master/demos/gtk-demo/example_textview."
9753"cc\"><application>gtkmm</application>'s demo programs</link>."9516"cc\"><application>gtkmm</application>'s demo programs</link>."
9754msgstr ""9517msgstr ""
n9755"Några <classname>TreeView</classname>-exempel visas här. Det finns mer "n9518"Några exempel visas i detta kapitel. Det finns mer exempel i <link xlink:"
9756"exempel i <link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-"9519"href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/master/"
9757"documentation/tree/master/examples/book/treeview/\">treeview-katalogen</"9520"examples/book/listmodelviews/\">listmodelviews-katalogen</link> i "
9758"link> i <application>gtkmm-documentation</application>s exempel."9521"<application>gtkmm-documentation</application>s exempel."
97599522
9760#. (itstool) path: chapter/title9523#. (itstool) path: chapter/title
9761#: C/index-in.docbook:39739524#: C/index-in.docbook:3973
9762msgid "Menus and Toolbars"9525msgid "Menus and Toolbars"
9763msgstr "Menyer och verktygsfält"9526msgstr "Menyer och verktygsfält"
9810"is a base class of <classname>Gio::SimpleActionGroup</classname>.) Then add "9573"is a base class of <classname>Gio::SimpleActionGroup</classname>.) Then add "
9811"the action group to your window with <methodname>Gtk::Widget::"9574"the action group to your window with <methodname>Gtk::Widget::"
9812"insert_action_group()</methodname>."9575"insert_action_group()</methodname>."
9813msgstr ""9576msgstr ""
9814"Skapa först <classname>Gio::SimpleAction</classname>-åtgärder och lägg till "9577"Skapa först <classname>Gio::SimpleAction</classname>-åtgärder och lägg till "
n9815"dem till en <classname>Gio::SimpleActionGroup</classname>, med "n9578"dem till en <classname>Gio::SimpleActionGroup</classname> med "
9816"<methodname>Gio::ActionMap::add_action()</methodname>. (<classname>Gio::"9579"<methodname>Gio::ActionMap::add_action()</methodname>. (<classname>Gio::"
9817"ActionMap</classname> är en basklass för <classname>Gio::SimpleActionGroup</"9580"ActionMap</classname> är en basklass för <classname>Gio::SimpleActionGroup</"
9818"classname>.) Lägg sedan till åtgärdsgruppen till ditt fönster med "9581"classname>.) Lägg sedan till åtgärdsgruppen till ditt fönster med "
9819"<methodname>Gtk::Widget::insert_action_group()</methodname>."9582"<methodname>Gtk::Widget::insert_action_group()</methodname>."
98209583
10012msgid ""9775msgid ""
10013"This is where we specify the names of the menu items as they will be seen by "9776"This is where we specify the names of the menu items as they will be seen by "
10014"users in the menu. Therefore, this is where you should make strings "9777"users in the menu. Therefore, this is where you should make strings "
10015"translatable, by adding <literal>translatable='yes'</literal>."9778"translatable, by adding <literal>translatable='yes'</literal>."
10016msgstr ""9779msgstr ""
n10017"Här är var vi anger namnen för menyobjekten som de kommer ses av användare i "n9780"Här anger vi namnen för menyobjekten som de kommer ses av användare i menyn. "
10018"menyn. Det är därför här som du ska göra strängar översättbara genom att "9781"Det är därför här som du ska göra strängar översättbara genom att lägga till "
10019"lägga till <literal>translatable='yes'</literal>."9782"<literal>translatable='yes'</literal>."
100209783
10021#. (itstool) path: section/para9784#. (itstool) path: section/para
10022#: C/index-in.docbook:41059785#: C/index-in.docbook:4105
10023#, fuzzy9786#, fuzzy
10024msgid ""9787msgid ""
10141"To show the popup menu, use a <classname>Gtk::GestureClick</classname> and "9904"To show the popup menu, use a <classname>Gtk::GestureClick</classname> and "
10142"connect to its <literal>pressed</literal> signal. In the signal handler, use "9905"connect to its <literal>pressed</literal> signal. In the signal handler, use "
10143"<classname>Gtk::PopoverMenu</classname>'s <methodname>popup()</methodname> "9906"<classname>Gtk::PopoverMenu</classname>'s <methodname>popup()</methodname> "
10144"method. For instance:"9907"method. For instance:"
10145msgstr ""9908msgstr ""
n10146"För att visa poppuppmenyn, använd en <classname>Gtk::EventControllerClick</"n9909"Använd för att visa poppuppmenyn en <classname>Gtk::EventControllerClick</"
10147"classname> och anslut till dess <literal>pressed</literal>-signal. Använd i "9910"classname> och anslut till dess <literal>pressed</literal>-signal. Använd i "
10148"signalhanteraren <classname>Gtk::PopoverMenu</classname>s "9911"signalhanteraren <classname>Gtk::PopoverMenu</classname>s "
10149"<methodname>popup()</methodname>-metod. Till exempel:"9912"<methodname>popup()</methodname>-metod. Till exempel:"
101509913
10151#. (itstool) path: section/programlisting9914#. (itstool) path: section/programlisting
10244"link> som tar en xml-fil som beskriver bunten, och en uppsättning filer som "10007"link> som tar en xml-fil som beskriver bunten, och en uppsättning filer som "
10245"xml-filen refererar till. Dessa kombineras till en binär resursbunt."10008"xml-filen refererar till. Dessa kombineras till en binär resursbunt."
1024610009
10247#. (itstool) path: section/para10010#. (itstool) path: section/para
10248#: C/index-in.docbook:420310011#: C/index-in.docbook:4203
n10249#, fuzzyn
10250#| msgid ""
10251#| "<link xlink:href=\"http://developer.gnome.org/glibmm/unstable/"
10252#| "classGio_1_1Resource.html\">Gio::Resource Reference</link>"
10253msgid ""10012msgid ""
10254"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/"10013"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/"
10255"classGio_1_1Resource.html\">Gio::Resource Reference</link>"10014"classGio_1_1Resource.html\">Gio::Resource Reference</link>"
10256msgstr ""10015msgstr ""
n10257"<link xlink:href=\"http://developer.gnome.org/glibmm/unstable/"n10016"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/"
10258"classGio_1_1Resource.html\">Referens för Gio::Resource</link>"10017"classGio_1_1Resource.html\">Referens för Gio::Resource</link>"
1025910018
10260#. (itstool) path: section/para10019#. (itstool) path: section/para
10261#: C/index-in.docbook:420410020#: C/index-in.docbook:4204
10262#, fuzzy10021#, fuzzy
10420#: C/index-in.docbook:426810179#: C/index-in.docbook:4268
10421msgid ""10180msgid ""
10422"This program contains a menubar and a toolbar. A class is derived from "10181"This program contains a menubar and a toolbar. A class is derived from "
10423"<classname>Gtk::Window</classname>."10182"<classname>Gtk::Window</classname>."
10424msgstr ""10183msgstr ""
n10425"Detta program innehåller en menyrad och ett verktygsfält. En klass är "n10184"Detta program innehåller en menyrad och ett verktygsfält. En klass härleds "
10426"härledd från <classname>Gtk::Window</classname>."10185"från <classname>Gtk::Window</classname>."
1042710186
10428#. (itstool) path: figure/title10187#. (itstool) path: figure/title
10429#: C/index-in.docbook:427410188#: C/index-in.docbook:4274
10430msgid "Main Menu"10189msgid "Main Menu"
10431msgstr "Huvudmeny"10190msgstr "Huvudmeny"
10700"and <methodname>set_value()</methodname> methods:"10459"and <methodname>set_value()</methodname> methods:"
10701msgstr ""10460msgstr ""
10702"OK, då säger du att det var väl fint, men om jag vill skapa mina egna "10461"OK, då säger du att det var väl fint, men om jag vill skapa mina egna "
10703"hanterare för att svara när användaren justerar en <classname>Range</"10462"hanterare för att svara när användaren justerar en <classname>Range</"
10704"classname>-komponent eller en <classname>SpinButton</classname> då? För att "10463"classname>-komponent eller en <classname>SpinButton</classname> då? För att "
n10705"komma åt värdet på en <classname>Gtk::Adjustment</classname>, kan du använda "n10464"komma åt värdet på en <classname>Gtk::Adjustment</classname> kan du använda "
10706"metoderna <methodname>get_value()</methodname> och <methodname>set_value()</"10465"metoderna <methodname>get_value()</methodname> och <methodname>set_value()</"
10707"methodname>:"10466"methodname>:"
1070810467
10709#. (itstool) path: section/para10468#. (itstool) path: section/para
10710#: C/index-in.docbook:440610469#: C/index-in.docbook:4406
10826"used in <application>gtkmm</application>4 applications, provided "10585"used in <application>gtkmm</application>4 applications, provided "
10827"GTKMM_DISABLE_DEPRECATED and GDKMM_DISABLE_DEPRECATED are not defined. Some "10586"GTKMM_DISABLE_DEPRECATED and GDKMM_DISABLE_DEPRECATED are not defined. Some "
10828"of the dialog classes are replaced by classes that are available since "10587"of the dialog classes are replaced by classes that are available since "
10829"<application>gtkmm</application> 4.10."10588"<application>gtkmm</application> 4.10."
10830msgstr ""10589msgstr ""
nn10590"<classname>Gtk::Dialog</classname> och klasserna som härleds från den är "
10591"föråldrade sedan <application>gtkmm</application> 4.10. De kan fortfarande "
10592"användas i <application>gtkmm</application>4-program, förutsatt att "
10593"GTKMM_DISABLE_DEPRECATED och GDKMM_DISABLE_DEPRECATED inte har definierats. "
10594"Några av dialogklasserna ersätts av klasser som finns tillgängliga sedan "
10595"<application>gtkmm</application> 4.10."
1083110596
10832#. (itstool) path: note/para10597#. (itstool) path: note/para
10833#: C/index-in.docbook:446410598#: C/index-in.docbook:4464
10834msgid ""10599msgid ""
10835"The examples in this chapter use classes that are available since "10600"The examples in this chapter use classes that are available since "
10836"<application>gtkmm</application> 4.10. Similar examples with the deprecated "10601"<application>gtkmm</application> 4.10. Similar examples with the deprecated "
10837"classes are available in the <link xlink:href=\"https://gitlab.gnome.org/"10602"classes are available in the <link xlink:href=\"https://gitlab.gnome.org/"
10838"GNOME/gtkmm-documentation/tree/gtkmm-4-0/examples/book/dialogs/\"> gtkmm-4-0 "10603"GNOME/gtkmm-documentation/tree/gtkmm-4-0/examples/book/dialogs/\"> gtkmm-4-0 "
10839"branch</link> in the git repository."10604"branch</link> in the git repository."
10840msgstr ""10605msgstr ""
nn10606"Exemplen i detta kapitel använder klasser som finns tillgängliga sedan "
10607"<application>gtkmm</application> 4.10. Liknande exempel med de föråldrade "
10608"klasserna finns tillgängliga i <link xlink:href=\"https://gitlab.gnome.org/"
10609"GNOME/gtkmm-documentation/tree/gtkmm-4-0/examples/book/dialogs/\"> grenen "
10610"gtkmm-4-0</link> i git-arkivet."
1084110611
10842#. (itstool) path: chapter/para10612#. (itstool) path: chapter/para
10843#: C/index-in.docbook:447010613#: C/index-in.docbook:4470
10844#, fuzzy10614#, fuzzy
10845msgid ""10615msgid ""
10899"kunde det vara det anpassade svarsvärdet som du angivit när du använt "10669"kunde det vara det anpassade svarsvärdet som du angivit när du använt "
10900"<methodname>add_button()</methodname>."10670"<methodname>add_button()</methodname>."
1090110671
10902#. (itstool) path: chapter/para10672#. (itstool) path: chapter/para
10903#: C/index-in.docbook:449910673#: C/index-in.docbook:4499
n10904#, fuzzyn
10905msgid ""10674msgid ""
10906"To show the dialog, call <methodname>set_visible(true)</methodname>. If the "10675"To show the dialog, call <methodname>set_visible(true)</methodname>. If the "
10907"same dialog instance will be shown several times, you must also call "10676"same dialog instance will be shown several times, you must also call "
10908"<methodname>set_hide_on_close()</methodname>, or else the dialog will be "10677"<methodname>set_hide_on_close()</methodname>, or else the dialog will be "
10909"destroyed when it's closed. Connect to the <literal>response</literal> "10678"destroyed when it's closed. Connect to the <literal>response</literal> "
10910"signal, if you want to know which button was pressed. The <literal>response</"10679"signal, if you want to know which button was pressed. The <literal>response</"
10911"literal> signal handler is also where you should hide the dialog."10680"literal> signal handler is also where you should hide the dialog."
10912msgstr ""10681msgstr ""
n10913"För att visa dialogrutan, anropa <methodname>show()</methodname>. Om samma "n10682"För att visa dialogrutan, anropa <methodname>set_visible(true)</methodname>. "
10914"dialoginstans kommer visas flera gånger måste du också anropa "10683"Om samma dialoginstans kommer visas flera gånger måste du också anropa "
10915"<methodname>set_hide_on_close()</methodname>, annars kommer dialogrutan "10684"<methodname>set_hide_on_close()</methodname>, annars kommer dialogrutan "
10916"förstöras då den stängs. Anslut till <literal>response</literal>-signalen om "10685"förstöras då den stängs. Anslut till <literal>response</literal>-signalen om "
10917"du vill veta vilken knapp som trycktes på. <literal>response</literal>-"10686"du vill veta vilken knapp som trycktes på. <literal>response</literal>-"
10918"signalhanteraren är också var du ska dölja dialogrutan."10687"signalhanteraren är också var du ska dölja dialogrutan."
1091910688
10920#. (itstool) path: chapter/para10689#. (itstool) path: chapter/para
10921#: C/index-in.docbook:450810690#: C/index-in.docbook:4508
n10922#, fuzzyn
10923#| msgid ""
10924#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
10925#| "classGtk_1_1Dialog.html\">Reference</link>"
10926msgid ""10691msgid ""
10927"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10692"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
10928"classGtk_1_1Dialog.html\">Reference</link>"10693"classGtk_1_1Dialog.html\">Reference</link>"
10929msgstr ""10694msgstr ""
n10930"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n10695"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
10931"classGtk_1_1Dialog.html\">Referens</link>"10696"classGtk_1_1Dialog.html\">Referens</link>"
1093210697
10933#. (itstool) path: section/title10698#. (itstool) path: section/title
10934#: C/index-in.docbook:451110699#: C/index-in.docbook:4511
n10935#, fuzzyn
10936#| msgid "MessageDialog"
10937msgid "AlertDialog and MessageDialog"10700msgid "AlertDialog and MessageDialog"
n10938msgstr "MessageDialog"n10701msgstr "AlertDialog och MessageDialog"
1093910702
10940#. (itstool) path: section/para10703#. (itstool) path: section/para
10941#: C/index-in.docbook:451210704#: C/index-in.docbook:4512
10942msgid ""10705msgid ""
10943"<classname>MessageDialog</classname> (deprecated since <application>gtkmm</"10706"<classname>MessageDialog</classname> (deprecated since <application>gtkmm</"
10944"application> 4.10) and <classname>AlertDialog</classname> (available since "10707"application> 4.10) and <classname>AlertDialog</classname> (available since "
10945"<application>gtkmm</application> 4.10) are convenience classes, used to "10708"<application>gtkmm</application> 4.10) are convenience classes, used to "
10946"create simple, standard message dialogs, with a message and buttons for user "10709"create simple, standard message dialogs, with a message and buttons for user "
10947"response."10710"response."
10948msgstr ""10711msgstr ""
nn10712"<classname>MessageDialog</classname> (föråldrad sedan <application>gtkmm</"
10713"application> 4.10) och <classname>AlertDialog</classname> (tillgänglig sedan "
10714"<application>gtkmm</application> 4.10) är bekvämlighetsklasser som används "
10715"för att skapa enkla standardmeddelandedialoger, med ett meddelande och "
10716"knappar för användarsvar."
1094910717
10950#. (itstool) path: section/para10718#. (itstool) path: section/para
10951#: C/index-in.docbook:451910719#: C/index-in.docbook:4519
n10952#, fuzzyn
10953#| msgid ""
10954#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
10955#| "classGtk_1_1AboutDialog.html\">Reference</link>"
10956msgid ""10720msgid ""
10957"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10721"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
10958"classGtk_1_1AlertDialog.html\">AlertDialog Reference</link>"10722"classGtk_1_1AlertDialog.html\">AlertDialog Reference</link>"
10959msgstr ""10723msgstr ""
n10960"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n10724"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
10961"classGtk_1_1AboutDialog.html\">Referens</link>"10725"classGtk_1_1AlertDialog.html\">AlertDialog-referens</link>"
1096210726
10963#. (itstool) path: section/para10727#. (itstool) path: section/para
10964#: C/index-in.docbook:452010728#: C/index-in.docbook:4520
n10965#, fuzzyn
10966#| msgid ""
10967#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
10968#| "classGtk_1_1MessageDialog.html\">Reference</link>"
10969msgid ""10729msgid ""
10970"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10730"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
10971"classGtk_1_1MessageDialog.html\">MessageDialog Reference</link>"10731"classGtk_1_1MessageDialog.html\">MessageDialog Reference</link>"
10972msgstr ""10732msgstr ""
n10973"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n10733"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
10974"classGtk_1_1MessageDialog.html\">Referens</link>"10734"classGtk_1_1MessageDialog.html\">MessageDialog-referens</link>"
1097510735
10976#. (itstool) path: figure/title10736#. (itstool) path: figure/title
10977#: C/index-in.docbook:452610737#: C/index-in.docbook:4526
n10978#, fuzzyn
10979#| msgid "AboutDialog"
10980msgid "AlertDialog"10738msgid "AlertDialog"
n10981msgstr "AboutDialog"n10739msgstr "AlertDialog"
1098210740
10983#. (itstool) path: imageobject/imagedata10741#. (itstool) path: imageobject/imagedata
10984#. This is a reference to an external file such as an image or video. When10742#. This is a reference to an external file such as an image or video. When
10985#. the file changes, the md5 hash will change to let you know you need to10743#. the file changes, the md5 hash will change to let you know you need to
10986#. update your localized copy. The msgstr is not used at all. Set it to10744#. update your localized copy. The msgstr is not used at all. Set it to
10990msgctxt "_"10748msgctxt "_"
10991msgid ""10749msgid ""
10992"external ref='figures/dialogs_alertdialog.png' "10750"external ref='figures/dialogs_alertdialog.png' "
10993"md5='88fa2103ad6d842eeebc68cc8cfd94ef'"10751"md5='88fa2103ad6d842eeebc68cc8cfd94ef'"
10994msgstr ""10752msgstr ""
n10995"external ref='figures/dialogs_messagedialog.png' "n10753"external ref='figures/dialogs_alertdialog.png' "
10996"md5='58151003c2b562b9f27b064c3193f7b1'"10754"md5='88fa2103ad6d842eeebc68cc8cfd94ef'"
1099710755
10998#. (itstool) path: section/para10756#. (itstool) path: section/para
10999#: C/index-in.docbook:453210757#: C/index-in.docbook:4532
n11000#, fuzzyn
11001#| msgid ""
11002#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
11003#| "tree/master/examples/book/dialogs/aboutdialog\">Source Code</link>"
11004msgid ""10758msgid ""
11005"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"10759"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
11006"master/examples/book/dialogs/alertdialog\">Source Code</link>"10760"master/examples/book/dialogs/alertdialog\">Source Code</link>"
11007msgstr ""10761msgstr ""
11008"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"10762"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n11009"master/examples/book/dialogs/aboutdialog\">Källkod</link>"n10763"master/examples/book/dialogs/alertdialog\">Källkod</link>"
1101010764
11011#. (itstool) path: section/title10765#. (itstool) path: section/title
11012#: C/index-in.docbook:453710766#: C/index-in.docbook:4537
n11013#, fuzzyn
11014#| msgid "FileChooserDialog"
11015msgid "FileDialog and FileChooserDialog"10767msgid "FileDialog and FileChooserDialog"
n11016msgstr "FileChooserDialog"n10768msgstr "FileDialog och FileChooserDialog"
1101710769
11018#. (itstool) path: section/para10770#. (itstool) path: section/para
11019#: C/index-in.docbook:453810771#: C/index-in.docbook:4538
11020msgid ""10772msgid ""
11021"The <classname>FileChooserDialog</classname> (deprecated since "10773"The <classname>FileChooserDialog</classname> (deprecated since "
11022"<application>gtkmm</application> 4.10) and <classname>FileDialog</classname> "10774"<application>gtkmm</application> 4.10) and <classname>FileDialog</classname> "
11023"(available since <application>gtkmm</application> 4.10) are suitable for use "10775"(available since <application>gtkmm</application> 4.10) are suitable for use "
11024"with \"Open\" or \"Save\" menu items."10776"with \"Open\" or \"Save\" menu items."
11025msgstr ""10777msgstr ""
nn10778"<classname>FileChooserDialog</classname> (föråldrad sedan "
10779"<application>gtkmm</application> 4.10) och <classname>FileDialog</classname> "
10780"(tillgänglig sedan <application>gtkmm</application> 4.10) är lämpliga för "
10781"användning med menyobjekten ”Öppna” eller ”Spara”."
1102610782
11027#. (itstool) path: section/para10783#. (itstool) path: section/para
11028#: C/index-in.docbook:454310784#: C/index-in.docbook:4543
n11029#, fuzzyn
11030#| msgid ""
11031#| "Most of the useful member methods for this class are actually in the "
11032#| "<classname>Gtk::FileChooser</classname> base class."
11033msgid ""10785msgid ""
11034"Most of the useful member methods for <classname>FileChooserDialog</"10786"Most of the useful member methods for <classname>FileChooserDialog</"
11035"classname> are actually in the <classname>Gtk::FileChooser</classname> base "10787"classname> are actually in the <classname>Gtk::FileChooser</classname> base "
11036"class."10788"class."
11037msgstr ""10789msgstr ""
n11038"De flesta av de användbara medlemsmetoderna för denna klass är faktiskt i "n10790"De flesta av de användbara medlemsmetoderna för "
10791"<classname>FileChooserDialog</classname> finns faktiskt i basklassen "
11039"basklassen <classname>Gtk::FileChooser</classname>."10792"<classname>Gtk::FileChooser</classname>."
1104010793
11041#. (itstool) path: section/para10794#. (itstool) path: section/para
11042#: C/index-in.docbook:454810795#: C/index-in.docbook:4548
n11043#, fuzzyn
11044#| msgid ""
11045#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
11046#| "classGtk_1_1Dialog.html\">Reference</link>"
11047msgid ""10796msgid ""
11048"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10797"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
11049"classGtk_1_1FileDialog.html\">FileDialog Reference</link>"10798"classGtk_1_1FileDialog.html\">FileDialog Reference</link>"
11050msgstr ""10799msgstr ""
n11051"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n10800"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
11052"classGtk_1_1Dialog.html\">Referens</link>"10801"classGtk_1_1FileDialog.html\">Referens för FileDialog</link>"
1105310802
11054#. (itstool) path: section/para10803#. (itstool) path: section/para
11055#: C/index-in.docbook:454910804#: C/index-in.docbook:4549
n11056#, fuzzyn
11057#| msgid ""
11058#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
11059#| "classGtk_1_1FileChooserDialog.html\">Reference</link>"
11060msgid ""10805msgid ""
11061"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10806"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
11062"classGtk_1_1FileChooserDialog.html\">FileChooserDialog Reference</link>"10807"classGtk_1_1FileChooserDialog.html\">FileChooserDialog Reference</link>"
11063msgstr ""10808msgstr ""
n11064"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n10809"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
11065"classGtk_1_1FileChooserDialog.html\">Referens</link>"10810"classGtk_1_1FileChooserDialog.html\">Referens för FileChooserDialog</link>"
1106610811
11067#. (itstool) path: figure/title10812#. (itstool) path: figure/title
11068#: C/index-in.docbook:455510813#: C/index-in.docbook:4555
n11069#, fuzzyn
11070#| msgid "FileChooserDialog"
11071msgid "FileDialog"10814msgid "FileDialog"
n11072msgstr "FileChooserDialog"n10815msgstr "FileDialog"
1107310816
11074#. (itstool) path: imageobject/imagedata10817#. (itstool) path: imageobject/imagedata
11075#. This is a reference to an external file such as an image or video. When10818#. This is a reference to an external file such as an image or video. When
11076#. the file changes, the md5 hash will change to let you know you need to10819#. the file changes, the md5 hash will change to let you know you need to
11077#. update your localized copy. The msgstr is not used at all. Set it to10820#. update your localized copy. The msgstr is not used at all. Set it to
11081msgctxt "_"10824msgctxt "_"
11082msgid ""10825msgid ""
11083"external ref='figures/dialogs_filedialog.png' "10826"external ref='figures/dialogs_filedialog.png' "
11084"md5='15ecc452482112428259d0dcd8d0394a'"10827"md5='15ecc452482112428259d0dcd8d0394a'"
11085msgstr ""10828msgstr ""
n11086"external ref='figures/dialogs_filechooser.png' "n10829"external ref='figures/dialogs_filedialog.png' "
11087"md5='15ecc452482112428259d0dcd8d0394a'"10830"md5='15ecc452482112428259d0dcd8d0394a'"
1108810831
11089#. (itstool) path: section/para10832#. (itstool) path: section/para
11090#: C/index-in.docbook:456110833#: C/index-in.docbook:4561
n11091#, fuzzyn
11092#| msgid ""
11093#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
11094#| "tree/master/examples/book/dialogs/filechooserdialog\">Source Code</link>"
11095msgid ""10834msgid ""
11096"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"10835"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
11097"master/examples/book/dialogs/filedialog\">Source Code</link>"10836"master/examples/book/dialogs/filedialog\">Source Code</link>"
11098msgstr ""10837msgstr ""
11099"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"10838"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n11100"master/examples/book/dialogs/filechooserdialog\">Källkod</link>"n10839"master/examples/book/dialogs/filedialog\">Källkod</link>"
1110110840
11102#. (itstool) path: section/title10841#. (itstool) path: section/title
11103#: C/index-in.docbook:456610842#: C/index-in.docbook:4566
n11104#, fuzzyn
11105#| msgid "ColorChooserDialog"
11106msgid "ColorDialog and ColorChooserDialog"10843msgid "ColorDialog and ColorChooserDialog"
n11107msgstr "ColorChooserDialog"n10844msgstr "ColorDialog och ColorChooserDialog"
1110810845
11109#. (itstool) path: section/para10846#. (itstool) path: section/para
11110#: C/index-in.docbook:456710847#: C/index-in.docbook:4567
11111msgid ""10848msgid ""
11112"The <classname>ColorChooserDialog</classname> (deprecated since "10849"The <classname>ColorChooserDialog</classname> (deprecated since "
11116"since <application>gtkmm</application> 4.10) and "10853"since <application>gtkmm</application> 4.10) and "
11117"<classname>ColorDialogButton</classname> (available since "10854"<classname>ColorDialogButton</classname> (available since "
11118"<application>gtkmm</application> 4.10) open a color selection dialog when it "10855"<application>gtkmm</application> 4.10) open a color selection dialog when it "
11119"is clicked."10856"is clicked."
11120msgstr ""10857msgstr ""
nn10858"<classname>ColorChooserDialog</classname> (föråldrad sedan "
10859"<application>gtkmm</application> 4.10) och <classname>ColorDialog</"
10860"classname> (tillgänglig sedan <application>gtkmm</application> 4.10) låter "
10861"användaren välja en färg. <classname>ColorButton</classname> (föråldrad "
10862"sedan <application>gtkmm</application> 4.10) och "
10863"<classname>ColorDialogButton</classname> (tillgänglig sedan "
10864"<application>gtkmm</application> 4.10) öppnar en färgvalsdialog när de "
10865"klickas på."
1112110866
11122#. (itstool) path: section/para10867#. (itstool) path: section/para
11123#: C/index-in.docbook:457510868#: C/index-in.docbook:4575
n11124#, fuzzyn
11125#| msgid ""
11126#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
11127#| "classGtk_1_1ColorChooserDialog.html\">Reference</link>"
11128msgid ""10869msgid ""
11129"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10870"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
11130"classGtk_1_1ColorDialog.html\">ColorDialog Reference</link>"10871"classGtk_1_1ColorDialog.html\">ColorDialog Reference</link>"
11131msgstr ""10872msgstr ""
n11132"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n10873"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
11133"classGtk_1_1ColorChooserDialog.html\">Referens</link>"10874"classGtk_1_1ColorDialog.html\">Referens för ColorDialog</link>"
1113410875
11135#. (itstool) path: section/para10876#. (itstool) path: section/para
11136#: C/index-in.docbook:457610877#: C/index-in.docbook:4576
n11137#, fuzzyn
11138#| msgid ""
11139#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
11140#| "classGtk_1_1ColorChooserDialog.html\">Reference</link>"
11141msgid ""10878msgid ""
11142"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10879"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
11143"classGtk_1_1ColorChooserDialog.html\">ColorChooserDialog Reference</link>"10880"classGtk_1_1ColorChooserDialog.html\">ColorChooserDialog Reference</link>"
11144msgstr ""10881msgstr ""
n11145"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n10882"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
11146"classGtk_1_1ColorChooserDialog.html\">Referens</link>"10883"classGtk_1_1ColorChooserDialog.html\">Referens för ColorChooserDialog</link>"
1114710884
11148#. (itstool) path: figure/title10885#. (itstool) path: figure/title
11149#: C/index-in.docbook:458210886#: C/index-in.docbook:4582
n11150#, fuzzyn
11151#| msgid "ColorChooserDialog"
11152msgid "ColorDialog"10887msgid "ColorDialog"
n11153msgstr "ColorChooserDialog"n10888msgstr "ColorDialog"
1115410889
11155#. (itstool) path: imageobject/imagedata10890#. (itstool) path: imageobject/imagedata
11156#. This is a reference to an external file such as an image or video. When10891#. This is a reference to an external file such as an image or video. When
11157#. the file changes, the md5 hash will change to let you know you need to10892#. the file changes, the md5 hash will change to let you know you need to
11158#. update your localized copy. The msgstr is not used at all. Set it to10893#. update your localized copy. The msgstr is not used at all. Set it to
11162msgctxt "_"10897msgctxt "_"
11163msgid ""10898msgid ""
11164"external ref='figures/dialogs_colordialog.png' "10899"external ref='figures/dialogs_colordialog.png' "
11165"md5='029761e82cf06d3cbeaac2b7ccd70e57'"10900"md5='029761e82cf06d3cbeaac2b7ccd70e57'"
11166msgstr ""10901msgstr ""
n11167"external ref='figures/dialogs_colorchooserdialog.png' "n10902"external ref='figures/dialogs_colordialog.png' "
11168"md5='029761e82cf06d3cbeaac2b7ccd70e57'"10903"md5='029761e82cf06d3cbeaac2b7ccd70e57'"
1116910904
11170#. (itstool) path: section/para10905#. (itstool) path: section/para
11171#: C/index-in.docbook:458810906#: C/index-in.docbook:4588
n11172#, fuzzyn
11173#| msgid ""
11174#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
11175#| "tree/master/examples/book/dialogs/colorchooserdialog\">Source Code</link>"
11176msgid ""10907msgid ""
11177"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"10908"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
11178"master/examples/book/dialogs/colordialog\">Source Code</link>"10909"master/examples/book/dialogs/colordialog\">Source Code</link>"
11179msgstr ""10910msgstr ""
11180"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"10911"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n11181"master/examples/book/dialogs/colorchooserdialog\">Källkod</link>"n10912"master/examples/book/dialogs/colordialog\">Källkod</link>"
1118210913
11183#. (itstool) path: section/title10914#. (itstool) path: section/title
11184#: C/index-in.docbook:459310915#: C/index-in.docbook:4593
n11185#, fuzzyn
11186#| msgid "FontChooserDialog"
11187msgid "FontDialog and FontChooserDialog"10916msgid "FontDialog and FontChooserDialog"
n11188msgstr "FontChooserDialog"n10917msgstr "FontDialog och FontChooserDialog"
1118910918
11190#. (itstool) path: section/para10919#. (itstool) path: section/para
11191#: C/index-in.docbook:459410920#: C/index-in.docbook:4594
11192msgid ""10921msgid ""
11193"The <classname>FontChooserDialog</classname> (deprecated since "10922"The <classname>FontChooserDialog</classname> (deprecated since "
11196"choose a font. The <classname>FontButton</classname> (deprecated since "10925"choose a font. The <classname>FontButton</classname> (deprecated since "
11197"<application>gtkmm</application> 4.10) and <classname>FontDialogButton</"10926"<application>gtkmm</application> 4.10) and <classname>FontDialogButton</"
11198"classname> (available since <application>gtkmm</application> 4.10) open a "10927"classname> (available since <application>gtkmm</application> 4.10) open a "
11199"font chooser dialog when it is clicked."10928"font chooser dialog when it is clicked."
11200msgstr ""10929msgstr ""
nn10930"<classname>FontChooserDialog</classname> (föråldrad sedan "
10931"<application>gtkmm</application> 4.10) och <classname>FontDialog</classname> "
10932"(tillgänglig sedan <application>gtkmm</application> 4.10) låter användaren "
10933"välja ett typsnitt. <classname>FontButton</classname> (föråldrad sedan "
10934"<application>gtkmm</application> 4.10) och <classname>FontDialogButton</"
10935"classname> (tillgänglig sedan <application>gtkmm</application> 4.10) öppnar "
10936"en typsnittvalsdialog när de klickas på."
1120110937
11202#. (itstool) path: section/para10938#. (itstool) path: section/para
11203#: C/index-in.docbook:460210939#: C/index-in.docbook:4602
n11204#, fuzzyn
11205#| msgid ""
11206#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
11207#| "classGtk_1_1AboutDialog.html\">Reference</link>"
11208msgid ""10940msgid ""
11209"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10941"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
11210"classGtk_1_1FontDialog.html\">FontDialog Reference</link>"10942"classGtk_1_1FontDialog.html\">FontDialog Reference</link>"
11211msgstr ""10943msgstr ""
n11212"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n10944"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
11213"classGtk_1_1AboutDialog.html\">Referens</link>"10945"classGtk_1_1FontDialog.html\">Referens för FontDialog</link>"
1121410946
11215#. (itstool) path: section/para10947#. (itstool) path: section/para
11216#: C/index-in.docbook:460310948#: C/index-in.docbook:4603
n11217#, fuzzyn
11218#| msgid ""
11219#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
11220#| "classGtk_1_1FontChooserDialog.html\">Reference</link>"
11221msgid ""10949msgid ""
11222"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10950"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
11223"classGtk_1_1FontChooserDialog.html\">FontChooserDialog Reference</link>"10951"classGtk_1_1FontChooserDialog.html\">FontChooserDialog Reference</link>"
11224msgstr ""10952msgstr ""
n11225"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n10953"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
11226"classGtk_1_1FontChooserDialog.html\">Referens</link>"10954"classGtk_1_1FontChooserDialog.html\">Referens för FontChooserDialog</link>"
1122710955
11228#. (itstool) path: figure/title10956#. (itstool) path: figure/title
11229#: C/index-in.docbook:460910957#: C/index-in.docbook:4609
n11230#, fuzzyn
11231#| msgid "AboutDialog"
11232msgid "FontDialog"10958msgid "FontDialog"
n11233msgstr "AboutDialog"n10959msgstr "FontDialog"
1123410960
11235#. (itstool) path: imageobject/imagedata10961#. (itstool) path: imageobject/imagedata
11236#. This is a reference to an external file such as an image or video. When10962#. This is a reference to an external file such as an image or video. When
11237#. the file changes, the md5 hash will change to let you know you need to10963#. the file changes, the md5 hash will change to let you know you need to
11238#. update your localized copy. The msgstr is not used at all. Set it to10964#. update your localized copy. The msgstr is not used at all. Set it to
11242msgctxt "_"10968msgctxt "_"
11243msgid ""10969msgid ""
11244"external ref='figures/dialogs_fontdialog.png' "10970"external ref='figures/dialogs_fontdialog.png' "
11245"md5='e35e05429468fa8823416b8a0deff342'"10971"md5='e35e05429468fa8823416b8a0deff342'"
11246msgstr ""10972msgstr ""
n11247"external ref='figures/dialogs_fontchooserdialog.png' "n10973"external ref='figures/dialogs_fontdialog.png' "
11248"md5='e35e05429468fa8823416b8a0deff342'"10974"md5='e35e05429468fa8823416b8a0deff342'"
1124910975
11250#. (itstool) path: section/para10976#. (itstool) path: section/para
11251#: C/index-in.docbook:461510977#: C/index-in.docbook:4615
n11252#, fuzzyn
11253#| msgid ""
11254#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
11255#| "tree/master/examples/book/dialogs/aboutdialog\">Source Code</link>"
11256msgid ""10978msgid ""
11257"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"10979"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
11258"master/examples/book/dialogs/fontdialog\">Source Code</link>"10980"master/examples/book/dialogs/fontdialog\">Source Code</link>"
11259msgstr ""10981msgstr ""
11260"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"10982"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n11261"master/examples/book/dialogs/aboutdialog\">Källkod</link>"n10983"master/examples/book/dialogs/fontdialog\">Källkod</link>"
1126210984
11263#. (itstool) path: section/title10985#. (itstool) path: section/title
11264#: C/index-in.docbook:462010986#: C/index-in.docbook:4620
11265#, fuzzy10987#, fuzzy
11266msgid "Non-modal AboutDialog"10988msgid "Non-modal AboutDialog"
11297"icke-modala dialogrutor kan vara användbara i andra fall. Exempelvis är "11019"icke-modala dialogrutor kan vara användbara i andra fall. Exempelvis är "
11298"<application>gedit</application>s sök-och-ersättdialog icke-modal."11020"<application>gedit</application>s sök-och-ersättdialog icke-modal."
1129911021
11300#. (itstool) path: section/para11022#. (itstool) path: section/para
11301#: C/index-in.docbook:463511023#: C/index-in.docbook:4635
n11302#, fuzzyn
11303#| msgid ""
11304#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
11305#| "classGtk_1_1AboutDialog.html\">Reference</link>"
11306msgid ""11024msgid ""
11307"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"11025"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
11308"classGtk_1_1AboutDialog.html\">Reference</link>"11026"classGtk_1_1AboutDialog.html\">Reference</link>"
11309msgstr ""11027msgstr ""
n11310"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n11028"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
11311"classGtk_1_1AboutDialog.html\">Referens</link>"11029"classGtk_1_1AboutDialog.html\">Referens</link>"
1131211030
11313#. (itstool) path: figure/title11031#. (itstool) path: figure/title
11314#: C/index-in.docbook:464111032#: C/index-in.docbook:4641
11315msgid "AboutDialog"11033msgid "AboutDialog"
11340"master/examples/book/dialogs/aboutdialog\">Källkod</link>"11058"master/examples/book/dialogs/aboutdialog\">Källkod</link>"
1134111059
11342#. (itstool) path: section/title11060#. (itstool) path: section/title
11343#: C/index-in.docbook:465211061#: C/index-in.docbook:4652
11344#, fuzzy11062#, fuzzy
n11345#| msgid "Custom Widget"n
11346msgid "Custom Dialog"11063msgid "Custom Dialog"
n11347msgstr "Anpassad komponent"n11064msgstr "Anpassad dialogruta"
1134811065
11349#. (itstool) path: section/para11066#. (itstool) path: section/para
11350#: C/index-in.docbook:465311067#: C/index-in.docbook:4653
nn11068#, fuzzy
11351msgid ""11069msgid ""
11352"When none of the predefined dialog classes suit your needs, you can make "11070"When none of the predefined dialog classes suit your needs, you can make "
11353"your own dialog by deriving a class from <classname>Window</classname> and "11071"your own dialog by deriving a class from <classname>Window</classname> and "
11354"fill it with the widgets you need."11072"fill it with the widgets you need."
11355msgstr ""11073msgstr ""
nn11074"Om ingen av de fördefinierade dialogklasserna passar för dina behov kan du "
11075"skapa din egen dialogruta genom att härleda en klass från <classname>Window</"
11076"classname> och fylla den med komponenterna som du behöver."
1135611077
11357#. (itstool) path: section/para11078#. (itstool) path: section/para
11358#: C/index-in.docbook:465911079#: C/index-in.docbook:4659
n11359#, fuzzyn
11360#| msgid ""
11361#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
11362#| "classGtk_1_1Widget.html\">Widget Reference</link>"
11363msgid ""11080msgid ""
11364"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"11081"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
11365"classGtk_1_1Window.html\">Window Reference</link>"11082"classGtk_1_1Window.html\">Window Reference</link>"
11366msgstr ""11083msgstr ""
n11367"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n11084"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
11368"classGtk_1_1Widget.html\">Widget-referens</link>"11085"classGtk_1_1Window.html\">Referens för Window</link>"
1136911086
11370#. (itstool) path: figure/title11087#. (itstool) path: figure/title
11371#: C/index-in.docbook:466511088#: C/index-in.docbook:4665
11372#, fuzzy11089#, fuzzy
n11373#| msgid "Dialogs"n
11374msgid "Window Dialog"11090msgid "Window Dialog"
n11375msgstr "Dialogrutor"n11091msgstr "Fönsterdialog"
1137611092
11377#. (itstool) path: imageobject/imagedata11093#. (itstool) path: imageobject/imagedata
11378#. This is a reference to an external file such as an image or video. When11094#. This is a reference to an external file such as an image or video. When
11379#. the file changes, the md5 hash will change to let you know you need to11095#. the file changes, the md5 hash will change to let you know you need to
11380#. update your localized copy. The msgstr is not used at all. Set it to11096#. update your localized copy. The msgstr is not used at all. Set it to
11384msgctxt "_"11100msgctxt "_"
11385msgid ""11101msgid ""
11386"external ref='figures/dialogs_windowdialog.png' "11102"external ref='figures/dialogs_windowdialog.png' "
11387"md5='53deb18153f6903fe45d015fc06ccef3'"11103"md5='53deb18153f6903fe45d015fc06ccef3'"
11388msgstr ""11104msgstr ""
n11389"external ref='figures/dialogs_messagedialog.png' "n11105"external ref='figures/dialogs_windowdialog.png' "
11390"md5='58151003c2b562b9f27b064c3193f7b1'"11106"md5='53deb18153f6903fe45d015fc06ccef3'"
1139111107
11392#. (itstool) path: section/para11108#. (itstool) path: section/para
11393#: C/index-in.docbook:467111109#: C/index-in.docbook:4671
n11394#, fuzzyn
11395#| msgid ""
11396#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
11397#| "tree/master/examples/book/dialogs/aboutdialog\">Source Code</link>"
11398msgid ""11110msgid ""
11399"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"11111"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
11400"master/examples/book/dialogs/windowdialog\">Source Code</link>"11112"master/examples/book/dialogs/windowdialog\">Source Code</link>"
11401msgstr ""11113msgstr ""
11402"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"11114"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n11403"master/examples/book/dialogs/aboutdialog\">Källkod</link>"n11115"master/examples/book/dialogs/windowdialog\">Källkod</link>"
1140411116
11405#. (itstool) path: chapter/title11117#. (itstool) path: chapter/title
11406#: C/index-in.docbook:467811118#: C/index-in.docbook:4678
11407msgid "The DrawingArea Widget"11119msgid "The DrawingArea Widget"
11408msgstr "DrawingArea-komponenten"11120msgstr "DrawingArea-komponenten"
11654msgstr ""11366msgstr ""
11655"Det är god sed att stoppa alla ändringar till grafiktillståndet mellan "11367"Det är god sed att stoppa alla ändringar till grafiktillståndet mellan "
11656"<methodname>save()</methodname>/<methodname>restore()</methodname>-"11368"<methodname>save()</methodname>/<methodname>restore()</methodname>-"
11657"funktionsanrop. Om du exempelvis har en funktion som tar en "11369"funktionsanrop. Om du exempelvis har en funktion som tar en "
11658"<classname>Cairo::Context</classname>-referens som ett argument kanske du "11370"<classname>Cairo::Context</classname>-referens som ett argument kanske du "
n11659"implementerar den som följande:"n11371"implementerar den enligt följande:"
1166011372
11661#. (itstool) path: tip/programlisting11373#. (itstool) path: tip/programlisting
11662#: C/index-in.docbook:479911374#: C/index-in.docbook:4799
11663#, fuzzy, no-wrap11375#, fuzzy, no-wrap
11664#| msgid ""11376#| msgid ""
11734"kontext i ritfunktionen."11446"kontext i ritfunktionen."
1173511447
11736#. (itstool) path: section/title11448#. (itstool) path: section/title
11737#: C/index-in.docbook:481611449#: C/index-in.docbook:4816
11738msgid "Drawing Straight Lines"11450msgid "Drawing Straight Lines"
n11739msgstr "Rita raka linjer"n11451msgstr "Rita räta linjer"
1174011452
11741#. (itstool) path: tip/para11453#. (itstool) path: tip/para
11742#: C/index-in.docbook:482511454#: C/index-in.docbook:4825
11743#, fuzzy11455#, fuzzy
11744msgid ""11456msgid ""
11772"Cairo's coordinate system. The origin of the Cairo coordinate system is "11484"Cairo's coordinate system. The origin of the Cairo coordinate system is "
11773"located in the upper-left corner of the window with positive x values to the "11485"located in the upper-left corner of the window with positive x values to the "
11774"right and positive y values going down. <_:tip-1/>"11486"right and positive y values going down. <_:tip-1/>"
11775msgstr ""11487msgstr ""
11776"Nu då vi förstå grunderna hos Cairo-grafikbiblioteket är vi nästan klara att "11488"Nu då vi förstå grunderna hos Cairo-grafikbiblioteket är vi nästan klara att "
n11777"börja rita. Vi börjar med det enklaste av ritelement: den raka linjen. Men "n11489"börja rita. Vi börjar med det enklaste av ritelement: den räta linjen. Men "
11778"först behöver du känna till lite om Cairos koordinatsystem. Origo för Cairos "11490"först behöver du känna till lite om Cairos koordinatsystem. Origo för Cairos "
11779"koordinatsystem finns i fönstrets övre vänstra hörn med positiva x-värden "11491"koordinatsystem finns i fönstrets övre vänstra hörn med positiva x-värden "
11780"till höger och positiva y-värden nedåt. <_:tip-1/>"11492"till höger och positiva y-värden nedåt. <_:tip-1/>"
1178111493
11782#. (itstool) path: section/para11494#. (itstool) path: section/para
11895"methodname> anropas sedan närhelst bilden i ritytan behöver ritas om. Den "11607"methodname> anropas sedan närhelst bilden i ritytan behöver ritas om. Den "
11896"skickas en <classname>Cairo::RefPtr</classname>-pekare till en "11608"skickas en <classname>Cairo::RefPtr</classname>-pekare till en "
11897"<classname>Cairo::Context</classname> som vi använder för ritandet. Koden "11609"<classname>Cairo::Context</classname> som vi använder för ritandet. Koden "
11898"som faktiskt ritar ställer in färgen vi vill använda för ritandet genom att "11610"som faktiskt ritar ställer in färgen vi vill använda för ritandet genom att "
11899"använda <methodname>set_source_rgb()</methodname> vilken tar argument som "11611"använda <methodname>set_source_rgb()</methodname> vilken tar argument som "
n11900"definierar komponenterna Red, Green, and Blue för den önskade färgen "n11612"definierar komponenterna Red, Green och Blue för den önskade färgen (giltiga "
11901"(giltiga värden är mellan 0 och 1). Efter att färgen ställts in skapade vi "11613"värden är mellan 0 och 1). Efter att färgen ställts in skapade vi en ny bana "
11902"en ny bana med funktionerna <methodname>move_to()</methodname> och "11614"med funktionerna <methodname>move_to()</methodname> och "
11903"<methodname>line_to()</methodname>, och strök sedan denna bana med "11615"<methodname>line_to()</methodname>, och strök sedan denna bana med "
11904"<methodname>stroke()</methodname>."11616"<methodname>stroke()</methodname>."
1190511617
11906#. (itstool) path: tip/title11618#. (itstool) path: tip/title
11907#: C/index-in.docbook:489911619#: C/index-in.docbook:4899
11929msgid ""11641msgid ""
11930"In addition to drawing basic straight lines, there are a number of things "11642"In addition to drawing basic straight lines, there are a number of things "
11931"that you can customize about a line. You've already seen examples of setting "11643"that you can customize about a line. You've already seen examples of setting "
11932"a line's color and width, but there are others as well."11644"a line's color and width, but there are others as well."
11933msgstr ""11645msgstr ""
n11934"Utöver att rita enkla raka linjer så finns det ett antal saker som du kan "n11646"Utöver att rita enkla räta linjer så finns det ett antal saker som du kan "
11935"anpassa med en linje. Du har redan sett exempel på att ställa in en linje "11647"anpassa med en linje. Du har redan sett exempel på att ställa in en linjes "
11936"färg och bredd, men det finns även annat."11648"färg och bredd, men det finns även annat."
1193711649
11938# TODO: are show*n*11650# TODO: are show*n*
11939#. (itstool) path: section/para11651#. (itstool) path: section/para
11940#: C/index-in.docbook:491411652#: C/index-in.docbook:4914
11993"<methodname>Cairo::Context::set_line_cap()</methodname>."11705"<methodname>Cairo::Context::set_line_cap()</methodname>."
1199411706
11995#. (itstool) path: section/para11707#. (itstool) path: section/para
11996#: C/index-in.docbook:494011708#: C/index-in.docbook:4940
11997#, fuzzy11709#, fuzzy
nn11710#| msgid ""
11711#| "There are other things you can customize as well, including creating "
11712#| "dashed lines and other things. For more information, see the Cairo API "
11713#| "documentation."
11998msgid ""11714msgid ""
11999"There are other things you can customize as well, including creating dashed "11715"There are other things you can customize as well, including creating dashed "
12000"lines and other things. For more information, see the Cairo API "11716"lines and other things. For more information, see the Cairo API "
12001"documentation. Dashed lines are shown in the example in the <link "11717"documentation. Dashed lines are shown in the example in the <link "
12002"linkend=\"cairo-example-curves\">Drawing Curved Lines</link> section."11718"linkend=\"cairo-example-curves\">Drawing Curved Lines</link> section."
12003msgstr ""11719msgstr ""
n12004"Det finns även andra saker du kan anpassa, som att skapa ocandra saker. Se "n11720"Det finns även andra saker du kan anpassa, som att skapa streckade linjer "
12005"Cairos API-dokumentation för mer information."11721"och andra saker. Se Cairos API-dokumentation för mer information."
1200611722
12007#. (itstool) path: section/title11723#. (itstool) path: section/title
12008#: C/index-in.docbook:495011724#: C/index-in.docbook:4950
12009msgid "Drawing thin lines"11725msgid "Drawing thin lines"
12010msgstr "Rita tunna linjer"11726msgstr "Rita tunna linjer"
12147msgid ""11863msgid ""
12148"The only difference between this example and the straight line example is in "11864"The only difference between this example and the straight line example is in "
12149"the <methodname>on_draw()</methodname> function, but there are a few new "11865"the <methodname>on_draw()</methodname> function, but there are a few new "
12150"concepts and functions introduced here, so let's examine them briefly."11866"concepts and functions introduced here, so let's examine them briefly."
12151msgstr ""11867msgstr ""
n12152"Den enda skillnaden mellan detta exempel och exemplet för raka linjer är i "n11868"Den enda skillnaden mellan detta exempel och exemplet för räta linjer är i "
12153"funktionen <methodname>on_draw()</methodname>, men några nya koncept och "11869"funktionen <methodname>on_draw()</methodname>, men några nya koncept och "
12154"funktioner introduceras här, så låt oss kort ta en titt på dem."11870"funktioner introduceras här, så låt oss kort ta en titt på dem."
1215511871
12156#. (itstool) path: section/para11872#. (itstool) path: section/para
12157#: C/index-in.docbook:501011873#: C/index-in.docbook:5010
12670"0) coordinate is in the very center of the window."12386"0) coordinate is in the very center of the window."
12671msgstr ""12387msgstr ""
12672"Låt oss nu ta en titt på koden som utför det faktiska ritandet. Den första "12388"Låt oss nu ta en titt på koden som utför det faktiska ritandet. Den första "
12673"delen av <methodname>on_draw()</methodname> bör vara ganska bekant nu. Detta "12389"delen av <methodname>on_draw()</methodname> bör vara ganska bekant nu. Detta "
12674"exempel skalar igen koordinatsystemet till en enhetskvadrat så att det är "12390"exempel skalar igen koordinatsystemet till en enhetskvadrat så att det är "
n12675"lättare att rita klockan som en procentsats av fönsterstorleken så att den "n12391"lättare att rita klockan som en procentsats av fönsterstorleken, så att den "
12676"automatiskt kommer skalas när fönsterstorleken justeras. Vidare skalas och "12392"automatiskt kommer skalas när fönsterstorleken justeras. Vidare skalas och "
12677"flyttas koordinatsystemet så att koordinaten (0, 0) är i mitten av fönstret."12393"flyttas koordinatsystemet så att koordinaten (0, 0) är i mitten av fönstret."
1267812394
12679#. (itstool) path: section/para12395#. (itstool) path: section/para
12680#: C/index-in.docbook:527612396#: C/index-in.docbook:5276
12708"implement the time-keeping functionality of the clock, which simply involves "12424"implement the time-keeping functionality of the clock, which simply involves "
12709"getting the current values for hours, minutes and seconds, and drawing the "12425"getting the current values for hours, minutes and seconds, and drawing the "
12710"hands at the correct angles."12426"hands at the correct angles."
12711msgstr ""12427msgstr ""
12712"Efter att ha ritat konturen går vi runt klockan och ritar streck för varje "12428"Efter att ha ritat konturen går vi runt klockan och ritar streck för varje "
n12713"timme, med ett större sträck vid 12, 3, 6 och 9. Slutligen är vi redo att "n12429"timme, med ett större streck vid 12, 3, 6 och 9. Slutligen är vi redo att "
12714"implementera klockans tidtagande, vilket helt enkelt innefattar att få de "12430"implementera klockans tidtagande, vilket helt enkelt innefattar att få de "
12715"aktuella värdena för timmar, minuter och sekunder, och rita visarna på rätt "12431"aktuella värdena för timmar, minuter och sekunder, och rita visarna på rätt "
12716"vinklar."12432"vinklar."
1271712433
12718#. (itstool) path: chapter/para12434#. (itstool) path: chapter/para
13132"classname> är redo kommer det anropa dessa metoder, och tillhandahålla "12848"classname> är redo kommer det anropa dessa metoder, och tillhandahålla "
13133"begärda data."12849"begärda data."
1313412850
13135#. (itstool) path: chapter/para12851#. (itstool) path: chapter/para
13136#: C/index-in.docbook:549512852#: C/index-in.docbook:5495
n13137#, fuzzyn
13138#| msgid ""
13139#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
13140#| "classGdk_1_1Clipboard.html\">Reference</link>"
13141msgid ""12853msgid ""
13142"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"12854"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
13143"classGdk_1_1Clipboard.html\">Reference</link>"12855"classGdk_1_1Clipboard.html\">Reference</link>"
13144msgstr ""12856msgstr ""
n13145"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n12857"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
13146"classGdk_1_1Clipboard.html\">Referens</link>"12858"classGdk_1_1Clipboard.html\">Referens</link>"
1314712859
13148#. (itstool) path: section/title12860#. (itstool) path: section/title
13149#: C/index-in.docbook:549812861#: C/index-in.docbook:5498
13150msgid "Formats"12862msgid "Formats"
13370msgid "Ideal"13082msgid "Ideal"
13371msgstr "Idealiskt"13083msgstr "Idealiskt"
1337213084
13373#. (itstool) path: listitem/simpara13085#. (itstool) path: listitem/simpara
13374#: C/index-in.docbook:559913086#: C/index-in.docbook:5599
n13375#, fuzzyn
13376msgid "Defines a custom clipboard target, though the format is still text."13087msgid "Defines a custom clipboard target, though the format is still text."
13377msgstr "Definierar ett anpassat urklippsmål, men formatet är fortfarande text."13088msgstr "Definierar ett anpassat urklippsmål, men formatet är fortfarande text."
1337813089
13379#. (itstool) path: listitem/simpara13090#. (itstool) path: listitem/simpara
13380#: C/index-in.docbook:560013091#: C/index-in.docbook:5600
13587"Metoden <methodname>PrintOperation::run()</methodname> startar "13298"Metoden <methodname>PrintOperation::run()</methodname> startar "
13588"utskriftsslingan, under vilken olika signaler sänds ut: <_:itemizedlist-1/>"13299"utskriftsslingan, under vilken olika signaler sänds ut: <_:itemizedlist-1/>"
1358913300
13590#. (itstool) path: section/para13301#. (itstool) path: section/para
13591#: C/index-in.docbook:572713302#: C/index-in.docbook:5727
n13592#, fuzzyn
13593#| msgid ""
13594#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
13595#| "classGtk_1_1PrintOperation.html\">Reference</link>"
13596msgid ""13303msgid ""
13597"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"13304"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
13598"classGtk_1_1PrintOperation.html\">Reference</link>"13305"classGtk_1_1PrintOperation.html\">Reference</link>"
13599msgstr ""13306msgstr ""
n13600"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n13307"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
13601"classGtk_1_1PrintOperation.html\">Referens</link>"13308"classGtk_1_1PrintOperation.html\">Referens</link>"
1360213309
13603#. (itstool) path: section/title13310#. (itstool) path: section/title
13604#: C/index-in.docbook:573613311#: C/index-in.docbook:5736
13605msgid "Page setup"13312msgid "Page setup"
13659"auto new_page_setup = Gtk::run_page_setup_dialog(*this, m_refPageSetup, m_refSe13366"auto new_page_setup = Gtk::run_page_setup_dialog(*this, m_refPageSetup, m_refSe
>ttings);\n">ttings);\n"
13660"m_refPageSetup = new_page_setup;\n"13367"m_refPageSetup = new_page_setup;\n"
1366113368
13662#. (itstool) path: section/para13369#. (itstool) path: section/para
13663#: C/index-in.docbook:575813370#: C/index-in.docbook:5758
n13664#, fuzzyn
13665#| msgid ""
13666#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
13667#| "classGtk_1_1PageSetup.html\">Reference</link>"
13668msgid ""13371msgid ""
13669"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"13372"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
13670"classGtk_1_1PageSetup.html\">Reference</link>"13373"classGtk_1_1PageSetup.html\">Reference</link>"
13671msgstr ""13374msgstr ""
n13672"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n13375"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
13673"classGtk_1_1PageSetup.html\">Referens</link>"13376"classGtk_1_1PageSetup.html\">Referens</link>"
1367413377
13675#. (itstool) path: section/para13378#. (itstool) path: section/para
13676#: C/index-in.docbook:576213379#: C/index-in.docbook:5762
13677#, fuzzy13380#, fuzzy
14081"advanced."13784"advanced."
1408213785
14083#. (itstool) path: section/title13786#. (itstool) path: section/title
14084#: C/index-in.docbook:5952 C/index-in.docbook:598913787#: C/index-in.docbook:5952 C/index-in.docbook:5989
14085#, fuzzy13788#, fuzzy
n14086#| msgid "Printing"n13789#| msgid "FontDialog"
14087msgid "PrintDialog"13790msgid "PrintDialog"
n14088msgstr "Utskrift"n13791msgstr "FontDialog"
1408913792
14090#. (itstool) path: section/para13793#. (itstool) path: section/para
14091#: C/index-in.docbook:595413794#: C/index-in.docbook:5954
14092msgid ""13795msgid ""
14093"Since <application>gtkmm</application> 4.14 <classname>Gtk::PrintDialog</"13796"Since <application>gtkmm</application> 4.14 <classname>Gtk::PrintDialog</"
14352#: C/index-in.docbook:608014055#: C/index-in.docbook:6080
14353msgid ""14056msgid ""
14354"<varname>is_private</varname>: Whether this resource should be visible only "14057"<varname>is_private</varname>: Whether this resource should be visible only "
14355"to applications that have registered it or not"14058"to applications that have registered it or not"
14356msgstr ""14059msgstr ""
n14357"<varname>is_private</varname>: huruvida denna resurs endast ska vara synlig "n14060"<varname>is_private</varname>: Huruvida denna resurs endast ska vara synlig "
14358"för program som har registrerat den eller inte"14061"för program som har registrerat den eller inte"
1435914062
14360#. (itstool) path: listitem/para14063#. (itstool) path: listitem/para
14361#: C/index-in.docbook:608414064#: C/index-in.docbook:6084
14362msgid "<varname>mime_type</varname>: The MIME type of the resource"14065msgid "<varname>mime_type</varname>: The MIME type of the resource"
14500"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 "
14501"<methodname>move_item()</methodname>."14204"<methodname>move_item()</methodname>."
1450214205
14503#. (itstool) path: section/para14206#. (itstool) path: section/para
14504#: C/index-in.docbook:614814207#: C/index-in.docbook:6148
n14505#, fuzzyn
14506msgid ""14208msgid ""
14507"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 "
14508"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 "
14509"accomplished with <methodname>remove_item()</methodname>, the latter with "14211"accomplished with <methodname>remove_item()</methodname>, the latter with "
14510"<methodname>purge_items()</methodname>."14212"<methodname>purge_items()</methodname>."
14528"methodname> påverkar inte de faktiska filerna som URI:erna hänvisar till, de "14230"methodname> påverkar inte de faktiska filerna som URI:erna hänvisar till, de "
14529"ändrar bara listan över senaste filer."14231"ändrar bara listan över senaste filer."
1453014232
14531#. (itstool) path: section/title14233#. (itstool) path: section/title
14532#: C/index-in.docbook:616714234#: C/index-in.docbook:6167
n14533#, fuzzyn
14534#| msgid "FileChooserDialog"
14535msgid "FileChooser and FileDialog"14235msgid "FileChooser and FileDialog"
n14536msgstr "FileChooserDialog"n14236msgstr "FileChooser och FileDialog"
1453714237
14538#. (itstool) path: section/para14238#. (itstool) path: section/para
14539#: C/index-in.docbook:616914239#: C/index-in.docbook:6169
14540msgid ""14240msgid ""
14541"<classname>FileChooser</classname> is an interface that can be implemented "14241"<classname>FileChooser</classname> is an interface that can be implemented "
14573"<classname>FileChooser</classname> and the classes that implement it are "14273"<classname>FileChooser</classname> and the classes that implement it are "
14574"deprecated since <application>gtkmm</application> 4.10. They have been "14274"deprecated since <application>gtkmm</application> 4.10. They have been "
14575"replaced by <classname>FileDialog</classname>, which is available since "14275"replaced by <classname>FileDialog</classname>, which is available since "
14576"<application>gtkmm</application> 4.10."14276"<application>gtkmm</application> 4.10."
14577msgstr ""14277msgstr ""
nn14278"<classname>FileChooser</classname> och klasserna som implementerar den är "
14279"föråldrade sedan <application>gtkmm</application> 4.10. De har ersatts av "
14280"<classname>FileDialog</classname>, vilken finns tillgänglig sedan "
14281"<application>gtkmm</application> 4.10."
1457814282
14579#. (itstool) path: section/title14283#. (itstool) path: section/title
14580#: C/index-in.docbook:619114284#: C/index-in.docbook:6191
n14581#, fuzzyn
14582#| msgid "Simple FileChooserDialog example"
14583msgid "Simple FileDialog example"14285msgid "Simple FileDialog example"
n14584msgstr "Enkelt FileChooserDialog-exempel"n14286msgstr "Enkelt FileDialog-exempel"
1458514287
14586#. (itstool) path: section/para14288#. (itstool) path: section/para
14587#: C/index-in.docbook:619314289#: C/index-in.docbook:6193
14588#, fuzzy14290#, fuzzy
n14589#| msgid ""n
14590#| "Shown below is a simple example of how to use the "
14591#| "<classname>FileChooserDialog</classname> class in a program. This simple "
14592#| "program has a menubar with a <guimenuitem>File Chooser Dialog</"
14593#| "guimenuitem> menu item. When you select this menu item, a dialog pops up "
14594#| "showing a list of files. If you select <guimenuitem>Recent</guimenuitem> "
14595#| "in the sidebar, the list of recently used files is shown."
14596msgid ""14291msgid ""
14597"Shown below is a simple example of how to use the <classname>FileDialog</"14292"Shown below is a simple example of how to use the <classname>FileDialog</"
14598"classname> class in a program. This simple program has a menubar with a "14293"classname> class in a program. This simple program has a menubar with a "
14599"<guimenuitem>File Dialog</guimenuitem> menu item. When you select this menu "14294"<guimenuitem>File Dialog</guimenuitem> menu item. When you select this menu "
14600"item, a dialog pops up showing a list of files. If you select "14295"item, a dialog pops up showing a list of files. If you select "
14711msgstr "Tangentbordshändelser"14406msgstr "Tangentbordshändelser"
1471214407
14713#. (itstool) path: chapter/para14408#. (itstool) path: chapter/para
14714#: C/index-in.docbook:624814409#: C/index-in.docbook:6248
14715#, 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."
14716msgid ""14416msgid ""
14717"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 "
14718"described in the <link linkend=\"sec-eventsignals\">Event signals</link> "14418"described in the <link linkend=\"sec-eventsignals\">Event signals</link> "
14719"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 "
14720"to show how events can be used in a program."14420"to show how events can be used in a program."
14740"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 "
14741"hantera sådana händelser."14441"hantera sådana händelser."
1474214442
14743#. (itstool) path: section/para14443#. (itstool) path: section/para
14744#: C/index-in.docbook:626114444#: C/index-in.docbook:6261
n14745#, fuzzyn
14746msgid ""14445msgid ""
14747"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 "
14748"event. For key press events the arguments are (<type>guint</type> "14447"event. For key press events the arguments are (<type>guint</type> "
14749"<varname>keyval</varname>, <type>guint</type> <varname>keycode</varname>, "14448"<varname>keyval</varname>, <type>guint</type> <varname>keycode</varname>, "
14750"<type>Gdk::ModifierType</type> <varname>state</varname>). As described in "14449"<type>Gdk::ModifierType</type> <varname>state</varname>). As described in "
15074"though. <_:itemizedlist-1/>"14773"though. <_:itemizedlist-1/>"
15075msgstr ""14774msgstr ""
1507614775
15077#. (itstool) path: section/para14776#. (itstool) path: section/para
15078#: C/index-in.docbook:640214777#: C/index-in.docbook:6402
nn14778#, fuzzy
14779#| msgid ""
14780#| "The data model is a class that implements the <classname>Gio::ListModel</"
14781#| "classname> interface. Examples of such classes are <classname>Gio::"
14782#| "ListStore</classname> (not to be confused with the deprecated "
14783#| "<classname>Gtk::ListStore</classname>), <classname>Gtk:StringList</"
14784#| "classname>, <classname>Gtk:DirectoryList</classname> and "
14785#| "<classname>Pango::FontMap</classname>."
15079msgid ""14786msgid ""
15080"The event classes that handle mouse events are also useful for handling "14787"The event classes that handle mouse events are also useful for handling "
15081"events from touchscreens. There are also many subclasses of <classname>Gtk::"14788"events from touchscreens. There are also many subclasses of <classname>Gtk::"
15082"EventController</classname> which are only (or mainly) useful for "14789"EventController</classname> which are only (or mainly) useful for "
15083"touchscreens. Examples: <classname>Gtk::GestureRotate</classname>, "14790"touchscreens. Examples: <classname>Gtk::GestureRotate</classname>, "
15084"<classname>Gtk::GestureZoom</classname>, <classname>Gtk::GestureSwipe</"14791"<classname>Gtk::GestureZoom</classname>, <classname>Gtk::GestureSwipe</"
15085"classname>, <classname>Gtk::GestureLongPress</classname>."14792"classname>, <classname>Gtk::GestureLongPress</classname>."
15086msgstr ""14793msgstr ""
nn14794"Datamodellen är en klass som implementerar <classname>Gio::ListModel</"
14795"classname>-gränssnittet. Exempel på sådana klasser är <classname>Gio::"
14796"ListStore</classname> (inte att förväxlas med den föråldrade <classname>Gtk::"
14797"ListStore</classname>), <classname>Gtk:StringList</classname>, "
14798"<classname>Gtk:DirectoryList</classname> och <classname>Pango::FontMap</"
14799"classname>."
1508714800
15088#. (itstool) path: section/para14801#. (itstool) path: section/para
15089#: C/index-in.docbook:641114802#: C/index-in.docbook:6411
15090#, fuzzy14803#, fuzzy
15091#| msgid ""14804#| msgid ""
n15092#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n14805#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
15093#| "classGtk_1_1Entry.html\">Reference</link>"14806#| "classGtk_1_1Entry.html\">Reference</link>"
15094msgid ""14807msgid ""
15095"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"14808"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
15096"classGtk_1_1EventController.html\">Reference</link>"14809"classGtk_1_1EventController.html\">Reference</link>"
15097msgstr ""14810msgstr ""
n15098"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n14811"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
15099"classGtk_1_1Entry.html\">Referens</link>"14812"classGtk_1_1Entry.html\">Referens</link>"
1510014813
15101#. (itstool) path: section/para14814#. (itstool) path: section/para
15102#: C/index-in.docbook:641514815#: C/index-in.docbook:6415
15103msgid "This is an expanded version of the simple keyboard events example."14816msgid "This is an expanded version of the simple keyboard events example."
15137msgid "Timeouts, I/O and Idle Functions"14850msgid "Timeouts, I/O and Idle Functions"
15138msgstr "Timeout, I/O och inaktivitetsfunktioner"14851msgstr "Timeout, I/O och inaktivitetsfunktioner"
1513914852
15140#. (itstool) path: section/title14853#. (itstool) path: section/title
15141#: C/index-in.docbook:643514854#: C/index-in.docbook:6435
n15142#, fuzzyn
15143msgid "Timeouts"14855msgid "Timeouts"
15144msgstr "Timeout"14856msgstr "Timeout"
1514514857
15146#. (itstool) path: section/para14858#. (itstool) path: section/para
15147#: C/index-in.docbook:643714859#: C/index-in.docbook:6437
15644"över klassräckvidd är det ökade datadöljandet och minskade beroendena."15356"över klassräckvidd är det ökade datadöljandet och minskade beroendena."
1564515357
15646#. (itstool) path: section/programlisting15358#. (itstool) path: section/programlisting
15647#: C/index-in.docbook:667215359#: C/index-in.docbook:6672
15648#, fuzzy, no-wrap15360#, fuzzy, no-wrap
nn15361#| msgid ""
15362#| "\n"
15363#| "{\n"
15364#| "  Gtk::Button aButton;\n"
15365#| "  aButton.set_visible(true);\n"
15366#| "  ...\n"
15367#| "  app-&gt;run();\n"
15368#| "}\n"
15649msgid ""15369msgid ""
15650"<code>{\n"15370"<code>{\n"
15651"  Gtk::Button aButton;\n"15371"  Gtk::Button aButton;\n"
15652"  aButton.set_visible(true);\n"15372"  aButton.set_visible(true);\n"
15653"  ...\n"15373"  ...\n"
15656"</code>"15376"</code>"
15657msgstr ""15377msgstr ""
15658"\n"15378"\n"
15659"{\n"15379"{\n"
15660"  Gtk::Button aButton;\n"15380"  Gtk::Button aButton;\n"
n15661"  aButton.show();\n"n15381"  aButton.set_visible(true);\n"
15662"  ...\n"15382"  ...\n"
15663"  app-&gt;run();\n"15383"  app-&gt;run();\n"
15664"}\n"15384"}\n"
1566515385
15666#. (itstool) path: section/para15386#. (itstool) path: section/para
15678"run()</methodname> eller <methodname>Gtk::Application::"15398"run()</methodname> eller <methodname>Gtk::Application::"
15679"make_window_and_run()</methodname> returnerar."15399"make_window_and_run()</methodname> returnerar."
1568015400
15681#. (itstool) path: section/title15401#. (itstool) path: section/title
15682#: C/index-in.docbook:668915402#: C/index-in.docbook:6689
n15683#, fuzzyn
15684msgid "Dynamic allocation with new and delete"15403msgid "Dynamic allocation with new and delete"
15685msgstr "Dynamisk allokering med new och delete"15404msgstr "Dynamisk allokering med new och delete"
1568615405
n15687# TODO: favor?n
15688#. (itstool) path: section/para15406#. (itstool) path: section/para
15689#: C/index-in.docbook:669015407#: C/index-in.docbook:6690
15690#, fuzzy15408#, fuzzy
nn15409#| msgid ""
15410#| "Usually, the programmer will prefer to allow containers to automatically "
15411#| "destroy their children by creating them using <function>Gtk::"
15412#| "make_managed()</function> (see below). This is not strictly required, as "
15413#| "the <literal>new</literal> and <literal>delete</literal> operators may "
15414#| "also be used, but modern C++ style discourages those in favor of safer "
15415#| "models of memory management, so it is better to create widgets using "
15416#| "<function>Gtk::make_managed()</function> and let their parent destroy "
15417#| "them, than to manually perform dynamic allocation. <_:programlisting-1/> "
15418#| "Here, the programmer deletes <varname>pButton</varname> to prevent a "
15419#| "memory leak."
15691msgid ""15420msgid ""
15692"Usually, the programmer will prefer to allow containers to automatically "15421"Usually, the programmer will prefer to allow containers to automatically "
15693"destroy their children by creating them using <function>Gtk::make_managed()</"15422"destroy their children by creating them using <function>Gtk::make_managed()</"
15694"function> (see below). This is not strictly required, as the <literal>new</"15423"function> (see below). This is not strictly required, as the <literal>new</"
15695"literal> and <literal>delete</literal> operators may also be used, but "15424"literal> and <literal>delete</literal> operators may also be used, but "
15924"smartpekaren <classname>Glib::RefPtr&lt;&gt;</classname>. Cairomm har sin "15653"smartpekaren <classname>Glib::RefPtr&lt;&gt;</classname>. Cairomm har sin "
15925"egen smartpekare, <classname>Cairo::RefPtr&lt;&gt;</classname>."15654"egen smartpekare, <classname>Cairo::RefPtr&lt;&gt;</classname>."
1592615655
15927#. (itstool) path: section/para15656#. (itstool) path: section/para
15928#: C/index-in.docbook:679515657#: C/index-in.docbook:6795
n15929#, fuzzyn
15930msgid ""15658msgid ""
15931"Objects such as <classname>Gdk::Pixbuf</classname> can only be instantiated "15659"Objects such as <classname>Gdk::Pixbuf</classname> can only be instantiated "
15932"with a <methodname>create()</methodname> function. For instance,"15660"with a <methodname>create()</methodname> function. For instance,"
15933msgstr ""15661msgstr ""
15934"Objekt som <classname>Gdk::Pixbuf</classname> kan endast instansieras med en "15662"Objekt som <classname>Gdk::Pixbuf</classname> kan endast instansieras med en "
16044"Se <link linkend=\"chapter-refptr\">bilagan</link> för detaljerad "15772"Se <link linkend=\"chapter-refptr\">bilagan</link> för detaljerad "
16045"information om RefPtr."15773"information om RefPtr."
1604615774
16047#. (itstool) path: listitem/para15775#. (itstool) path: listitem/para
16048#: C/index-in.docbook:683415776#: C/index-in.docbook:6834
n16049#, fuzzyn
16050#| msgid ""
16051#| "Bjarne Stroustrup, \"The C++ Programming Language\" Forth Edition - "
16052#| "section 34.3"
16053msgid ""15777msgid ""
16054"Bjarne Stroustrup, \"The C++ Programming Language\" Fourth Edition - section "15778"Bjarne Stroustrup, \"The C++ Programming Language\" Fourth Edition - section "
16055"34.3"15779"34.3"
16056msgstr ""15780msgstr ""
16057"Bjarne Stroustrup, ”The C++ Programming Language”, 4:e utgåvan - avsnitt 34.3"15781"Bjarne Stroustrup, ”The C++ Programming Language”, 4:e utgåvan - avsnitt 34.3"
16196#: C/index-in.docbook:689315920#: C/index-in.docbook:6893
16197msgid ""15921msgid ""
16198"To instantiate just one window, or just one of the child widgets, you can "15922"To instantiate just one window, or just one of the child widgets, you can "
16199"specify the name of a widget as the second parameter. For instance,"15923"specify the name of a widget as the second parameter. For instance,"
16200msgstr ""15924msgstr ""
n16201"För att instansiera bara ett fönster, eller bara en av de underordnade "n15925"För att bara instansiera ett fönster, eller bara en av de underordnade "
16202"komponenterna, kan du ange namnet på en komponent som den andra parametern. "15926"komponenterna, kan du ange namnet på en komponent som den andra parametern. "
16203"Till exempel,"15927"Till exempel,"
1620415928
16205#. (itstool) path: section/programlisting15929#. (itstool) path: section/programlisting
16206#: C/index-in.docbook:689515930#: C/index-in.docbook:6895
16225"<methodname>get_widget()</methodname> method, providing the widget's name. "15949"<methodname>get_widget()</methodname> method, providing the widget's name. "
16226"This name should be specified in the <application>Cambalache</application> "15950"This name should be specified in the <application>Cambalache</application> "
16227"window. If the widget could not be found, or is of the wrong type, then the "15951"window. If the widget could not be found, or is of the wrong type, then the "
16228"pointer will be set to <literal>nullptr</literal>."15952"pointer will be set to <literal>nullptr</literal>."
16229msgstr ""15953msgstr ""
n16230"För att komma åt en komponent, exempelvis för att visa en dialogruta med "n15954"För att komma åt en komponent, exempelvis för att visa en dialogruta, "
16231"<methodname>show()</methodname>, använder du metoden "15955"använder du metoden <methodname>get_widget()</methodname> och "
16232"<methodname>get_widget()</methodname> och tillhandahåller komponentens namn. "15956"tillhandahåller komponentens namn. Detta namn bör anges i "
16233"Detta namn bör anges i <application>Glade</application>s egenskapsfönster. "15957"<application>Glade</application>s egenskapsfönster. Om komponenten inte "
16234"Om komponenten inte kunde hittas eller är av fel typ så kommer pekaren "15958"kunde hittas eller är av fel typ så kommer pekaren sättas till nullptr."
16235"sättas till nullptr."
1623615959
16237#. (itstool) path: section/para15960#. (itstool) path: section/para
16238#: C/index-in.docbook:691015961#: C/index-in.docbook:6910
n16239#, fuzzyn
16240msgid ""15962msgid ""
16241"The dialogs in this chapter are derived from <classname>Gtk::Window</"15963"The dialogs in this chapter are derived from <classname>Gtk::Window</"
16242"classname> because <classname>Gtk::Dialog</classname> is deprecated since "15964"classname> because <classname>Gtk::Dialog</classname> is deprecated since "
16243"<application>gtkmm</application> 4.10."15965"<application>gtkmm</application> 4.10."
16244msgstr ""15966msgstr ""
n16245"I detta steg använder vi en <classname>Gtk::Builder</classname>-instans för "n15967"Dialogrutorna i detta kapitel är härledda från <classname>Gtk::Window</"
16246"att associera en <classname>Gtk::Builder</classname>-ui-fil med vår "15968"classname> eftersom <classname>Gtk::Dialog</classname> är föråldrat sedan "
16247"programfönsterklass."15969"<application>gtkmm</application> 4.10."
1624815970
16249#. (itstool) path: section/programlisting15971#. (itstool) path: section/programlisting
16250#: C/index-in.docbook:691415972#: C/index-in.docbook:6914
16251#, fuzzy, no-wrap15973#, fuzzy, no-wrap
16252msgid ""15974msgid ""
16262msgid ""15984msgid ""
16263"<classname>Gtk::Builder</classname> checks for a null pointer, and checks "15985"<classname>Gtk::Builder</classname> checks for a null pointer, and checks "
16264"that the widget is of the expected type, and will show warnings on the "15986"that the widget is of the expected type, and will show warnings on the "
16265"command line about these."15987"command line about these."
16266msgstr ""15988msgstr ""
n16267"<application>Gtk::Builder</application> tittar efter en null-pekare, och "n15989"<classname>Gtk::Builder</classname> tittar efter en null-pekare, och "
16268"kontrollerar att komponenten är av förväntad typ, och kommer visa varningar "15990"kontrollerar att komponenten är av förväntad typ, och kommer visa varningar "
16269"på kommandoraden om dessa."15991"på kommandoraden om dessa."
1627015992
16271#. (itstool) path: section/para15993#. (itstool) path: section/para
16272#: C/index-in.docbook:692315994#: C/index-in.docbook:6923
16309"<classname>Gtk::Builder</classname> har mer att säga om minneshanteringen "16031"<classname>Gtk::Builder</classname> har mer att säga om minneshanteringen "
16310"för olika sorters objekt."16032"för olika sorters objekt."
1631116033
16312#. (itstool) path: section/para16034#. (itstool) path: section/para
16313#: C/index-in.docbook:694216035#: C/index-in.docbook:6942
n16314#, fuzzyn
16315#| msgid ""
16316#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
16317#| "classGtk_1_1Builder.html\">Reference</link>"
16318msgid ""16036msgid ""
16319"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"16037"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
16320"classGtk_1_1Builder.html\">Reference</link>"16038"classGtk_1_1Builder.html\">Reference</link>"
16321msgstr ""16039msgstr ""
n16322"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n16040"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
16323"classGtk_1_1Builder.html\">Referens</link>"16041"classGtk_1_1Builder.html\">Referens</link>"
1632416042
16325#. (itstool) path: section/para16043#. (itstool) path: section/para
16326#: C/index-in.docbook:694716044#: C/index-in.docbook:6947
16327#, fuzzy16045#, fuzzy
16357"<application>gtkmm</application> widget classes. This keeps your code "16075"<application>gtkmm</application> widget classes. This keeps your code "
16358"organized and encapsulated, separating declarative presentation from "16076"organized and encapsulated, separating declarative presentation from "
16359"business logic, avoiding having most of your source just be setting "16077"business logic, avoiding having most of your source just be setting "
16360"properties and packing in containers."16078"properties and packing in containers."
16361msgstr ""16079msgstr ""
n16362"Du kan använda<classname>Gtk::Builder</classname> och <application>Glade</"n16080"Du kan använda <classname>Gtk::Builder</classname> och <application>Glade</"
16363"application> för att göra en layout för dina egna anpassade komponenter "16081"application> för att göra en layout för dina egna anpassade komponenter "
16364"härledda från <application>gtkmm</application>-komponentklasser. Detta "16082"härledda från <application>gtkmm</application>-komponentklasser. Detta "
16365"håller din kod organiserad och inkapslad, skiljer på deklarativ presentation "16083"håller din kod organiserad och inkapslad, skiljer på deklarativ presentation "
16366"från affärslogik, och undviker att det mesta av din kod bara ställer in "16084"från affärslogik, och undviker att det mesta av din kod bara ställer in "
16367"egenskaper och packning i behållare."16085"egenskaper och packning i behållare."
16478"}\n"16196"}\n"
1647916197
16480#. (itstool) path: section/para16198#. (itstool) path: section/para
16481#: C/index-in.docbook:700916199#: C/index-in.docbook:7009
16482#, fuzzy16200#, fuzzy
nn16201#| msgid ""
16202#| "It's possible to pass additional arguments from "
16203#| "<methodname>get_widget_derived()</methodname> to the constructor of the "
16204#| "derived widget. For instance, this call to "
16205#| "<methodname>get_widget_derived()</methodname> <_:programlisting-1/> can "
16206#| "invoke this constructor"
16483msgid ""16207msgid ""
16484"It's possible to pass additional arguments from "16208"It's possible to pass additional arguments from "
16485"<methodname>get_widget_derived()</methodname> to the constructor of the "16209"<methodname>get_widget_derived()</methodname> to the constructor of the "
16486"derived widget. For instance, this call to <methodname>get_widget_derived()</"16210"derived widget. For instance, this call to <methodname>get_widget_derived()</"
16487"methodname>"16211"methodname>"
16488msgstr ""16212msgstr ""
16489"Det är möjligt att skicka ytterligare argument från "16213"Det är möjligt att skicka ytterligare argument från "
16490"<methodname>get_widget_derived()</methodname> till konstruktorn för den "16214"<methodname>get_widget_derived()</methodname> till konstruktorn för den "
16491"härledda komponenten. Exempelvis kan detta anrop till "16215"härledda komponenten. Exempelvis kan detta anrop till "
16492"<methodname>get_widget_derived()</methodname> <_:programlisting-1/> starta "16216"<methodname>get_widget_derived()</methodname> <_:programlisting-1/> starta "
n16493"denna konstruktor <_:programlisting-2/>"n16217"denna konstruktor"
1649416218
16495#. (itstool) path: section/programlisting16219#. (itstool) path: section/programlisting
16496#: C/index-in.docbook:701416220#: C/index-in.docbook:7014
16497#, fuzzy, no-wrap16221#, fuzzy, no-wrap
16498msgid ""16222msgid ""
16586"  prop_int(*this, \"button-int\", 10)\n"16310"  prop_int(*this, \"button-int\", 10)\n"
16587"{\n"16311"{\n"
16588"  // ....\n"16312"  // ....\n"
16589"}\n"16313"}\n"
1659016314
n16591# TODO: recognizen
16592#. (itstool) path: section/para16315#. (itstool) path: section/para
16593#: C/index-in.docbook:705116316#: C/index-in.docbook:7051
16594#, fuzzy16317#, fuzzy
nn16318#| msgid ""
16319#| "When using <application>gtkmm</application> with a version of "
16320#| "<application>glibmm</application> from 2.62 onwards, it is possible also "
16321#| "to specify properties of derived widgets, declared in C++ using "
16322#| "<application>gtkmm</application>, within <filename>.glade</filename> "
16323#| "files and load/set these using <classname>Gtk::Builder</classname>. See "
16324#| "the documentation of <classname>Gtk::Builder</classname> for more details "
16325#| "on how to achieve this. Glade won’t recognize such properties as-is, but "
16326#| "it should be able to through use of <link xlink:href=\"https://developer-"
16327#| "old.gnome.org/gladeui/stable/properties.html\"> property class "
16328#| "definitions</link> and a catalog declaring those new properties."
16595msgid ""16329msgid ""
16596"It is possible also to specify properties of derived widgets, declared in "16330"It is possible also to specify properties of derived widgets, declared in "
16597"<phrase role=\"nowrap\">C++</phrase> using <application>gtkmm</application>, "16331"<phrase role=\"nowrap\">C++</phrase> using <application>gtkmm</application>, "
16598"within <filename class=\"extension\">.ui</filename> files and load/set these "16332"within <filename class=\"extension\">.ui</filename> files and load/set these "
16599"using <classname>Gtk::Builder</classname>. See the documentation of "16333"using <classname>Gtk::Builder</classname>. See the documentation of "
16648"languages, including non-European languages such as Chinese and right-to-"16382"languages, including non-European languages such as Chinese and right-to-"
16649"left languages such as Arabic. An appropriately-written and translated "16383"left languages such as Arabic. An appropriately-written and translated "
16650"<application>gtkmm</application> application will use the appropriate "16384"<application>gtkmm</application> application will use the appropriate "
16651"language at runtime based on the user's environment."16385"language at runtime based on the user's environment."
16652msgstr ""16386msgstr ""
n16653"<application>gtkmm</application>-program kan lätt stöda flera språk, "n16387"<application>gtkmm</application>-program kan lätt stödja flera språk, "
16654"inklusive icke-europeiska språk som kinesiska och höger-till-vänster-språk "16388"inklusive icke-europeiska språk som kinesiska och höger-till-vänster-språk "
16655"som arabiska. Ett korrekt skrivet och översatt <application>gtkmm</"16389"som arabiska. Ett korrekt skrivet och översatt <application>gtkmm</"
16656"application>-program kommer använda lämpligt språk vid körning beroende på "16390"application>-program kommer använda lämpligt språk vid körning beroende på "
16657"användarens miljö."16391"användarens miljö."
1665816392
16742"po</filename>-standardfiler."16476"po</filename>-standardfiler."
1674316477
16744#. (itstool) path: note/para16478#. (itstool) path: note/para
16745#: C/index-in.docbook:713116479#: C/index-in.docbook:7131
16746#, fuzzy16480#, fuzzy
nn16481#| msgid ""
16482#| "We also assume that you are using autotools (<application>automake</"
16483#| "application> and <application>autoconf</application>) to build your "
16484#| "project (although autotools is not recommended for new applications), and "
16485#| "that you are using <link xlink:href=\"https://gitlab.gnome.org/GNOME/"
16486#| "gnome-common/blob/master/autogen.sh\"> <literal>./autogen.sh</literal> "
16487#| "from <application>gnome-common</application></link> or a similar "
16488#| "<literal>autogen.sh</literal> file, which, among other things, takes care "
16489#| "of some <application>intltool</application> initialization."
16747msgid ""16490msgid ""
16748"We also assume that you are using autotools (<application>automake</"16491"We also assume that you are using autotools (<application>automake</"
16749"application> and <application>autoconf</application>) to build your project "16492"application> and <application>autoconf</application>) to build your project "
16750"(although autotools is not recommended for new applications), and that you "16493"(although autotools is not recommended for new applications), and that you "
16751"are using <link xlink:href=\"https://gitlab.gnome.org/Archive/gnome-common/-/"16494"are using <link xlink:href=\"https://gitlab.gnome.org/Archive/gnome-common/-/"
16971"PROGRAMNAME_LOCALEDIR=[${datadir}/locale]\n"16714"PROGRAMNAME_LOCALEDIR=[${datadir}/locale]\n"
16972"AC_SUBST(PROGRAMNAME_LOCALEDIR)"16715"AC_SUBST(PROGRAMNAME_LOCALEDIR)"
1697316716
16974#. (itstool) path: section/para16717#. (itstool) path: section/para
16975#: C/index-in.docbook:723316718#: C/index-in.docbook:7233
n16976#, fuzzyn
16977msgid ""16719msgid ""
16978"This <varname>PROGRAMNAME_LOCALEDIR</varname> variable will be used later in "16720"This <varname>PROGRAMNAME_LOCALEDIR</varname> variable will be used later in "
16979"the <literal>Makefile.am</literal> file, to define a macro that will be used "16721"the <literal>Makefile.am</literal> file, to define a macro that will be used "
16980"when you initialize <application>gettext</application> in your source code."16722"when you initialize <application>gettext</application> in your source code."
16981msgstr ""16723msgstr ""
17421msgid "Expecting UTF8"17163msgid "Expecting UTF8"
17422msgstr "Förvänta sig UTF8"17164msgstr "Förvänta sig UTF8"
1742317165
17424#. (itstool) path: section/para17166#. (itstool) path: section/para
17425#: C/index-in.docbook:746017167#: C/index-in.docbook:7460
n17426#, fuzzyn
17427msgid ""17168msgid ""
17428"A properly internationalized application will not make assumptions about the "17169"A properly internationalized application will not make assumptions about the "
17429"number of bytes in a character. That means that you shouldn't use pointer "17170"number of bytes in a character. That means that you shouldn't use pointer "
17430"arithmetic to step through the characters in a string, and it means you "17171"arithmetic to step through the characters in a string, and it means you "
17431"shouldn't use <classname>std::string</classname> or standard C functions "17172"shouldn't use <classname>std::string</classname> or standard C functions "
17603#. (itstool) path: section/title17344#. (itstool) path: section/title
17604#: C/index-in.docbook:753817345#: C/index-in.docbook:7538
17605msgid "Composition of strings"17346msgid "Composition of strings"
17606msgstr "Sammansättning av strängar"17347msgstr "Sammansättning av strängar"
1760717348
n17608# TODO: favorsn
17609#. (itstool) path: section/para17349#. (itstool) path: section/para
17610#: C/index-in.docbook:754017350#: C/index-in.docbook:7540
17611#, fuzzy17351#, fuzzy
nn17352#| msgid ""
17353#| "C programmers use <function>sprintf()</function> to compose and "
17354#| "concatenate strings. C++ favors streams, but unfortunately, this approach "
17355#| "makes translation difficult, because each fragment of text is translated "
17356#| "separately, without allowing the translators to rearrange them according "
17357#| "to the grammar of the language."
17612msgid ""17358msgid ""
17613"C programmers use <function>sprintf()</function> to compose and concatenate "17359"C programmers use <function>sprintf()</function> to compose and concatenate "
17614"strings. <phrase role=\"nowrap\">C++</phrase> favors streams, but "17360"strings. <phrase role=\"nowrap\">C++</phrase> favors streams, but "
17615"unfortunately, this approach makes translation difficult, because each "17361"unfortunately, this approach makes translation difficult, because each "
17616"fragment of text is translated separately, without allowing the translators "17362"fragment of text is translated separately, without allowing the translators "
17781"where translators can access it, then file an <link xlink:href=\"https://"17527"where translators can access it, then file an <link xlink:href=\"https://"
17782"gitlab.gnome.org/Infrastructure/damned-lies/-/issues\"> issue to the damned-"17528"gitlab.gnome.org/Infrastructure/damned-lies/-/issues\"> issue to the damned-"
17783"lies project</link> and ask to have your program added to the <link xlink:"17529"lies project</link> and ask to have your program added to the <link xlink:"
17784"href=\"http://l10n.gnome.org/module/\">list of modules to translate</link>."17530"href=\"http://l10n.gnome.org/module/\">list of modules to translate</link>."
17785msgstr ""17531msgstr ""
n17786"Sättet detta fungerar är att du kan placera din källkod i ett git-rråd där "n17532"Sättet detta fungerar är att du kan placera din källkod i ett git-arkiv där "
17787"översättare kan komma åt den, och sedan kontakta sändlistan gnome-i18n och "17533"översättare kan komma åt den, och sedan kontakta sändlistan gnome-i18n och "
17788"be att ditt program ska läggas till i <link xlink:href=\"http://l10n.gnome."17534"be att ditt program ska läggas till i <link xlink:href=\"http://l10n.gnome."
17789"org/module/\">listan över moduler att översätta</link>."17535"org/module/\">listan över moduler att översätta</link>."
1779017536
17791#. (itstool) path: section/para17537#. (itstool) path: section/para
18211"your custom class from that class. The <link linkend=\"custom-css-name-"17957"your custom class from that class. The <link linkend=\"custom-css-name-"
18212"example\">custom CSS name example</link> shows how that's done."17958"example\">custom CSS name example</link> shows how that's done."
18213msgstr ""17959msgstr ""
18214"Vissa <application>GTK</application>-funktioner måste, om de anropas över "17960"Vissa <application>GTK</application>-funktioner måste, om de anropas över "
18215"huvud taget, anropas från klassens init-funktion. Några andra "17961"huvud taget, anropas från klassens init-funktion. Några andra "
n18216"<application>GTK</application>-funktioner måste, om de anropas , anropas "n17962"<application>GTK</application>-funktioner måste, om de anropas, anropas från "
18217"från instansens init-funktion. Om din anpassade komponent måste anropa någon "17963"instansens init-funktion. Om din anpassade komponent måste anropa någon av "
18218"av dessa funktioner kan du härleda en klass från <classname>Glib::"17964"dessa funktioner kan du härleda en klass från <classname>Glib::"
18219"ExtraClassInit</classname> och härleda din anpassade klass från den klassen. "17965"ExtraClassInit</classname> och härleda din anpassade klass från den klassen. "
nn17966"Exemplet för <link linkend=\"custom-css-name-example\">anpassat CSS-namn</"
18220"ljande exempel visar hur detta görs."17967"link> visar hur detta görs."
1822117968
18222#. (itstool) path: section/para17969#. (itstool) path: section/para
18223#: C/index-in.docbook:778017970#: C/index-in.docbook:7780
18224msgid "This example implements a widget which draws Penrose triangles."17971msgid "This example implements a widget which draws Penrose triangles."
18225msgstr "Detta exempel implementerar en komponent som ritar Penrose-trianglar."17972msgstr "Detta exempel implementerar en komponent som ritar Penrose-trianglar."
18253"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"18000"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
18254"master/examples/book/custom/custom_widget/\">Källkod</link>"18001"master/examples/book/custom/custom_widget/\">Källkod</link>"
1825518002
18256#. (itstool) path: section/title18003#. (itstool) path: section/title
18257#: C/index-in.docbook:779418004#: C/index-in.docbook:7794
n18258#, fuzzyn
18259#| msgid "Custom Containers"
18260msgid "Custom CSS Names"18005msgid "Custom CSS Names"
n18261msgstr "Anpassade behållare"n18006msgstr "Anpassade CSS-namn"
1826218007
18263#. (itstool) path: section/para18008#. (itstool) path: section/para
18264#: C/index-in.docbook:779618009#: C/index-in.docbook:7796
nn18010#, fuzzy
18265msgid ""18011msgid ""
18266"Many aspects of the look of widgets are controlled by CSS (Cascading Style "18012"Many aspects of the look of widgets are controlled by CSS (Cascading Style "
18267"Sheet) files. With CSS files you can choose color, font, line thickness, "18013"Sheet) files. With CSS files you can choose color, font, line thickness, "
18268"etc. If you give some widgets their own names or their own CSS classes, you "18014"etc. If you give some widgets their own names or their own CSS classes, you "
18269"can define CSS rules that apply only to those widgets, for instance certain "18015"can define CSS rules that apply only to those widgets, for instance certain "
18270"buttons, without affecting other similar widgets."18016"buttons, without affecting other similar widgets."
18271msgstr ""18017msgstr ""
nn18018"Många aspekter hos komponenters utseende styrs av CSS-filer (Cascading Style "
18019"Sheet). Med CSS-filer kan du välja färg, typsnitt, linjetjocklek och så "
18020"vidare. Om du ger några komponenter egna namn eller egna CSS-klasser så kan "
18021"du definiera CSS-regler som endast tillämpas på dessa komponenter, "
18022"exempelvis vissa knappar, utan att påverka andra liknande komponenter."
1827218023
18273#. (itstool) path: section/title18024#. (itstool) path: section/title
18274#: C/index-in.docbook:780318025#: C/index-in.docbook:7803
18275msgid "CSS Node Name, Widget Name, CSS Class Name"18026msgid "CSS Node Name, Widget Name, CSS Class Name"
n18276msgstr ""n18027msgstr "CSS-nodnamn, Komponentnamn, CSS-klassnamn"
1827718028
18278#. (itstool) path: listitem/para18029#. (itstool) path: listitem/para
18279#: C/index-in.docbook:780718030#: C/index-in.docbook:7807
nn18031#, fuzzy
18280msgid ""18032msgid ""
18281"<methodname>gtk_widget_class_set_css_name()</methodname> can only be called "18033"<methodname>gtk_widget_class_set_css_name()</methodname> can only be called "
18282"from the class init function. It sets the CSS node name of all instances of "18034"from the class init function. It sets the CSS node name of all instances of "
18283"a class (a GType). See the <link linkend=\"custom-init-functions\"> Class "18035"a class (a GType). See the <link linkend=\"custom-init-functions\"> Class "
18284"Init and Instance Init Functions</link> section."18036"Init and Instance Init Functions</link> section."
18285msgstr ""18037msgstr ""
nn18038"<methodname>gtk_widget_class_set_css_name()</methodname> kan endast anropas "
18039"från klassens init-funktion. Den ställer in CSS-nodnamnet för alla instanser "
18040"av en klass (en GType). Se avsnittet <link linkend=\"custom-init-"
18041"functions\"> Initieringsfunktioner för klasser och instanser</link>."
1828618042
18287#. (itstool) path: listitem/para18043#. (itstool) path: listitem/para
18288#: C/index-in.docbook:781118044#: C/index-in.docbook:7811
nn18045#, fuzzy
18046#| msgid ""
18047#| "<methodname>Gtk::Widget::set_name()</methodname> can be called from a C++ "
18048#| "constructor. It sets the name of a widget instance."
18289msgid ""18049msgid ""
18290"<methodname>Gtk::Widget::set_name()</methodname> can be called from a "18050"<methodname>Gtk::Widget::set_name()</methodname> can be called from a "
18291"<phrase role=\"nowrap\">C++</phrase> constructor. It sets the name of a "18051"<phrase role=\"nowrap\">C++</phrase> constructor. It sets the name of a "
18292"widget instance."18052"widget instance."
18293msgstr ""18053msgstr ""
nn18054"<methodname>Gtk::Widget::set_name()</methodname> kan anropas från en C++-"
18055"konstruktor. Den ställer in namnet för en komponentinstans."
1829418056
18295#. (itstool) path: listitem/para18057#. (itstool) path: listitem/para
18296#: C/index-in.docbook:781418058#: C/index-in.docbook:7814
nn18059#, fuzzy
18060#| msgid ""
18061#| "<methodname>Gtk::Widget::add_class_name()</methodname> can be called from "
18062#| "a C++ constructor. It adds the name of a CSS class, used by a widget "
18063#| "instance."
18297msgid ""18064msgid ""
18298"<methodname>Gtk::Widget::add_class_name()</methodname> can be called from a "18065"<methodname>Gtk::Widget::add_class_name()</methodname> can be called from a "
18299"<phrase role=\"nowrap\">C++</phrase> constructor. It adds the name of a CSS "18066"<phrase role=\"nowrap\">C++</phrase> constructor. It adds the name of a CSS "
18300"class, used by a widget instance."18067"class, used by a widget instance."
18301msgstr ""18068msgstr ""
nn18069"<methodname>Gtk::Widget::add_class_name()</methodname> kan anropas från en C+"
18070"+-konstruktor. Den lägger till namnet för en CSS-klass, använd av en "
18071"komponentinstans."
1830218072
18303#. (itstool) path: section/para18073#. (itstool) path: section/para
18304#: C/index-in.docbook:780518074#: C/index-in.docbook:7805
nn18075#, fuzzy
18305msgid ""18076msgid ""
18306"There are three ways of referring from a widget to data in a CSS file: <_:"18077"There are three ways of referring from a widget to data in a CSS file: <_:"
18307"itemizedlist-1/> The following example shows a button with its own CSS node "18078"itemizedlist-1/> The following example shows a button with its own CSS node "
18308"name, a label with a widget name and a label that uses its own CSS class."18079"name, a label with a widget name and a label that uses its own CSS class."
18309msgstr ""18080msgstr ""
nn18081"Det finns tre sätt att referera från en komponent till data i en CSS-fil: <_:"
18082"itemizedlist-1/> Följande exempel visar en knapp med eget CSS-nodnamn, en "
18083"etikett med ett komponentnamn och en etikett som använder sin egen CSS-klass."
1831018084
18311#. (itstool) path: section/title18085#. (itstool) path: section/title
18312#: C/index-in.docbook:782318086#: C/index-in.docbook:7823
18313msgid "Custom Style Information"18087msgid "Custom Style Information"
18314msgstr "Anpassad stilinformation"18088msgstr "Anpassad stilinformation"
18323"StyleContext::add_provider_for_display()</methodname>. <classname>Gtk::"18097"StyleContext::add_provider_for_display()</methodname>. <classname>Gtk::"
18324"StyleContext</classname> also contains methods to read some style "18098"StyleContext</classname> also contains methods to read some style "
18325"information, but this class is deprecated since <application>gtkmm</"18099"information, but this class is deprecated since <application>gtkmm</"
18326"application> 4.10."18100"application> 4.10."
18327msgstr ""18101msgstr ""
nn18102"För att lägga till en stilmall till ett program använder du en av "
18103"<methodname>Gtk::CssProvider::load_from_*()</methodname>-metoderna. Lägg "
18104"sedan till den med <methodname>Gtk::StyleProvider::"
18105"add_provider_for_display()</methodname> (tillgänglig sedan "
18106"<application>gtkmm</application> 4.10) eller <methodname>Gtk::StyleContext::"
18107"add_provider_for_display()</methodname>. <classname>Gtk::StyleContext</"
18108"classname> innehåller också metoder för att läsa viss stilinformation, men "
18109"denna klass är föråldrad sedan <application>gtkmm</application> 4.10."
1832818110
18329#. (itstool) path: section/para18111#. (itstool) path: section/para
18330#: C/index-in.docbook:783218112#: C/index-in.docbook:7832
18331msgid "CSS files are described in the documentation of GTK."18113msgid "CSS files are described in the documentation of GTK."
n18332msgstr ""n18114msgstr "CSS-filer beskrivs i dokumentationen för GTK."
1833318115
18334#. (itstool) path: section/para18116#. (itstool) path: section/para
18335#: C/index-in.docbook:783818117#: C/index-in.docbook:7838
18336msgid ""18118msgid ""
18337"This example implements a button and two labels with custom style "18119"This example implements a button and two labels with custom style "
18338"information."18120"information."
18339msgstr ""18121msgstr ""
nn18122"Detta exempel implementerar en knapp och två etiketter med anpassad "
18123"stilinformation."
1834018124
18341#. (itstool) path: figure/title18125#. (itstool) path: figure/title
18342#: C/index-in.docbook:784118126#: C/index-in.docbook:7841
n18343#, fuzzyn
18344#| msgid "Custom Container"
18345msgid "Custom CSS Name"18127msgid "Custom CSS Name"
n18346msgstr "Anpassad behållare"n18128msgstr "Anpassat CSS-namn"
1834718129
18348#. (itstool) path: imageobject/imagedata18130#. (itstool) path: imageobject/imagedata
18349#. This is a reference to an external file such as an image or video. When18131#. This is a reference to an external file such as an image or video. When
18350#. the file changes, the md5 hash will change to let you know you need to18132#. the file changes, the md5 hash will change to let you know you need to
18351#. update your localized copy. The msgstr is not used at all. Set it to18133#. update your localized copy. The msgstr is not used at all. Set it to
18355msgctxt "_"18137msgctxt "_"
18356msgid ""18138msgid ""
18357"external ref='figures/custom_css_name.png' "18139"external ref='figures/custom_css_name.png' "
18358"md5='fb3d968b1fd40eb219e5a78946adff0f'"18140"md5='fb3d968b1fd40eb219e5a78946adff0f'"
18359msgstr ""18141msgstr ""
n18360"external ref='figures/custom_container.png' "n18142"external ref='figures/custom_css_name.png' "
18361"md5='5b4ae318725b6efbf5c6e1f7c94e6e04'"18143"md5='fb3d968b1fd40eb219e5a78946adff0f'"
1836218144
18363#. (itstool) path: section/para18145#. (itstool) path: section/para
18364#: C/index-in.docbook:784718146#: C/index-in.docbook:7847
n18365#, fuzzyn
18366#| msgid ""
18367#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
18368#| "tree/master/examples/book/custom/custom_container/\">Source Code</link>"
18369msgid ""18147msgid ""
18370"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"18148"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
18371"master/examples/book/custom/custom_css_name/\">Source Code</link>"18149"master/examples/book/custom/custom_css_name/\">Source Code</link>"
18372msgstr ""18150msgstr ""
18373"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"18151"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n18374"master/examples/book/custom/custom_container/\">Källkod</link>"n18152"master/examples/book/custom/custom_css_name/\">Källkod</link>"
1837518153
18376#. (itstool) path: chapter/title18154#. (itstool) path: chapter/title
18377#: C/index-in.docbook:785418155#: C/index-in.docbook:7854
18378msgid "Multi-threaded programs"18156msgid "Multi-threaded programs"
18379msgstr "Flertrådade program"18157msgstr "Flertrådade program"
18885"endast ett huvudfönster. Dessa program kan använda <methodname>Gtk::"18663"endast ett huvudfönster. Dessa program kan använda <methodname>Gtk::"
18886"Application::make_window_and_run(int argc, char** argv, T_Args&amp;&amp;... "18664"Application::make_window_and_run(int argc, char** argv, T_Args&amp;&amp;... "
18887"args)</methodname>. Det skapar och visar ett fönster. När fönstret är dolt "18665"args)</methodname>. Det skapar och visar ett fönster. När fönstret är dolt "
18888"tar <methodname>make_window_and_run()</methodname> bort fönstret och "18666"tar <methodname>make_window_and_run()</methodname> bort fönstret och "
18889"returnerar till anroparen. Detta kan hända när användaren stänger fönstret, "18667"returnerar till anroparen. Detta kan hända när användaren stänger fönstret, "
n18890"eller när din kod bestämmer sig för att köra <methodname>hide()</methodname> "n18668"eller när din kod bestämmer sig för att dölja fönstret med "
18891"på fönstret. Du kan förhindra användaren från att stränga fönstret "18669"<methodname>set_visible(false)</methodname>. Du kan förhindra användaren "
18892"(exempelvis om det finns osparade ändringar) genom att åsidosätta "18670"från att stränga fönstret (exempelvis om det finns osparade ändringar) genom "
18893"<methodname>Gtk::Window::on_close_request()</methodname>."18671"att åsidosätta <methodname>Gtk::Window::on_close_request()</methodname>."
1889418672
18895#. (itstool) path: section/para18673#. (itstool) path: section/para
18896#: C/index-in.docbook:813918674#: C/index-in.docbook:8139
18897msgid "Most of our examples use this technique."18675msgid "Most of our examples use this technique."
18898msgstr "De flesta av våra exempel använder denna teknik."18676msgstr "De flesta av våra exempel använder denna teknik."
18953"Packa komponenten i en behållare med lämpligt anrop, t.ex. <methodname>Gtk::"18731"Packa komponenten i en behållare med lämpligt anrop, t.ex. <methodname>Gtk::"
18954"Box::append()</methodname>."18732"Box::append()</methodname>."
1895518733
18956#. (itstool) path: section/para18734#. (itstool) path: section/para
18957#: C/index-in.docbook:818718735#: C/index-in.docbook:8187
n18958#, fuzzyn
18959msgid ""18736msgid ""
18960"If you don't want all widgets to be shown, call <methodname>Gtk::Widget::"18737"If you don't want all widgets to be shown, call <methodname>Gtk::Widget::"
18961"set_visible(false)</methodname> on the widgets that you don't want to show. "18738"set_visible(false)</methodname> on the widgets that you don't want to show. "
18962"If a container widget is hidden, all of its child widgets are also hidden, "18739"If a container widget is hidden, all of its child widgets are also hidden, "
18963"even if <methodname>set_visible(false)</methodname> is not called on the "18740"even if <methodname>set_visible(false)</methodname> is not called on the "
18964"child widgets."18741"child widgets."
18965msgstr ""18742msgstr ""
18966"Om du inte vill att alla komponenter ska visas anropar du <methodname>Gtk::"18743"Om du inte vill att alla komponenter ska visas anropar du <methodname>Gtk::"
n18967"Widget::hide()</methodname> på komponenterna som du inte vill ska visas. Om "n18744"Widget::set_visible(false)</methodname> på komponenterna som du inte vill "
18968"en behållarkomponent är dold så är även alla dess underordnade komponenter "18745"ska visas. Om en behållarkomponent är dold så är även alla dess underordnade "
18969"dolda, även om <methodname>hide()</methodname> inte anropas på de "18746"komponenter dolda, även om <methodname>set_visible(false)</methodname> inte "
18970"underordnade komponenterna."18747"anropas på de underordnade komponenterna."
1897118748
18972#. (itstool) path: chapter/title18749#. (itstool) path: chapter/title
18973#: C/index-in.docbook:819818750#: C/index-in.docbook:8198
18974msgid "Building applications"18751msgid "Building applications"
18975msgstr "Bygga program"18752msgstr "Bygga program"
19176"kommandoradsargument, och <methodname>signal_open()</methodname>:s "18953"kommandoradsargument, och <methodname>signal_open()</methodname>:s "
19177"standardhanterare, som anropas när programmet körs med kommandoradsargument."18954"standardhanterare, som anropas när programmet körs med kommandoradsargument."
1917818955
19179#. (itstool) path: section/para18956#. (itstool) path: section/para
19180#: C/index-in.docbook:828618957#: C/index-in.docbook:8286
n19181#, fuzzyn
19182#| msgid ""
19183#| "<link xlink:href=\"http://developer.gnome.org/glibmm/unstable/"
19184#| "classGio_1_1Application.html\">Gio::Application Reference</link>"
19185msgid ""18958msgid ""
19186"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/"18959"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/"
19187"classGio_1_1Application.html\">Gio::Application Reference</link>"18960"classGio_1_1Application.html\">Gio::Application Reference</link>"
19188msgstr ""18961msgstr ""
n19189"<link xlink:href=\"http://developer.gnome.org/glibmm/unstable/"n18962"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/"
19190"classGio_1_1Application.html\">Referens för Gio::Application</link>"18963"classGio_1_1Application.html\">Referens för Gio::Application</link>"
1919118964
19192#. (itstool) path: section/para18965#. (itstool) path: section/para
19193#: C/index-in.docbook:828718966#: C/index-in.docbook:8287
n19194#, fuzzyn
19195#| msgid ""
19196#| "<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"
19197#| "classGtk_1_1Application.html\">Gtk::Application Reference</link>"
19198msgid ""18967msgid ""
19199"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"18968"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
19200"classGtk_1_1Application.html\">Gtk::Application Reference</link>"18969"classGtk_1_1Application.html\">Gtk::Application Reference</link>"
19201msgstr ""18970msgstr ""
n19202"<link xlink:href=\"http://developer.gnome.org/gtkmm/unstable/"n18971"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
19203"classGtk_1_1Application.html\">Referens för Gtk::Application</link>"18972"classGtk_1_1Application.html\">Referens för Gtk::Application</link>"
1920418973
19205#. (itstool) path: section/para18974#. (itstool) path: section/para
19206#: C/index-in.docbook:828918975#: C/index-in.docbook:8289
19207#, fuzzy18976#, fuzzy
19699"FontDialogButton</classname> and <classname>Gtk::DropDown</classname> in the "19468"FontDialogButton</classname> and <classname>Gtk::DropDown</classname> in the "
19700"preference dialog. The types of the properties in these classes can't be "19469"preference dialog. The types of the properties in these classes can't be "
19701"automatically converted to the string type that <classname>Gio::Settings</"19470"automatically converted to the string type that <classname>Gio::Settings</"
19702"classname> requires."19471"classname> requires."
19703msgstr ""19472msgstr ""
n19704"Vi denna punkt kommer programmet redan reagera om du ändrar en av "n19473"Vid denna punkt kommer programmet redan reagera om du ändrar en av "
19705"inställningarna, exempelvis genom att använda kommandoradsverktyget "19474"inställningarna, exempelvis genom att använda kommandoradsverktyget "
19706"<command>gsettings</command>. Vi förväntar oss förstås att programmet "19475"<command>gsettings</command>. Vi förväntar oss förstås att programmet "
19707"tillhandahåller en inställningsdialog för dessa. Så låt oss göra så nu. Vår "19476"tillhandahåller en inställningsdialog för dessa. Så låt oss göra så nu. Vår "
19708"inställningsdialog kommer vara en underklass av <classname>Gtk::Dialog</"19477"inställningsdialog kommer vara en underklass av <classname>Gtk::Dialog</"
19709"classname>, och vi kommer använda samma tekniker som vi redan sett i "19478"classname>, och vi kommer använda samma tekniker som vi redan sett i "
19710"<classname>ExampleAppWindow</classname>: en <classname>Gtk::Builder</"19479"<classname>ExampleAppWindow</classname>: en <classname>Gtk::Builder</"
n19711"classname>-ui-fil och inställningsbindningar."n19480"classname>-ui-fil och inställningsbindningar. I detta fall är dock "
19481"bindningarna mer avancerade. Vi använder <classname>Gtk::FontDialogButton</"
19482"classname> och <classname>Gtk::DropDown</classname> i inställningsdialogen. "
19483"Typerna för egenskaperna i dessa klasser kan inte automatiskt konverteras "
19484"till den strängtyp som <classname>Gio::Settings</classname> kräver."
1971219485
19713#. (itstool) path: section/para19486#. (itstool) path: section/para
19714#: C/index-in.docbook:852519487#: C/index-in.docbook:8525
19715#, fuzzy19488#, fuzzy
19716msgid ""19489msgid ""
19720"in our application class, and make it open a new preference dialog."19493"in our application class, and make it open a new preference dialog."
19721msgstr ""19494msgstr ""
19722"När vi skapat filen <filename>prefs.ui</filename> och klassen "19495"När vi skapat filen <filename>prefs.ui</filename> och klassen "
19723"<classname>ExampleAppPrefs</classname> besöker vi åter metoden "19496"<classname>ExampleAppPrefs</classname> besöker vi åter metoden "
19724"<methodname>ExampleApplication::on_action_preferences()</methodname> i vår "19497"<methodname>ExampleApplication::on_action_preferences()</methodname> i vår "
n19725"programklass, och får den öppna en ny inställningsdialog."n19498"programklass, och får den att öppna en ny inställningsdialog."
1972619499
19727#. (itstool) path: section/programlisting19500#. (itstool) path: section/programlisting
19728#: C/index-in.docbook:853019501#: C/index-in.docbook:8530
19729#, fuzzy, no-wrap19502#, fuzzy, no-wrap
19730#| msgid ""19503#| msgid ""
20257"filename>. Denna fil finns i modulen <literal>gtkmm-documentation</literal> "20030"filename>. Denna fil finns i modulen <literal>gtkmm-documentation</literal> "
20258"i GNOME git."20031"i GNOME git."
2025920032
20260#. (itstool) path: chapter/para20033#. (itstool) path: chapter/para
20261#: C/index-in.docbook:876020034#: C/index-in.docbook:8760
n20262#, fuzzyn
20263msgid ""20035msgid ""
20264"If you do decide to contribute, please post your contribution as an issue or "20036"If you do decide to contribute, please post your contribution as an issue or "
20265"merge request to <link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-"20037"merge request to <link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-"
20266"documentation\">GitLab</link>. You can also discuss your ideas on GNOME's "20038"documentation\">GitLab</link>. You can also discuss your ideas on GNOME's "
20267"<link xlink:href=\"https://discourse.gnome.org\">Discourse</link> instance, "20039"<link xlink:href=\"https://discourse.gnome.org\">Discourse</link> instance, "
20271"document is free, and any addition you provide must also be free. That is, "20043"document is free, and any addition you provide must also be free. That is, "
20272"people must be able to use any portion of your examples in their programs, "20044"people must be able to use any portion of your examples in their programs, "
20273"and copies of this document (including your contribution) may be distributed "20045"and copies of this document (including your contribution) may be distributed "
20274"freely."20046"freely."
20275msgstr ""20047msgstr ""
n20276"Om du bestämmer dig för att bidra kan du skicka ditt bidrag till sändlistan "n20048"Om du bestämmer dig för att bidra kan du skicka ditt bidrag som etärende "
20277"för <application>gtkmm</application> på <link xlink:href=\"mailto:gtkmm-"
20278"list@gnome.org\">&lt;gtkmm-list@gnome.org&gt;</link> eller som ett ärende "
20279"eller en merge-förfrågan till <link xlink:href=\"https://gitlab.gnome.org/"20049"eller en merge-förfrågan till <link xlink:href=\"https://gitlab.gnome.org/"
n20280"GNOME/gtkmm-documentation\">GitLab</link>. Var också medveten om att hela "n20050"GNOME/gtkmm-documentation\">GitLab</link>. Du kan också diskutera dina idéer "
20051"på GNOMEs <link xlink:href=\"https://discourse.gnome.org\">Discourse</link>-"
20052"instans, under kategorin <link xlink:href=\"https://discourse.gnome.org/c/"
20053"platform/language-bindings\"> Platform/Language bindings</link> med en "
20054"<literal>cplusplus</literal>-tagg. Var också medveten om att hela detta "
20281"detta dokument är fritt, och alla tillägg du gör också måste vara fria. Det "20055"dokument är fritt, och alla tillägg du gör också måste vara fria. Det vill "
20282"vill säga att personer måste kunna använda alla delar av dina exempel i sina "20056"säga att personer måste kunna använda alla delar av dina exempel i sina "
20283"program, och kopior av detta dokument (med ditt bidrag) måste kunna spridas "20057"program, och kopior av detta dokument (med ditt bidrag) måste kunna spridas "
20284"fritt."20058"fritt."
2028520059
20286#. (itstool) path: appendix/title20060#. (itstool) path: appendix/title
20287#: C/index-in.docbook:877520061#: C/index-in.docbook:8775
20340"methods."20114"methods."
20341msgstr ""20115msgstr ""
2034220116
20343#. (itstool) path: appendix/para20117#. (itstool) path: appendix/para
20344#: C/index-in.docbook:880220118#: C/index-in.docbook:8802
n20345#, fuzzyn
20346#| msgid ""
20347#| "<link xlink:href=\"http://developer.gnome.org/glibmm/unstable/"
20348#| "classGlib_1_1RefPtr.html\">Reference</link>"
20349msgid ""20119msgid ""
20350"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/group__RefPtr."20120"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/group__RefPtr."
20351"html\">Reference</link>"20121"html\">Reference</link>"
20352msgstr ""20122msgstr ""
n20353"<link xlink:href=\"http://developer.gnome.org/glibmm/unstable/"n20123"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/group__RefPtr."
20354"classGlib_1_1RefPtr.html\">Referens</link>"20124"html\">Referens</link>"
2035520125
20356#. (itstool) path: appendix/para20126#. (itstool) path: appendix/para
20357#: C/index-in.docbook:880420127#: C/index-in.docbook:8804
20358msgid ""20128msgid ""
20359"A smartpointer acts much like a normal pointer. Here are a few examples."20129"A smartpointer acts much like a normal pointer. Here are a few examples."
20590#: C/index-in.docbook:888520360#: C/index-in.docbook:8885
20591#, fuzzy20361#, fuzzy
20592msgid "Constness"20362msgid "Constness"
20593msgstr "Const-het"20363msgstr "Const-het"
2059420364
n20595# TODO: realizen
20596#. (itstool) path: section/para20365#. (itstool) path: section/para
20597#: C/index-in.docbook:888620366#: C/index-in.docbook:8886
20598#, fuzzy20367#, fuzzy
20599msgid ""20368msgid ""
20600"The use of the <literal>const</literal> keyword in <phrase role=\"nowrap\">C+"20369"The use of the <literal>const</literal> keyword in <phrase role=\"nowrap\">C+"
21295"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 "
21296"detta hack i <application>gtkmm</application>."21065"detta hack i <application>gtkmm</application>."
2129721066
21298#. (itstool) path: section/title21067#. (itstool) path: section/title
21299#: C/index-in.docbook:922921068#: C/index-in.docbook:9229
n21300#, fuzzyn
21301msgid "Event signals"21069msgid "Event signals"
21302msgstr "Händelsesignaler"21070msgstr "Händelsesignaler"
2130321071
21304#. (itstool) path: section/para21072#. (itstool) path: section/para
21305#: C/index-in.docbook:923121073#: C/index-in.docbook:9231
n21306#, fuzzyn
21307msgid ""21074msgid ""
21308"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 "
21309"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. "
21310"Instead, you use a subclass of <classname>Gtk::EventController</classname>, "21077"Instead, you use a subclass of <classname>Gtk::EventController</classname>, "
21311"such as <classname>Gtk::EventControllerKey</classname> or <classname>Gtk::"21078"such as <classname>Gtk::EventControllerKey</classname> or <classname>Gtk::"
21312"GestureClick</classname>. Event controllers can be added to a widget with "21079"GestureClick</classname>. Event controllers can be added to a widget with "
21313"<methodname>Gtk::Widget::add_controller()</methodname>."21080"<methodname>Gtk::Widget::add_controller()</methodname>."
21314msgstr ""21081msgstr ""
21315"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, "
n21316"exempelvis en tangenttryckning eller en musrörelse. Vanligen hanterare du "n21083"exempelvis en tangenttryckning eller en musrörelse. Vanligen hanterar du "
21317"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 "
21318"<classname>Gtk::EventController</classname>, som <classname>Gtk::"21085"<classname>Gtk::EventController</classname>, som <classname>Gtk::"
21319"EventControllerKey</classname> eller <classname>Gtk::GestureClick</"21086"EventControllerKey</classname> eller <classname>Gtk::GestureClick</"
21320"classname>. Händelsekontroller kan läggas till i en komponent med "21087"classname>. Händelsekontroller kan läggas till i en komponent med "
21321"<methodname>Gtk::Widget::add_controller()</methodname>."21088"<methodname>Gtk::Widget::add_controller()</methodname>."
21388msgstr ""21155msgstr ""
21389"\n"21156"\n"
21390"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"
21391"Gtk::Button button(\"label\");\n"21158"Gtk::Button button(\"label\");\n"
21392"auto controller = Gtk::GestureClick::create();\n"21159"auto controller = Gtk::GestureClick::create();\n"
nn21160"controller-&gt;set_propagation_phase(Gtk::PropagationPhase::CAPTURE);\n"
21393"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
>">"
21394"button.add_controller(controller);\n"21162"button.add_controller(controller);\n"
2139521163
21396#. (itstool) path: section/para21164#. (itstool) path: section/para
21397#: C/index-in.docbook:927221165#: C/index-in.docbook:9272
21402"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 "
21403"<methodname>on_button_press()</methodname> att anropas."21171"<methodname>on_button_press()</methodname> att anropas."
2140421172
21405#. (itstool) path: section/para21173#. (itstool) path: section/para
21406#: C/index-in.docbook:927621174#: C/index-in.docbook:9276
nn21175#, fuzzy
21407msgid ""21176msgid ""
21408"The call to <methodname>set_propagation_phase()</methodname> is necessary in "21177"The call to <methodname>set_propagation_phase()</methodname> is necessary in "
21409"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 "
21410"controller, handling button clicks in the capture phase. "21179"controller, handling button clicks in the capture phase. "
21411"<classname>GtkButton</classname> claims the event, meaning that the event is "21180"<classname>GtkButton</classname> claims the event, meaning that the event is "
21412"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 "
21413"default."21182"default."
21414msgstr ""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."
2141521190
21416#. (itstool) path: section/title21191#. (itstool) path: section/title
21417#: C/index-in.docbook:928521192#: C/index-in.docbook:9285
21418msgid "Signal Handler sequence"21193msgid "Signal Handler sequence"
21419msgstr "Signalhanterarsekvens"21194msgstr "Signalhanterarsekvens"
21649"}\n"21424"}\n"
2165021425
21651#. (itstool) path: section/para21426#. (itstool) path: section/para
21652#: C/index-in.docbook:938321427#: C/index-in.docbook:9383
21653#, fuzzy21428#, fuzzy
n21654#| msgid "Using the git version of <application>gtkmm</application>"n21429#| msgid "Deprecations in <application>gtkmm</application> 4.10"
21655msgid "And here's an excerpt from a <application>gdb</application> session."21430msgid "And here's an excerpt from a <application>gdb</application> session."
n21656msgstr "Använda git-versionen av <application>gtkmm</application>"n21431msgstr "Föråldringar i <application>gtkmm</application> 4.10"
2165721432
21658#. (itstool) path: section/programlisting21433#. (itstool) path: section/programlisting
21659#: C/index-in.docbook:938621434#: C/index-in.docbook:9386
21660#, fuzzy, no-wrap21435#, fuzzy, no-wrap
21661msgid ""21436msgid ""
22146msgstr ""21921msgstr ""
22147"Se <link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm/tree/master/"21922"Se <link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm/tree/master/"
22148"README.win32\">README.win32</link> såväl som <link xlink:href=\"https://"21923"README.win32\">README.win32</link> såväl som <link xlink:href=\"https://"
22149"gitlab.gnome.org/GNOME/gtkmm/tree/master/MSVC_NMake/README\">README</link>-"21924"gitlab.gnome.org/GNOME/gtkmm/tree/master/MSVC_NMake/README\">README</link>-"
22150"filerna i <application>gtkmm</application>, pangomm och glibmm för "21925"filerna i <application>gtkmm</application>, pangomm och glibmm för "
n22151"instruktioner om du bygger <application>gtkmm</application> på Windows."n21926"instruktioner om hur du bygger <application>gtkmm</application> på Windows."
2215221927
22153#. (itstool) path: appendix/title21928#. (itstool) path: appendix/title
22154#: C/index-in.docbook:959721929#: C/index-in.docbook:9597
22155msgid "Working with gtkmm's Source Code"21930msgid "Working with gtkmm's Source Code"
22156msgstr "Arbeta med gtkmm:s källkod"21931msgstr "Arbeta med gtkmm:s källkod"
22243msgid "$ cp examples/sample.jhbuildrc ~/.config/jhbuildrc"22018msgid "$ cp examples/sample.jhbuildrc ~/.config/jhbuildrc"
22244msgstr "$ cp examples/sample.jhbuildrc ~/.config/jhbuildrc"22019msgstr "$ cp examples/sample.jhbuildrc ~/.config/jhbuildrc"
2224522020
22246#. (itstool) path: section/para22021#. (itstool) path: section/para
22247#: C/index-in.docbook:963222022#: C/index-in.docbook:9632
n22248#, fuzzyn
22249msgid ""22023msgid ""
22250"To set up <application>jhbuild</application>, follow the basic installation "22024"To set up <application>jhbuild</application>, follow the basic installation "
22251"instructions from the <link xlink:href=\"https://gnome.pages.gitlab.gnome."22025"instructions from the <link xlink:href=\"https://gnome.pages.gitlab.gnome."
22252"org/jhbuild/\">jhbuild manual</link>. After you have installed "22026"org/jhbuild/\">jhbuild manual</link>. After you have installed "
22253"<application>jhbuild</application>, you should copy the sample "22027"<application>jhbuild</application>, you should copy the sample "
22254"<application>jhbuild</application> configuration file into your home "22028"<application>jhbuild</application> configuration file into your home "
22255"directory by executing the following command from the <application>jhbuild</"22029"directory by executing the following command from the <application>jhbuild</"
22256"application> directory: <_:screen-1/>"22030"application> directory: <_:screen-1/>"
22257msgstr ""22031msgstr ""
22258"Följ de grundläggande installationsinstruktionerna från <link xlink:"22032"Följ de grundläggande installationsinstruktionerna från <link xlink:"
n22259"href=\"http://developer-old.gnome.org/jhbuild/unstable/\">handboken för "n22033"href=\"https://gnome.pages.gitlab.gnome.org/jhbuild/\">handboken för "
22260"jhbuild</link> för att konfigurera <application>jhbuild</application>. Efter "22034"jhbuild</link> för att konfigurera <application>jhbuild</application>. Efter "
22261"att du har installerat <application>jhbuild</application> bör du kopiera "22035"att du har installerat <application>jhbuild</application> bör du kopiera "
22262"<application>jhbuild</application>-exempelkonfigurationsfilen till din "22036"<application>jhbuild</application>-exempelkonfigurationsfilen till din "
22263"hemkatalog genom att exekvera följande kommando från katalogen "22037"hemkatalog genom att exekvera följande kommando från katalogen "
22264"<application>jhbuild</application>: <_:screen-1/>"22038"<application>jhbuild</application>: <_:screen-1/>"
22530"kommer kommandot köras med rätt miljövariabler inställda, men kommer "22304"kommer kommandot köras med rätt miljövariabler inställda, men kommer "
22531"returnera till din föregående miljö efter programmet avslutas."22305"returnera till din föregående miljö efter programmet avslutas."
2253222306
22533#. (itstool) path: appendix/title22307#. (itstool) path: appendix/title
22534#: C/index-in.docbook:976422308#: C/index-in.docbook:9764
n22535#, fuzzyn
22536msgid "Wrapping C Libraries with gmmproc"22309msgid "Wrapping C Libraries with gmmproc"
22537msgstr "Omsluta C-bibliotek med gmmproc"22310msgstr "Omsluta C-bibliotek med gmmproc"
2253822311
22539#. (itstool) path: appendix/para22312#. (itstool) path: appendix/para
22540#: C/index-in.docbook:976622313#: C/index-in.docbook:9766
23277msgstr ".hg- och .ccg-filerna"23050msgstr ".hg- och .ccg-filerna"
2327823051
23279#. (itstool) path: section/para23052#. (itstool) path: section/para
23280#: C/index-in.docbook:1003423053#: C/index-in.docbook:10034
23281#, fuzzy23054#, fuzzy
nn23055#| msgid ""
23056#| "The .hg and .ccg source files are very much like .h and .cc C++ source "
23057#| "files, but they contain extra macros, such as <function>_CLASS_GOBJECT()</"
23058#| "function> and <function>_WRAP_METHOD()</function>, from which "
23059#| "<command>gmmproc</command> generates appropriate C++ source code, usually "
23060#| "at the same position in the header. Any additional C++ source code will "
23061#| "be copied verbatim into the corresponding .h or .cc file."
23282msgid ""23062msgid ""
23283"The .hg and .ccg source files are very much like .h and .cc <phrase "23063"The .hg and .ccg source files are very much like .h and .cc <phrase "
23284"role=\"nowrap\">C++</phrase> source files, but they contain extra macros, "23064"role=\"nowrap\">C++</phrase> source files, but they contain extra macros, "
23285"such as <function>_CLASS_GOBJECT()</function> and <function>_WRAP_METHOD()</"23065"such as <function>_CLASS_GOBJECT()</function> and <function>_WRAP_METHOD()</"
23286"function>, from which <command>gmmproc</command> generates appropriate "23066"function>, from which <command>gmmproc</command> generates appropriate "
23287"<phrase role=\"nowrap\">C++</phrase> source code, usually at the same "23067"<phrase role=\"nowrap\">C++</phrase> source code, usually at the same "
23288"position in the header. Any additional <phrase role=\"nowrap\">C++</phrase> "23068"position in the header. Any additional <phrase role=\"nowrap\">C++</phrase> "
23289"source code will be copied verbatim into the corresponding .h or .cc file."23069"source code will be copied verbatim into the corresponding .h or .cc file."
23290msgstr ""23070msgstr ""
n23291".hg- och .ccg-källfilerna är mycket som .h and .cc-källfiler i C++, men de "n23071".hg- och .ccg-källfilerna är mycket som .h- och .cc-källfiler i C++, men de "
23292"innehåller extra makron som <function>_CLASS_GOBJECT()</function> och "23072"innehåller extra makron som <function>_CLASS_GOBJECT()</function> och "
23293"<function>_WRAP_METHOD()</function> från vilka <command>gmmproc</command> "23073"<function>_WRAP_METHOD()</function> från vilka <command>gmmproc</command> "
23294"genererar lämplig C++-källkod, vanligen på samma plats i huvudet. All "23074"genererar lämplig C++-källkod, vanligen på samma plats i huvudet. All "
23295"ytterligare C++-källkod kommer kopieras som den är i motsvarande .h- eller ."23075"ytterligare C++-källkod kommer kopieras som den är i motsvarande .h- eller ."
23296"cc-fil."23076"cc-fil."
23731"function>-åtkommarna, typregistrering och metoden <function>Glib::wrap()</"23511"function>-åtkommarna, typregistrering och metoden <function>Glib::wrap()</"
23732"function> med mera."23512"function> med mera."
2373323513
23734#. (itstool) path: section/para23514#. (itstool) path: section/para
23735#: C/index-in.docbook:1019323515#: C/index-in.docbook:10193
n23736#, fuzzyn
23737msgid ""23516msgid ""
23738"Other macros, such as <function>_WRAP_METHOD()</function> and "23517"Other macros, such as <function>_WRAP_METHOD()</function> and "
23739"<function>_WRAP_SIGNAL()</function> may only be used after a call to a "23518"<function>_WRAP_SIGNAL()</function> may only be used after a call to a "
23740"<function>_CLASS_*</function> macro."23519"<function>_CLASS_*</function> macro."
23741msgstr ""23520msgstr ""
n23742"Andra makron, som <function>_WRAP_METHOD()</function> and "n23521"Andra makron, som <function>_WRAP_METHOD()</function> och "
23743"<function>_WRAP_SIGNAL()</function> kan endast användas efter ett anrop till "23522"<function>_WRAP_SIGNAL()</function> kan endast användas efter ett anrop till "
23744"ett <function>_CLASS_*</function>-makro."23523"ett <function>_CLASS_*</function>-makro."
2374523524
23746#. (itstool) path: section/para23525#. (itstool) path: section/para
23747#: C/index-in.docbook:1019623526#: C/index-in.docbook:10196
24433msgid ""24212msgid ""
24434"Suppresses definition of destructor in <function>_CLASS_GOBJECT</function> "24213"Suppresses definition of destructor in <function>_CLASS_GOBJECT</function> "
24435"and <function>_CLASS_GTKOBJECT</function>."24214"and <function>_CLASS_GTKOBJECT</function>."
24436msgstr ""24215msgstr ""
24437"Undertrycker definition av destruktorn i <function>_CLASS_GOBJECT</function> "24216"Undertrycker definition av destruktorn i <function>_CLASS_GOBJECT</function> "
n24438"and <function>_CLASS_GTKOBJECT</function>."n24217"och <function>_CLASS_GTKOBJECT</function>."
2443924218
24440#. (itstool) path: section/title24219#. (itstool) path: section/title
24441#: C/index-in.docbook:1045024220#: C/index-in.docbook:10450
24442msgid "_CUSTOM_MOVE_OPERATIONS"24221msgid "_CUSTOM_MOVE_OPERATIONS"
24443msgstr "_CUSTOM_MOVE_OPERATIONS"24222msgstr "_CUSTOM_MOVE_OPERATIONS"
25516"enums should be registered as GTypes."25295"enums should be registered as GTypes."
25517msgstr ""25296msgstr ""
25518"Använd detta alternativ om uppräkningen inte är en <classname>GType</"25297"Använd detta alternativ om uppräkningen inte är en <classname>GType</"
25519"classname>. Detta är fallet när det inte finns någon <function>*_get_type()</"25298"classname>. Detta är fallet när det inte finns någon <function>*_get_type()</"
25520"function>-funktion för C-uppräkningen, men var försiktig så att du inte vara "25299"function>-funktion för C-uppräkningen, men var försiktig så att du inte vara "
n25521"behöver inkludera en extra header för den funktionen. Du bör också "n25300"behöver inkludera ett extra huvud för den funktionen. Du bör också "
25522"rapportera ett fel mot C-API:t, för alla uppräkningar ska registreras som "25301"rapportera ett fel mot C-API:t, för alla uppräkningar ska registreras som "
25523"GType-typer."25302"GType-typer."
2552425303
25525#. (itstool) path: listitem/para25304#. (itstool) path: listitem/para
25526#: C/index-in.docbook:1102325305#: C/index-in.docbook:11023
25554"_WRAP_ENUM(IconLookupFlags, GtkIconLookupFlags, NO_GTYPE)\n"25333"_WRAP_ENUM(IconLookupFlags, GtkIconLookupFlags, NO_GTYPE)\n"
25555"      "25334"      "
2555625335
25557#. (itstool) path: varlistentry/term25336#. (itstool) path: varlistentry/term
25558#: C/index-in.docbook:1103225337#: C/index-in.docbook:11032
n25559#, fuzzyn
25560msgid "gtype_func &lt;function_name&gt;"25338msgid "gtype_func &lt;function_name&gt;"
25561msgstr "gtype_func &lt;funktionsnamn&gt;"25339msgstr "gtype_func &lt;funktionsnamn&gt;"
2556225340
25563#. (itstool) path: listitem/para25341#. (itstool) path: listitem/para
25564#: C/index-in.docbook:1103425342#: C/index-in.docbook:11034
25700"<function>_WRAP_ENUM()</function> för att de är komplext definierade (kanske "25478"<function>_WRAP_ENUM()</function> för att de är komplext definierade (kanske "
25701"med C-makron) men att det fortfarande är önskvärt att inkludera den "25479"med C-makron) men att det fortfarande är önskvärt att inkludera den "
25702"genererade uppräkningsdokumentationen. Det används med samma syntax som "25480"genererade uppräkningsdokumentationen. Det används med samma syntax som "
25703"<function>_WRAP_ENUM()</function> och bearbetar även samma alternativ (även "25481"<function>_WRAP_ENUM()</function> och bearbetar även samma alternativ (även "
25704"om NO_GTYPE, gtype_func &lt;funktionsnamn&gt; och CONV_TO_INT ignoreras för "25482"om NO_GTYPE, gtype_func &lt;funktionsnamn&gt; och CONV_TO_INT ignoreras för "
n25705"att de inte gör någon skillnad på bara uppräkningens dokumentation "n25483"att de inte gör någon skillnad då bara uppräkningens dokumentation "
25706"genereras)."25484"genereras)."
2570725485
25708#. (itstool) path: section/title25486#. (itstool) path: section/title
25709#: C/index-in.docbook:1110625487#: C/index-in.docbook:11106
25710msgid "_WRAP_GERROR"25488msgid "_WRAP_GERROR"
26192"<parameter>out_mime_type</parameter>:"25970"<parameter>out_mime_type</parameter>:"
26193msgstr ""25971msgstr ""
2619425972
26195#. (itstool) path: section/programlisting25973#. (itstool) path: section/programlisting
26196#: C/index-in.docbook:1127925974#: C/index-in.docbook:11279
n26197#, no-wrapn25975#, fuzzy, no-wrap
25976#| msgid ""
25977#| "\n"
25978#| "GInputStream* gdk_clipboard_read_finish(GdkClipboard* clipboard,\n"
25979#| "  GAsyncResult* result, const char** out_mime_type, GError** error)\n"
26198msgid ""25980msgid ""
26199"<code>GInputStream* gdk_clipboard_read_finish(GdkClipboard* clipboard,\n"25981"<code>GInputStream* gdk_clipboard_read_finish(GdkClipboard* clipboard,\n"
26200"  GAsyncResult* result, const char** out_mime_type, GError** error)\n"25982"  GAsyncResult* result, const char** out_mime_type, GError** error)\n"
26201"</code>"25983"</code>"
26202msgstr ""25984msgstr ""
nn25985"\n"
25986"GInputStream* gdk_clipboard_read_finish(GdkClipboard* clipboard,\n"
25987"  GAsyncResult* result, const char** out_mime_type, GError** error)\n"
2620325988
26204#. (itstool) path: section/para25989#. (itstool) path: section/para
26205#: C/index-in.docbook:1128225990#: C/index-in.docbook:11282
26206msgid ""25991msgid ""
26207"To have <command>gmmproc</command> place the value returned in the <phrase "25992"To have <command>gmmproc</command> place the value returned in the <phrase "
26210"macro could be used:"25995"macro could be used:"
26211msgstr ""25996msgstr ""
2621225997
26213#. (itstool) path: section/programlisting25998#. (itstool) path: section/programlisting
26214#: C/index-in.docbook:1128625999#: C/index-in.docbook:11286
n26215#, no-wrapn26000#, fuzzy, no-wrap
26216msgid ""26001msgid ""
26217"<code>\n"26002"<code>\n"
26218"_WRAP_METHOD(Glib::RefPtr&lt;Gio::InputStream&gt; read_finish(\n"26003"_WRAP_METHOD(Glib::RefPtr&lt;Gio::InputStream&gt; read_finish(\n"
26219"  const Glib::RefPtr&lt;Gio::AsyncResult&gt;&amp; result,\n"26004"  const Glib::RefPtr&lt;Gio::AsyncResult&gt;&amp; result,\n"
26220"  Glib::ustring&amp; out_mime_type{&gt;&gt;}), gdk_clipboard_read_finish, errth26005"  Glib::ustring&amp; out_mime_type{&gt;&gt;}), gdk_clipboard_read_finish, errth
>row)\n">row)\n"
26221"</code>"26006"</code>"
26222msgstr ""26007msgstr ""
nn26008"\n"
26009"_WRAP_METHOD(Glib::RefPtr&lt;Gio::InputStream&gt; read_finish(\n"
26010"  const Glib::RefPtr&lt;Gio::AsyncResult&gt;&amp; result,\n"
26011"  Glib::ustring&amp; out_mime_type{&gt;&gt;}), gdk_clipboard_read_finish, errth
 >row)\n"
2622326012
26224#. (itstool) path: section/para26013#. (itstool) path: section/para
26225#: C/index-in.docbook:1129126014#: C/index-in.docbook:11291
26226#, fuzzy26015#, fuzzy
26227msgid ""26016msgid ""
26237"char**</classname> such as the following:"26026"char**</classname> such as the following:"
26238msgstr ""26027msgstr ""
26239"<function>_WRAP_METHOD()</function> stöder också att sätta C++-"26028"<function>_WRAP_METHOD()</function> stöder också att sätta C++-"
26240"utdataparametrar från C- utdataparametrar om den omslutna C-funktionen har "26029"utdataparametrar från C- utdataparametrar om den omslutna C-funktionen har "
26241"några. Anta till exempel att vi vill omsluta följande C-funktion som "26030"några. Anta till exempel att vi vill omsluta följande C-funktion som "
n26242"returnerar ett värde i sin C-utdataparameter <parameter>rect</parameter>: <_:"n26031"returnerar ett värde i sin C-utdataparameter <parameter>out_mime_type</"
26243"programlisting-1/> För att <command>gmmproc</command> ska placera det "26032"parameter>: <_:programlisting-1/> För att <command>gmmproc</command> ska "
26244"returnerade värdet i C++-utdataparametern <parameter>rect</parameter> ska "26033"placera det returnerade värdet i C++-utdataparametern "
26245"något i stil med följande <function>_WRAP_METHOD()</function>-makro "26034"<parameter>out_mime_type</parameter> ska något i stil med följande "
26246"användas: <_:programlisting-2/> Den <literal>{&gt;&gt;}</literal> som följer "26035"<function>_WRAP_METHOD()</function>-makro användas: <_:programlisting-2/> "
26247"parameternamnet <parameter>rect</parameter> indikerar att C++-"26036"Den <literal>{&gt;&gt;}</literal> som följer parameternamnet "
26037"<parameter>out_mime_type</parameter> indikerar att C++-utdataparametern ska "
26248"utdataparametern ska ställas in från värdet som returneras C-parametern från "26038"ställas in från värdet som returneras i C-parametern från C-funktionen. "
26249"C-funktionen. <command>gmmproc</command> kommer att generera en deklaration "26039"<command>gmmproc</command> kommer att generera en deklaration av en temporär "
26250"av en temporär variabel i vilken värdet av C-utdataparametern och en sats "26040"variabel i vilken värdet av C-utdataparametern och en sats som sätter C++-"
26251"som sätter C++-utdataparametern från temporärvariabeln. I detta fall kan det "26041"utdataparametern från temporärvariabeln. I detta fall kan det vara "
26252"vara nödvändigt att ha en <function>_INITIALIZATION()</function> som "26042"nödvändigt att ha en <function>_INITIALIZATION()</function> som beskriver "
26253"beskriver hur en <classname>Gdk::Rectangle&amp;</classname> ska sättas från "26043"hur en <classname>Glib::ustring&amp;</classname> ska sättas från en "
26254"en <classname>GdkRectangle*</classname> som i det följande: <_:"26044"<classname>const char**</classname> som i det följande: <_:programlisting-3/>"
26255"programlisting-3/>"
2625626045
26257#. (itstool) path: section/programlisting26046#. (itstool) path: section/programlisting
26258#: C/index-in.docbook:1130126047#: C/index-in.docbook:11301
26259#, fuzzy, no-wrap26048#, fuzzy, no-wrap
26260#| msgid ""26049#| msgid ""
26261#| "\n"26050#| "\n"
n26262#| "_INITIALIZATION(`Gtk::Widget&amp;',`GtkWidget*',`$3 = Glib::wrap($4)')\n"n26051#| "_INITIALIZATION(`Glib::ustring&amp;',`const char*',`$3 = Glib::convert_const
 >_gchar_ptr_to_ustring($4)')\n"
26263msgid ""26052msgid ""
26264"<code>\n"26053"<code>\n"
26265"_INITIALIZATION(`Glib::ustring&amp;',`const char*',`$3 = Glib::convert_const_gc26054"_INITIALIZATION(`Glib::ustring&amp;',`const char*',`$3 = Glib::convert_const_gc
>har_ptr_to_ustring($4)')\n">har_ptr_to_ustring($4)')\n"
26266"</code>"26055"</code>"
26267msgstr ""26056msgstr ""
26268"\n"26057"\n"
n26269"_INITIALIZATION(`Gtk::Widget&amp;',`GtkWidget*',`$3 = Glib::wrap($4)')\n"n26058"_INITIALIZATION(`Glib::ustring&amp;',`const char*',`$3 = Glib::convert_const_gc
 >har_ptr_to_ustring($4)')\n"
2627026059
26271#. (itstool) path: section/title26060#. (itstool) path: section/title
26272#: C/index-in.docbook:1130726061#: C/index-in.docbook:11307
26273#, fuzzy26062#, fuzzy
26274msgid "String Parameter Processing"26063msgid "String Parameter Processing"
26472"Ditt bibliotek måste initieras innan det kan användas för att registrera de "26261"Ditt bibliotek måste initieras innan det kan användas för att registrera de "
26473"nya typer som det gör tillgängligt. C-biblioteket som du omsluter kan också "26262"nya typer som det gör tillgängligt. C-biblioteket som du omsluter kan också "
26474"ha sin egen initieringsfunktion som du ska anropa. Du kan göra detta i en "26263"ha sin egen initieringsfunktion som du ska anropa. Du kan göra detta i en "
26475"<function>init()</function>-funktion som du kan placera i handkodade "26264"<function>init()</function>-funktion som du kan placera i handkodade "
26476"<filename>init.h</filename>- och <filename>init.cc</filename>-filer. Denna "26265"<filename>init.h</filename>- och <filename>init.cc</filename>-filer. Denna "
n26477"funktion ska initiera dina beroenden (som C funktionen and "n26266"funktion ska initiera dina beroenden (som C-funktionen och "
26478"<application>gtkmm</application>) och anropa din genererade "26267"<application>gtkmm</application>) och anropa din genererade "
26479"<function>wrap_init()</function>-funktion. Till exempel:"26268"<function>wrap_init()</function>-funktion. Till exempel:"
2648026269
26481#. (itstool) path: section/programlisting26270#. (itstool) path: section/programlisting
26482#: C/index-in.docbook:1138126271#: C/index-in.docbook:11381
27562"license, such as the GNU General Public License, to permit their use in free "27351"license, such as the GNU General Public License, to permit their use in free "
27563"software."27352"software."
27564msgstr ""27353msgstr ""
2756527354
27566#~ msgid ""27355#~ msgid ""
n27567#~ "<link xlink:href=\"http://developer.gnome.org/glibmm/unstable/"n27356#~ "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/"
27568#~ "namespaceGlib.html\">Reference</link>"27357#~ "namespaceGlib.html\">Reference</link>"
27569#~ msgstr ""27358#~ msgstr ""
n27570#~ "<link xlink:href=\"http://developer.gnome.org/glibmm/unstable/"n27359#~ "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/"
27571#~ "namespaceGlib.html\">Referens</link>"27360#~ "namespaceGlib.html\">Referens</link>"
n27572 n
27573#~ msgid ""
27574#~ "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
27575#~ "tree/master/examples/book/iconview\">Source Code, IconView</link>"
27576#~ msgstr ""
27577#~ "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
27578#~ "tree/master/examples/book/iconview\">Källkod, IconView</link>"
27579 
27580#~ msgid ""
27581#~ "At the time of writing (July 2022) drag-and-drop in <classname>Gtk::"
27582#~ "TreeView</classname>s does not work. See the <link xlink:href=\"https://"
27583#~ "gitlab.gnome.org/GNOME/gtk/-/issues/3649\">gtk#3649 issue</link> for the "
27584#~ "latest info."
27585#~ msgstr ""
27586#~ "I skrivande stund (juli 2022) fungerar inte dra-och-släpp i "
27587#~ "<classname>Gtk::TreeView</classname>. Se <link xlink:href=\"https://"
27588#~ "gitlab.gnome.org/GNOME/gtk/-/issues/3649\">ärendet gtk#3649</link> för "
27589#~ "den senaste informationen."
27590 
27591#, fuzzy
27592#~ msgid ""
27593#~ "<classname>MessageDialog</classname> is a convenience class, used to "
27594#~ "create simple, standard message dialogs, with a message and buttons for "
27595#~ "user response. You can specify the type of message and the text in the "
27596#~ "constructor, as well as specifying standard buttons via the <type>Gtk::"
27597#~ "ButtonsType</type> enum."
27598#~ msgstr ""
27599#~ "<classname>MessageDialog</classname> är en bekvämlighetsklass, som "
27600#~ "används för att skapa enkla standardmeddelandedialoger med ett meddelande "
27601#~ "och knappar för svar från användaren. Du kan ange meddelandetypen och "
27602#~ "texten i konstruktorn, såväl som att ange standardknappar via <type>Gtk::"
27603#~ "ButtonsType</type>-uppräkningen."
27604 
27605#~ msgid ""
27606#~ "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
27607#~ "tree/master/examples/book/dialogs/messagedialog\">Source Code</link>"
27608#~ msgstr ""
27609#~ "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
27610#~ "tree/master/examples/book/dialogs/messagedialog\">Källkod</link>"
27611 
27612#~ msgid ""
27613#~ "The <classname>FileChooserDialog</classname> is suitable for use with "
27614#~ "\"Open\" or \"Save\" menu items."
27615#~ msgstr ""
27616#~ "<classname>FileChooserDialog</classname> är lämplig för användning med "
27617#~ "menyobjekten ”Öppna” eller ”Spara”."
27618 
27619#~ msgid "FileChooser"
27620#~ msgstr "FileChooser"
27621 
27622#, fuzzy
27623#~ msgid ""
27624#~ "The <classname>ColorChooserDialog</classname> allows the user to choose a "
27625#~ "color. The <classname>ColorButton</classname> opens a color selection "
27626#~ "dialog when it is clicked."
27627#~ msgstr ""
27628#~ "<classname>ColorChooserDialog</classname> låter användaren välja en färg. "
27629#~ "<classname>ColorButton</classname> öppnar en färgvalsdialog när den "
27630#~ "klickas på."
27631 
27632#, fuzzy
27633#~ msgid ""
27634#~ "The <classname>FontChooserDialog</classname> allows the user to choose a "
27635#~ "font. The <classname>FontButton</classname> opens a font chooser dialog "
27636#~ "when it is clicked."
27637#~ msgstr ""
27638#~ "<classname>FontChooserDialog</classname> låter användaren välja ett "
27639#~ "typsnitt. <classname>FontButton</classname>-knappen öppnar en "
27640#~ "typsnittsväljardialog när den klickas på."
27641 
27642#~ msgid ""
27643#~ "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
27644#~ "tree/master/examples/book/dialogs/fontchooserdialog\">Source Code</link>"
27645#~ msgstr ""
27646#~ "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
27647#~ "tree/master/examples/book/dialogs/fontchooserdialog\">Källkod</link>"
2764827361
27649#, no-wrap27362#, no-wrap
27650#~ msgid "intltool-update --pot"27363#~ msgid "intltool-update --pot"
27651#~ msgstr "intltool-update --pot"27364#~ msgstr "intltool-update --pot"
2765227365
27661#~ "<link xlink:href=\"http://ftp.gnome.org/pub/GNOME/sources/gnomemm_hello/"27374#~ "<link xlink:href=\"http://ftp.gnome.org/pub/GNOME/sources/gnomemm_hello/"
27662#~ "\"><literal>gnomemm_hello</literal> example package</link>"27375#~ "\"><literal>gnomemm_hello</literal> example package</link>"
27663#~ msgstr ""27376#~ msgstr ""
27664#~ "<link xlink:href=\"http://ftp.gnome.org/pub/GNOME/sources/gnomemm_hello/"27377#~ "<link xlink:href=\"http://ftp.gnome.org/pub/GNOME/sources/gnomemm_hello/"
27665#~ "\">Exempelpaketet <literal>gnomemm_hello</literal></link>"27378#~ "\">Exempelpaketet <literal>gnomemm_hello</literal></link>"
n27666 n
27667#, fuzzy
27668#~ msgid ""
27669#~ "Your widget class, whether it's derived directly from <classname>Gtk::"
27670#~ "Widget</classname> or from another widget class, can read some style "
27671#~ "information from a CSS (Cascading Style Sheets) file. The users of your "
27672#~ "widget, or the users of an application program with your widget, can then "
27673#~ "modify the style of your widget without modifying the source code. Useful "
27674#~ "classes are <classname>Gtk::StyleContext</classname> and <classname>Gtk::"
27675#~ "CssProvider</classname>. With the methods of <classname>Gtk::"
27676#~ "StyleContext</classname> you can read the values of your widget's style "
27677#~ "information. CSS files are described in the documentation of "
27678#~ "<application>GTK</application>. The following example shows a simple use "
27679#~ "of <methodname>Gtk::StyleContext::get_padding()</methodname>."
27680#~ msgstr ""
27681#~ "Din komponentklass kan läsa viss stilinformation från en CSS-fil "
27682#~ "(Cascading Style Sheets), oavsett om den härleds direkt från "
27683#~ "<classname>Gtk::Widget</classname> eller från en annan komponentklass. "
27684#~ "Användarna av din komponent, eller användarna av ett program med din "
27685#~ "komponent, kan sedan ändra stilen för din komponent utan att ändra "
27686#~ "källkoden. Användbara klasser är <classname>Gtk::StyleContext</classname> "
27687#~ "och <classname>Gtk::CssProvider</classname>. Med metoderna i "
27688#~ "<classname>Gtk::StyleContext</classname> kan du läsa värden för din "
27689#~ "komponents stilinformation. CSS-filer beskrivs i dokumentationen för "
27690#~ "<application>GTK</application>. Följande exempel visar enkel användning "
27691#~ "av <methodname>Gtk::StyleContext::get_padding()</methodname>."
2769227379
27693#~ msgid "For instance, from <filename>adjustment.hg</filename>:"27380#~ msgid "For instance, from <filename>adjustment.hg</filename>:"
27694#~ msgstr "Till exempel, från <filename>adjustment.hg</filename>:"27381#~ msgstr "Till exempel, från <filename>adjustment.hg</filename>:"
2769527382
27696#~ msgid "For example, from <filename>iochannel.hg</filename> in glibmm:"27383#~ msgid "For example, from <filename>iochannel.hg</filename> in glibmm:"
27801#~ "<command>gmmproc</command> att placera C-funktionens returvärde i den "27488#~ "<command>gmmproc</command> att placera C-funktionens returvärde i den "
27802#~ "utdataparametern. I detta fall kommer dock ett nödvändigt "27489#~ "utdataparametern. I detta fall kommer dock ett nödvändigt "
27803#~ "initieringsmakro som det följande också behöva anges: <_:programlisting-3/"27490#~ "initieringsmakro som det följande också behöva anges: <_:programlisting-3/"
27804#~ "> Vilket också skulle kunna skrivas som: <_:programlisting-4/>"27491#~ "> Vilket också skulle kunna skrivas som: <_:programlisting-4/>"
2780527492
n27806#, no-wrapn
27807#~ msgid ""
27808#~ "\n"
27809#~ "gboolean gtk_icon_view_get_cell_rect(GtkIconView* icon_view,\n"
27810#~ "  GtkTreePath* path, GtkCellRenderer* cell, GdkRectangle* rect);\n"
27811#~ msgstr ""
27812#~ "\n"
27813#~ "gboolean gtk_icon_view_get_cell_rect(GtkIconView* icon_view,\n"
27814#~ "  GtkTreePath* path, GtkCellRenderer* cell, GdkRectangle* rect);\n"
27815 
27816#, no-wrap
27817#~ msgid ""
27818#~ "\n"
27819#~ "_WRAP_METHOD(bool get_cell_rect(const TreeModel::Path&amp; path,\n"
27820#~ "  const CellRenderer&amp; cell, Gdk::Rectangle&amp; rect{&gt;&gt;}) const,\n
>" 
27821#~ "  gtk_icon_view_get_cell_rect)\n"
27822#~ msgstr ""
27823#~ "\n"
27824#~ "_WRAP_METHOD(bool get_cell_rect(const TreeModel::Path&amp; path,\n"
27825#~ "  const CellRenderer&amp; cell, Gdk::Rectangle&amp; rect{&gt;&gt;}) const,\n
>" 
27826#~ "  gtk_icon_view_get_cell_rect)\n"
27827 
27828#, no-wrap
27829#~ msgid ""
27830#~ "\n"
27831#~ "_INITIALIZATION(`Gdk::Rectangle&amp;',`GdkRectangle',`$3 = Glib::wrap(&amp;(
>$4))')\n" 
27832#~ msgstr ""
27833#~ "\n"
27834#~ "_INITIALIZATION(`Gdk::Rectangle&amp;',`GdkRectangle',`$3 = Glib::wrap(&amp;(
>$4))')\n" 
27835 
27836#~ msgid ""27493#~ msgid ""
27837#~ "This compiler error might look like this: <_:programlisting-1/> or this: "27494#~ "This compiler error might look like this: <_:programlisting-1/> or this: "
27838#~ "<_:programlisting-2/>"27495#~ "<_:programlisting-2/>"
27839#~ msgstr ""27496#~ msgstr ""
t27840#~ "Detta kompilatorfel kan se ut så här: <_:programlisting-1/> eller så här: "t27497#~ "Detta kompileringsfel kan se ut så här: <_:programlisting-1/> eller så "
27841#~ "<_:programlisting-2/>"27498#~ "här: <_:programlisting-2/>"
27842 
27843#~ msgid "An preference dialog"
27844#~ msgstr "En inställningsdialog"

Note: both files are merged with latest POT file.