gtkmm-documentation - master - Tutorial - Swedish

← Back to actions


Uploaded file by Anders Jonsson on 2023-03-05 10:31:54+00:00
Uploaded file by Anders Jonsson on 2023-03-05 22:09:45+00:00
5#5#
6msgid ""6msgid ""
7msgstr ""7msgstr ""
8"Project-Id-Version: gtkmm-documentation master\n"8"Project-Id-Version: gtkmm-documentation master\n"
9"POT-Creation-Date: 2025-07-08 14:05+0000\n"9"POT-Creation-Date: 2025-07-08 14:05+0000\n"
n10"PO-Revision-Date: 2023-03-05 11:31+0100\n"n10"PO-Revision-Date: 2023-03-05 23:09+0100\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"
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></"
108"<personname><firstname>David</firstname><surname>King</surname></personname> "107"<personname><firstname>David</firstname><surname>King</surname></personname> "
109"<contrib>Avsnittet om Gtk::Grid.</contrib>"108"<contrib>Avsnittet om Gtk::Grid.</contrib>"
110109
111#. (itstool) path: authorgroup/author110#. (itstool) path: authorgroup/author
112#: C/index-in.docbook:82111#: C/index-in.docbook:82
n113#, fuzzyn
114#| msgid ""
115#| "<personname><firstname>Pedro</firstname><surname>Ferreira</surname></"
116#| "personname> <contrib>Chapter on Keyboard Events.</contrib>"
117msgid ""112msgid ""
118"<personname><firstname>Pedro</firstname><surname>Ferreira</surname></"113"<personname><firstname>Pedro</firstname><surname>Ferreira</surname></"
119"personname> <contrib>Chapter on \"Keyboard Events\".</contrib>"114"personname> <contrib>Chapter on \"Keyboard Events\".</contrib>"
120msgstr ""115msgstr ""
121"<personname><firstname>Pedro</firstname><surname>Ferreira</surname></"116"<personname><firstname>Pedro</firstname><surname>Ferreira</surname></"
n122"personname> <contrib>Kapitlet om tangentbordshändelser.</contrib>"n117"personname> <contrib>Kapitlet ”Tangentbordshändelser.</contrib>"
123118
124#. (itstool) path: authorgroup/author119#. (itstool) path: authorgroup/author
125#: C/index-in.docbook:86120#: C/index-in.docbook:86
n126#, fuzzyn
127#| msgid ""
128#| "<personname><firstname>Kjell</firstname><surname>Ahlstedt</surname></"
129#| "personname> <contrib>Update from gtkmm 3 to gtkmm 4.</contrib> "
130#| "<contrib>Chapter on \"Building applications\".</contrib>"
131msgid ""121msgid ""
132"<personname><firstname>Kjell</firstname><surname>Ahlstedt</surname></"122"<personname><firstname>Kjell</firstname><surname>Ahlstedt</surname></"
133"personname> <contrib>Update from gtkmm 3 to gtkmm 4.</contrib> "123"personname> <contrib>Update from gtkmm 3 to gtkmm 4.</contrib> "
134"<contrib>Chapter on \"Building applications\".</contrib> <contrib>Chapter on "124"<contrib>Chapter on \"Building applications\".</contrib> <contrib>Chapter on "
135"\"The DropDown Widget\".</contrib> <contrib>Chapter on \"ListView, GridView, "125"\"The DropDown Widget\".</contrib> <contrib>Chapter on \"ListView, GridView, "
136"ColumnView\".</contrib>"126"ColumnView\".</contrib>"
137msgstr ""127msgstr ""
138"<personname><firstname>Kjell</firstname><surname>Ahlstedt</surname></"128"<personname><firstname>Kjell</firstname><surname>Ahlstedt</surname></"
139"personname> <contrib>Uppdatering från gtkmm 3 till gtkmm 4.</contrib> "129"personname> <contrib>Uppdatering från gtkmm 3 till gtkmm 4.</contrib> "
n140"<contrib>Kapitlet ”Bygga program”.</contrib>"n130"<contrib>Kapitlet ”Bygga program”.</contrib> <contrib>Kapitlet ”DropDown-"
131"komponenten”.</contrib> <contrib>Kapitlet ”ListView, GridView, ColumnView”.</"
132"contrib>"
141133
142#. (itstool) path: authorgroup/author134#. (itstool) path: authorgroup/author
143#: C/index-in.docbook:93135#: C/index-in.docbook:93
144#, fuzzy136#, fuzzy
145#| msgid ""137#| msgid ""
313#. (itstool) path: section/title305#. (itstool) path: section/title
314#: C/index-in.docbook:154306#: C/index-in.docbook:154
315msgid "Why use <application>gtkmm</application> instead of GTK?"307msgid "Why use <application>gtkmm</application> instead of GTK?"
316msgstr "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?"
317309
n318# TODO: realizen
319#. (itstool) path: section/para310#. (itstool) path: section/para
320#: C/index-in.docbook:156311#: C/index-in.docbook:156
321#, fuzzy312#, fuzzy
322#| msgid ""313#| msgid ""
323#| "<application>gtkmm</application> allows you to write code using normal C+"314#| "<application>gtkmm</application> allows you to write code using normal C+"
324#| "+ techniques such as encapsulation, derivation, and polymorphism. As a C+"315#| "+ techniques such as encapsulation, derivation, and polymorphism. As a C+"
n325#| "+ programmer you probably already realise that this leads to clearer and "n316#| "+ programmer you probably already realize that this leads to clearer and "
326#| "better organized code."317#| "better organized code."
327msgid ""318msgid ""
328"<application>gtkmm</application> allows you to write code using normal "319"<application>gtkmm</application> allows you to write code using normal "
329"<phrase role=\"nowrap\">C++</phrase> techniques such as encapsulation, "320"<phrase role=\"nowrap\">C++</phrase> techniques such as encapsulation, "
330"derivation, and polymorphism. As a <phrase role=\"nowrap\">C++</phrase> "321"derivation, and polymorphism. As a <phrase role=\"nowrap\">C++</phrase> "
405"application>, so it deserves discussion."396"application>, so it deserves discussion."
406msgstr ""397msgstr ""
407"Trolltechs Qt är den närmaste konkurrenten till <application>gtkmm</"398"Trolltechs Qt är den närmaste konkurrenten till <application>gtkmm</"
408"application>, så det förtjänar att diskuteras."399"application>, så det förtjänar att diskuteras."
409400
n410# TODO: Standardize?n
411#. (itstool) path: section/para401#. (itstool) path: section/para
412#: C/index-in.docbook:168402#: C/index-in.docbook:168
413#, fuzzy403#, fuzzy
414#| msgid ""404#| msgid ""
415#| "<application>gtkmm</application> developers tend to prefer "405#| "<application>gtkmm</application> developers tend to prefer "
416#| "<application>gtkmm</application> to Qt because <application>gtkmm</"406#| "<application>gtkmm</application> to Qt because <application>gtkmm</"
417#| "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 "
n418#| "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 "
419#| "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 "
420#| "standard library, such as containers and type information. Most "410#| "standard library, such as containers and type information. Most "
421#| "significantly, Trolltech modified the C++ language to provide signals, so "411#| "significantly, Trolltech modified the C++ language to provide signals, so "
422#| "that Qt classes cannot be used easily with non-Qt classes. "412#| "that Qt classes cannot be used easily with non-Qt classes. "
423#| "<application>gtkmm</application> was able to use standard C++ to provide "413#| "<application>gtkmm</application> was able to use standard C++ to provide "
551"Before attempting to install <application>gtkmm</"541"Before attempting to install <application>gtkmm</"
552"application><application>-4.0</application>, you might first need to install "542"application><application>-4.0</application>, you might first need to install "
553"these other packages."543"these other packages."
554msgstr ""544msgstr ""
555"Innan du försöker installera <application>gtkmm</"545"Innan du försöker installera <application>gtkmm</"
n556"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 "
557"dessa andra paket."547"dessa andra paket."
558548
559#. (itstool) path: listitem/para549#. (itstool) path: listitem/para
560#: C/index-in.docbook:204550#: C/index-in.docbook:204
561msgid "<application>sigc++-3.0</application>"551msgid "<application>sigc++-3.0</application>"
717"du hämtat."707"du hämtat."
718708
719# TODO: root password for su, not sudo?709# TODO: root password for su, not sudo?
720#. (itstool) path: note/para710#. (itstool) path: note/para
721#: C/index-in.docbook:271711#: C/index-in.docbook:271
n722#, fuzzyn
723msgid ""712msgid ""
724"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 "
725"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 "
726"<command>sudo</command> command will allow you to enter the <literal>root</"715"<command>sudo</command> command will allow you to enter the <literal>root</"
727"literal> password and have <literal>root</literal> status temporarily."716"literal> password and have <literal>root</literal> status temporarily."
897"To begin our introduction to <application>gtkmm</application>, we'll start "886"To begin our introduction to <application>gtkmm</application>, we'll start "
898"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 "
899"200 pixel window."888"200 pixel window."
900msgstr ""889msgstr ""
901"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å "
n902"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 "
903"fönster på 200 × 200 bildpunkter."892"fönster på 200 × 200 bildpunkter."
904893
905#. (itstool) path: section/para894#. (itstool) path: section/para
906#: C/index-in.docbook:345895#: C/index-in.docbook:345
907msgid ""896msgid ""
1481#| msgid ""1470#| msgid ""
1482#| "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 "
1483#| "languages such as Arabic, Chinese, and Japanese. Although the encodings "1472#| "languages such as Arabic, Chinese, and Japanese. Although the encodings "
1484#| "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://"
1485#| "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 "
n1486#| "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 "
1487#| "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 "
1488#| "wrapped by Glib::ustring. It provides almost exactly the same interface "1477#| "wrapped by Glib::ustring. It provides almost exactly the same interface "
1489#| "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."
1490msgid ""1479msgid ""
1491"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 "
1684#: C/index-in.docbook:5651673#: C/index-in.docbook:565
1685msgid ""1674msgid ""
1686"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</"
1687"classname>, and"1676"classname>, and"
1688msgstr ""1677msgstr ""
n1689"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</"
1690"classname>, och"1679"classname>, och"
16911680
1692#. (itstool) path: listitem/para1681#. (itstool) path: listitem/para
1693#: C/index-in.docbook:5661682#: C/index-in.docbook:566
1694#, fuzzy1683#, fuzzy
1845"\n"1834"\n"
1846"  //Medlemskomponenter:\n"1835"  //Medlemskomponenter:\n"
1847"  Gtk::Button m_button;\n"1836"  Gtk::Button m_button;\n"
1848"};"1837"};"
18491838
n1850# TODO: initializationn
1851#. (itstool) path: section/para1839#. (itstool) path: section/para
1852#: C/index-in.docbook:6191840#: C/index-in.docbook:619
n1853#, fuzzyn
1854msgid ""1841msgid ""
1855"This class implements the \"Hello World\" window. It's derived from "1842"This class implements the \"Hello World\" window. It's derived from "
1856"<classname>Gtk::Window</classname>, and has a single <classname>Gtk::Button</"1843"<classname>Gtk::Window</classname>, and has a single <classname>Gtk::Button</"
1857"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 "
1858"initialization work for the window, including setting up the signals. Here "1845"initialization work for the window, including setting up the signals. Here "
1893"  m_button.signal_clicked().connect(sigc::mem_fun(*this,\n"1880"  m_button.signal_clicked().connect(sigc::mem_fun(*this,\n"
1894"    &amp;HelloWorld::on_button_clicked));\n"1881"    &amp;HelloWorld::on_button_clicked));\n"
1895"  set_child(m_button);\n"1882"  set_child(m_button);\n"
1896"}"1883"}"
18971884
n1898# TODO: initializern
1899#. (itstool) path: section/para1885#. (itstool) path: section/para
1900#: C/index-in.docbook:6371886#: C/index-in.docbook:637
n1901#, fuzzyn
1902#| msgid ""
1903#| "Notice that we've used an initialiser statement to give the "
1904#| "<literal>m_button</literal> object the label \"Hello World\"."
1905msgid ""1887msgid ""
1906"Notice that we've used an initializer statement to give the "1888"Notice that we've used an initializer statement to give the "
1907"<literal>m_button</literal> object the label \"Hello World\"."1889"<literal>m_button</literal> object the label \"Hello World\"."
1908msgstr ""1890msgstr ""
1909"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</"
2048"kompatibilitet behölls. Om du aldrig använt <application>gtkmm</"2030"kompatibilitet behölls. Om du aldrig använt <application>gtkmm</"
2049"application>-2.4-API:t kan du lugnt ignorera detta kapitel."2031"application>-2.4-API:t kan du lugnt ignorera detta kapitel."
20502032
2051#. (itstool) path: chapter/para2033#. (itstool) path: chapter/para
2052#: C/index-in.docbook:6962034#: C/index-in.docbook:696
n2053#, fuzzyn
2054msgid ""2035msgid ""
2055"<application>gtkmm</application> 3's library is called "2036"<application>gtkmm</application> 3's library is called "
2056"<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> "
2057"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-"
2058"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 "
2115"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 "
2116"<application>gtkmm</application>-2.4. Här är en kort lista:"2097"<application>gtkmm</application>-2.4. Här är en kort lista:"
21172098
2118#. (itstool) path: listitem/simpara2099#. (itstool) path: listitem/simpara
2119#: C/index-in.docbook:7112100#: C/index-in.docbook:711
n2120#, fuzzyn
2121msgid ""2101msgid ""
2122"<classname>Gtk::CellLayout</classname>, used by <classname>Gtk::IconView</"2102"<classname>Gtk::CellLayout</classname>, used by <classname>Gtk::IconView</"
2123"classname>, <classname>Gtk::TreeView::Column</classname> and <classname>Gtk::"2103"classname>, <classname>Gtk::TreeView::Column</classname> and <classname>Gtk::"
2124"ComboBox</classname>, now has a <classname>Gtk::CellArea</classname> which "2104"ComboBox</classname>, now has a <classname>Gtk::CellArea</classname> which "
2125"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</"
2126"classname>s are arranged and aligned."2106"classname>s are arranged and aligned."
2127msgstr ""2107msgstr ""
2128"<classname>Gtk::CellLayout</classname> som används av <classname>Gtk::"2108"<classname>Gtk::CellLayout</classname> som används av <classname>Gtk::"
2129"IconView</classname>, <classname>Gtk::TreeView::Column</classname> och "2109"IconView</classname>, <classname>Gtk::TreeView::Column</classname> och "
2130"<classname>Gtk::ComboBox</classname> har nu en <classname>Gtk::CellArea</"2110"<classname>Gtk::ComboBox</classname> har nu en <classname>Gtk::CellArea</"
n2131"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 "
2132"<classname>CellRenderer</classname>-renderarna arrangeras och justeras."2112"<classname>CellRenderer</classname>-renderarna arrangeras och justeras."
21332113
2134#. (itstool) path: listitem/simpara2114#. (itstool) path: listitem/simpara
2135#: C/index-in.docbook:7132115#: C/index-in.docbook:713
n2136#, fuzzyn
2137msgid ""2116msgid ""
2138"Gtk::ComboBox now derives from CellLayout, allowing easier layout and "2117"Gtk::ComboBox now derives from CellLayout, allowing easier layout and "
2139"alignment of its <classname>Gtk::CellRenderer</classname>s."2118"alignment of its <classname>Gtk::CellRenderer</classname>s."
2140msgstr ""2119msgstr ""
2141"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 "
2172"vilket låter deras orientering (vertikal eller horisontell) anges utan att "2151"vilket låter deras orientering (vertikal eller horisontell) anges utan att "
2173"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>."
21742153
2175#. (itstool) path: listitem/simpara2154#. (itstool) path: listitem/simpara
2176#: C/index-in.docbook:7202155#: C/index-in.docbook:720
n2177#, fuzzyn
2178msgid ""2156msgid ""
2179"<classname>Gtk::IconView</classname>, <classname>Gtk::TextView</classname>, "2157"<classname>Gtk::IconView</classname>, <classname>Gtk::TextView</classname>, "
2180"<classname>Gtk::TreeView</classname> and other widgets derive from "2158"<classname>Gtk::TreeView</classname> and other widgets derive from "
2181"Scrollable instead of having their own methods such as "2159"Scrollable instead of having their own methods such as "
2182"<methodname>get_vadjustment()</methodname> and instead of having their own "2160"<methodname>get_vadjustment()</methodname> and instead of having their own "
2188"<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 "
2189"set_scroll_adjustments-signal."2167"set_scroll_adjustments-signal."
21902168
2191#. (itstool) path: listitem/simpara2169#. (itstool) path: listitem/simpara
2192#: C/index-in.docbook:7222170#: C/index-in.docbook:722
n2193#, fuzzyn
2194msgid ""2171msgid ""
2195"<classname>Gtk::Style</classname> and <classname>Gtk::Rc</classname> were "2172"<classname>Gtk::Style</classname> and <classname>Gtk::Rc</classname> were "
2196"removed, replaced by <classname>Gtk::StyleContext</classname>, and "2173"removed, replaced by <classname>Gtk::StyleContext</classname>, and "
2197"<classname>Gtk::StyleProvider</classname>s, such as <classname>Gtk::"2174"<classname>Gtk::StyleProvider</classname>s, such as <classname>Gtk::"
2198"CssProvider</classname>."2175"CssProvider</classname>."
2199msgstr ""2176msgstr ""
2200"<classname>Gtk::Style</classname> och <classname>Gtk::Rc</classname> togs "2177"<classname>Gtk::Style</classname> och <classname>Gtk::Rc</classname> togs "
2201"bort, ersatta av <classname>Gtk::StyleContext</classname> och olika "2178"bort, ersatta av <classname>Gtk::StyleContext</classname> och olika "
n2202"<classname>Gtk::StyleProvider</classname>, som <classname>Gtk::CssProvider</"n2179"<classname>Gtk::StyleProvider</classname>-klasser, som <classname>Gtk::"
2203"classname>."2180"CssProvider</classname>."
22042181
2205#. (itstool) path: listitem/simpara2182#. (itstool) path: listitem/simpara
2206#: C/index-in.docbook:7242183#: C/index-in.docbook:724
2207msgid ""2184msgid ""
2208"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 "
2209"that cairomm is used for drawing, via the provided <classname>Cairo::"2186"that cairomm is used for drawing, via the provided <classname>Cairo::"
2210"Context</classname> and does not require you to call <methodname>Cairo::"2187"Context</classname> and does not require you to call <methodname>Cairo::"
2211"Context::clip()</methodname>."2188"Context::clip()</methodname>."
2212msgstr ""2189msgstr ""
n2213"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 "
2214"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</"
n2215"classname> och kräver inte att du anropar <methodname>Cairo::Context::"n2192"classname> och inte kräver att du anropar <methodname>Cairo::Context::"
2216"clip()</methodname>."2193"clip()</methodname>."
22172194
2218#. (itstool) path: listitem/simpara2195#. (itstool) path: listitem/simpara
2219#: C/index-in.docbook:7262196#: C/index-in.docbook:726
n2220#, fuzzyn
2221msgid ""2197msgid ""
2222"<classname>Gdk::RGBA</classname> replaces <classname>Color</classname>, "2198"<classname>Gdk::RGBA</classname> replaces <classname>Color</classname>, "
2223"adding an alpha component for opacity. <classname>Colormap</classname> was "2199"adding an alpha component for opacity. <classname>Colormap</classname> was "
2224"removed, along with its awkward use to allocate colors."2200"removed, along with its awkward use to allocate colors."
2225msgstr ""2201msgstr ""
2226"<classname>Gdk::RGBA</classname> ersätter <classname>Color</classname>, "2202"<classname>Gdk::RGBA</classname> ersätter <classname>Color</classname>, "
2227"vilket lägger till en alfakomponent för opacitet. <classname>Colormap</"2203"vilket lägger till en alfakomponent för opacitet. <classname>Colormap</"
2228"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 "
2229"allokera färger."2205"allokera färger."
22302206
n2231# TODO: favorn
2232#. (itstool) path: listitem/simpara2207#. (itstool) path: listitem/simpara
2233#: C/index-in.docbook:7282208#: C/index-in.docbook:728
n2234#, fuzzyn
2235#| msgid ""
2236#| "<classname>Gdk::Pixmap</classname> and <classname>Gdk::Bitmap</classname> "
2237#| "were removed in favour of <classname>Gdk::Pixbuf</classname>."
2238msgid ""2209msgid ""
2239"<classname>Gdk::Pixmap</classname> and <classname>Gdk::Bitmap</classname> "2210"<classname>Gdk::Pixmap</classname> and <classname>Gdk::Bitmap</classname> "
2240"were removed in favor of <classname>Gdk::Pixbuf</classname>."2211"were removed in favor of <classname>Gdk::Pixbuf</classname>."
2241msgstr ""2212msgstr ""
2242"<classname>Gdk::Pixmap</classname> och <classname>Gdk::Bitmap</classname> "2213"<classname>Gdk::Pixmap</classname> och <classname>Gdk::Bitmap</classname> "
2251"<classname>Gdk::Drawable</classname> togs bort, dess metoder har flyttat "2222"<classname>Gdk::Drawable</classname> togs bort, dess metoder har flyttat "
2252"till <classname>Gdk::Window</classname>."2223"till <classname>Gdk::Window</classname>."
22532224
2254#. (itstool) path: listitem/simpara2225#. (itstool) path: listitem/simpara
2255#: C/index-in.docbook:7322226#: C/index-in.docbook:732
n2256#, fuzzyn
2257msgid ""2227msgid ""
2258"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 "
2259"*Handle types to make the API clearer."2229"*Handle types to make the API clearer."
2260msgstr ""2230msgstr ""
2261"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 "
2326"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 "
2327"du lugnt ignorera detta kapitel."2297"du lugnt ignorera detta kapitel."
23282298
2329#. (itstool) path: chapter/para2299#. (itstool) path: chapter/para
2330#: C/index-in.docbook:7542300#: C/index-in.docbook:754
n2331#, fuzzyn
2332msgid ""2301msgid ""
2333"<application>gtkmm</application> 4's library is called "2302"<application>gtkmm</application> 4's library is called "
2334"<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> "
2335"and installs its headers in a similarly-versioned directory, so your "2304"and installs its headers in a similarly-versioned directory, so your "
2336"<application>pkg-config</application> check should ask for "2305"<application>pkg-config</application> check should ask for "
2343"<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>."
23442313
2345#. (itstool) path: chapter/para2314#. (itstool) path: chapter/para
2346#: C/index-in.docbook:7602315#: C/index-in.docbook:760
2347#, 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>."
2348msgid ""2330msgid ""
2349"<application>gtkmm</application>-4.0 is used in combination with "2331"<application>gtkmm</application>-4.0 is used in combination with "
2350"<application>glibmm-2.68</application>, which sets the global locale for "2332"<application>glibmm-2.68</application>, which sets the global locale for "
2351"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 "
2352"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. "
2531"<classname>Gtk::FontButton</classname> implementerar gränssnittet "2513"<classname>Gtk::FontButton</classname> implementerar gränssnittet "
2532"<classname>Gtk::FontChooser</classname>."2514"<classname>Gtk::FontChooser</classname>."
25332515
2534#. (itstool) path: listitem/simpara2516#. (itstool) path: listitem/simpara
2535#: C/index-in.docbook:8222517#: C/index-in.docbook:822
n2536#, fuzzyn
2537msgid ""2518msgid ""
2538"<classname>Gtk::Widget</classname>: The <methodname>get_preferred_*_vfunc()</"2519"<classname>Gtk::Widget</classname>: The <methodname>get_preferred_*_vfunc()</"
2539"methodname>s have been replaced by <methodname>measure_vfunc()</methodname>. "2520"methodname>s have been replaced by <methodname>measure_vfunc()</methodname>. "
2540"This change only affects custom widgets."2521"This change only affects custom widgets."
2541msgstr ""2522msgstr ""
n2542"<classname>Gtk::Widget</classname>: De olika "n2523"<classname>Gtk::Widget</classname>: De olika metoderna "
2543"<methodname>get_preferred_*_vfunc()</methodname> har ersatts med "2524"<methodname>get_preferred_*_vfunc()</methodname> har ersatts med "
2544"<methodname>measure_vfunc()</methodname>. Denna ändring påverkar bara "2525"<methodname>measure_vfunc()</methodname>. Denna ändring påverkar bara "
2545"anpassade komponenter."2526"anpassade komponenter."
25462527
2547#. (itstool) path: listitem/simpara2528#. (itstool) path: listitem/simpara
2850msgid "Toggle buttons"2831msgid "Toggle buttons"
2851msgstr "Växlingsknappar"2832msgstr "Växlingsknappar"
28522833
2853#. (itstool) path: listitem/para2834#. (itstool) path: listitem/para
2854#: C/index-in.docbook:9312835#: C/index-in.docbook:931
n2855#, fuzzyn
2856msgid ""2836msgid ""
2857"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"2837"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
2858"classGtk_1_1ToggleButton.html\"><classname>Gtk::ToggleButton</classname></"2838"classGtk_1_1ToggleButton.html\"><classname>Gtk::ToggleButton</classname></"
2859"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 "
2860"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 "
3404"Du använder exempelvis kanske en för att justera förstoringsnivån på en "3384"Du använder exempelvis kanske en för att justera förstoringsnivån på en "
3405"zoomad förhandsgranskning av en bild, eller för att styra ljusstyrkan för en "3385"zoomad förhandsgranskning av en bild, eller för att styra ljusstyrkan för en "
3406"färg, eller för att ange antalet inaktiva minuter innan en skärmsläckare tar "3386"färg, eller för att ange antalet inaktiva minuter innan en skärmsläckare tar "
3407"över skärmen."3387"över skärmen."
34083388
n3409# TODO: behaviorn
3410#. (itstool) path: section/para3389#. (itstool) path: section/para
3411#: C/index-in.docbook:11943390#: C/index-in.docbook:1194
n3412#, fuzzyn
3413#| msgid ""
3414#| "As with <classname>Scrollbar</classname>s, the orientation can be either "
3415#| "horizontal or vertical. The default constructor creates an "
3416#| "<classname>Adjustment</classname> with all of its values set to "
3417#| "<literal>0.0</literal>. This isn't useful so you will need to set some "
3418#| "<classname>Adjustment</classname> details to get meaningful behaviour."
3419msgid ""3391msgid ""
3420"As with <classname>Scrollbar</classname>s, the orientation can be either "3392"As with <classname>Scrollbar</classname>s, the orientation can be either "
3421"horizontal or vertical. The default constructor creates an "3393"horizontal or vertical. The default constructor creates an "
3422"<classname>Adjustment</classname> with all of its values set to "3394"<classname>Adjustment</classname> with all of its values set to "
3423"<literal>0.0</literal>. This isn't useful so you will need to set some "3395"<literal>0.0</literal>. This isn't useful so you will need to set some "
4394"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"4366"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
4395"classGtk_1_1InfoBar.html\">Referens</link>"4367"classGtk_1_1InfoBar.html\">Referens</link>"
43964368
4397#. (itstool) path: section/para4369#. (itstool) path: section/para
4398#: C/index-in.docbook:16974370#: C/index-in.docbook:1697
n4399#, fuzzyn
4400#| msgid ""
4401#| "<classname>FileChooser</classname> and the classes that implement it are "
4402#| "deprecated since <application>gtkmm</application> 4.10. They have been "
4403#| "replaced by <classname>FileDialog</classname>, which is available since "
4404#| "<application>gtkmm</application> 4.10."
4405msgid ""4371msgid ""
4406"The <classname>InfoBar</classname> widget is deprecated since "4372"The <classname>InfoBar</classname> widget is deprecated since "
4407"<application>gtkmm</application> 4.10. The example shows an info bar "4373"<application>gtkmm</application> 4.10. The example shows an info bar "
4408"consisting of a <classname>Box</classname> with a <classname>Label</"4374"consisting of a <classname>Box</classname> with a <classname>Label</"
4409"classname> and a <classname>Button</classname>."4375"classname> and a <classname>Button</classname>."
4410msgstr ""4376msgstr ""
n4411"<classname>FileChooser</classname> och klasserna som implementerar den är "n4377"<classname>InfoBar</classname>-komponenten är föråldrad sedan "
4412"föråldrade sedan <application>gtkmm</application> 4.10. De har ersatts av "4378"<application>gtkmm</application> 4.10. Exemplen visar en inforad som består "
4413"<classname>FileDialog</classname>, vilken finns tillgänglig sedan "4379"av en <classname>Box</classname> med en <classname>Label</classname> och en "
4414"<application>gtkmm</application> 4.10."4380"<classname>Button</classname>."
44154381
4416#. (itstool) path: imageobject/imagedata4382#. (itstool) path: imageobject/imagedata
4417#. This is a reference to an external file such as an image or video. When4383#. This is a reference to an external file such as an image or video. When
4418#. the file changes, the md5 hash will change to let you know you need to4384#. the file changes, the md5 hash will change to let you know you need to
4419#. update your localized copy. The msgstr is not used at all. Set it to4385#. update your localized copy. The msgstr is not used at all. Set it to
4979"begärt att tillgängligt utrymme ska delas mellan uppsättningar av "4945"begärt att tillgängligt utrymme ska delas mellan uppsättningar av "
4980"komponenter. <application>gtkmm</application> använder sedan all denna "4946"komponenter. <application>gtkmm</application> använder sedan all denna "
4981"information för att ändra storlek och position på allt på ett rimligt och "4947"information för att ändra storlek och position på allt på ett rimligt och "
4982"smidigt sätt när användaren manipulerar fönstret."4948"smidigt sätt när användaren manipulerar fönstret."
49834949
n4984# TODO: flavorsn
4985#. (itstool) path: section/para4950#. (itstool) path: section/para
4986#: C/index-in.docbook:19834951#: C/index-in.docbook:1983
n4987#, fuzzyn
4988msgid ""4952msgid ""
4989"<application>gtkmm</application> arranges widgets hierarchically, using "4953"<application>gtkmm</application> arranges widgets hierarchically, using "
4990"<emphasis>containers</emphasis>. A container widget contains other widgets. "4954"<emphasis>containers</emphasis>. A container widget contains other widgets. "
4991"Most <application>gtkmm</application> widgets are containers. Windows, "4955"Most <application>gtkmm</application> widgets are containers. Windows, "
4992"Notebook tabs, and Buttons are all container widgets. There are two flavors "4956"Notebook tabs, and Buttons are all container widgets. There are two flavors "
5095"master/examples/book/helloworld2\">Source Code</link>"5059"master/examples/book/helloworld2\">Source Code</link>"
5096msgstr ""5060msgstr ""
5097"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"5061"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
5098"master/examples/book/helloworld2\">Källkod</link>"5062"master/examples/book/helloworld2\">Källkod</link>"
50995063
n5100# TODO: behaviorn
5101#. (itstool) path: section/para5064#. (itstool) path: section/para
5102#: C/index-in.docbook:20485065#: C/index-in.docbook:2048
5103#, fuzzy5066#, fuzzy
5104msgid ""5067msgid ""
5105"After building and running this program, try resizing the window to see the "5068"After building and running this program, try resizing the window to see the "
5202msgid "There are basically five different styles, as shown in this picture:"5165msgid "There are basically five different styles, as shown in this picture:"
5203msgstr "Det finns i grunden fem olika stilar som kan ses i denna bild:"5166msgstr "Det finns i grunden fem olika stilar som kan ses i denna bild:"
52045167
5205#. (itstool) path: figure/title5168#. (itstool) path: figure/title
5206#: C/index-in.docbook:21015169#: C/index-in.docbook:2101
n5207#, fuzzyn
5208msgid "Box Packing 1"5170msgid "Box Packing 1"
5209msgstr "Boxpackning 1"5171msgstr "Boxpackning 1"
52105172
5211#. (itstool) path: imageobject/imagedata5173#. (itstool) path: imageobject/imagedata
5212#. This is a reference to an external file such as an image or video. When5174#. This is a reference to an external file such as an image or video. When
5314"Följande figur bör göra det tydligare. De visade marginalerna är vänster- "5276"Följande figur bör göra det tydligare. De visade marginalerna är vänster- "
5315"och högermarginalerna för varje knapp i raden."5277"och högermarginalerna för varje knapp i raden."
53165278
5317#. (itstool) path: figure/title5279#. (itstool) path: figure/title
5318#: C/index-in.docbook:21445280#: C/index-in.docbook:2144
n5319#, fuzzyn
5320msgid "Box Packing 2"5281msgid "Box Packing 2"
5321msgstr "Boxpackning 2"5282msgstr "Boxpackning 2"
53225283
5323#. (itstool) path: imageobject/imagedata5284#. (itstool) path: imageobject/imagedata
5324#. This is a reference to an external file such as an image or video. When5285#. This is a reference to an external file such as an image or video. When
5752"master/examples/book/listbox_flowbox/flowbox\">Källkod, FlowBox</link>"5713"master/examples/book/listbox_flowbox/flowbox\">Källkod, FlowBox</link>"
57535714
5754#. (itstool) path: chapter/title5715#. (itstool) path: chapter/title
5755#: C/index-in.docbook:23525716#: C/index-in.docbook:2352
5756msgid "ListView, GridView, ColumnView"5717msgid "ListView, GridView, ColumnView"
n5757msgstr ""n5718msgstr "ListView, GridView, ColumnView"
57585719
5759#. (itstool) path: chapter/para5720#. (itstool) path: chapter/para
5760#: C/index-in.docbook:23545721#: C/index-in.docbook:2354
5761msgid ""5722msgid ""
5762"Lists are intended to be used whenever developers want to display many "5723"Lists are intended to be used whenever developers want to display many "
5763"objects in roughly the same way. They are perfectly fine to be used for very "5724"objects in roughly the same way. They are perfectly fine to be used for very "
5764"short lists of only 2 or 3 items, but generally scale fine to thousands of "5725"short lists of only 2 or 3 items, but generally scale fine to thousands of "
5765"items."5726"items."
5766msgstr ""5727msgstr ""
nn5728"Listor är avsedda att användas närhelst utvecklare vill visa många objekt på "
5729"i stort sett samma sätt. De fungerar utmärkt att använda för väldigt korta "
5730"listor på bara två eller tre objekt, men går även allmänt fint att skala upp "
5731"till tusentals objekt."
57675732
5768#. (itstool) path: chapter/para5733#. (itstool) path: chapter/para
5769#: C/index-in.docbook:23605734#: C/index-in.docbook:2360
5770msgid ""5735msgid ""
5771"Lists are meant to be used with changing data, both with the items "5736"Lists are meant to be used with changing data, both with the items "
5772"themselves changing as well as the list adding and removing items. Of "5737"themselves changing as well as the list adding and removing items. Of "
5773"course, they work just as well with static data."5738"course, they work just as well with static data."
5774msgstr ""5739msgstr ""
nn5740"Listor är tänkta att använda med data som ändras, både då objekten själva "
5741"ändras samt då listan lägger till och tar bort objekt. De fungerar förstås "
5742"precis lika bra med statiska data."
57755743
5776#. (itstool) path: chapter/para5744#. (itstool) path: chapter/para
5777#: C/index-in.docbook:23665745#: C/index-in.docbook:2366
5778#, fuzzy5746#, fuzzy
5779msgid ""5747msgid ""
5785"html\">Input Handling</link> i GTK-dokumentationen beskriver hantering av "5753"html\">Input Handling</link> i GTK-dokumentationen beskriver hantering av "
5786"användarinmatning mer detaljerat."5754"användarinmatning mer detaljerat."
57875755
5788#. (itstool) path: chapter/para5756#. (itstool) path: chapter/para
5789#: C/index-in.docbook:23715757#: C/index-in.docbook:2371
n5790#, fuzzyn
5791#| msgid ""
5792#| "Some <classname>TreeView</classname> examples are shown here. There are "
5793#| "more examples in the <link xlink:href=\"https://gitlab.gnome.org/GNOME/"
5794#| "gtkmm-documentation/tree/master/examples/book/treeview/\">treeview "
5795#| "directory</link> in <application>gtkmm-documentation</application>'s "
5796#| "examples."
5797msgid ""5758msgid ""
5798"Some examples are shown in this chapter. There are more examples in the "5759"Some examples are shown in this chapter. There are more examples in the "
5799"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"5760"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
5800"master/examples/book/listmodelviews/\">listmodelviews directory</link> in "5761"master/examples/book/listmodelviews/\">listmodelviews directory</link> in "
5801"<application>gtkmm-documentation</application>'s examples."5762"<application>gtkmm-documentation</application>'s examples."
5802msgstr ""5763msgstr ""
n5803"Några <classname>TreeView</classname>-exempel visas här. Det finns mer "n5764"Några exempel visas i detta kapitel. Det finns mer exempel i <link xlink:"
5804"exempel i <link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-"5765"href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/master/"
5805"documentation/tree/master/examples/book/treeview/\">treeview-katalogen</"5766"examples/book/listmodelviews/\">listmodelviews-katalogen</link> i "
5806"link> i <application>gtkmm-documentation</application>s exempel."5767"<application>gtkmm-documentation</application>s exempel."
58075768
5808#. (itstool) path: section/title5769#. (itstool) path: section/title
5809#: C/index-in.docbook:23775770#: C/index-in.docbook:2377
n5810#, fuzzyn
5811msgid "The Data Model"5771msgid "The Data Model"
n5812msgstr "Modellen"n5772msgstr "Datamodellen"
58135773
5814#. (itstool) path: section/para5774#. (itstool) path: section/para
5815#: C/index-in.docbook:23795775#: C/index-in.docbook:2379
5816msgid ""5776msgid ""
5817"The data model is a class that implements the <classname>Gio::ListModel</"5777"The data model is a class that implements the <classname>Gio::ListModel</"
5819"ListStore</classname> (not to be confused with the deprecated "5779"ListStore</classname> (not to be confused with the deprecated "
5820"<classname>Gtk::ListStore</classname>), <classname>Gtk:StringList</"5780"<classname>Gtk::ListStore</classname>), <classname>Gtk:StringList</"
5821"classname>, <classname>Gtk:DirectoryList</classname> and <classname>Pango::"5781"classname>, <classname>Gtk:DirectoryList</classname> and <classname>Pango::"
5822"FontMap</classname>."5782"FontMap</classname>."
5823msgstr ""5783msgstr ""
nn5784"Datamodellen är en klass som implementerar <classname>Gio::ListModel</"
5785"classname>-gränssnittet. Exempel på sådana klasser är <classname>Gio::"
5786"ListStore</classname> (inte att förväxlas med de föråldrade <classname>Gtk::"
5787"ListStore</classname>), <classname>Gtk:StringList</classname>, "
5788"<classname>Gtk:DirectoryList</classname> och <classname>Pango::FontMap</"
5789"classname>."
58245790
5825#. (itstool) path: section/para5791#. (itstool) path: section/para
5826#: C/index-in.docbook:23875792#: C/index-in.docbook:2387
n5827#, fuzzyn
5828#| msgid ""
5829#| "The model for a ComboBox can be defined and filled exactly as for a "
5830#| "<classname>TreeView</classname>. For instance, you might derive a "
5831#| "ComboBox class with one integer and one text column, like so:"
5832msgid ""5793msgid ""
5833"The elements in a model are called <emphasis>items</emphasis>. All items are "5794"The elements in a model are called <emphasis>items</emphasis>. All items are "
5834"instances of a subclass of <classname>Glib::Object</classname>. For "5795"instances of a subclass of <classname>Glib::Object</classname>. For "
5835"instance, you might have a <classname>ColumnView</classname> with one "5796"instance, you might have a <classname>ColumnView</classname> with one "
5836"integer and one text column, like so:"5797"integer and one text column, like so:"
5837msgstr ""5798msgstr ""
n5838"Modellen för en ComboBox kan definieras och fyllas i exakt som för en "n5799"Elementen i en modell kallas <emphasis>objekt</emphasis>. Alla objekt är "
5839"<classname>TreeView</classname>. Exempelvis kan du härleda en ComboBox med "5800"instanser av en underklass till <classname>Glib::Object</classname>. "
5801"Exempelvis kan du ha en <classname>ColumnView</classname> med ett heltal och "
5840"ett heltal och en textkolumn, så här:"5802"en textkolumn, så här:"
58415803
5842#. (itstool) path: section/programlisting5804#. (itstool) path: section/programlisting
5843#: C/index-in.docbook:2393 C/index-in.docbook:33915805#: C/index-in.docbook:2393 C/index-in.docbook:3391
5844#, fuzzy, no-wrap5806#, fuzzy, no-wrap
5845#| msgid ""5807#| msgid ""
5913"Every item in a model has a position which is the unsigned integer that "5875"Every item in a model has a position which is the unsigned integer that "
5914"describes where in the model the item is located. The first item in a model "5876"describes where in the model the item is located. The first item in a model "
5915"is at position 0. The position of an item can of course change as other "5877"is at position 0. The position of an item can of course change as other "
5916"items are added to or removed from the model."5878"items are added to or removed from the model."
5917msgstr ""5879msgstr ""
nn5880"Varje objekt i en modell har en position vilken är det teckenlösa heltalet "
5881"som beskriver var i modellen som objektet finns. Det första objektet i en "
5882"modell har position 0. Positionen för ett objekt kan förstås ändras då andra "
5883"objekt läggs till eller tas bort från modellen."
59185884
5919#. (itstool) path: section/para5885#. (itstool) path: section/para
5920#: C/index-in.docbook:24215886#: C/index-in.docbook:2421
n5921#, fuzzyn
5922#| msgid ""
5923#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/"
5924#| "classGio_1_1Resource.html\">Gio::Resource Reference</link>"
5925msgid ""5887msgid ""
5926"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/"5888"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/"
5927"classGio_1_1ListStore.html\">Gio::ListStore Reference</link>"5889"classGio_1_1ListStore.html\">Gio::ListStore Reference</link>"
5928msgstr ""5890msgstr ""
5929"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/"5891"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/"
n5930"classGio_1_1Resource.html\">Referens för Gio::Resource</link>"n5892"classGio_1_1ListStore.html\">Referens för Gio::ListStore</link>"
59315893
5932#. (itstool) path: section/para5894#. (itstool) path: section/para
5933#: C/index-in.docbook:24225895#: C/index-in.docbook:2422
n5934#, fuzzyn
5935#| msgid ""
5936#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
5937#| "classGtk_1_1Widget.html\">Widget Reference</link>"
5938msgid ""5896msgid ""
5939"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"5897"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
5940"classGtk_1_1StringList.html\">StringList Reference</link>"5898"classGtk_1_1StringList.html\">StringList Reference</link>"
5941msgstr ""5899msgstr ""
5942"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"5900"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n5943"classGtk_1_1Widget.html\">Widget-referens</link>"n5901"classGtk_1_1StringList.html\">Referens för StringList</link>"
59445902
5945#. (itstool) path: section/para5903#. (itstool) path: section/para
5946#: C/index-in.docbook:24235904#: C/index-in.docbook:2423
n5947#, fuzzyn
5948#| msgid ""
5949#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
5950#| "classGtk_1_1Widget.html\">Widget Reference</link>"
5951msgid ""5905msgid ""
5952"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"5906"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
5953"classGtk_1_1DirectoryList.html\">DirectoryList Reference</link>"5907"classGtk_1_1DirectoryList.html\">DirectoryList Reference</link>"
5954msgstr ""5908msgstr ""
5955"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"5909"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n5956"classGtk_1_1Widget.html\">Widget-referens</link>"n5910"classGtk_1_1DirectoryList.html\">Referens för DirectoryList</link>"
59575911
5958#. (itstool) path: section/title5912#. (itstool) path: section/title
5959#: C/index-in.docbook:24275913#: C/index-in.docbook:2427
5960#, fuzzy5914#, fuzzy
5961msgid "The Selection Model"5915msgid "The Selection Model"
5980"och <classname>Gio::ActionMap</classname> är basklasser för <classname>Gtk::"5934"och <classname>Gio::ActionMap</classname> är basklasser för <classname>Gtk::"
5981"ApplicationWindow</classname>."5935"ApplicationWindow</classname>."
59825936
5983#. (itstool) path: section/para5937#. (itstool) path: section/para
5984#: C/index-in.docbook:24345938#: C/index-in.docbook:2434
n5985#, fuzzyn
5986#| msgid ""
5987#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
5988#| "classGtk_1_1Tooltip.html\">Tooltip Reference</link>"
5989msgid ""5939msgid ""
5990"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"5940"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
5991"classGtk_1_1NoSelection.html\">NoSelection Reference</link>"5941"classGtk_1_1NoSelection.html\">NoSelection Reference</link>"
5992msgstr ""5942msgstr ""
5993"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"5943"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n5994"classGtk_1_1Tooltip.html\">Tooltip-referens</link>"n5944"classGtk_1_1NoSelection.html\">Referens för NoSelection</link>"
59955945
5996#. (itstool) path: section/para5946#. (itstool) path: section/para
5997#: C/index-in.docbook:24355947#: C/index-in.docbook:2435
n5998#, fuzzyn
5999#| msgid ""
6000#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6001#| "classGtk_1_1Widget.html\">Widget Reference</link>"
6002msgid ""5948msgid ""
6003"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"5949"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6004"classGtk_1_1SingleSelection.html\">SingleSelection Reference</link>"5950"classGtk_1_1SingleSelection.html\">SingleSelection Reference</link>"
6005msgstr ""5951msgstr ""
6006"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"5952"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n6007"classGtk_1_1Widget.html\">Widget-referens</link>"n5953"classGtk_1_1SingleSelection.html\">Referens för SingleSelection</link>"
60085954
6009#. (itstool) path: section/para5955#. (itstool) path: section/para
6010#: C/index-in.docbook:24365956#: C/index-in.docbook:2436
n6011#, fuzzyn
6012#| msgid ""
6013#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6014#| "classGtk_1_1Application.html\">Gtk::Application Reference</link>"
6015msgid ""5957msgid ""
6016"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"5958"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6017"classGtk_1_1MultiSelection.html\">MultiSelection Reference</link>"5959"classGtk_1_1MultiSelection.html\">MultiSelection Reference</link>"
6018msgstr ""5960msgstr ""
6019"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"5961"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n6020"classGtk_1_1Application.html\">Referens för Gtk::Application</link>"n5962"classGtk_1_1MultiSelection.html\">Referens för MultiSelection</link>"
60215963
6022#. (itstool) path: section/title5964#. (itstool) path: section/title
6023#: C/index-in.docbook:24405965#: C/index-in.docbook:2440
6024#, fuzzy5966#, fuzzy
6025msgid "The Factory"5967msgid "The Factory"
n6026msgstr "Inmatningen"n5968msgstr "Fabriken"
60275969
6028#. (itstool) path: section/para5970#. (itstool) path: section/para
6029#: C/index-in.docbook:24425971#: C/index-in.docbook:2442
nn5972#, fuzzy
6030msgid ""5973msgid ""
6031"Data from the data model is added to the view by a factory, which is a "5974"Data from the data model is added to the view by a factory, which is a "
6032"subclass of <classname>ListItemFactory</classname>. There is only one such "5975"subclass of <classname>ListItemFactory</classname>. There is only one such "
6033"subclass in <application>gtkmm</application>, "5976"subclass in <application>gtkmm</application>, "
6034"<classname>SignalListItemFactory</classname>. Data from the model is added "5977"<classname>SignalListItemFactory</classname>. Data from the model is added "
6035"to the view with signal handlers connected to a "5978"to the view with signal handlers connected to a "
6036"<classname>SignalListItemFactory</classname>."5979"<classname>SignalListItemFactory</classname>."
6037msgstr ""5980msgstr ""
nn5981"Data från datamodellen läggs till i vyn av en fabrik, vilken är en "
5982"underklass av <classname>ListItemFactory</classname>. Det finns endast en "
5983"sådan underklass i <application>gtkmm</application>, "
5984"<classname>SignalListItemFactory</classname>. Data från modellen läggs till "
5985"i vyn med signalhanterare anslutna till en <classname>SignalListItemFactory</"
5986"classname>."
60385987
6039#. (itstool) path: section/para5988#. (itstool) path: section/para
6040#: C/index-in.docbook:24485989#: C/index-in.docbook:2448
n6041#, fuzzyn
6042#| msgid ""
6043#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6044#| "classGtk_1_1Widget.html\">Widget Reference</link>"
6045msgid ""5990msgid ""
6046"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"5991"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6047"classGtk_1_1SignalListItemFactory.html\">SignalListItemFactory Reference</"5992"classGtk_1_1SignalListItemFactory.html\">SignalListItemFactory Reference</"
6048"link>"5993"link>"
6049msgstr ""5994msgstr ""
6050"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"5995"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n6051"classGtk_1_1Widget.html\">Widget-referens</link>"n5996"classGtk_1_1SignalListItemFactory.html\">Referens för SignalListItemFactory</"
5997"link>"
60525998
6053#. (itstool) path: section/title5999#. (itstool) path: section/title
6054#: C/index-in.docbook:2452 C/index-in.docbook:2823 C/index-in.docbook:38726000#: C/index-in.docbook:2452 C/index-in.docbook:2823 C/index-in.docbook:3872
6055#, fuzzy6001#, fuzzy
6056msgid "The View"6002msgid "The View"
n6057msgstr "View"n6003msgstr "Vyn"
60586004
6059#. (itstool) path: section/para6005#. (itstool) path: section/para
6060#: C/index-in.docbook:24546006#: C/index-in.docbook:2454
6061#, fuzzy6007#, fuzzy
6062msgid ""6008msgid ""
6063"The View is the widget that displays the model data and allows the user to "6009"The View is the widget that displays the model data and allows the user to "
6064"interact with it. The View can show all of the model's columns, or just "6010"interact with it. The View can show all of the model's columns, or just "
6065"some, and it can show them in various ways."6011"some, and it can show them in various ways."
6066msgstr ""6012msgstr ""
n6067"Vyn är den faktiska komponenten (<classname>Gtk::TreeView</classname>) som "n6013"Vyn är komponenten som visar data för modellen och låter användaren "
6068"visar data för modellen (<classname>Gtk::TreeModel</classname>) och låter "
6069"användaren interagera med dem. Vyn kan visa alla modellens kolumner, eller "6014"interagera med dem. Vyn kan visa alla modellens kolumner, eller bara några, "
6070"bara några, och den kan visa dem på olika sätt."6015"och den kan visa dem på olika sätt."
60716016
6072#. (itstool) path: section/para6017#. (itstool) path: section/para
6073#: C/index-in.docbook:24606018#: C/index-in.docbook:2460
nn6019#, fuzzy
6074msgid ""6020msgid ""
6075"An important requirement for views (especially views of long lists) is that "6021"An important requirement for views (especially views of long lists) is that "
6076"they need to know which items are not visible so they can be recycled. Views "6022"they need to know which items are not visible so they can be recycled. Views "
6077"achieve that by implementing the <classname>Scrollable</classname> interface "6023"achieve that by implementing the <classname>Scrollable</classname> interface "
6078"and expecting to be placed directly into a <classname>ScrolledWindow</"6024"and expecting to be placed directly into a <classname>ScrolledWindow</"
6079"classname>."6025"classname>."
6080msgstr ""6026msgstr ""
nn6027"Ett viktigt krav för vyer (särskilt vyer över långa listor) är att de "
6028"behöver veta vilka objekt som inte är synliga, så att de kan återvinnas. "
6029"Vyer åstadkommer det genom att implementera gränssnittet "
6030"<classname>Scrollable</classname> och förväntar sig att placeras direkt i "
6031"ett <classname>ScrolledWindow</classname>."
60816032
6082#. (itstool) path: section/para6033#. (itstool) path: section/para
6083#: C/index-in.docbook:24676034#: C/index-in.docbook:2467
nn6035#, fuzzy
6084msgid "There are different view widgets to choose from."6036msgid "There are different view widgets to choose from."
n6085msgstr ""n6037msgstr "Det finns olika vykomponenter att välja från."
60866038
6087#. (itstool) path: section/title6039#. (itstool) path: section/title
6088#. (itstool) path: figure/title6040#. (itstool) path: figure/title
6089#: C/index-in.docbook:2472 C/index-in.docbook:24846041#: C/index-in.docbook:2472 C/index-in.docbook:2484
n6090#, fuzzyn
6091#| msgid "TextView"
6092msgid "ListView"6042msgid "ListView"
n6093msgstr "TextView"n6043msgstr "ListView"
60946044
6095#. (itstool) path: section/para6045#. (itstool) path: section/para
6096#: C/index-in.docbook:24746046#: C/index-in.docbook:2474
n6097#, fuzzyn
6098#| msgid ""
6099#| "The <classname>Gtk::TreeView</classname> widget can contain lists or "
6100#| "trees of data, in columns."
6101msgid ""6047msgid ""
6102"The <classname>ListView</classname> shows a 1-dimensional list with one "6048"The <classname>ListView</classname> shows a 1-dimensional list with one "
6103"column."6049"column."
6104msgstr ""6050msgstr ""
n6105"Komponenten <classname>Gtk::TreeView</classname> kan innehålla listor eller "n6051"<classname>ListView</classname> visar en 1-dimensionell lista med en kolumn."
6106"träd med data i kolumner."
61076052
6108#. (itstool) path: section/para6053#. (itstool) path: section/para
6109#: C/index-in.docbook:24786054#: C/index-in.docbook:2478
n6110#, fuzzyn
6111#| msgid ""
6112#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6113#| "classGtk_1_1TextView.html\">Reference</link>"
6114msgid ""6055msgid ""
6115"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6056"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6116"classGtk_1_1ListView.html\">Reference</link>"6057"classGtk_1_1ListView.html\">Reference</link>"
6117msgstr ""6058msgstr ""
6118"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6059"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n6119"classGtk_1_1TextView.html\">Referens</link>"n6060"classGtk_1_1ListView.html\">Referens</link>"
61206061
6121#. (itstool) path: imageobject/imagedata6062#. (itstool) path: imageobject/imagedata
6122#. This is a reference to an external file such as an image or video. When6063#. This is a reference to an external file such as an image or video. When
6123#. the file changes, the md5 hash will change to let you know you need to6064#. the file changes, the md5 hash will change to let you know you need to
6124#. update your localized copy. The msgstr is not used at all. Set it to6065#. update your localized copy. The msgstr is not used at all. Set it to
6128msgctxt "_"6069msgctxt "_"
6129msgid ""6070msgid ""
6130"external ref='figures/listmodel_listview.png' "6071"external ref='figures/listmodel_listview.png' "
6131"md5='5e49d159f43fdc5242998713bdedafc8'"6072"md5='5e49d159f43fdc5242998713bdedafc8'"
6132msgstr ""6073msgstr ""
n6133"external ref='figures/textview.png' md5='451e30f66cc32c4231bb6bc442cf0d2f'"n6074"external ref='figures/listmodel_listview.png' "
6075"md5='5e49d159f43fdc5242998713bdedafc8'"
61346076
6135#. (itstool) path: section/para6077#. (itstool) path: section/para
6136#: C/index-in.docbook:24906078#: C/index-in.docbook:2490
n6137#, fuzzyn
6138#| msgid ""
6139#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
6140#| "tree/master/examples/book/listmodelviews/gridview\">Source Code, "
6141#| "GridView</link>"
6142msgid ""6079msgid ""
6143"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6080"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
6144"master/examples/book/listmodelviews/list_listview\">Source Code</link>"6081"master/examples/book/listmodelviews/list_listview\">Source Code</link>"
6145msgstr ""6082msgstr ""
6146"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6083"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n6147"master/examples/book/listmodelviews/gridview\">Källkod, GridView</link>"n6084"master/examples/book/listmodelviews/list_listview\">Källkod</link>"
61486085
6149#. (itstool) path: section/title6086#. (itstool) path: section/title
6150#. (itstool) path: figure/title6087#. (itstool) path: figure/title
6151#: C/index-in.docbook:2496 C/index-in.docbook:25086088#: C/index-in.docbook:2496 C/index-in.docbook:2508
n6152#, fuzzyn
6153#| msgid "Grid"
6154msgid "GridView"6089msgid "GridView"
n6155msgstr "Grid"n6090msgstr "GridView"
61566091
6157#. (itstool) path: section/para6092#. (itstool) path: section/para
6158#: C/index-in.docbook:24986093#: C/index-in.docbook:2498
n6159#, fuzzyn
6160#| msgid "The <classname>Tag</classname> class has many other properties."
6161msgid "The <classname>GridView</classname> shows a 2-dimensional grid."6094msgid "The <classname>GridView</classname> shows a 2-dimensional grid."
n6162msgstr "Klassen <classname>Tag</classname> har många andra egenskaper."n6095msgstr "<classname>GridView</classname> visar ett 2-dimensionellt rutnät."
61636096
6164#. (itstool) path: section/para6097#. (itstool) path: section/para
6165#: C/index-in.docbook:25026098#: C/index-in.docbook:2502
n6166#, fuzzyn
6167#| msgid ""
6168#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6169#| "classGtk_1_1Grid.html\">Reference</link>"
6170msgid ""6099msgid ""
6171"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6100"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6172"classGtk_1_1GridView.html\">Reference</link>"6101"classGtk_1_1GridView.html\">Reference</link>"
6173msgstr ""6102msgstr ""
6174"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6103"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n6175"classGtk_1_1Grid.html\">Referens</link>"n6104"classGtk_1_1GridView.html\">Referens</link>"
61766105
6177#. (itstool) path: imageobject/imagedata6106#. (itstool) path: imageobject/imagedata
6178#. This is a reference to an external file such as an image or video. When6107#. This is a reference to an external file such as an image or video. When
6179#. the file changes, the md5 hash will change to let you know you need to6108#. the file changes, the md5 hash will change to let you know you need to
6180#. update your localized copy. The msgstr is not used at all. Set it to6109#. update your localized copy. The msgstr is not used at all. Set it to
6184msgctxt "_"6113msgctxt "_"
6185msgid ""6114msgid ""
6186"external ref='figures/listmodel_gridview.png' "6115"external ref='figures/listmodel_gridview.png' "
6187"md5='0d87e962deacc452f32513f0d5e07e04'"6116"md5='0d87e962deacc452f32513f0d5e07e04'"
6188msgstr ""6117msgstr ""
n6189"external ref='figures/treeview_list.png' "n6118"external ref='figures/listmodel_gridview.png' "
6190"md5='60e5e4ecb284d0cdc53373fe0ec858ee'"6119"md5='0d87e962deacc452f32513f0d5e07e04'"
61916120
6192#. (itstool) path: section/para6121#. (itstool) path: section/para
6193#: C/index-in.docbook:25146122#: C/index-in.docbook:2514
n6194#, fuzzyn
6195#| msgid ""
6196#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
6197#| "tree/master/examples/book/listmodelviews/gridview\">Source Code, "
6198#| "GridView</link>"
6199msgid ""6123msgid ""
6200"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6124"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
6201"master/examples/book/listmodelviews/gridview\">Source Code</link>"6125"master/examples/book/listmodelviews/gridview\">Source Code</link>"
6202msgstr ""6126msgstr ""
6203"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6127"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n6204"master/examples/book/listmodelviews/gridview\">Källkod, GridView</link>"n6128"master/examples/book/listmodelviews/gridview\">Källkod</link>"
62056129
6206#. (itstool) path: section/title6130#. (itstool) path: section/title
6207#. (itstool) path: figure/title6131#. (itstool) path: figure/title
6208#: C/index-in.docbook:2520 C/index-in.docbook:25326132#: C/index-in.docbook:2520 C/index-in.docbook:2532
6209msgid "ColumnView"6133msgid "ColumnView"
n6210msgstr ""n6134msgstr "ColumnView"
62116135
6212#. (itstool) path: section/para6136#. (itstool) path: section/para
6213#: C/index-in.docbook:25226137#: C/index-in.docbook:2522
n6214#, fuzzyn
6215#| msgid ""
6216#| "The <classname>Gtk::TreeView</classname> widget can contain lists or "
6217#| "trees of data, in columns."
6218msgid ""6138msgid ""
6219"The <classname>ColumnView</classname> shows a 1-dimensional list with one or "6139"The <classname>ColumnView</classname> shows a 1-dimensional list with one or "
6220"more columns."6140"more columns."
6221msgstr ""6141msgstr ""
n6222"Komponenten <classname>Gtk::TreeView</classname> kan innehålla listor eller "n6142"<classname>ColumnView</classname> visar en 1-dimensionell lista med en eller "
6223"träd med data i kolumner."6143"flera kolumner."
62246144
6225#. (itstool) path: section/para6145#. (itstool) path: section/para
6226#: C/index-in.docbook:25266146#: C/index-in.docbook:2526
n6227#, fuzzyn
6228#| msgid ""
6229#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6230#| "classGtk_1_1TreeView.html\">Reference</link>"
6231msgid ""6147msgid ""
6232"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6148"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6233"classGtk_1_1ColumnView.html\">Reference</link>"6149"classGtk_1_1ColumnView.html\">Reference</link>"
6234msgstr ""6150msgstr ""
6235"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6151"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n6236"classGtk_1_1TreeView.html\">Referens</link>"n6152"classGtk_1_1ColumnView.html\">Referens</link>"
62376153
6238#. (itstool) path: imageobject/imagedata6154#. (itstool) path: imageobject/imagedata
6239#. This is a reference to an external file such as an image or video. When6155#. This is a reference to an external file such as an image or video. When
6240#. the file changes, the md5 hash will change to let you know you need to6156#. the file changes, the md5 hash will change to let you know you need to
6241#. update your localized copy. The msgstr is not used at all. Set it to6157#. update your localized copy. The msgstr is not used at all. Set it to
6245msgctxt "_"6161msgctxt "_"
6246msgid ""6162msgid ""
6247"external ref='figures/listmodel_columnview.png' "6163"external ref='figures/listmodel_columnview.png' "
6248"md5='fd8445f1904773397a7252bf843e2c38'"6164"md5='fd8445f1904773397a7252bf843e2c38'"
6249msgstr ""6165msgstr ""
n6250"external ref='figures/aspectframe.png' md5='9d8aac9521789ed27036a97a22fedece'"n6166"external ref='figures/listmodel_columnview.png' "
6167"md5='fd8445f1904773397a7252bf843e2c38'"
62516168
6252#. (itstool) path: section/para6169#. (itstool) path: section/para
6253#: C/index-in.docbook:25386170#: C/index-in.docbook:2538
n6254#, fuzzyn
6255#| msgid ""
6256#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
6257#| "tree/master/examples/book/listmodelviews/gridview\">Source Code, "
6258#| "GridView</link>"
6259msgid ""6171msgid ""
6260"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6172"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
6261"master/examples/book/listmodelviews/list_columnview\">Source Code</link>"6173"master/examples/book/listmodelviews/list_columnview\">Source Code</link>"
6262msgstr ""6174msgstr ""
6263"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6175"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n6264"master/examples/book/listmodelviews/gridview\">Källkod, GridView</link>"n6176"master/examples/book/listmodelviews/list_columnview\">Källkod</link>"
62656177
6266#. (itstool) path: section/title6178#. (itstool) path: section/title
6267#: C/index-in.docbook:2545 C/index-in.docbook:31396179#: C/index-in.docbook:2545 C/index-in.docbook:3139
6268msgid "Sorting"6180msgid "Sorting"
6269msgstr "Sortering"6181msgstr "Sortering"
62706182
6271#. (itstool) path: section/para6183#. (itstool) path: section/para
6272#: C/index-in.docbook:25476184#: C/index-in.docbook:2547
nn6185#, fuzzy
6273msgid ""6186msgid ""
6274"The list can be sorted by wrapping it in a <classname>SortListModel</"6187"The list can be sorted by wrapping it in a <classname>SortListModel</"
6275"classname>. There are two ways to do this."6188"classname>. There are two ways to do this."
6276msgstr ""6189msgstr ""
nn6190"Listan kan sorteras genom att omsluta den i en <classname>SortListModel</"
6191"classname>. Det finns två sätt att göra detta."
62776192
6278#. (itstool) path: listitem/para6193#. (itstool) path: listitem/para
6279#: C/index-in.docbook:25526194#: C/index-in.docbook:2552
nn6195#, fuzzy
6280msgid ""6196msgid ""
6281"In a <classname>ColumnView</classname>, get the <classname>ColumnViewSorter</"6197"In a <classname>ColumnView</classname>, get the <classname>ColumnViewSorter</"
6282"classname> from the <classname>ColumnView</classname> and set it to the "6198"classname> from the <classname>ColumnView</classname> and set it to the "
6283"<classname>SortListModel</classname>. Set a <classname>Sorter</classname> to "6199"<classname>SortListModel</classname>. Set a <classname>Sorter</classname> to "
6284"each <classname>ColumnViewColumn</classname>. Then the user of your app can "6200"each <classname>ColumnViewColumn</classname>. Then the user of your app can "
6285"sort the items by clicking on a column heading."6201"sort the items by clicking on a column heading."
6286msgstr ""6202msgstr ""
nn6203"I en <classname>ColumnView</classname> hämtar du "
6204"<classname>ColumnViewSorter</classname> från denna <classname>ColumnView</"
6205"classname> och ställer in den till <classname>SortListModel</classname>-"
6206"modellen. Ställ in en <classname>Sorter</classname> för varje "
6207"<classname>ColumnViewColumn</classname>. Användaren av ditt program kan "
6208"sedan sortera objekten genom att klicka på en kolumnrubrik."
62876209
6288#. (itstool) path: listitem/para6210#. (itstool) path: listitem/para
6289#: C/index-in.docbook:25576211#: C/index-in.docbook:2557
6290#, fuzzy6212#, fuzzy
6291#| msgid ""6213#| msgid ""
6295msgid ""6217msgid ""
6296"In any view, set a <classname>Sorter</classname> such as a "6218"In any view, set a <classname>Sorter</classname> such as a "
6297"<classname>StringSorter</classname> or a <classname>NumericSorter</"6219"<classname>StringSorter</classname> or a <classname>NumericSorter</"
6298"classname> to the <classname>SortListModel</classname>."6220"classname> to the <classname>SortListModel</classname>."
6299msgstr ""6221msgstr ""
n6300"Som nämns ovan har varje <classname>TextView</classname> en "n6222"Ställ i valfri vy in en <classname>Sorter</classname> som en "
6301"<classname>TextBuffer</classname>, och en eller flera <classname>TextView</"6223"<classname>StringSorter</classname> eller en <classname>NumericSorter</"
6302"classname> kan dela på samma <classname>TextBuffer</classname>."6224"classname> till <classname>SortListModel</classname>-modellen."
63036225
6304#. (itstool) path: section/para6226#. (itstool) path: section/para
6305#: C/index-in.docbook:25626227#: C/index-in.docbook:2562
n6306#, fuzzyn
6307#| msgid ""
6308#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6309#| "classGtk_1_1TreeModel.html\">Reference</link>"
6310msgid ""6228msgid ""
6311"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6229"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6312"classGtk_1_1SortListModel.html\">SortListModel Reference</link>"6230"classGtk_1_1SortListModel.html\">SortListModel Reference</link>"
6313msgstr ""6231msgstr ""
6314"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6232"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n6315"classGtk_1_1TreeModel.html\">Referens</link>"n6233"classGtk_1_1SortListModel.html\">Referens för SortListModel</link>"
63166234
6317#. (itstool) path: section/para6235#. (itstool) path: section/para
6318#: C/index-in.docbook:25636236#: C/index-in.docbook:2563
n6319#, fuzzyn
6320#| msgid ""
6321#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6322#| "classGtk_1_1TreeSortable.html\">TreeSortable Reference</link>"
6323msgid ""6237msgid ""
6324"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6238"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6325"classGtk_1_1StringSorter.html\">StringSorter Reference</link>"6239"classGtk_1_1StringSorter.html\">StringSorter Reference</link>"
6326msgstr ""6240msgstr ""
6327"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6241"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n6328"classGtk_1_1TreeSortable.html\">Referens för TreeSortable</link>"n6242"classGtk_1_1StringSorter.html\">Referens för StringSorter</link>"
63296243
6330#. (itstool) path: section/para6244#. (itstool) path: section/para
6331#: C/index-in.docbook:25646245#: C/index-in.docbook:2564
n6332#, fuzzyn
6333#| msgid ""
6334#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6335#| "classGtk_1_1TreeSortable.html\">TreeSortable Reference</link>"
6336msgid ""6246msgid ""
6337"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6247"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6338"classGtk_1_1NumericSorter.html\">NumericSorter Reference</link>"6248"classGtk_1_1NumericSorter.html\">NumericSorter Reference</link>"
6339msgstr ""6249msgstr ""
6340"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6250"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n6341"classGtk_1_1TreeSortable.html\">Referens för TreeSortable</link>"n6251"classGtk_1_1NumericSorter.html\">Referens för NumericSorter</link>"
63426252
6343#. (itstool) path: figure/title6253#. (itstool) path: figure/title
6344#: C/index-in.docbook:25706254#: C/index-in.docbook:2570
6345msgid "SortListModel"6255msgid "SortListModel"
n6346msgstr ""n6256msgstr "SortListModel"
63476257
6348#. (itstool) path: imageobject/imagedata6258#. (itstool) path: imageobject/imagedata
6349#. This is a reference to an external file such as an image or video. When6259#. This is a reference to an external file such as an image or video. When
6350#. the file changes, the md5 hash will change to let you know you need to6260#. the file changes, the md5 hash will change to let you know you need to
6351#. update your localized copy. The msgstr is not used at all. Set it to6261#. update your localized copy. The msgstr is not used at all. Set it to
6355msgctxt "_"6265msgctxt "_"
6356msgid ""6266msgid ""
6357"external ref='figures/listmodel_sort.png' "6267"external ref='figures/listmodel_sort.png' "
6358"md5='9f6ee5fc4c2f03172fefc8027d97063e'"6268"md5='9f6ee5fc4c2f03172fefc8027d97063e'"
6359msgstr ""6269msgstr ""
n6360"external ref='figures/treeview_list.png' "n6270"external ref='figures/listmodel_sort.png' "
6361"md5='60e5e4ecb284d0cdc53373fe0ec858ee'"6271"md5='9f6ee5fc4c2f03172fefc8027d97063e'"
63626272
6363#. (itstool) path: section/para6273#. (itstool) path: section/para
6364#: C/index-in.docbook:25766274#: C/index-in.docbook:2576
n6365#, fuzzyn
6366#| msgid ""
6367#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
6368#| "tree/master/examples/book/textview/\">Source Code</link>"
6369msgid ""6275msgid ""
6370"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6276"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
6371"master/examples/book/listmodelviews/sort\">Source Code</link>"6277"master/examples/book/listmodelviews/sort\">Source Code</link>"
6372msgstr ""6278msgstr ""
6373"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6279"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n6374"master/examples/book/textview/\">Källkod</link>"n6280"master/examples/book/listmodelviews/sort\">Källkod</link>"
63756281
6376#. (itstool) path: section/title6282#. (itstool) path: section/title
6377#: C/index-in.docbook:25826283#: C/index-in.docbook:2582
n6378#, fuzzyn
6379#| msgid "Filtering Files"
6380msgid "Filtering"6284msgid "Filtering"
n6381msgstr "Filtrera filer"n6285msgstr "Filtrering"
63826286
6383#. (itstool) path: section/para6287#. (itstool) path: section/para
6384#: C/index-in.docbook:25846288#: C/index-in.docbook:2584
6385#, fuzzy6289#, fuzzy
nn6290#| msgid ""
6291#| "<classname>Gtk::Style</classname> and <classname>Gtk::Rc</classname> were "
6292#| "removed, replaced by <classname>Gtk::StyleContext</classname>, and "
6293#| "<classname>Gtk::StyleProvider</classname>s, such as <classname>Gtk::"
6294#| "CssProvider</classname>."
6386msgid ""6295msgid ""
6387"The list can be filtered by wrapping it in a <classname>FilterListModel</"6296"The list can be filtered by wrapping it in a <classname>FilterListModel</"
6388"classname>. Set a <classname>Filter</classname> such as a "6297"classname>. Set a <classname>Filter</classname> such as a "
6389"<classname>StringFilter</classname> or a <classname>BoolFilter</classname> "6298"<classname>StringFilter</classname> or a <classname>BoolFilter</classname> "
6390"to the <classname>FilterListModel</classname>."6299"to the <classname>FilterListModel</classname>."
6391msgstr ""6300msgstr ""
6392"<classname>Gtk::Style</classname> och <classname>Gtk::Rc</classname> togs "6301"<classname>Gtk::Style</classname> och <classname>Gtk::Rc</classname> togs "
6393"bort, ersatta av <classname>Gtk::StyleContext</classname> och olika "6302"bort, ersatta av <classname>Gtk::StyleContext</classname> och olika "
n6394"<classname>Gtk::StyleProvider</classname>, som <classname>Gtk::CssProvider</"n6303"<classname>Gtk::StyleProvider</classname>-klasser, som <classname>Gtk::"
6395"classname>."6304"CssProvider</classname>."
63966305
6397#. (itstool) path: section/para6306#. (itstool) path: section/para
6398#: C/index-in.docbook:25906307#: C/index-in.docbook:2590
n6399#, fuzzyn
6400#| msgid ""
6401#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6402#| "classGtk_1_1FileDialog.html\">FileDialog Reference</link>"
6403msgid ""6308msgid ""
6404"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6309"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6405"classGtk_1_1FilterListModel.html\">FilterListModel Reference</link>"6310"classGtk_1_1FilterListModel.html\">FilterListModel Reference</link>"
6406msgstr ""6311msgstr ""
6407"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6312"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n6408"classGtk_1_1FileDialog.html\">FileDialog-referens</link>"n6313"classGtk_1_1FilterListModel.html\">Referens för FilterListModel</link>"
64096314
6410#. (itstool) path: section/para6315#. (itstool) path: section/para
6411#: C/index-in.docbook:25916316#: C/index-in.docbook:2591
n6412#, fuzzyn
6413#| msgid ""
6414#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6415#| "classGtk_1_1Widget.html\">Widget Reference</link>"
6416msgid ""6317msgid ""
6417"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6318"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6418"classGtk_1_1StringFilter.html\">StringFilter Reference</link>"6319"classGtk_1_1StringFilter.html\">StringFilter Reference</link>"
6419msgstr ""6320msgstr ""
6420"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6321"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n6421"classGtk_1_1Widget.html\">Widget-referens</link>"n6322"classGtk_1_1StringFilter.html\">Referens för StringFilter</link>"
64226323
6423#. (itstool) path: section/para6324#. (itstool) path: section/para
6424#: C/index-in.docbook:25926325#: C/index-in.docbook:2592
n6425#, fuzzyn
6426#| msgid ""
6427#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6428#| "classGtk_1_1Tooltip.html\">Tooltip Reference</link>"
6429msgid ""6326msgid ""
6430"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6327"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6431"classGtk_1_1BoolFilter.html\">BoolFilter Reference</link>"6328"classGtk_1_1BoolFilter.html\">BoolFilter Reference</link>"
6432msgstr ""6329msgstr ""
6433"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6330"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n6434"classGtk_1_1Tooltip.html\">Tooltip-referens</link>"n6331"classGtk_1_1BoolFilter.html\">Referens för BoolFilter</link>"
64356332
6436#. (itstool) path: figure/title6333#. (itstool) path: figure/title
6437#: C/index-in.docbook:25986334#: C/index-in.docbook:2598
6438msgid "FilterListModel"6335msgid "FilterListModel"
n6439msgstr ""n6336msgstr "FilterListModel"
64406337
6441#. (itstool) path: imageobject/imagedata6338#. (itstool) path: imageobject/imagedata
6442#. This is a reference to an external file such as an image or video. When6339#. This is a reference to an external file such as an image or video. When
6443#. the file changes, the md5 hash will change to let you know you need to6340#. the file changes, the md5 hash will change to let you know you need to
6444#. update your localized copy. The msgstr is not used at all. Set it to6341#. update your localized copy. The msgstr is not used at all. Set it to
6448msgctxt "_"6345msgctxt "_"
6449msgid ""6346msgid ""
6450"external ref='figures/listmodel_filter.png' "6347"external ref='figures/listmodel_filter.png' "
6451"md5='b1407e88c99b90c2ad7698ce30a46a1e'"6348"md5='b1407e88c99b90c2ad7698ce30a46a1e'"
6452msgstr ""6349msgstr ""
n6453"external ref='figures/recentfiles.png' md5='2ca280c98b5c8822ad48ca40f7ce0bb4'"n6350"external ref='figures/listmodel_filter.png' "
6351"md5='b1407e88c99b90c2ad7698ce30a46a1e'"
64546352
6455#. (itstool) path: section/para6353#. (itstool) path: section/para
6456#: C/index-in.docbook:26046354#: C/index-in.docbook:2604
n6457#, fuzzyn
6458#| msgid ""
6459#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
6460#| "tree/master/examples/book/textview/\">Source Code</link>"
6461msgid ""6355msgid ""
6462"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6356"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
6463"master/examples/book/listmodelviews/filter\">Source Code</link>"6357"master/examples/book/listmodelviews/filter\">Source Code</link>"
6464msgstr ""6358msgstr ""
6465"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6359"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n6466"master/examples/book/textview/\">Källkod</link>"n6360"master/examples/book/listmodelviews/filter\">Källkod</link>"
64676361
6468#. (itstool) path: section/title6362#. (itstool) path: section/title
6469#: C/index-in.docbook:26106363#: C/index-in.docbook:2610
n6470#, fuzzyn
6471#| msgid "Applying Tags"
6472msgid "Displaying Trees"6364msgid "Displaying Trees"
n6473msgstr "Tillämpa taggar"n6365msgstr "Visa träd"
64746366
6475#. (itstool) path: section/para6367#. (itstool) path: section/para
6476#: C/index-in.docbook:26126368#: C/index-in.docbook:2612
nn6369#, fuzzy
6477msgid ""6370msgid ""
6478"While the deprecated <classname>TreeView</classname> provided built-in "6371"While the deprecated <classname>TreeView</classname> provided built-in "
6479"support for trees, the list widgets, and in particular <classname>Gio::"6372"support for trees, the list widgets, and in particular <classname>Gio::"
6480"ListModel</classname>, do not. However, <application>gtkmm</application> "6373"ListModel</classname>, do not. However, <application>gtkmm</application> "
6481"provides functionality to make trees look and behave like lists for the "6374"provides functionality to make trees look and behave like lists for the "
6482"people who still want to display lists. This is achieved by using the "6375"people who still want to display lists. This is achieved by using the "
6483"<classname>TreeListModel</classname> to flatten a tree into a list. The "6376"<classname>TreeListModel</classname> to flatten a tree into a list. The "
6484"<classname>TreeExpander</classname> widget can then be used inside a "6377"<classname>TreeExpander</classname> widget can then be used inside a "
6485"listitem to allow users to expand and collapse rows."6378"listitem to allow users to expand and collapse rows."
6486msgstr ""6379msgstr ""
nn6380"Medan den föråldrade <classname>TreeView</classname> tillhandahöll inbyggt "
6381"stöd för träd så gör listkomponenterna, och i synnerhet <classname>Gio::"
6382"ListModel</classname>, inte det. <application>gtkmm</application> "
6383"tillhandahåller dock funktionalitet för att få träd att se ut och uppföra "
6384"sig som listor för de som fortfarande vill visa listor. Detta åstadkoms "
6385"genom att använda <classname>TreeListModel</classname>-modellen för att "
6386"platta ut ett träd till en lista. <classname>TreeExpander</classname>-"
6387"komponenten kan sedan användas inuti ett listobjekt för att låta användare "
6388"expandera och fälla ihop rader."
64876389
6488#. (itstool) path: section/para6390#. (itstool) path: section/para
6489#: C/index-in.docbook:26226391#: C/index-in.docbook:2622
n6490#, fuzzyn
6491#| msgid ""
6492#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6493#| "classGtk_1_1TreeModelSort.html\">TreeModelSort Reference</link>"
6494msgid ""6392msgid ""
6495"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6393"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6496"classGtk_1_1TreeListModel.html\">TreeListModel Reference</link>"6394"classGtk_1_1TreeListModel.html\">TreeListModel Reference</link>"
6497msgstr ""6395msgstr ""
6498"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6396"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n6499"classGtk_1_1TreeModelSort.html\">Referens för TreeModelSort</link>"n6397"classGtk_1_1TreeListModel.html\">Referens för TreeListModel</link>"
65006398
6501#. (itstool) path: section/para6399#. (itstool) path: section/para
6502#: C/index-in.docbook:26236400#: C/index-in.docbook:2623
n6503#, fuzzyn
6504#| msgid ""
6505#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6506#| "classGtk_1_1TreeModelSort.html\">TreeModelSort Reference</link>"
6507msgid ""6401msgid ""
6508"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6402"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
6509"classGtk_1_1TreeExpander.html\">TreeExpander Reference</link>"6403"classGtk_1_1TreeExpander.html\">TreeExpander Reference</link>"
6510msgstr ""6404msgstr ""
6511"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"6405"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n6512"classGtk_1_1TreeModelSort.html\">Referens för TreeModelSort</link>"n6406"classGtk_1_1TreeExpander.html\">Referens för TreeExpander</link>"
65136407
6514#. (itstool) path: figure/title6408#. (itstool) path: figure/title
6515#: C/index-in.docbook:26296409#: C/index-in.docbook:2629
n6516#, fuzzyn
6517msgid "TreeListModel"6410msgid "TreeListModel"
n6518msgstr "Modellen"n6411msgstr "TreeListModel"
65196412
6520#. (itstool) path: imageobject/imagedata6413#. (itstool) path: imageobject/imagedata
6521#. This is a reference to an external file such as an image or video. When6414#. This is a reference to an external file such as an image or video. When
6522#. the file changes, the md5 hash will change to let you know you need to6415#. the file changes, the md5 hash will change to let you know you need to
6523#. update your localized copy. The msgstr is not used at all. Set it to6416#. update your localized copy. The msgstr is not used at all. Set it to
6527msgctxt "_"6420msgctxt "_"
6528msgid ""6421msgid ""
6529"external ref='figures/listmodel_tree.png' "6422"external ref='figures/listmodel_tree.png' "
6530"md5='656307ee78c8fd9ac379f2a0d01b8a81'"6423"md5='656307ee78c8fd9ac379f2a0d01b8a81'"
6531msgstr ""6424msgstr ""
n6532"external ref='figures/notebook.png' md5='b46c25388d4c250b0ab737f71f82d81b'"n6425"external ref='figures/listmodel_tree.png' "
6426"md5='656307ee78c8fd9ac379f2a0d01b8a81'"
65336427
6534#. (itstool) path: section/para6428#. (itstool) path: section/para
6535#: C/index-in.docbook:26356429#: C/index-in.docbook:2635
n6536#, fuzzyn
6537#| msgid ""
6538#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
6539#| "tree/master/examples/book/listmodelviews/gridview\">Source Code, "
6540#| "GridView</link>"
6541msgid ""6430msgid ""
6542"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6431"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
6543"master/examples/book/listmodelviews/tree_columnview\">Source Code</link>"6432"master/examples/book/listmodelviews/tree_columnview\">Source Code</link>"
6544msgstr ""6433msgstr ""
6545"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6434"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n6546"master/examples/book/listmodelviews/gridview\">Källkod, GridView</link>"n6435"master/examples/book/listmodelviews/tree_columnview\">Källkod</link>"
65476436
6548#. (itstool) path: chapter/title6437#. (itstool) path: chapter/title
6549#: C/index-in.docbook:26436438#: C/index-in.docbook:2643
6550msgid "The TreeView widget"6439msgid "The TreeView widget"
6551msgstr "TreeView-komponenten"6440msgstr "TreeView-komponenten"
65526441
6553#. (itstool) path: note/para6442#. (itstool) path: note/para
6554#: C/index-in.docbook:26456443#: C/index-in.docbook:2645
n6555#, fuzzyn
6556#| msgid ""
6557#| "The <classname>FileChooserDialog</classname> (deprecated since "
6558#| "<application>gtkmm</application> 4.10) and <classname>FileDialog</"
6559#| "classname> (available since <application>gtkmm</application> 4.10) are "
6560#| "suitable for use with \"Open\" or \"Save\" menu items."
6561msgid ""6444msgid ""
6562"<classname>Gtk::TreeView</classname> is deprecated since <application>gtkmm</"6445"<classname>Gtk::TreeView</classname> is deprecated since <application>gtkmm</"
6563"application> 4.10. In new code, use <classname>Gtk::ListView</classname> for "6446"application> 4.10. In new code, use <classname>Gtk::ListView</classname> for "
6564"lists and <classname>Gtk::ColumnView</classname> for tabular lists."6447"lists and <classname>Gtk::ColumnView</classname> for tabular lists."
6565msgstr ""6448msgstr ""
n6566"<classname>FileChooserDialog</classname> (föråldrad sedan "n6449"<classname>Gtk::TreeView</classname> är föråldrad sedan <application>gtkmm</"
6567"<application>gtkmm</application> 4.10) och <classname>FileDialog</classname> "6450"application> 4.10. Använd i ny kod <classname>Gtk::ListView</classname> för "
6568"(tillgänglig sedan <application>gtkmm</application> 4.10) är lämpliga för "6451"listor och <classname>Gtk::ColumnView</classname> för tabellistor."
6569"användning med menyobjekten ”Öppna” eller ”Spara”."
65706452
6571#. (itstool) path: chapter/para6453#. (itstool) path: chapter/para
6572#: C/index-in.docbook:26506454#: C/index-in.docbook:2650
6573msgid ""6455msgid ""
6574"The <classname>Gtk::TreeView</classname> widget can contain lists or trees "6456"The <classname>Gtk::TreeView</classname> widget can contain lists or trees "
6577"Komponenten <classname>Gtk::TreeView</classname> kan innehålla listor eller "6459"Komponenten <classname>Gtk::TreeView</classname> kan innehålla listor eller "
6578"träd med data i kolumner."6460"träd med data i kolumner."
65796461
6580#. (itstool) path: section/title6462#. (itstool) path: section/title
6581#: C/index-in.docbook:26566463#: C/index-in.docbook:2656
n6582#, fuzzyn
6583msgid "The Model"6464msgid "The Model"
6584msgstr "Modellen"6465msgstr "Modellen"
65856466
6586#. (itstool) path: section/para6467#. (itstool) path: section/para
6587#: C/index-in.docbook:26586468#: C/index-in.docbook:2658
7914msgid "Drag and Drop"7795msgid "Drag and Drop"
7915msgstr "Dra och släpp"7796msgstr "Dra och släpp"
79167797
7917#. (itstool) path: section/para7798#. (itstool) path: section/para
7918#: C/index-in.docbook:31977799#: C/index-in.docbook:3197
n7919#, fuzzyn
7920msgid ""7800msgid ""
7921"<classname>Gtk::TreeView</classname> already implements simple drag-and-drop "7801"<classname>Gtk::TreeView</classname> already implements simple drag-and-drop "
7922"when used with the <classname>Gtk::ListStore</classname> or <classname>Gtk::"7802"when used with the <classname>Gtk::ListStore</classname> or <classname>Gtk::"
7923"TreeStore</classname> models (since gtk 4.8). If necessary, it also allows "7803"TreeStore</classname> models (since gtk 4.8). If necessary, it also allows "
7924"you to implement more complex behavior when items are dragged and dropped, "7804"you to implement more complex behavior when items are dragged and dropped, "
7925"using the normal <link linkend=\"chapter-draganddrop\">Drag and Drop</link> "7805"using the normal <link linkend=\"chapter-draganddrop\">Drag and Drop</link> "
7926"API."7806"API."
7927msgstr ""7807msgstr ""
7928"<classname>Gtk::TreeView</classname> implementerar redan enkelt dra-och-"7808"<classname>Gtk::TreeView</classname> implementerar redan enkelt dra-och-"
7929"släpp när den används med <classname>Gtk::ListStore</classname>- eller "7809"släpp när den används med <classname>Gtk::ListStore</classname>- eller "
n7930"<classname>Gtk::TreeStore</classname>-modellerna. Om nödvändigt låter den "n7810"<classname>Gtk::TreeStore</classname>-modellerna (sedan gtk 4.8). Om "
7931"dig också implementera mer komplext beteende när objekt dras och släpps, med "7811"nödvändigt låter den dig också implementera mer komplext beteende när objekt "
7932"det vanliga <link linkend=\"chapter-draganddrop\">Dra och släpp</link>-API:t."7812"dras och släpps, med det vanliga <link linkend=\"chapter-draganddrop\">Dra "
7813"och släpp</link>-API:t."
79337814
7934#. (itstool) path: section/title7815#. (itstool) path: section/title
7935#: C/index-in.docbook:32067816#: C/index-in.docbook:3206
7936#, fuzzy7817#, fuzzy
7937msgid "Reorderable rows"7818msgid "Reorderable rows"
7973"tillåta eller förbjuda dragning eller släppning genom att returnera "7854"tillåta eller förbjuda dragning eller släppning genom att returnera "
7974"<literal>true</literal> eller <literal>false</literal>."7855"<literal>true</literal> eller <literal>false</literal>."
79757856
7976#. (itstool) path: section/para7857#. (itstool) path: section/para
7977#: C/index-in.docbook:32207858#: C/index-in.docbook:3220
n7978#, fuzzyn
7979msgid "This is demonstrated in the drag_and_drop example."7859msgid "This is demonstrated in the drag_and_drop example."
7980msgstr "Detta demonstreras i dra-och-släpp-exemplet."7860msgstr "Detta demonstreras i dra-och-släpp-exemplet."
79817861
7982#. (itstool) path: section/title7862#. (itstool) path: section/title
7983#: C/index-in.docbook:3226 C/index-in.docbook:33367863#: C/index-in.docbook:3226 C/index-in.docbook:3336
8271"<classname>Entry</classname>, som låter användaren mata in godtycklig text "8151"<classname>Entry</classname>, som låter användaren mata in godtycklig text "
8272"om inget av de tillgängliga valen passar."8152"om inget av de tillgängliga valen passar."
82738153
8274#. (itstool) path: chapter/para8154#. (itstool) path: chapter/para
8275#: C/index-in.docbook:33738155#: C/index-in.docbook:3373
n8276#, fuzzyn
8277msgid ""8156msgid ""
8278"The list is provided via a <classname>Gio::ListModel</classname>, and data "8157"The list is provided via a <classname>Gio::ListModel</classname>, and data "
8279"from this model is added to the <classname>DropDown</classname>'s view with "8158"from this model is added to the <classname>DropDown</classname>'s view with "
8280"signal handlers connected to a <classname>SignalListItemFactory</classname>. "8159"signal handlers connected to a <classname>SignalListItemFactory</classname>. "
8281"This provides flexibility, but the <classname>StringList</classname> class "8160"This provides flexibility, but the <classname>StringList</classname> class "
8282"provides a simpler text-based specialization in case that flexibility is not "8161"provides a simpler text-based specialization in case that flexibility is not "
8283"required."8162"required."
8284msgstr ""8163msgstr ""
n8285"Listan tillhandahålls via en <classname>TreeModel</classname>, och kolumner "n8164"Listan tillhandahålls via en <classname>Gio::ListModel</classname>, och data "
8286"från denna modell läggs till vyn för ComboBox-komponenten med metoden "8165"från denna modell läggs till vyn för <classname>DropDown</classname>-"
8287"<methodname>ComboBox::pack_start()</methodname>. Detta tillhandahåller "8166"komponenten med signalhanterare anslutna till en "
8288"flexibilitet och typsäkerhet under kompilering, men <classname>ComboBoxText</"8167"<classname>SignalListItemFactory</classname>. Detta tillhandahåller "
8289"classname>-klassen tillhandahåller en enklare textbaserad specialisering om "8168"flexibilitet, men <classname>StringList</classname>-klassen tillhandahåller "
8290"den flexibiliteten inte behövs."8169"en enklare textbaserad specialisering om den flexibiliteten inte behövs."
82918170
8292#. (itstool) path: chapter/para8171#. (itstool) path: chapter/para
8293#: C/index-in.docbook:33808172#: C/index-in.docbook:3380
8294msgid ""8173msgid ""
8295"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"8174"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
8304msgstr "Modellen"8183msgstr "Modellen"
83058184
8306#. (itstool) path: section/para8185#. (itstool) path: section/para
8307#: C/index-in.docbook:33858186#: C/index-in.docbook:3385
8308#, fuzzy8187#, fuzzy
n8309#| msgid ""n
8310#| "The model for a ComboBox can be defined and filled exactly as for a "
8311#| "<classname>TreeView</classname>. For instance, you might derive a "
8312#| "ComboBox class with one integer and one text column, like so:"
8313msgid ""8188msgid ""
8314"The model for a <classname>DropDown</classname> can be defined and filled "8189"The model for a <classname>DropDown</classname> can be defined and filled "
8315"exactly as for a <classname>ListView</classname> or a <classname>ColumnView</"8190"exactly as for a <classname>ListView</classname> or a <classname>ColumnView</"
8316"classname>. It must be a subclass of <classname>Glib::Object</classname>. "8191"classname>. It must be a subclass of <classname>Glib::Object</classname>. "
8317"For instance, you might have a <classname>DropDown</classname> with one "8192"For instance, you might have a <classname>DropDown</classname> with one "
8318"integer and one text column, like so:"8193"integer and one text column, like so:"
8319msgstr ""8194msgstr ""
n8320"Modellen för en ComboBox kan definieras och fyllas i exakt som för en "n8195"Modellen för en <classname>DropDown</classname> kan definieras och fyllas i "
8321"<classname>TreeView</classname>. Exempelvis kan du härleda en ComboBox med "8196"exakt som för en <classname>ListView</classname> eller en "
8322"ett heltal och en textkolumn, så här:"8197"<classname>ColumnView</classname>. Den måste vara en underklass till "
8198"<classname>Glib::Object</classname>. Exempelvis kan du ha en "
8199"<classname>DropDown</classname> med ett heltal och en textkolumn, så här:"
83238200
8324#. (itstool) path: section/para8201#. (itstool) path: section/para
8325#: C/index-in.docbook:34138202#: C/index-in.docbook:3413
8326#, fuzzy8203#, fuzzy
8327msgid ""8204msgid ""
8360"get the selected data from the model. For instance, you might read an "8237"get the selected data from the model. For instance, you might read an "
8361"integer ID value from the model, even though you have chosen only to show "8238"integer ID value from the model, even though you have chosen only to show "
8362"the human-readable description in the <classname>DropDown</classname>. For "8239"the human-readable description in the <classname>DropDown</classname>. For "
8363"instance:"8240"instance:"
8364msgstr ""8241msgstr ""
n8365"För att upptäcka vilket objekt, om något, som användaren har valt från en "n8242"För att upptäcka vilket objekt, om något, som användaren har valt från vår "
8366"ComboBox, anropa <methodname>ComboBox::get_active()</methodname>. "8243"<classname>DropDown</classname>, anropa <methodname>DropDown::"
8367"Detta<classname>TreeModel::iterator</classname> returnerar en som du kan "8244"get_selected()</methodname>. Detta returnerar en <type>unsigned int</type> "
8368"dereferera till en <classname>Row</classname> för att läsa värdena i dina "8245"som du kan använda för att få valda data från modellen. Exempelvis kanske du "
8369"kolumner. Exempelvis kanske du läser ett heltals-ID-värde från modellen, "8246"läser ett heltals-ID-värde från modellen, även om du valt att bara visa den "
8370"även om du valt att bara visa den mänskligt läsbara beskrivningen i vår "8247"mänskligt läsbara beskrivningen i vår <classname>DropDown</classname>. Till "
8371"ComboBox. Till exempel:"8248"exempel:"
83728249
8373#. (itstool) path: section/programlisting8250#. (itstool) path: section/programlisting
8374#: C/index-in.docbook:34338251#: C/index-in.docbook:3433
8375#, fuzzy, no-wrap8252#, fuzzy, no-wrap
8376msgid ""8253msgid ""
8407"You might need to react to every change of selection in the "8284"You might need to react to every change of selection in the "
8408"<classname>DropDown</classname>, for instance to update other widgets. To do "8285"<classname>DropDown</classname>, for instance to update other widgets. To do "
8409"so, you should connect to <methodname>property_selected().signal_changed()</"8286"so, you should connect to <methodname>property_selected().signal_changed()</"
8410"methodname>. For instance:"8287"methodname>. For instance:"
8411msgstr ""8288msgstr ""
n8412"Du behöver reagera på varje ändring av val i vår ComboBox, till exempel för "n8289"Du kan behöva reagera på varje ändring av val i vår <classname>DropDown</"
8413"att uppdatera andra komponenter. För att göra så bör du hantera signalen "8290"classname>, till exempel för att uppdatera andra komponenter. För att göra "
8414"<literal>changed</literal>. Till exempel:"8291"så bör du ansluta till <methodname>property_selected().signal_changed()</"
8292"methodname>. Till exempel:"
84158293
8416#. (itstool) path: section/programlisting8294#. (itstool) path: section/programlisting
8417#: C/index-in.docbook:34528295#: C/index-in.docbook:3452
8418#, fuzzy, no-wrap8296#, fuzzy, no-wrap
8419#| msgid ""8297#| msgid ""
8471msgid ""8349msgid ""
8472"The dropdown menu may contain an <classname>Entry</classname> that allows to "8350"The dropdown menu may contain an <classname>Entry</classname> that allows to "
8473"search for items in the list. Call <methodname>set_enable_search()</"8351"search for items in the list. Call <methodname>set_enable_search()</"
8474"methodname> and <methodname>set_expression()</methodname>. For instance:"8352"methodname> and <methodname>set_expression()</methodname>. For instance:"
8475msgstr ""8353msgstr ""
n8476"Rullgardinsmeny kan innehålla ett <classname>Entry</classname> som tillåter "n8354"Rullgardinsmenyn kan innehålla ett <classname>Entry</classname> som tillåter "
8477"sökning efter objekt i listan. Anropa <methodname>set_enable_search()</"8355"sökning efter objekt i listan. Anropa <methodname>set_enable_search()</"
8478"methodname> och <methodname>set_expression()</methodname>. Till exempel:"8356"methodname> och <methodname>set_expression()</methodname>. Till exempel:"
84798357
8480#. (itstool) path: section/programlisting8358#. (itstool) path: section/programlisting
8481#: C/index-in.docbook:34778359#: C/index-in.docbook:3477
8561msgid "Font Example"8439msgid "Font Example"
8562msgstr "Typsnittsexempel"8440msgstr "Typsnittsexempel"
85638441
8564#. (itstool) path: section/para8442#. (itstool) path: section/para
8565#: C/index-in.docbook:35068443#: C/index-in.docbook:3506
n8566#, fuzzyn
8567#| msgid ""
8568#| "<classname>Gtk::Button</classname>, <classname>Gtk::ToolButton</"
8569#| "classname>, <classname>Gtk::MenuItem</classname> and <classname>Gtk::"
8570#| "Switch</classname> implement the <classname>Gtk::Actionable</classname> "
8571#| "interface instead of the removed <classname>Gtk::Activatable</classname> "
8572#| "interface."
8573msgid ""8444msgid ""
8574"This example uses a <classname>Pango::FontMap</classname> as its model. This "8445"This example uses a <classname>Pango::FontMap</classname> as its model. This "
8575"is possible because <classname>Pango::FontMap</classname> implements the "8446"is possible because <classname>Pango::FontMap</classname> implements the "
8576"<classname>Gio::ListModel</classname> interface. Of course you can use a "8447"<classname>Gio::ListModel</classname> interface. Of course you can use a "
8577"<classname>FontDialogButton</classname> instead."8448"<classname>FontDialogButton</classname> instead."
8578msgstr ""8449msgstr ""
n8579"<classname>Gtk::Button</classname>, <classname>Gtk::ToolButton</classname>, "n8450"Detta exempel använder en <classname>Pango::FontMap</classname> som sin "
8580"<classname>Gtk::MenuItem</classname> och <classname>Gtk::Switch</classname> "8451"modell. Detta är möjligt för att <classname>Pango::FontMap</classname> "
8581"implementerar <classname>Gtk::Actionable</classname>-gränssnittet i stället "8452"implementerar <classname>Gio::ListModel</classname>-gränssnittet. Du kan "
8582"för det borttagna <classname>Gtk::Activatable</classname>-gränssnittet."8453"förstås använda en <classname>FontDialogButton</classname> i stället."
85838454
8584#. (itstool) path: figure/title8455#. (itstool) path: figure/title
8585#: C/index-in.docbook:3513 C/index-in.docbook:35328456#: C/index-in.docbook:3513 C/index-in.docbook:3532
8586msgid "Search Font"8457msgid "Search Font"
8587msgstr "Sök typsnitt"8458msgstr "Sök typsnitt"
8655msgid "Combo Boxes"8526msgid "Combo Boxes"
8656msgstr "Kombinationsrutor"8527msgstr "Kombinationsrutor"
86578528
8658#. (itstool) path: note/para8529#. (itstool) path: note/para
8659#: C/index-in.docbook:35458530#: C/index-in.docbook:3545
n8660#, fuzzyn
8661#| msgid ""
8662#| "<classname>Gdk::DrawContext</classname> and <classname>Gdk::CairoContext</"
8663#| "classname> are new. <classname>Gdk::DrawingContext</classname> has been "
8664#| "removed."
8665msgid ""8531msgid ""
8666"<classname>Gtk::ComboBox</classname> and <classname>Gtk::ComboBoxText</"8532"<classname>Gtk::ComboBox</classname> and <classname>Gtk::ComboBoxText</"
8667"classname> are deprecated since <application>gtkmm</application> 4.10. Use "8533"classname> are deprecated since <application>gtkmm</application> 4.10. Use "
8668"<classname>Gtk::DropDown</classname> in new code."8534"<classname>Gtk::DropDown</classname> in new code."
8669msgstr ""8535msgstr ""
n8670"<classname>Gdk::DrawContext</classname> och <classname>Gdk::CairoContext</"n8536"<classname>Gtk::ComboBox</classname> och <classname>Gtk::ComboBoxText</"
8671"classname> är nya. <classname>Gdk::DrawingContext</classname> har tagits "8537"classname> är föråldrade sedan <application>gtkmm</application> 4.10. Använd "
8672"bort."8538"<classname>Gtk::DropDown</classname> i ny kod."
86738539
8674#. (itstool) path: chapter/para8540#. (itstool) path: chapter/para
8675#: C/index-in.docbook:35498541#: C/index-in.docbook:3549
8676msgid ""8542msgid ""
8677"The <classname>ComboBox</classname> widget offers a list (or tree) of "8543"The <classname>ComboBox</classname> widget offers a list (or tree) of "
8690"<classname>Entry</classname>, som låter användaren mata in godtycklig text "8556"<classname>Entry</classname>, som låter användaren mata in godtycklig text "
8691"om inget av de tillgängliga valen passar."8557"om inget av de tillgängliga valen passar."
86928558
8693#. (itstool) path: chapter/para8559#. (itstool) path: chapter/para
8694#: C/index-in.docbook:35528560#: C/index-in.docbook:3552
n8695#, fuzzyn
8696msgid ""8561msgid ""
8697"The list is provided via a <classname>TreeModel</classname>, and columns "8562"The list is provided via a <classname>TreeModel</classname>, and columns "
8698"from this model are added to the ComboBox's view with the "8563"from this model are added to the ComboBox's view with the "
8699"<methodname>ComboBox::pack_start()</methodname> method. This provides "8564"<methodname>ComboBox::pack_start()</methodname> method. This provides "
8700"flexibility and compile-time type-safety, but the <classname>ComboBoxText</"8565"flexibility and compile-time type-safety, but the <classname>ComboBoxText</"
8800"instance, you might read an integer ID value from the model, even though you "8665"instance, you might read an integer ID value from the model, even though you "
8801"have chosen only to show the human-readable description in the ComboBox. For "8666"have chosen only to show the human-readable description in the ComboBox. For "
8802"instance:"8667"instance:"
8803msgstr ""8668msgstr ""
8804"För att upptäcka vilket objekt, om något, som användaren har valt från en "8669"För att upptäcka vilket objekt, om något, som användaren har valt från en "
n8805"ComboBox, anropa <methodname>ComboBox::get_active()</methodname>. "n8670"ComboBox, anropa <methodname>ComboBox::get_active()</methodname>. Detta "
8806"Detta<classname>TreeModel::iterator</classname> returnerar en som du kan "8671"returnerar en <classname>TreeModel::iterator</classname> som du kan "
8807"dereferera till en <classname>Row</classname> för att läsa värdena i dina "8672"dereferera till en <classname>Row</classname> för att läsa värdena i dina "
8808"kolumner. Exempelvis kanske du läser ett heltals-ID-värde från modellen, "8673"kolumner. Exempelvis kanske du läser ett heltals-ID-värde från modellen, "
8809"även om du valt att bara visa den mänskligt läsbara beskrivningen i vår "8674"även om du valt att bara visa den mänskligt läsbara beskrivningen i vår "
8810"ComboBox. Till exempel:"8675"ComboBox. Till exempel:"
88118676
96489513
9649#. (itstool) path: section/para9514#. (itstool) path: section/para
9650#: C/index-in.docbook:39659515#: C/index-in.docbook:3965
9651#, fuzzy9516#, fuzzy
9652#| msgid ""9517#| msgid ""
n9653#| "Some <classname>TreeView</classname> examples are shown here. There are "n9518#| "Some examples are shown in this chapter. There are more examples in the "
9654#| "more examples in the <link xlink:href=\"https://gitlab.gnome.org/GNOME/"9519#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
9655#| "gtkmm-documentation/tree/master/examples/book/treeview/\">treeview "9520#| "tree/master/examples/book/listmodelviews/\">listmodelviews directory</"
9656#| "directory</link> in <application>gtkmm-documentation</application>'s "9521#| "link> in <application>gtkmm-documentation</application>'s examples."
9657#| "examples."
9658msgid ""9522msgid ""
9659"There is a more complicated example among <link xlink:href=\"https://gitlab."9523"There is a more complicated example among <link xlink:href=\"https://gitlab."
9660"gnome.org/GNOME/gtkmm/tree/master/demos/gtk-demo/example_textview."9524"gnome.org/GNOME/gtkmm/tree/master/demos/gtk-demo/example_textview."
9661"cc\"><application>gtkmm</application>'s demo programs</link>."9525"cc\"><application>gtkmm</application>'s demo programs</link>."
9662msgstr ""9526msgstr ""
n9663"Några <classname>TreeView</classname>-exempel visas här. Det finns mer "n9527"Några exempel visas i detta kapitel. Det finns mer exempel i <link xlink:"
9664"exempel i <link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-"9528"href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/master/"
9665"documentation/tree/master/examples/book/treeview/\">treeview-katalogen</"9529"examples/book/listmodelviews/\">listmodelviews-katalogen</link> i "
9666"link> i <application>gtkmm-documentation</application>s exempel."9530"<application>gtkmm-documentation</application>s exempel."
96679531
9668#. (itstool) path: chapter/title9532#. (itstool) path: chapter/title
9669#: C/index-in.docbook:39739533#: C/index-in.docbook:3973
9670msgid "Menus and Toolbars"9534msgid "Menus and Toolbars"
9671msgstr "Menyer och verktygsfält"9535msgstr "Menyer och verktygsfält"
10814"kunde det vara det anpassade svarsvärdet som du angivit när du använt "10678"kunde det vara det anpassade svarsvärdet som du angivit när du använt "
10815"<methodname>add_button()</methodname>."10679"<methodname>add_button()</methodname>."
1081610680
10817#. (itstool) path: chapter/para10681#. (itstool) path: chapter/para
10818#: C/index-in.docbook:449910682#: C/index-in.docbook:4499
n10819#, fuzzyn
10820msgid ""10683msgid ""
10821"To show the dialog, call <methodname>set_visible(true)</methodname>. If the "10684"To show the dialog, call <methodname>set_visible(true)</methodname>. If the "
10822"same dialog instance will be shown several times, you must also call "10685"same dialog instance will be shown several times, you must also call "
10823"<methodname>set_hide_on_close()</methodname>, or else the dialog will be "10686"<methodname>set_hide_on_close()</methodname>, or else the dialog will be "
10824"destroyed when it's closed. Connect to the <literal>response</literal> "10687"destroyed when it's closed. Connect to the <literal>response</literal> "
10825"signal, if you want to know which button was pressed. The <literal>response</"10688"signal, if you want to know which button was pressed. The <literal>response</"
10826"literal> signal handler is also where you should hide the dialog."10689"literal> signal handler is also where you should hide the dialog."
10827msgstr ""10690msgstr ""
n10828"För att visa dialogrutan, anropa <methodname>show()</methodname>. Om samma "n10691"För att visa dialogrutan, anropa <methodname>set_visible(true)</methodname>. "
10829"dialoginstans kommer visas flera gånger måste du också anropa "10692"Om samma dialoginstans kommer visas flera gånger måste du också anropa "
10830"<methodname>set_hide_on_close()</methodname>, annars kommer dialogrutan "10693"<methodname>set_hide_on_close()</methodname>, annars kommer dialogrutan "
10831"förstöras då den stängs. Anslut till <literal>response</literal>-signalen om "10694"förstöras då den stängs. Anslut till <literal>response</literal>-signalen om "
10832"du vill veta vilken knapp som trycktes på. <literal>response</literal>-"10695"du vill veta vilken knapp som trycktes på. <literal>response</literal>-"
10833"signalhanteraren är också var du ska dölja dialogrutan."10696"signalhanteraren är också var du ska dölja dialogrutan."
1083410697
10942msgid ""10805msgid ""
10943"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10806"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
10944"classGtk_1_1FileDialog.html\">FileDialog Reference</link>"10807"classGtk_1_1FileDialog.html\">FileDialog Reference</link>"
10945msgstr ""10808msgstr ""
10946"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10809"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n10947"classGtk_1_1FileDialog.html\">FileDialog-referens</link>"n10810"classGtk_1_1FileDialog.html\">Referens för FileDialog</link>"
1094810811
n10949# TODO: FileChooseDialog Referencen
10950#. (itstool) path: section/para10812#. (itstool) path: section/para
10951#: C/index-in.docbook:454910813#: C/index-in.docbook:4549
n10952#, fuzzyn
10953#| msgid ""
10954#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
10955#| "classGtk_1_1FileChooserDialog.html\">FileChooserDialogReference</link>"
10956msgid ""10814msgid ""
10957"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10815"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
10958"classGtk_1_1FileChooserDialog.html\">FileChooserDialog Reference</link>"10816"classGtk_1_1FileChooserDialog.html\">FileChooserDialog Reference</link>"
10959msgstr ""10817msgstr ""
10960"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10818"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n10961"classGtk_1_1FileChooserDialog.html\">FileChooserDialog-referens</link>"n10819"classGtk_1_1FileChooserDialog.html\">Referens för FileChooserDialog</link>"
1096210820
10963#. (itstool) path: figure/title10821#. (itstool) path: figure/title
10964#: C/index-in.docbook:455510822#: C/index-in.docbook:4555
10965msgid "FileDialog"10823msgid "FileDialog"
10966msgstr "FileDialog"10824msgstr "FileDialog"
11020msgid ""10878msgid ""
11021"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10879"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
11022"classGtk_1_1ColorDialog.html\">ColorDialog Reference</link>"10880"classGtk_1_1ColorDialog.html\">ColorDialog Reference</link>"
11023msgstr ""10881msgstr ""
11024"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10882"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n11025"classGtk_1_1ColorDialog.html\">ColorDialog-referens</link>"n10883"classGtk_1_1ColorDialog.html\">Referens för ColorDialog</link>"
1102610884
11027#. (itstool) path: section/para10885#. (itstool) path: section/para
11028#: C/index-in.docbook:457610886#: C/index-in.docbook:4576
11029msgid ""10887msgid ""
11030"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10888"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
11031"classGtk_1_1ColorChooserDialog.html\">ColorChooserDialog Reference</link>"10889"classGtk_1_1ColorChooserDialog.html\">ColorChooserDialog Reference</link>"
11032msgstr ""10890msgstr ""
11033"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10891"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n11034"classGtk_1_1ColorChooserDialog.html\">ColorChooserDialog-referens</link>"n10892"classGtk_1_1ColorChooserDialog.html\">Referens för ColorChooserDialog</link>"
1103510893
11036#. (itstool) path: figure/title10894#. (itstool) path: figure/title
11037#: C/index-in.docbook:458210895#: C/index-in.docbook:4582
11038msgid "ColorDialog"10896msgid "ColorDialog"
11039msgstr "ColorDialog"10897msgstr "ColorDialog"
11091msgid ""10949msgid ""
11092"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10950"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
11093"classGtk_1_1FontDialog.html\">FontDialog Reference</link>"10951"classGtk_1_1FontDialog.html\">FontDialog Reference</link>"
11094msgstr ""10952msgstr ""
11095"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10953"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n11096"classGtk_1_1FontDialog.html\">FontDialog-referens</link>"n10954"classGtk_1_1FontDialog.html\">Referens för FontDialog</link>"
1109710955
11098#. (itstool) path: section/para10956#. (itstool) path: section/para
11099#: C/index-in.docbook:460310957#: C/index-in.docbook:4603
11100msgid ""10958msgid ""
11101"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10959"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
11102"classGtk_1_1FontChooserDialog.html\">FontChooserDialog Reference</link>"10960"classGtk_1_1FontChooserDialog.html\">FontChooserDialog Reference</link>"
11103msgstr ""10961msgstr ""
11104"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"10962"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n11105"classGtk_1_1FontChooserDialog.html\">FontChooserDialog-referens</link>"n10963"classGtk_1_1FontChooserDialog.html\">Referens för FontChooserDialog</link>"
1110610964
11107#. (itstool) path: figure/title10965#. (itstool) path: figure/title
11108#: C/index-in.docbook:460910966#: C/index-in.docbook:4609
11109msgid "FontDialog"10967msgid "FontDialog"
11110msgstr "FontDialog"10968msgstr "FontDialog"
11231msgid ""11089msgid ""
11232"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"11090"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
11233"classGtk_1_1Window.html\">Window Reference</link>"11091"classGtk_1_1Window.html\">Window Reference</link>"
11234msgstr ""11092msgstr ""
11235"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"11093"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n11236"classGtk_1_1Window.html\">Window-referens</link>"n11094"classGtk_1_1Window.html\">Referens för Window</link>"
1123711095
11238#. (itstool) path: figure/title11096#. (itstool) path: figure/title
11239#: C/index-in.docbook:466511097#: C/index-in.docbook:4665
11240#, fuzzy11098#, fuzzy
11241msgid "Window Dialog"11099msgid "Window Dialog"
11597"kontext i ritfunktionen."11455"kontext i ritfunktionen."
1159811456
11599#. (itstool) path: section/title11457#. (itstool) path: section/title
11600#: C/index-in.docbook:481611458#: C/index-in.docbook:4816
11601msgid "Drawing Straight Lines"11459msgid "Drawing Straight Lines"
n11602msgstr "Rita raka linjer"n11460msgstr "Rita räta linjer"
1160311461
11604#. (itstool) path: tip/para11462#. (itstool) path: tip/para
11605#: C/index-in.docbook:482511463#: C/index-in.docbook:4825
11606#, fuzzy11464#, fuzzy
11607msgid ""11465msgid ""
11635"Cairo's coordinate system. The origin of the Cairo coordinate system is "11493"Cairo's coordinate system. The origin of the Cairo coordinate system is "
11636"located in the upper-left corner of the window with positive x values to the "11494"located in the upper-left corner of the window with positive x values to the "
11637"right and positive y values going down. <_:tip-1/>"11495"right and positive y values going down. <_:tip-1/>"
11638msgstr ""11496msgstr ""
11639"Nu då vi förstå grunderna hos Cairo-grafikbiblioteket är vi nästan klara att "11497"Nu då vi förstå grunderna hos Cairo-grafikbiblioteket är vi nästan klara att "
n11640"börja rita. Vi börjar med det enklaste av ritelement: den raka linjen. Men "n11498"börja rita. Vi börjar med det enklaste av ritelement: den räta linjen. Men "
11641"först behöver du känna till lite om Cairos koordinatsystem. Origo för Cairos "11499"först behöver du känna till lite om Cairos koordinatsystem. Origo för Cairos "
11642"koordinatsystem finns i fönstrets övre vänstra hörn med positiva x-värden "11500"koordinatsystem finns i fönstrets övre vänstra hörn med positiva x-värden "
11643"till höger och positiva y-värden nedåt. <_:tip-1/>"11501"till höger och positiva y-värden nedåt. <_:tip-1/>"
1164411502
11645#. (itstool) path: section/para11503#. (itstool) path: section/para
11792msgid ""11650msgid ""
11793"In addition to drawing basic straight lines, there are a number of things "11651"In addition to drawing basic straight lines, there are a number of things "
11794"that you can customize about a line. You've already seen examples of setting "11652"that you can customize about a line. You've already seen examples of setting "
11795"a line's color and width, but there are others as well."11653"a line's color and width, but there are others as well."
11796msgstr ""11654msgstr ""
n11797"Utöver att rita enkla raka linjer så finns det ett antal saker som du kan "n11655"Utöver att rita enkla räta linjer så finns det ett antal saker som du kan "
11798"anpassa med en linje. Du har redan sett exempel på att ställa in en linjes "11656"anpassa med en linje. Du har redan sett exempel på att ställa in en linjes "
11799"färg och bredd, men det finns även annat."11657"färg och bredd, men det finns även annat."
1180011658
11801# TODO: are show*n*11659# TODO: are show*n*
11802#. (itstool) path: section/para11660#. (itstool) path: section/para
11856"<methodname>Cairo::Context::set_line_cap()</methodname>."11714"<methodname>Cairo::Context::set_line_cap()</methodname>."
1185711715
11858#. (itstool) path: section/para11716#. (itstool) path: section/para
11859#: C/index-in.docbook:494011717#: C/index-in.docbook:4940
11860#, fuzzy11718#, fuzzy
nn11719#| msgid ""
11720#| "There are other things you can customize as well, including creating "
11721#| "dashed lines and other things. For more information, see the Cairo API "
11722#| "documentation."
11861msgid ""11723msgid ""
11862"There are other things you can customize as well, including creating dashed "11724"There are other things you can customize as well, including creating dashed "
11863"lines and other things. For more information, see the Cairo API "11725"lines and other things. For more information, see the Cairo API "
11864"documentation. Dashed lines are shown in the example in the <link "11726"documentation. Dashed lines are shown in the example in the <link "
11865"linkend=\"cairo-example-curves\">Drawing Curved Lines</link> section."11727"linkend=\"cairo-example-curves\">Drawing Curved Lines</link> section."
11866msgstr ""11728msgstr ""
n11867"Det finns även andra saker du kan anpassa, som att skapa ocandra saker. Se "n11729"Det finns även andra saker du kan anpassa, som att skapa streckade linjer "
11868"Cairos API-dokumentation för mer information."11730"och andra saker. Se Cairos API-dokumentation för mer information."
1186911731
11870#. (itstool) path: section/title11732#. (itstool) path: section/title
11871#: C/index-in.docbook:495011733#: C/index-in.docbook:4950
11872msgid "Drawing thin lines"11734msgid "Drawing thin lines"
11873msgstr "Rita tunna linjer"11735msgstr "Rita tunna linjer"
12010msgid ""11872msgid ""
12011"The only difference between this example and the straight line example is in "11873"The only difference between this example and the straight line example is in "
12012"the <methodname>on_draw()</methodname> function, but there are a few new "11874"the <methodname>on_draw()</methodname> function, but there are a few new "
12013"concepts and functions introduced here, so let's examine them briefly."11875"concepts and functions introduced here, so let's examine them briefly."
12014msgstr ""11876msgstr ""
n12015"Den enda skillnaden mellan detta exempel och exemplet för raka linjer är i "n11877"Den enda skillnaden mellan detta exempel och exemplet för räta linjer är i "
12016"funktionen <methodname>on_draw()</methodname>, men några nya koncept och "11878"funktionen <methodname>on_draw()</methodname>, men några nya koncept och "
12017"funktioner introduceras här, så låt oss kort ta en titt på dem."11879"funktioner introduceras här, så låt oss kort ta en titt på dem."
1201811880
12019#. (itstool) path: section/para11881#. (itstool) path: section/para
12020#: C/index-in.docbook:501011882#: C/index-in.docbook:5010
14202#: C/index-in.docbook:608014064#: C/index-in.docbook:6080
14203msgid ""14065msgid ""
14204"<varname>is_private</varname>: Whether this resource should be visible only "14066"<varname>is_private</varname>: Whether this resource should be visible only "
14205"to applications that have registered it or not"14067"to applications that have registered it or not"
14206msgstr ""14068msgstr ""
n14207"<varname>is_private</varname>: huruvida denna resurs endast ska vara synlig "n14069"<varname>is_private</varname>: Huruvida denna resurs endast ska vara synlig "
14208"för program som har registrerat den eller inte"14070"för program som har registrerat den eller inte"
1420914071
14210#. (itstool) path: listitem/para14072#. (itstool) path: listitem/para
14211#: C/index-in.docbook:608414073#: C/index-in.docbook:6084
14212msgid "<varname>mime_type</varname>: The MIME type of the resource"14074msgid "<varname>mime_type</varname>: The MIME type of the resource"
14917"though. <_:itemizedlist-1/>"14779"though. <_:itemizedlist-1/>"
14918msgstr ""14780msgstr ""
1491914781
14920#. (itstool) path: section/para14782#. (itstool) path: section/para
14921#: C/index-in.docbook:640214783#: C/index-in.docbook:6402
nn14784#, fuzzy
14785#| msgid ""
14786#| "The data model is a class that implements the <classname>Gio::ListModel</"
14787#| "classname> interface. Examples of such classes are <classname>Gio::"
14788#| "ListStore</classname> (not to be confused with the deprecated "
14789#| "<classname>Gtk::ListStore</classname>), <classname>Gtk:StringList</"
14790#| "classname>, <classname>Gtk:DirectoryList</classname> and "
14791#| "<classname>Pango::FontMap</classname>."
14922msgid ""14792msgid ""
14923"The event classes that handle mouse events are also useful for handling "14793"The event classes that handle mouse events are also useful for handling "
14924"events from touchscreens. There are also many subclasses of <classname>Gtk::"14794"events from touchscreens. There are also many subclasses of <classname>Gtk::"
14925"EventController</classname> which are only (or mainly) useful for "14795"EventController</classname> which are only (or mainly) useful for "
14926"touchscreens. Examples: <classname>Gtk::GestureRotate</classname>, "14796"touchscreens. Examples: <classname>Gtk::GestureRotate</classname>, "
14927"<classname>Gtk::GestureZoom</classname>, <classname>Gtk::GestureSwipe</"14797"<classname>Gtk::GestureZoom</classname>, <classname>Gtk::GestureSwipe</"
14928"classname>, <classname>Gtk::GestureLongPress</classname>."14798"classname>, <classname>Gtk::GestureLongPress</classname>."
14929msgstr ""14799msgstr ""
nn14800"Datamodellen är en klass som implementerar <classname>Gio::ListModel</"
14801"classname>-gränssnittet. Exempel på sådana klasser är <classname>Gio::"
14802"ListStore</classname> (inte att förväxlas med de föråldrade <classname>Gtk::"
14803"ListStore</classname>), <classname>Gtk:StringList</classname>, "
14804"<classname>Gtk:DirectoryList</classname> och <classname>Pango::FontMap</"
14805"classname>."
1493014806
14931#. (itstool) path: section/para14807#. (itstool) path: section/para
14932#: C/index-in.docbook:641114808#: C/index-in.docbook:6411
14933#, fuzzy14809#, fuzzy
14934#| msgid ""14810#| msgid ""
14980msgid "Timeouts, I/O and Idle Functions"14856msgid "Timeouts, I/O and Idle Functions"
14981msgstr "Timeout, I/O och inaktivitetsfunktioner"14857msgstr "Timeout, I/O och inaktivitetsfunktioner"
1498214858
14983#. (itstool) path: section/title14859#. (itstool) path: section/title
14984#: C/index-in.docbook:643514860#: C/index-in.docbook:6435
n14985#, fuzzyn
14986msgid "Timeouts"14861msgid "Timeouts"
14987msgstr "Timeout"14862msgstr "Timeout"
1498814863
14989#. (itstool) path: section/para14864#. (itstool) path: section/para
14990#: C/index-in.docbook:643714865#: C/index-in.docbook:6437
15487"över klassräckvidd är det ökade datadöljandet och minskade beroendena."15362"över klassräckvidd är det ökade datadöljandet och minskade beroendena."
1548815363
15489#. (itstool) path: section/programlisting15364#. (itstool) path: section/programlisting
15490#: C/index-in.docbook:667215365#: C/index-in.docbook:6672
15491#, fuzzy, no-wrap15366#, fuzzy, no-wrap
nn15367#| msgid ""
15368#| "\n"
15369#| "{\n"
15370#| "  Gtk::Button aButton;\n"
15371#| "  aButton.set_visible(true);\n"
15372#| "  ...\n"
15373#| "  app-&gt;run();\n"
15374#| "}\n"
15492msgid ""15375msgid ""
15493"<code>{\n"15376"<code>{\n"
15494"  Gtk::Button aButton;\n"15377"  Gtk::Button aButton;\n"
15495"  aButton.set_visible(true);\n"15378"  aButton.set_visible(true);\n"
15496"  ...\n"15379"  ...\n"
15499"</code>"15382"</code>"
15500msgstr ""15383msgstr ""
15501"\n"15384"\n"
15502"{\n"15385"{\n"
15503"  Gtk::Button aButton;\n"15386"  Gtk::Button aButton;\n"
n15504"  aButton.show();\n"n15387"  aButton.set_visible(true);\n"
15505"  ...\n"15388"  ...\n"
15506"  app-&gt;run();\n"15389"  app-&gt;run();\n"
15507"}\n"15390"}\n"
1550815391
15509#. (itstool) path: section/para15392#. (itstool) path: section/para
15525#: C/index-in.docbook:668915408#: C/index-in.docbook:6689
15526#, fuzzy15409#, fuzzy
15527msgid "Dynamic allocation with new and delete"15410msgid "Dynamic allocation with new and delete"
15528msgstr "Dynamisk allokering med new och delete"15411msgstr "Dynamisk allokering med new och delete"
1552915412
n15530# TODO: favor?n
15531#. (itstool) path: section/para15413#. (itstool) path: section/para
15532#: C/index-in.docbook:669015414#: C/index-in.docbook:6690
15533#, fuzzy15415#, fuzzy
nn15416#| msgid ""
15417#| "Usually, the programmer will prefer to allow containers to automatically "
15418#| "destroy their children by creating them using <function>Gtk::"
15419#| "make_managed()</function> (see below). This is not strictly required, as "
15420#| "the <literal>new</literal> and <literal>delete</literal> operators may "
15421#| "also be used, but modern C++ style discourages those in favor of safer "
15422#| "models of memory management, so it is better to create widgets using "
15423#| "<function>Gtk::make_managed()</function> and let their parent destroy "
15424#| "them, than to manually perform dynamic allocation. <_:programlisting-1/> "
15425#| "Here, the programmer deletes <varname>pButton</varname> to prevent a "
15426#| "memory leak."
15534msgid ""15427msgid ""
15535"Usually, the programmer will prefer to allow containers to automatically "15428"Usually, the programmer will prefer to allow containers to automatically "
15536"destroy their children by creating them using <function>Gtk::make_managed()</"15429"destroy their children by creating them using <function>Gtk::make_managed()</"
15537"function> (see below). This is not strictly required, as the <literal>new</"15430"function> (see below). This is not strictly required, as the <literal>new</"
15538"literal> and <literal>delete</literal> operators may also be used, but "15431"literal> and <literal>delete</literal> operators may also be used, but "
16064"<methodname>get_widget()</methodname> method, providing the widget's name. "15957"<methodname>get_widget()</methodname> method, providing the widget's name. "
16065"This name should be specified in the <application>Cambalache</application> "15958"This name should be specified in the <application>Cambalache</application> "
16066"window. If the widget could not be found, or is of the wrong type, then the "15959"window. If the widget could not be found, or is of the wrong type, then the "
16067"pointer will be set to <literal>nullptr</literal>."15960"pointer will be set to <literal>nullptr</literal>."
16068msgstr ""15961msgstr ""
n16069"För att komma åt en komponent, exempelvis för att visa en dialogruta med "n15962"För att komma åt en komponent, exempelvis för att visa en dialogruta, "
16070"<methodname>show()</methodname>, använder du metoden "15963"använder du metoden <methodname>get_widget()</methodname> och "
16071"<methodname>get_widget()</methodname> och tillhandahåller komponentens namn. "15964"tillhandahåller komponentens namn. Detta namn bör anges i "
16072"Detta namn bör anges i <application>Glade</application>s egenskapsfönster. "15965"<application>Glade</application>s egenskapsfönster. Om komponenten inte "
16073"Om komponenten inte kunde hittas eller är av fel typ så kommer pekaren "15966"kunde hittas eller är av fel typ så kommer pekaren sättas till nullptr."
16074"sättas till nullptr."
1607515967
16076#. (itstool) path: section/para15968#. (itstool) path: section/para
16077#: C/index-in.docbook:691015969#: C/index-in.docbook:6910
n16078#, fuzzyn
16079msgid ""15970msgid ""
16080"The dialogs in this chapter are derived from <classname>Gtk::Window</"15971"The dialogs in this chapter are derived from <classname>Gtk::Window</"
16081"classname> because <classname>Gtk::Dialog</classname> is deprecated since "15972"classname> because <classname>Gtk::Dialog</classname> is deprecated since "
16082"<application>gtkmm</application> 4.10."15973"<application>gtkmm</application> 4.10."
16083msgstr ""15974msgstr ""
n16084"I detta steg använder vi en <classname>Gtk::Builder</classname>-instans för "n15975"Dialogrutorna i detta kapitel är härledda från <classname>Gtk::Window</"
16085"att associera en <classname>Gtk::Builder</classname>-ui-fil med vår "15976"classname> eftersom <classname>Gtk::Dialog</classname> är föråldrat sedan "
16086"programfönsterklass."15977"<application>gtkmm</application> 4.10."
1608715978
16088#. (itstool) path: section/programlisting15979#. (itstool) path: section/programlisting
16089#: C/index-in.docbook:691415980#: C/index-in.docbook:6914
16090#, fuzzy, no-wrap15981#, fuzzy, no-wrap
16091msgid ""15982msgid ""
16101msgid ""15992msgid ""
16102"<classname>Gtk::Builder</classname> checks for a null pointer, and checks "15993"<classname>Gtk::Builder</classname> checks for a null pointer, and checks "
16103"that the widget is of the expected type, and will show warnings on the "15994"that the widget is of the expected type, and will show warnings on the "
16104"command line about these."15995"command line about these."
16105msgstr ""15996msgstr ""
n16106"<application>Gtk::Builder</application> tittar efter en null-pekare, och "n15997"<classname>Gtk::Builder</classname> tittar efter en null-pekare, och "
16107"kontrollerar att komponenten är av förväntad typ, och kommer visa varningar "15998"kontrollerar att komponenten är av förväntad typ, och kommer visa varningar "
16108"på kommandoraden om dessa."15999"på kommandoraden om dessa."
1610916000
16110#. (itstool) path: section/para16001#. (itstool) path: section/para
16111#: C/index-in.docbook:692316002#: C/index-in.docbook:6923
16192"<application>gtkmm</application> widget classes. This keeps your code "16083"<application>gtkmm</application> widget classes. This keeps your code "
16193"organized and encapsulated, separating declarative presentation from "16084"organized and encapsulated, separating declarative presentation from "
16194"business logic, avoiding having most of your source just be setting "16085"business logic, avoiding having most of your source just be setting "
16195"properties and packing in containers."16086"properties and packing in containers."
16196msgstr ""16087msgstr ""
n16197"Du kan använda<classname>Gtk::Builder</classname> och <application>Glade</"n16088"Du kan använda <classname>Gtk::Builder</classname> och <application>Glade</"
16198"application> för att göra en layout för dina egna anpassade komponenter "16089"application> för att göra en layout för dina egna anpassade komponenter "
16199"härledda från <application>gtkmm</application>-komponentklasser. Detta "16090"härledda från <application>gtkmm</application>-komponentklasser. Detta "
16200"håller din kod organiserad och inkapslad, skiljer på deklarativ presentation "16091"håller din kod organiserad och inkapslad, skiljer på deklarativ presentation "
16201"från affärslogik, och undviker att det mesta av din kod bara ställer in "16092"från affärslogik, och undviker att det mesta av din kod bara ställer in "
16202"egenskaper och packning i behållare."16093"egenskaper och packning i behållare."
16313"}\n"16204"}\n"
1631416205
16315#. (itstool) path: section/para16206#. (itstool) path: section/para
16316#: C/index-in.docbook:700916207#: C/index-in.docbook:7009
16317#, fuzzy16208#, fuzzy
nn16209#| msgid ""
16210#| "It's possible to pass additional arguments from "
16211#| "<methodname>get_widget_derived()</methodname> to the constructor of the "
16212#| "derived widget. For instance, this call to "
16213#| "<methodname>get_widget_derived()</methodname> <_:programlisting-1/> can "
16214#| "invoke this constructor"
16318msgid ""16215msgid ""
16319"It's possible to pass additional arguments from "16216"It's possible to pass additional arguments from "
16320"<methodname>get_widget_derived()</methodname> to the constructor of the "16217"<methodname>get_widget_derived()</methodname> to the constructor of the "
16321"derived widget. For instance, this call to <methodname>get_widget_derived()</"16218"derived widget. For instance, this call to <methodname>get_widget_derived()</"
16322"methodname>"16219"methodname>"
16323msgstr ""16220msgstr ""
16324"Det är möjligt att skicka ytterligare argument från "16221"Det är möjligt att skicka ytterligare argument från "
16325"<methodname>get_widget_derived()</methodname> till konstruktorn för den "16222"<methodname>get_widget_derived()</methodname> till konstruktorn för den "
16326"härledda komponenten. Exempelvis kan detta anrop till "16223"härledda komponenten. Exempelvis kan detta anrop till "
16327"<methodname>get_widget_derived()</methodname> <_:programlisting-1/> starta "16224"<methodname>get_widget_derived()</methodname> <_:programlisting-1/> starta "
n16328"denna konstruktor <_:programlisting-2/>"n16225"denna konstruktor"
1632916226
16330#. (itstool) path: section/programlisting16227#. (itstool) path: section/programlisting
16331#: C/index-in.docbook:701416228#: C/index-in.docbook:7014
16332#, fuzzy, no-wrap16229#, fuzzy, no-wrap
16333msgid ""16230msgid ""
16421"  prop_int(*this, \"button-int\", 10)\n"16318"  prop_int(*this, \"button-int\", 10)\n"
16422"{\n"16319"{\n"
16423"  // ....\n"16320"  // ....\n"
16424"}\n"16321"}\n"
1642516322
n16426# TODO: recognizen
16427#. (itstool) path: section/para16323#. (itstool) path: section/para
16428#: C/index-in.docbook:705116324#: C/index-in.docbook:7051
16429#, fuzzy16325#, fuzzy
nn16326#| msgid ""
16327#| "When using <application>gtkmm</application> with a version of "
16328#| "<application>glibmm</application> from 2.62 onwards, it is possible also "
16329#| "to specify properties of derived widgets, declared in C++ using "
16330#| "<application>gtkmm</application>, within <filename>.glade</filename> "
16331#| "files and load/set these using <classname>Gtk::Builder</classname>. See "
16332#| "the documentation of <classname>Gtk::Builder</classname> for more details "
16333#| "on how to achieve this. Glade won’t recognize such properties as-is, but "
16334#| "it should be able to through use of <link xlink:href=\"https://developer-"
16335#| "old.gnome.org/gladeui/stable/properties.html\"> property class "
16336#| "definitions</link> and a catalog declaring those new properties."
16430msgid ""16337msgid ""
16431"It is possible also to specify properties of derived widgets, declared in "16338"It is possible also to specify properties of derived widgets, declared in "
16432"<phrase role=\"nowrap\">C++</phrase> using <application>gtkmm</application>, "16339"<phrase role=\"nowrap\">C++</phrase> using <application>gtkmm</application>, "
16433"within <filename class=\"extension\">.ui</filename> files and load/set these "16340"within <filename class=\"extension\">.ui</filename> files and load/set these "
16434"using <classname>Gtk::Builder</classname>. See the documentation of "16341"using <classname>Gtk::Builder</classname>. See the documentation of "
16483"languages, including non-European languages such as Chinese and right-to-"16390"languages, including non-European languages such as Chinese and right-to-"
16484"left languages such as Arabic. An appropriately-written and translated "16391"left languages such as Arabic. An appropriately-written and translated "
16485"<application>gtkmm</application> application will use the appropriate "16392"<application>gtkmm</application> application will use the appropriate "
16486"language at runtime based on the user's environment."16393"language at runtime based on the user's environment."
16487msgstr ""16394msgstr ""
n16488"<application>gtkmm</application>-program kan lätt stöda flera språk, "n16395"<application>gtkmm</application>-program kan lätt stödja flera språk, "
16489"inklusive icke-europeiska språk som kinesiska och höger-till-vänster-språk "16396"inklusive icke-europeiska språk som kinesiska och höger-till-vänster-språk "
16490"som arabiska. Ett korrekt skrivet och översatt <application>gtkmm</"16397"som arabiska. Ett korrekt skrivet och översatt <application>gtkmm</"
16491"application>-program kommer använda lämpligt språk vid körning beroende på "16398"application>-program kommer använda lämpligt språk vid körning beroende på "
16492"användarens miljö."16399"användarens miljö."
1649316400
16577"po</filename>-standardfiler."16484"po</filename>-standardfiler."
1657816485
16579#. (itstool) path: note/para16486#. (itstool) path: note/para
16580#: C/index-in.docbook:713116487#: C/index-in.docbook:7131
16581#, fuzzy16488#, fuzzy
nn16489#| msgid ""
16490#| "We also assume that you are using autotools (<application>automake</"
16491#| "application> and <application>autoconf</application>) to build your "
16492#| "project (although autotools is not recommended for new applications), and "
16493#| "that you are using <link xlink:href=\"https://gitlab.gnome.org/GNOME/"
16494#| "gnome-common/blob/master/autogen.sh\"> <literal>./autogen.sh</literal> "
16495#| "from <application>gnome-common</application></link> or a similar "
16496#| "<literal>autogen.sh</literal> file, which, among other things, takes care "
16497#| "of some <application>intltool</application> initialization."
16582msgid ""16498msgid ""
16583"We also assume that you are using autotools (<application>automake</"16499"We also assume that you are using autotools (<application>automake</"
16584"application> and <application>autoconf</application>) to build your project "16500"application> and <application>autoconf</application>) to build your project "
16585"(although autotools is not recommended for new applications), and that you "16501"(although autotools is not recommended for new applications), and that you "
16586"are using <link xlink:href=\"https://gitlab.gnome.org/Archive/gnome-common/-/"16502"are using <link xlink:href=\"https://gitlab.gnome.org/Archive/gnome-common/-/"
16806"PROGRAMNAME_LOCALEDIR=[${datadir}/locale]\n"16722"PROGRAMNAME_LOCALEDIR=[${datadir}/locale]\n"
16807"AC_SUBST(PROGRAMNAME_LOCALEDIR)"16723"AC_SUBST(PROGRAMNAME_LOCALEDIR)"
1680816724
16809#. (itstool) path: section/para16725#. (itstool) path: section/para
16810#: C/index-in.docbook:723316726#: C/index-in.docbook:7233
n16811#, fuzzyn
16812msgid ""16727msgid ""
16813"This <varname>PROGRAMNAME_LOCALEDIR</varname> variable will be used later in "16728"This <varname>PROGRAMNAME_LOCALEDIR</varname> variable will be used later in "
16814"the <literal>Makefile.am</literal> file, to define a macro that will be used "16729"the <literal>Makefile.am</literal> file, to define a macro that will be used "
16815"when you initialize <application>gettext</application> in your source code."16730"when you initialize <application>gettext</application> in your source code."
16816msgstr ""16731msgstr ""
17256msgid "Expecting UTF8"17171msgid "Expecting UTF8"
17257msgstr "Förvänta sig UTF8"17172msgstr "Förvänta sig UTF8"
1725817173
17259#. (itstool) path: section/para17174#. (itstool) path: section/para
17260#: C/index-in.docbook:746017175#: C/index-in.docbook:7460
n17261#, fuzzyn
17262msgid ""17176msgid ""
17263"A properly internationalized application will not make assumptions about the "17177"A properly internationalized application will not make assumptions about the "
17264"number of bytes in a character. That means that you shouldn't use pointer "17178"number of bytes in a character. That means that you shouldn't use pointer "
17265"arithmetic to step through the characters in a string, and it means you "17179"arithmetic to step through the characters in a string, and it means you "
17266"shouldn't use <classname>std::string</classname> or standard C functions "17180"shouldn't use <classname>std::string</classname> or standard C functions "
17438#. (itstool) path: section/title17352#. (itstool) path: section/title
17439#: C/index-in.docbook:753817353#: C/index-in.docbook:7538
17440msgid "Composition of strings"17354msgid "Composition of strings"
17441msgstr "Sammansättning av strängar"17355msgstr "Sammansättning av strängar"
1744217356
n17443# TODO: favorsn
17444#. (itstool) path: section/para17357#. (itstool) path: section/para
17445#: C/index-in.docbook:754017358#: C/index-in.docbook:7540
17446#, fuzzy17359#, fuzzy
nn17360#| msgid ""
17361#| "C programmers use <function>sprintf()</function> to compose and "
17362#| "concatenate strings. C++ favors streams, but unfortunately, this approach "
17363#| "makes translation difficult, because each fragment of text is translated "
17364#| "separately, without allowing the translators to rearrange them according "
17365#| "to the grammar of the language."
17447msgid ""17366msgid ""
17448"C programmers use <function>sprintf()</function> to compose and concatenate "17367"C programmers use <function>sprintf()</function> to compose and concatenate "
17449"strings. <phrase role=\"nowrap\">C++</phrase> favors streams, but "17368"strings. <phrase role=\"nowrap\">C++</phrase> favors streams, but "
17450"unfortunately, this approach makes translation difficult, because each "17369"unfortunately, this approach makes translation difficult, because each "
17451"fragment of text is translated separately, without allowing the translators "17370"fragment of text is translated separately, without allowing the translators "
17616"where translators can access it, then file an <link xlink:href=\"https://"17535"where translators can access it, then file an <link xlink:href=\"https://"
17617"gitlab.gnome.org/Infrastructure/damned-lies/-/issues\"> issue to the damned-"17536"gitlab.gnome.org/Infrastructure/damned-lies/-/issues\"> issue to the damned-"
17618"lies project</link> and ask to have your program added to the <link xlink:"17537"lies project</link> and ask to have your program added to the <link xlink:"
17619"href=\"http://l10n.gnome.org/module/\">list of modules to translate</link>."17538"href=\"http://l10n.gnome.org/module/\">list of modules to translate</link>."
17620msgstr ""17539msgstr ""
n17621"Sättet detta fungerar är att du kan placera din källkod i ett git-rråd där "n17540"Sättet detta fungerar är att du kan placera din källkod i ett git-arkiv där "
17622"översättare kan komma åt den, och sedan kontakta sändlistan gnome-i18n och "17541"översättare kan komma åt den, och sedan kontakta sändlistan gnome-i18n och "
17623"be att ditt program ska läggas till i <link xlink:href=\"http://l10n.gnome."17542"be att ditt program ska läggas till i <link xlink:href=\"http://l10n.gnome."
17624"org/module/\">listan över moduler att översätta</link>."17543"org/module/\">listan över moduler att översätta</link>."
1762517544
17626#. (itstool) path: section/para17545#. (itstool) path: section/para
18050"huvud taget, anropas från klassens init-funktion. Några andra "17969"huvud taget, anropas från klassens init-funktion. Några andra "
18051"<application>GTK</application>-funktioner måste, om de anropas, anropas från "17970"<application>GTK</application>-funktioner måste, om de anropas, anropas från "
18052"instansens init-funktion. Om din anpassade komponent måste anropa någon av "17971"instansens init-funktion. Om din anpassade komponent måste anropa någon av "
18053"dessa funktioner kan du härleda en klass från <classname>Glib::"17972"dessa funktioner kan du härleda en klass från <classname>Glib::"
18054"ExtraClassInit</classname> och härleda din anpassade klass från den klassen. "17973"ExtraClassInit</classname> och härleda din anpassade klass från den klassen. "
nn17974"Exemplet för <link linkend=\"custom-css-name-example\">anpassat CSS-namn</"
18055"ljande exempel visar hur detta görs."17975"link> visar hur detta görs."
1805617976
18057#. (itstool) path: section/para17977#. (itstool) path: section/para
18058#: C/index-in.docbook:778017978#: C/index-in.docbook:7780
18059msgid "This example implements a widget which draws Penrose triangles."17979msgid "This example implements a widget which draws Penrose triangles."
18060msgstr "Detta exempel implementerar en komponent som ritar Penrose-trianglar."17980msgstr "Detta exempel implementerar en komponent som ritar Penrose-trianglar."
18091#. (itstool) path: section/title18011#. (itstool) path: section/title
18092#: C/index-in.docbook:779418012#: C/index-in.docbook:7794
18093msgid "Custom CSS Names"18013msgid "Custom CSS Names"
18094msgstr "Anpassade CSS-namn"18014msgstr "Anpassade CSS-namn"
1809518015
n18096# TODO: controlledn
18097#. (itstool) path: section/para18016#. (itstool) path: section/para
18098#: C/index-in.docbook:779618017#: C/index-in.docbook:7796
18099#, fuzzy18018#, fuzzy
18100msgid ""18019msgid ""
18101"Many aspects of the look of widgets are controlled by CSS (Cascading Style "18020"Many aspects of the look of widgets are controlled by CSS (Cascading Style "
18103"etc. If you give some widgets their own names or their own CSS classes, you "18022"etc. If you give some widgets their own names or their own CSS classes, you "
18104"can define CSS rules that apply only to those widgets, for instance certain "18023"can define CSS rules that apply only to those widgets, for instance certain "
18105"buttons, without affecting other similar widgets."18024"buttons, without affecting other similar widgets."
18106msgstr ""18025msgstr ""
18107"Många aspekter hos komponenters utseende styrs av CSS-filer (Cascading Style "18026"Många aspekter hos komponenters utseende styrs av CSS-filer (Cascading Style "
n18108"Sheet). Med CSS-filer kan du välja färg, typsnitt, radtjocklek och så "n18027"Sheet). Med CSS-filer kan du välja färg, typsnitt, linjetjocklek och så "
18109"vidare. Om du ger några komponenter egna namn så kan du definiera CSS-regler "18028"vidare. Om du ger några komponenter egna namn eller egna CSS-klasser så kan "
18110"som endast tillämpas på dessa komponenter, exempelvis vissa knappar, utan "18029"du definiera CSS-regler som endast tillämpas på dessa komponenter, "
18111"att påverka andra liknande komponenter."18030"exempelvis vissa knappar, utan att påverka andra liknande komponenter."
1811218031
18113#. (itstool) path: section/title18032#. (itstool) path: section/title
18114#: C/index-in.docbook:780318033#: C/index-in.docbook:7803
n18115#, fuzzyn
18116msgid "CSS Node Name, Widget Name, CSS Class Name"18034msgid "CSS Node Name, Widget Name, CSS Class Name"
18117msgstr "CSS-nodnamn, Komponentnamn, CSS-klassnamn"18035msgstr "CSS-nodnamn, Komponentnamn, CSS-klassnamn"
1811818036
18119#. (itstool) path: listitem/para18037#. (itstool) path: listitem/para
18120#: C/index-in.docbook:780718038#: C/index-in.docbook:7807
18145"konstruktor. Den ställer in namnet för en komponentinstans."18063"konstruktor. Den ställer in namnet för en komponentinstans."
1814618064
18147#. (itstool) path: listitem/para18065#. (itstool) path: listitem/para
18148#: C/index-in.docbook:781418066#: C/index-in.docbook:7814
18149#, fuzzy18067#, fuzzy
nn18068#| msgid ""
18069#| "<methodname>Gtk::Widget::add_class_name()</methodname> can be called from "
18070#| "a C++ constructor. It adds the name of a CSS class, used by a widget "
18071#| "instance."
18150msgid ""18072msgid ""
18151"<methodname>Gtk::Widget::add_class_name()</methodname> can be called from a "18073"<methodname>Gtk::Widget::add_class_name()</methodname> can be called from a "
18152"<phrase role=\"nowrap\">C++</phrase> constructor. It adds the name of a CSS "18074"<phrase role=\"nowrap\">C++</phrase> constructor. It adds the name of a CSS "
18153"class, used by a widget instance."18075"class, used by a widget instance."
18154msgstr ""18076msgstr ""
n18155"<methodname>Gtk::Widget::set_name()</methodname> kan anropas från en C++-"n18077"<methodname>Gtk::Widget::add_class_name()</methodname> kan anropas från en C+"
18156"konstruktor. Den ställer in namnet för en CSS-klass, använd av en "18078"+-konstruktor. Den lägger till namnet för en CSS-klass, använd av en "
18157"komponentinstans."18079"komponentinstans."
1815818080
18159#. (itstool) path: section/para18081#. (itstool) path: section/para
18160#: C/index-in.docbook:780518082#: C/index-in.docbook:7805
18161#, fuzzy18083#, fuzzy
18162msgid ""18084msgid ""
18163"There are three ways of referring from a widget to data in a CSS file: <_:"18085"There are three ways of referring from a widget to data in a CSS file: <_:"
18164"itemizedlist-1/> The following example shows a button with its own CSS node "18086"itemizedlist-1/> The following example shows a button with its own CSS node "
18165"name, a label with a widget name and a label that uses its own CSS class."18087"name, a label with a widget name and a label that uses its own CSS class."
18166msgstr ""18088msgstr ""
n18167"Det finns två sätt att ge en komponent ett namn som du kan hänvisa till från "n18089"Det finns tre sätt att referera från en komponent till data i en CSS-fil: <_:"
18168"en CSS-file: <_:itemizedlist-1/> Följande exempel visar en knapp med eget "18090"itemizedlist-1/> Följande exempel visar en knapp med eget CSS-nodnamn, en "
18169"CSS-nodnamn och en etikett med ett komponentnamn."18091"etikett med ett komponentnamn och en etikett som använder sin egen CSS-klass."
1817018092
18171#. (itstool) path: section/title18093#. (itstool) path: section/title
18172#: C/index-in.docbook:782318094#: C/index-in.docbook:7823
18173msgid "Custom Style Information"18095msgid "Custom Style Information"
18174msgstr "Anpassad stilinformation"18096msgstr "Anpassad stilinformation"
18208"Detta exempel implementerar en knapp och två etiketter med anpassad "18130"Detta exempel implementerar en knapp och två etiketter med anpassad "
18209"stilinformation."18131"stilinformation."
1821018132
18211#. (itstool) path: figure/title18133#. (itstool) path: figure/title
18212#: C/index-in.docbook:784118134#: C/index-in.docbook:7841
n18213#, fuzzyn
18214msgid "Custom CSS Name"18135msgid "Custom CSS Name"
18215msgstr "Anpassat CSS-namn"18136msgstr "Anpassat CSS-namn"
1821618137
18217#. (itstool) path: imageobject/imagedata18138#. (itstool) path: imageobject/imagedata
18218#. This is a reference to an external file such as an image or video. When18139#. This is a reference to an external file such as an image or video. When
18750"endast ett huvudfönster. Dessa program kan använda <methodname>Gtk::"18671"endast ett huvudfönster. Dessa program kan använda <methodname>Gtk::"
18751"Application::make_window_and_run(int argc, char** argv, T_Args&amp;&amp;... "18672"Application::make_window_and_run(int argc, char** argv, T_Args&amp;&amp;... "
18752"args)</methodname>. Det skapar och visar ett fönster. När fönstret är dolt "18673"args)</methodname>. Det skapar och visar ett fönster. När fönstret är dolt "
18753"tar <methodname>make_window_and_run()</methodname> bort fönstret och "18674"tar <methodname>make_window_and_run()</methodname> bort fönstret och "
18754"returnerar till anroparen. Detta kan hända när användaren stänger fönstret, "18675"returnerar till anroparen. Detta kan hända när användaren stänger fönstret, "
n18755"eller när din kod bestämmer sig för att köra <methodname>hide()</methodname> "n18676"eller när din kod bestämmer sig för att dölja fönstret med "
18756"på fönstret. Du kan förhindra användaren från att stränga fönstret "18677"<methodname>set_visible(false)</methodname>. Du kan förhindra användaren "
18757"(exempelvis om det finns osparade ändringar) genom att åsidosätta "18678"från att stränga fönstret (exempelvis om det finns osparade ändringar) genom "
18758"<methodname>Gtk::Window::on_close_request()</methodname>."18679"att åsidosätta <methodname>Gtk::Window::on_close_request()</methodname>."
1875918680
18760#. (itstool) path: section/para18681#. (itstool) path: section/para
18761#: C/index-in.docbook:813918682#: C/index-in.docbook:8139
18762msgid "Most of our examples use this technique."18683msgid "Most of our examples use this technique."
18763msgstr "De flesta av våra exempel använder denna teknik."18684msgstr "De flesta av våra exempel använder denna teknik."
18818"Packa komponenten i en behållare med lämpligt anrop, t.ex. <methodname>Gtk::"18739"Packa komponenten i en behållare med lämpligt anrop, t.ex. <methodname>Gtk::"
18819"Box::append()</methodname>."18740"Box::append()</methodname>."
1882018741
18821#. (itstool) path: section/para18742#. (itstool) path: section/para
18822#: C/index-in.docbook:818718743#: C/index-in.docbook:8187
n18823#, fuzzyn
18824msgid ""18744msgid ""
18825"If you don't want all widgets to be shown, call <methodname>Gtk::Widget::"18745"If you don't want all widgets to be shown, call <methodname>Gtk::Widget::"
18826"set_visible(false)</methodname> on the widgets that you don't want to show. "18746"set_visible(false)</methodname> on the widgets that you don't want to show. "
18827"If a container widget is hidden, all of its child widgets are also hidden, "18747"If a container widget is hidden, all of its child widgets are also hidden, "
18828"even if <methodname>set_visible(false)</methodname> is not called on the "18748"even if <methodname>set_visible(false)</methodname> is not called on the "
18829"child widgets."18749"child widgets."
18830msgstr ""18750msgstr ""
18831"Om du inte vill att alla komponenter ska visas anropar du <methodname>Gtk::"18751"Om du inte vill att alla komponenter ska visas anropar du <methodname>Gtk::"
n18832"Widget::hide()</methodname> på komponenterna som du inte vill ska visas. Om "n18752"Widget::set_visible(false)</methodname> på komponenterna som du inte vill "
18833"en behållarkomponent är dold så är även alla dess underordnade komponenter "18753"ska visas. Om en behållarkomponent är dold så är även alla dess underordnade "
18834"dolda, även om <methodname>hide()</methodname> inte anropas på de "18754"komponenter dolda, även om <methodname>set_visible(false)</methodname> inte "
18835"underordnade komponenterna."18755"anropas på de underordnade komponenterna."
1883618756
18837#. (itstool) path: chapter/title18757#. (itstool) path: chapter/title
18838#: C/index-in.docbook:819818758#: C/index-in.docbook:8198
18839msgid "Building applications"18759msgid "Building applications"
18840msgstr "Bygga program"18760msgstr "Bygga program"
19556"FontDialogButton</classname> and <classname>Gtk::DropDown</classname> in the "19476"FontDialogButton</classname> and <classname>Gtk::DropDown</classname> in the "
19557"preference dialog. The types of the properties in these classes can't be "19477"preference dialog. The types of the properties in these classes can't be "
19558"automatically converted to the string type that <classname>Gio::Settings</"19478"automatically converted to the string type that <classname>Gio::Settings</"
19559"classname> requires."19479"classname> requires."
19560msgstr ""19480msgstr ""
n19561"Vi denna punkt kommer programmet redan reagera om du ändrar en av "n19481"Vid denna punkt kommer programmet redan reagera om du ändrar en av "
19562"inställningarna, exempelvis genom att använda kommandoradsverktyget "19482"inställningarna, exempelvis genom att använda kommandoradsverktyget "
19563"<command>gsettings</command>. Vi förväntar oss förstås att programmet "19483"<command>gsettings</command>. Vi förväntar oss förstås att programmet "
19564"tillhandahåller en inställningsdialog för dessa. Så låt oss göra så nu. Vår "19484"tillhandahåller en inställningsdialog för dessa. Så låt oss göra så nu. Vår "
19565"inställningsdialog kommer vara en underklass av <classname>Gtk::Dialog</"19485"inställningsdialog kommer vara en underklass av <classname>Gtk::Dialog</"
19566"classname>, och vi kommer använda samma tekniker som vi redan sett i "19486"classname>, och vi kommer använda samma tekniker som vi redan sett i "
19567"<classname>ExampleAppWindow</classname>: en <classname>Gtk::Builder</"19487"<classname>ExampleAppWindow</classname>: en <classname>Gtk::Builder</"
n19568"classname>-ui-fil och inställningsbindningar."n19488"classname>-ui-fil och inställningsbindningar. I detta fall är dock "
19489"bindningarna mer avancerade. Vi använder <classname>Gtk::FontDialogButton</"
19490"classname> och <classname>Gtk::DropDown</classname> i inställningsdialogen. "
19491"Typerna för egenskaperna i dessa klasser kan inte automatiskt konverteras "
19492"till den strängtyp som <classname>Gio::Settings</classname> kräver."
1956919493
19570#. (itstool) path: section/para19494#. (itstool) path: section/para
19571#: C/index-in.docbook:852519495#: C/index-in.docbook:8525
19572#, fuzzy19496#, fuzzy
19573msgid ""19497msgid ""
19577"in our application class, and make it open a new preference dialog."19501"in our application class, and make it open a new preference dialog."
19578msgstr ""19502msgstr ""
19579"När vi skapat filen <filename>prefs.ui</filename> och klassen "19503"När vi skapat filen <filename>prefs.ui</filename> och klassen "
19580"<classname>ExampleAppPrefs</classname> besöker vi åter metoden "19504"<classname>ExampleAppPrefs</classname> besöker vi åter metoden "
19581"<methodname>ExampleApplication::on_action_preferences()</methodname> i vår "19505"<methodname>ExampleApplication::on_action_preferences()</methodname> i vår "
n19582"programklass, och får den öppna en ny inställningsdialog."n19506"programklass, och får den att öppna en ny inställningsdialog."
1958319507
19584#. (itstool) path: section/programlisting19508#. (itstool) path: section/programlisting
19585#: C/index-in.docbook:853019509#: C/index-in.docbook:8530
19586#, fuzzy, no-wrap19510#, fuzzy, no-wrap
19587#| msgid ""19511#| msgid ""
20114"filename>. Denna fil finns i modulen <literal>gtkmm-documentation</literal> "20038"filename>. Denna fil finns i modulen <literal>gtkmm-documentation</literal> "
20115"i GNOME git."20039"i GNOME git."
2011620040
20117#. (itstool) path: chapter/para20041#. (itstool) path: chapter/para
20118#: C/index-in.docbook:876020042#: C/index-in.docbook:8760
n20119#, fuzzyn
20120msgid ""20043msgid ""
20121"If you do decide to contribute, please post your contribution as an issue or "20044"If you do decide to contribute, please post your contribution as an issue or "
20122"merge request to <link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-"20045"merge request to <link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-"
20123"documentation\">GitLab</link>. You can also discuss your ideas on GNOME's "20046"documentation\">GitLab</link>. You can also discuss your ideas on GNOME's "
20124"<link xlink:href=\"https://discourse.gnome.org\">Discourse</link> instance, "20047"<link xlink:href=\"https://discourse.gnome.org\">Discourse</link> instance, "
20128"document is free, and any addition you provide must also be free. That is, "20051"document is free, and any addition you provide must also be free. That is, "
20129"people must be able to use any portion of your examples in their programs, "20052"people must be able to use any portion of your examples in their programs, "
20130"and copies of this document (including your contribution) may be distributed "20053"and copies of this document (including your contribution) may be distributed "
20131"freely."20054"freely."
20132msgstr ""20055msgstr ""
n20133"Om du bestämmer dig för att bidra kan du skicka ditt bidrag till sändlistan "n20056"Om du bestämmer dig för att bidra kan du skicka ditt bidrag som etärende "
20134"för <application>gtkmm</application> på <link xlink:href=\"mailto:gtkmm-"
20135"list@gnome.org\">&lt;gtkmm-list@gnome.org&gt;</link> eller som ett ärende "
20136"eller en merge-förfrågan till <link xlink:href=\"https://gitlab.gnome.org/"20057"eller en merge-förfrågan till <link xlink:href=\"https://gitlab.gnome.org/"
n20137"GNOME/gtkmm-documentation\">GitLab</link>. Var också medveten om att hela "n20058"GNOME/gtkmm-documentation\">GitLab</link>. Du kan också diskutera dina idéer "
20059"på GNOMEs <link xlink:href=\"https://discourse.gnome.org\">Discourse</link>-"
20060"instans, under kategorin <link xlink:href=\"https://discourse.gnome.org/c/"
20061"platform/language-bindings\"> Platform/Language bindings</link> med en "
20062"<literal>cplusplus</literal>-tagg. Var också medveten om att hela detta "
20138"detta dokument är fritt, och alla tillägg du gör också måste vara fria. Det "20063"dokument är fritt, och alla tillägg du gör också måste vara fria. Det vill "
20139"vill säga att personer måste kunna använda alla delar av dina exempel i sina "20064"säga att personer måste kunna använda alla delar av dina exempel i sina "
20140"program, och kopior av detta dokument (med ditt bidrag) måste kunna spridas "20065"program, och kopior av detta dokument (med ditt bidrag) måste kunna spridas "
20141"fritt."20066"fritt."
2014220067
20143#. (itstool) path: appendix/title20068#. (itstool) path: appendix/title
20144#: C/index-in.docbook:877520069#: C/index-in.docbook:8775
20443#: C/index-in.docbook:888520368#: C/index-in.docbook:8885
20444#, fuzzy20369#, fuzzy
20445msgid "Constness"20370msgid "Constness"
20446msgstr "Const-het"20371msgstr "Const-het"
2044720372
n20448# TODO: realizen
20449#. (itstool) path: section/para20373#. (itstool) path: section/para
20450#: C/index-in.docbook:888620374#: C/index-in.docbook:8886
20451#, fuzzy20375#, fuzzy
20452msgid ""20376msgid ""
20453"The use of the <literal>const</literal> keyword in <phrase role=\"nowrap\">C+"20377"The use of the <literal>const</literal> keyword in <phrase role=\"nowrap\">C+"
22096msgid "$ cp examples/sample.jhbuildrc ~/.config/jhbuildrc"22020msgid "$ cp examples/sample.jhbuildrc ~/.config/jhbuildrc"
22097msgstr "$ cp examples/sample.jhbuildrc ~/.config/jhbuildrc"22021msgstr "$ cp examples/sample.jhbuildrc ~/.config/jhbuildrc"
2209822022
22099#. (itstool) path: section/para22023#. (itstool) path: section/para
22100#: C/index-in.docbook:963222024#: C/index-in.docbook:9632
n22101#, fuzzyn
22102msgid ""22025msgid ""
22103"To set up <application>jhbuild</application>, follow the basic installation "22026"To set up <application>jhbuild</application>, follow the basic installation "
22104"instructions from the <link xlink:href=\"https://gnome.pages.gitlab.gnome."22027"instructions from the <link xlink:href=\"https://gnome.pages.gitlab.gnome."
22105"org/jhbuild/\">jhbuild manual</link>. After you have installed "22028"org/jhbuild/\">jhbuild manual</link>. After you have installed "
22106"<application>jhbuild</application>, you should copy the sample "22029"<application>jhbuild</application>, you should copy the sample "
22107"<application>jhbuild</application> configuration file into your home "22030"<application>jhbuild</application> configuration file into your home "
22108"directory by executing the following command from the <application>jhbuild</"22031"directory by executing the following command from the <application>jhbuild</"
22109"application> directory: <_:screen-1/>"22032"application> directory: <_:screen-1/>"
22110msgstr ""22033msgstr ""
22111"Följ de grundläggande installationsinstruktionerna från <link xlink:"22034"Följ de grundläggande installationsinstruktionerna från <link xlink:"
n22112"href=\"http://developer-old.gnome.org/jhbuild/unstable/\">handboken för "n22035"href=\"https://gnome.pages.gitlab.gnome.org/jhbuild/\">handboken för "
22113"jhbuild</link> för att konfigurera <application>jhbuild</application>. Efter "22036"jhbuild</link> för att konfigurera <application>jhbuild</application>. Efter "
22114"att du har installerat <application>jhbuild</application> bör du kopiera "22037"att du har installerat <application>jhbuild</application> bör du kopiera "
22115"<application>jhbuild</application>-exempelkonfigurationsfilen till din "22038"<application>jhbuild</application>-exempelkonfigurationsfilen till din "
22116"hemkatalog genom att exekvera följande kommando från katalogen "22039"hemkatalog genom att exekvera följande kommando från katalogen "
22117"<application>jhbuild</application>: <_:screen-1/>"22040"<application>jhbuild</application>: <_:screen-1/>"
26105"char**</classname> such as the following:"26028"char**</classname> such as the following:"
26106msgstr ""26029msgstr ""
26107"<function>_WRAP_METHOD()</function> stöder också att sätta C++-"26030"<function>_WRAP_METHOD()</function> stöder också att sätta C++-"
26108"utdataparametrar från C- utdataparametrar om den omslutna C-funktionen har "26031"utdataparametrar från C- utdataparametrar om den omslutna C-funktionen har "
26109"några. Anta till exempel att vi vill omsluta följande C-funktion som "26032"några. Anta till exempel att vi vill omsluta följande C-funktion som "
n26110"returnerar ett värde i sin C-utdataparameter <parameter>rect</parameter>: <_:"n26033"returnerar ett värde i sin C-utdataparameter <parameter>out_mime_type</"
26111"programlisting-1/> För att <command>gmmproc</command> ska placera det "26034"parameter>: <_:programlisting-1/> För att <command>gmmproc</command> ska "
26112"returnerade värdet i C++-utdataparametern <parameter>rect</parameter> ska "26035"placera det returnerade värdet i C++-utdataparametern "
26113"något i stil med följande <function>_WRAP_METHOD()</function>-makro "26036"<parameter>out_mime_type</parameter> ska något i stil med följande "
26114"användas: <_:programlisting-2/> Den <literal>{&gt;&gt;}</literal> som följer "26037"<function>_WRAP_METHOD()</function>-makro användas: <_:programlisting-2/> "
26115"parameternamnet <parameter>rect</parameter> indikerar att C++-"26038"Den <literal>{&gt;&gt;}</literal> som följer parameternamnet "
26039"<parameter>out_mime_type</parameter> indikerar att C++-utdataparametern ska "
26116"utdataparametern ska ställas in från värdet som returneras C-parametern från "26040"ställas in från värdet som returneras i C-parametern från C-funktionen. "
26117"C-funktionen. <command>gmmproc</command> kommer att generera en deklaration "26041"<command>gmmproc</command> kommer att generera en deklaration av en temporär "
26118"av en temporär variabel i vilken värdet av C-utdataparametern och en sats "26042"variabel i vilken värdet av C-utdataparametern och en sats som sätter C++-"
26119"som sätter C++-utdataparametern från temporärvariabeln. I detta fall kan det "26043"utdataparametern från temporärvariabeln. I detta fall kan det vara "
26120"vara nödvändigt att ha en <function>_INITIALIZATION()</function> som "26044"nödvändigt att ha en <function>_INITIALIZATION()</function> som beskriver "
26121"beskriver hur en <classname>Gdk::Rectangle&amp;</classname> ska sättas från "26045"hur en <classname>Glib::ustring&amp;</classname> ska sättas från en "
26122"en <classname>GdkRectangle*</classname> som i det följande: <_:"26046"<classname>const char**</classname> som i det följande: <_:programlisting-3/>"
26123"programlisting-3/>"
2612426047
26125#. (itstool) path: section/programlisting26048#. (itstool) path: section/programlisting
26126#: C/index-in.docbook:1130126049#: C/index-in.docbook:11301
26127#, fuzzy, no-wrap26050#, fuzzy, no-wrap
26128#| msgid ""26051#| msgid ""
26129#| "\n"26052#| "\n"
n26130#| "_INITIALIZATION(`Gtk::Widget&amp;',`GtkWidget*',`$3 = Glib::wrap($4)')\n"n26053#| "_INITIALIZATION(`Glib::ustring&amp;',`const char*',`$3 = Glib::convert_const
 >_gchar_ptr_to_ustring($4)')\n"
26131msgid ""26054msgid ""
26132"<code>\n"26055"<code>\n"
26133"_INITIALIZATION(`Glib::ustring&amp;',`const char*',`$3 = Glib::convert_const_gc26056"_INITIALIZATION(`Glib::ustring&amp;',`const char*',`$3 = Glib::convert_const_gc
>har_ptr_to_ustring($4)')\n">har_ptr_to_ustring($4)')\n"
26134"</code>"26057"</code>"
26135msgstr ""26058msgstr ""
26136"\n"26059"\n"
t26137"_INITIALIZATION(`Gtk::Widget&amp;',`GtkWidget*',`$3 = Glib::wrap($4)')\n"t26060"_INITIALIZATION(`Glib::ustring&amp;',`const char*',`$3 = Glib::convert_const_gc
 >har_ptr_to_ustring($4)')\n"
2613826061
26139#. (itstool) path: section/title26062#. (itstool) path: section/title
26140#: C/index-in.docbook:1130726063#: C/index-in.docbook:11307
26141#, fuzzy26064#, fuzzy
26142msgid "String Parameter Processing"26065msgid "String Parameter Processing"

Note: both files are merged with latest POT file.