gtkmm-documentation - master - Tutorial - Swedish
Uploaded file by Anders Jonsson on 2023-03-05 10:31:54+00:00 | Uploaded file by Anders Jonsson on 2023-03-05 11:30:32+00:00 | ||||
---|---|---|---|---|---|
5 | # | 5 | # | ||
6 | msgid "" | 6 | msgid "" | ||
7 | msgstr "" | 7 | msgstr "" | ||
8 | "Project-Id-Version: gtkmm-documentation master\n" | 8 | "Project-Id-Version: gtkmm-documentation master\n" | ||
9 | "POT-Creation-Date: 2025-07-08 14:05+0000\n" | 9 | "POT-Creation-Date: 2025-07-08 14:05+0000\n" | ||
n | 10 | "PO-Revision-Date: 2023-03-05 11:31+0100\n" | n | 10 | "PO-Revision-Date: 2023-03-05 12:30+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>" | ||
38 | 38 | ||||
39 | #. (itstool) path: authorgroup/author | 39 | #. (itstool) path: authorgroup/author | ||
40 | #: C/index-in.docbook:51 | 40 | #: C/index-in.docbook:51 | ||
n | 41 | #, fuzzy | n | ||
42 | msgid "" | 41 | msgid "" | ||
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>" | ||
45 | msgstr "" | 44 | msgstr "" | ||
46 | "<personname><firstname>Bernhard</firstname><surname>Rieder</surname></" | 45 | "<personname><firstname>Bernhard</firstname><surname>Rieder</surname></" | ||
717 | "du hämtat." | 716 | "du hämtat." | ||
718 | 717 | ||||
719 | # TODO: root password for su, not sudo? | 718 | # TODO: root password for su, not sudo? | ||
720 | #. (itstool) path: note/para | 719 | #. (itstool) path: note/para | ||
721 | #: C/index-in.docbook:271 | 720 | #: C/index-in.docbook:271 | ||
n | 722 | #, fuzzy | n | ||
723 | msgid "" | 721 | msgid "" | ||
724 | "Remember that on a Unix or Linux operating system, you will probably need to " | 722 | "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 " | 723 | "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</" | 724 | "<command>sudo</command> command will allow you to enter the <literal>root</" | ||
727 | "literal> password and have <literal>root</literal> status temporarily." | 725 | "literal> password and have <literal>root</literal> status temporarily." | ||
2048 | "kompatibilitet behölls. Om du aldrig använt <application>gtkmm</" | 2046 | "kompatibilitet behölls. Om du aldrig använt <application>gtkmm</" | ||
2049 | "application>-2.4-API:t kan du lugnt ignorera detta kapitel." | 2047 | "application>-2.4-API:t kan du lugnt ignorera detta kapitel." | ||
2050 | 2048 | ||||
2051 | #. (itstool) path: chapter/para | 2049 | #. (itstool) path: chapter/para | ||
2052 | #: C/index-in.docbook:696 | 2050 | #: C/index-in.docbook:696 | ||
n | 2053 | #, fuzzy | n | ||
2054 | msgid "" | 2051 | msgid "" | ||
2055 | "<application>gtkmm</application> 3's library is called " | 2052 | "<application>gtkmm</application> 3's library is called " | ||
2056 | "<literal>libgtkmm-3.0</literal> rather than <literal>libgtkmm-2.4</literal> " | 2053 | "<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-" | 2054 | "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 " | 2055 | "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 " | 2112 | "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:" | 2113 | "<application>gtkmm</application>-2.4. Här är en kort lista:" | ||
2117 | 2114 | ||||
2118 | #. (itstool) path: listitem/simpara | 2115 | #. (itstool) path: listitem/simpara | ||
2119 | #: C/index-in.docbook:711 | 2116 | #: C/index-in.docbook:711 | ||
n | 2120 | #, fuzzy | n | ||
2121 | msgid "" | 2117 | msgid "" | ||
2122 | "<classname>Gtk::CellLayout</classname>, used by <classname>Gtk::IconView</" | 2118 | "<classname>Gtk::CellLayout</classname>, used by <classname>Gtk::IconView</" | ||
2123 | "classname>, <classname>Gtk::TreeView::Column</classname> and <classname>Gtk::" | 2119 | "classname>, <classname>Gtk::TreeView::Column</classname> and <classname>Gtk::" | ||
2124 | "ComboBox</classname>, now has a <classname>Gtk::CellArea</classname> which " | 2120 | "ComboBox</classname>, now has a <classname>Gtk::CellArea</classname> which " | ||
2125 | "can be used to specify more details of how the <classname>CellRenderer</" | 2121 | "can be used to specify more details of how the <classname>CellRenderer</" | ||
2131 | "classname> som kan användas för att ange mer detaljer på hur " | 2127 | "classname> som kan användas för att ange mer detaljer på hur " | ||
2132 | "<classname>CellRenderer</classname>-renderarna arrangeras och justeras." | 2128 | "<classname>CellRenderer</classname>-renderarna arrangeras och justeras." | ||
2133 | 2129 | ||||
2134 | #. (itstool) path: listitem/simpara | 2130 | #. (itstool) path: listitem/simpara | ||
2135 | #: C/index-in.docbook:713 | 2131 | #: C/index-in.docbook:713 | ||
n | 2136 | #, fuzzy | n | ||
2137 | msgid "" | 2132 | msgid "" | ||
2138 | "Gtk::ComboBox now derives from CellLayout, allowing easier layout and " | 2133 | "Gtk::ComboBox now derives from CellLayout, allowing easier layout and " | ||
2139 | "alignment of its <classname>Gtk::CellRenderer</classname>s." | 2134 | "alignment of its <classname>Gtk::CellRenderer</classname>s." | ||
2140 | msgstr "" | 2135 | msgstr "" | ||
2141 | "Gtk::ComboBox härleds nu från CellLayout, vilket tillåter lättare layout och " | 2136 | "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 " | 2167 | "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>." | 2168 | "kräva användningen av en härledd klass som <classname>Gtk::HBox</classname>." | ||
2174 | 2169 | ||||
2175 | #. (itstool) path: listitem/simpara | 2170 | #. (itstool) path: listitem/simpara | ||
2176 | #: C/index-in.docbook:720 | 2171 | #: C/index-in.docbook:720 | ||
n | 2177 | #, fuzzy | n | ||
2178 | msgid "" | 2172 | msgid "" | ||
2179 | "<classname>Gtk::IconView</classname>, <classname>Gtk::TextView</classname>, " | 2173 | "<classname>Gtk::IconView</classname>, <classname>Gtk::TextView</classname>, " | ||
2180 | "<classname>Gtk::TreeView</classname> and other widgets derive from " | 2174 | "<classname>Gtk::TreeView</classname> and other widgets derive from " | ||
2181 | "Scrollable instead of having their own methods such as " | 2175 | "Scrollable instead of having their own methods such as " | ||
2182 | "<methodname>get_vadjustment()</methodname> and instead of having their own " | 2176 | "<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 " | 2182 | "<methodname>get_vadjustment()</methodname> och i stället för att ha sin egen " | ||
2189 | "set_scroll_adjustments-signal." | 2183 | "set_scroll_adjustments-signal." | ||
2190 | 2184 | ||||
2191 | #. (itstool) path: listitem/simpara | 2185 | #. (itstool) path: listitem/simpara | ||
2192 | #: C/index-in.docbook:722 | 2186 | #: C/index-in.docbook:722 | ||
n | 2193 | #, fuzzy | n | ||
2194 | msgid "" | 2187 | msgid "" | ||
2195 | "<classname>Gtk::Style</classname> and <classname>Gtk::Rc</classname> were " | 2188 | "<classname>Gtk::Style</classname> and <classname>Gtk::Rc</classname> were " | ||
2196 | "removed, replaced by <classname>Gtk::StyleContext</classname>, and " | 2189 | "removed, replaced by <classname>Gtk::StyleContext</classname>, and " | ||
2197 | "<classname>Gtk::StyleProvider</classname>s, such as <classname>Gtk::" | 2190 | "<classname>Gtk::StyleProvider</classname>s, such as <classname>Gtk::" | ||
2198 | "CssProvider</classname>." | 2191 | "CssProvider</classname>." | ||
2199 | msgstr "" | 2192 | msgstr "" | ||
2200 | "<classname>Gtk::Style</classname> och <classname>Gtk::Rc</classname> togs " | 2193 | "<classname>Gtk::Style</classname> och <classname>Gtk::Rc</classname> togs " | ||
2201 | "bort, ersatta av <classname>Gtk::StyleContext</classname> och olika " | 2194 | "bort, ersatta av <classname>Gtk::StyleContext</classname> och olika " | ||
n | 2202 | "<classname>Gtk::StyleProvider</classname>, som <classname>Gtk::CssProvider</" | n | 2195 | "<classname>Gtk::StyleProvider</classname>-klasser, som <classname>Gtk::" |
2203 | "classname>." | 2196 | "CssProvider</classname>." | ||
2204 | 2197 | ||||
2205 | #. (itstool) path: listitem/simpara | 2198 | #. (itstool) path: listitem/simpara | ||
2206 | #: C/index-in.docbook:724 | 2199 | #: C/index-in.docbook:724 | ||
2207 | msgid "" | 2200 | msgid "" | ||
2208 | "Widget::on_expose_event() was replaced by Widget::on_draw(), which assumes " | 2201 | "Widget::on_expose_event() was replaced by Widget::on_draw(), which assumes " | ||
2215 | "classname> och kräver inte att du anropar <methodname>Cairo::Context::" | 2208 | "classname> och kräver inte att du anropar <methodname>Cairo::Context::" | ||
2216 | "clip()</methodname>." | 2209 | "clip()</methodname>." | ||
2217 | 2210 | ||||
2218 | #. (itstool) path: listitem/simpara | 2211 | #. (itstool) path: listitem/simpara | ||
2219 | #: C/index-in.docbook:726 | 2212 | #: C/index-in.docbook:726 | ||
n | 2220 | #, fuzzy | n | ||
2221 | msgid "" | 2213 | msgid "" | ||
2222 | "<classname>Gdk::RGBA</classname> replaces <classname>Color</classname>, " | 2214 | "<classname>Gdk::RGBA</classname> replaces <classname>Color</classname>, " | ||
2223 | "adding an alpha component for opacity. <classname>Colormap</classname> was " | 2215 | "adding an alpha component for opacity. <classname>Colormap</classname> was " | ||
2224 | "removed, along with its awkward use to allocate colors." | 2216 | "removed, along with its awkward use to allocate colors." | ||
2225 | msgstr "" | 2217 | msgstr "" | ||
2251 | "<classname>Gdk::Drawable</classname> togs bort, dess metoder har flyttat " | 2243 | "<classname>Gdk::Drawable</classname> togs bort, dess metoder har flyttat " | ||
2252 | "till <classname>Gdk::Window</classname>." | 2244 | "till <classname>Gdk::Window</classname>." | ||
2253 | 2245 | ||||
2254 | #. (itstool) path: listitem/simpara | 2246 | #. (itstool) path: listitem/simpara | ||
2255 | #: C/index-in.docbook:732 | 2247 | #: C/index-in.docbook:732 | ||
n | 2256 | #, fuzzy | n | ||
2257 | msgid "" | 2248 | msgid "" | ||
2258 | "We now use std::vector in several methods instead of the intermediate " | 2249 | "We now use std::vector in several methods instead of the intermediate " | ||
2259 | "*Handle types to make the API clearer." | 2250 | "*Handle types to make the API clearer." | ||
2260 | msgstr "" | 2251 | msgstr "" | ||
2261 | "Vi använder nu std::vector i flera metoder i stället för mellanliggande " | 2252 | "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 " | 2317 | "behölls. Om du aldrig använt <application>gtkmm</application>-3.0-API:t kan " | ||
2327 | "du lugnt ignorera detta kapitel." | 2318 | "du lugnt ignorera detta kapitel." | ||
2328 | 2319 | ||||
2329 | #. (itstool) path: chapter/para | 2320 | #. (itstool) path: chapter/para | ||
2330 | #: C/index-in.docbook:754 | 2321 | #: C/index-in.docbook:754 | ||
n | 2331 | #, fuzzy | n | ||
2332 | msgid "" | 2322 | msgid "" | ||
2333 | "<application>gtkmm</application> 4's library is called " | 2323 | "<application>gtkmm</application> 4's library is called " | ||
2334 | "<literal>libgtkmm-4.0</literal> rather than <literal>libgtkmm-3.0</literal> " | 2324 | "<literal>libgtkmm-4.0</literal> rather than <literal>libgtkmm-3.0</literal> " | ||
2335 | "and installs its headers in a similarly-versioned directory, so your " | 2325 | "and installs its headers in a similarly-versioned directory, so your " | ||
2336 | "<application>pkg-config</application> check should ask for " | 2326 | "<application>pkg-config</application> check should ask for " | ||
2343 | "<literal>gtkmm-4.0</literal> snarare än <literal>gtkmm-3.0</literal>." | 2333 | "<literal>gtkmm-4.0</literal> snarare än <literal>gtkmm-3.0</literal>." | ||
2344 | 2334 | ||||
2345 | #. (itstool) path: chapter/para | 2335 | #. (itstool) path: chapter/para | ||
2346 | #: C/index-in.docbook:760 | 2336 | #: C/index-in.docbook:760 | ||
2347 | #, fuzzy | 2337 | #, fuzzy | ||
n | n | 2338 | #| msgid "" | ||
2339 | #| "<application>gtkmm</application>-4.0 is used in combination with " | ||||
2340 | #| "<application>glibmm-2.68</application>, which sets the global locale for " | ||||
2341 | #| "your program. The older <application>glibmm-2.4</application> does not do " | ||||
2342 | #| "that, and <application>gtkmm</application>-3.0 does it only to some " | ||||
2343 | #| "extent. What this means is briefly that if your <application>gtkmm</" | ||||
2344 | #| "application>-3.0 program contains a call to <function>std::locale::" | ||||
2345 | #| "global(std::locale(\"\"))</function>, you can probably remove it. If you " | ||||
2346 | #| "don't want <application>glibmm</application> or <application>gtkmm</" | ||||
2347 | #| "application> to set the global locale for you, you should add a call to " | ||||
2348 | #| "<function>Glib::set_init_to_users_preferred_locale(false)</function> " | ||||
2349 | #| "before any call to <function>Glib::init()</function> or <methodname>Gtk::" | ||||
2350 | #| "Application::create()</methodname>." | ||||
2348 | msgid "" | 2351 | msgid "" | ||
2349 | "<application>gtkmm</application>-4.0 is used in combination with " | 2352 | "<application>gtkmm</application>-4.0 is used in combination with " | ||
2350 | "<application>glibmm-2.68</application>, which sets the global locale for " | 2353 | "<application>glibmm-2.68</application>, which sets the global locale for " | ||
2351 | "your program. The older <application>glibmm-2.4</application> does not do " | 2354 | "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. " | 2355 | "that, and <application>gtkmm</application>-3.0 does it only to some extent. " | ||
2531 | "<classname>Gtk::FontButton</classname> implementerar gränssnittet " | 2534 | "<classname>Gtk::FontButton</classname> implementerar gränssnittet " | ||
2532 | "<classname>Gtk::FontChooser</classname>." | 2535 | "<classname>Gtk::FontChooser</classname>." | ||
2533 | 2536 | ||||
2534 | #. (itstool) path: listitem/simpara | 2537 | #. (itstool) path: listitem/simpara | ||
2535 | #: C/index-in.docbook:822 | 2538 | #: C/index-in.docbook:822 | ||
n | 2536 | #, fuzzy | n | ||
2537 | msgid "" | 2539 | msgid "" | ||
2538 | "<classname>Gtk::Widget</classname>: The <methodname>get_preferred_*_vfunc()</" | 2540 | "<classname>Gtk::Widget</classname>: The <methodname>get_preferred_*_vfunc()</" | ||
2539 | "methodname>s have been replaced by <methodname>measure_vfunc()</methodname>. " | 2541 | "methodname>s have been replaced by <methodname>measure_vfunc()</methodname>. " | ||
2540 | "This change only affects custom widgets." | 2542 | "This change only affects custom widgets." | ||
2541 | msgstr "" | 2543 | msgstr "" | ||
n | 2542 | "<classname>Gtk::Widget</classname>: De olika " | n | 2544 | "<classname>Gtk::Widget</classname>: De olika metoderna " |
2543 | "<methodname>get_preferred_*_vfunc()</methodname> har ersatts med " | 2545 | "<methodname>get_preferred_*_vfunc()</methodname> har ersatts med " | ||
2544 | "<methodname>measure_vfunc()</methodname>. Denna ändring påverkar bara " | 2546 | "<methodname>measure_vfunc()</methodname>. Denna ändring påverkar bara " | ||
2545 | "anpassade komponenter." | 2547 | "anpassade komponenter." | ||
2546 | 2548 | ||||
2547 | #. (itstool) path: listitem/simpara | 2549 | #. (itstool) path: listitem/simpara | ||
4394 | "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/" | 4396 | "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/" | ||
4395 | "classGtk_1_1InfoBar.html\">Referens</link>" | 4397 | "classGtk_1_1InfoBar.html\">Referens</link>" | ||
4396 | 4398 | ||||
4397 | #. (itstool) path: section/para | 4399 | #. (itstool) path: section/para | ||
4398 | #: C/index-in.docbook:1697 | 4400 | #: C/index-in.docbook:1697 | ||
n | 4399 | #, fuzzy | n | ||
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." | ||||
4405 | msgid "" | 4401 | msgid "" | ||
4406 | "The <classname>InfoBar</classname> widget is deprecated since " | 4402 | "The <classname>InfoBar</classname> widget is deprecated since " | ||
4407 | "<application>gtkmm</application> 4.10. The example shows an info bar " | 4403 | "<application>gtkmm</application> 4.10. The example shows an info bar " | ||
4408 | "consisting of a <classname>Box</classname> with a <classname>Label</" | 4404 | "consisting of a <classname>Box</classname> with a <classname>Label</" | ||
4409 | "classname> and a <classname>Button</classname>." | 4405 | "classname> and a <classname>Button</classname>." | ||
4410 | msgstr "" | 4406 | msgstr "" | ||
n | 4411 | "<classname>FileChooser</classname> och klasserna som implementerar den är " | n | 4407 | "<classname>InfoBar</classname>-komponenten är föråldrad sedan " |
4412 | "föråldrade sedan <application>gtkmm</application> 4.10. De har ersatts av " | 4408 | "<application>gtkmm</application> 4.10. Exemplen visar en inforad som består " | ||
4413 | "<classname>FileDialog</classname>, vilken finns tillgänglig sedan " | 4409 | "av en <classname>Box</classname> med en <classname>Label</classname> och en " | ||
4414 | "<application>gtkmm</application> 4.10." | 4410 | "<classname>Button</classname>." | ||
4415 | 4411 | ||||
4416 | #. (itstool) path: imageobject/imagedata | 4412 | #. (itstool) path: imageobject/imagedata | ||
4417 | #. This is a reference to an external file such as an image or video. When | 4413 | #. 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 to | 4414 | #. 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 to | 4415 | #. update your localized copy. The msgstr is not used at all. Set it to | ||
5806 | "link> i <application>gtkmm-documentation</application>s exempel." | 5802 | "link> i <application>gtkmm-documentation</application>s exempel." | ||
5807 | 5803 | ||||
5808 | #. (itstool) path: section/title | 5804 | #. (itstool) path: section/title | ||
5809 | #: C/index-in.docbook:2377 | 5805 | #: C/index-in.docbook:2377 | ||
5810 | #, fuzzy | 5806 | #, fuzzy | ||
n | n | 5807 | #| msgid "The Model" | ||
5811 | msgid "The Data Model" | 5808 | msgid "The Data Model" | ||
5812 | msgstr "Modellen" | 5809 | msgstr "Modellen" | ||
5813 | 5810 | ||||
5814 | #. (itstool) path: section/para | 5811 | #. (itstool) path: section/para | ||
5815 | #: C/index-in.docbook:2379 | 5812 | #: C/index-in.docbook:2379 | ||
5823 | msgstr "" | 5820 | msgstr "" | ||
5824 | 5821 | ||||
5825 | #. (itstool) path: section/para | 5822 | #. (itstool) path: section/para | ||
5826 | #: C/index-in.docbook:2387 | 5823 | #: C/index-in.docbook:2387 | ||
5827 | #, fuzzy | 5824 | #, fuzzy | ||
n | 5828 | #| msgid "" | n | ||
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:" | ||||
5832 | msgid "" | 5825 | msgid "" | ||
5833 | "The elements in a model are called <emphasis>items</emphasis>. All items are " | 5826 | "The elements in a model are called <emphasis>items</emphasis>. All items are " | ||
5834 | "instances of a subclass of <classname>Glib::Object</classname>. For " | 5827 | "instances of a subclass of <classname>Glib::Object</classname>. For " | ||
5835 | "instance, you might have a <classname>ColumnView</classname> with one " | 5828 | "instance, you might have a <classname>ColumnView</classname> with one " | ||
5836 | "integer and one text column, like so:" | 5829 | "integer and one text column, like so:" | ||
5837 | msgstr "" | 5830 | msgstr "" | ||
n | 5838 | "Modellen för en ComboBox kan definieras och fyllas i exakt som för en " | n | 5831 | "Modellen för en <classname>DropDown</classname> kan definieras och fyllas i " |
5839 | "<classname>TreeView</classname>. Exempelvis kan du härleda en ComboBox med " | 5832 | "exakt som för en <classname>ListView</classname> eller en " | ||
5840 | "ett heltal och en textkolumn, så här:" | 5833 | "<classname>ColumnView</classname>. Den måste vara en underklass till " | ||
5834 | "<classname>Glib::Object</classname>. Exempelvis kan du ha en " | ||||
5835 | "<classname>DropDown</classname> med ett heltal och en textkolumn, så här:" | ||||
5841 | 5836 | ||||
5842 | #. (itstool) path: section/programlisting | 5837 | #. (itstool) path: section/programlisting | ||
5843 | #: C/index-in.docbook:2393 C/index-in.docbook:3391 | 5838 | #: C/index-in.docbook:2393 C/index-in.docbook:3391 | ||
5844 | #, fuzzy, no-wrap | 5839 | #, fuzzy, no-wrap | ||
5845 | #| msgid "" | 5840 | #| msgid "" | ||
6381 | msgstr "Filtrera filer" | 6376 | msgstr "Filtrera filer" | ||
6382 | 6377 | ||||
6383 | #. (itstool) path: section/para | 6378 | #. (itstool) path: section/para | ||
6384 | #: C/index-in.docbook:2584 | 6379 | #: C/index-in.docbook:2584 | ||
6385 | #, fuzzy | 6380 | #, fuzzy | ||
n | n | 6381 | #| msgid "" | ||
6382 | #| "<classname>Gtk::Style</classname> and <classname>Gtk::Rc</classname> were " | ||||
6383 | #| "removed, replaced by <classname>Gtk::StyleContext</classname>, and " | ||||
6384 | #| "<classname>Gtk::StyleProvider</classname>s, such as <classname>Gtk::" | ||||
6385 | #| "CssProvider</classname>." | ||||
6386 | msgid "" | 6386 | msgid "" | ||
6387 | "The list can be filtered by wrapping it in a <classname>FilterListModel</" | 6387 | "The list can be filtered by wrapping it in a <classname>FilterListModel</" | ||
6388 | "classname>. Set a <classname>Filter</classname> such as a " | 6388 | "classname>. Set a <classname>Filter</classname> such as a " | ||
6389 | "<classname>StringFilter</classname> or a <classname>BoolFilter</classname> " | 6389 | "<classname>StringFilter</classname> or a <classname>BoolFilter</classname> " | ||
6390 | "to the <classname>FilterListModel</classname>." | 6390 | "to the <classname>FilterListModel</classname>." | ||
6391 | msgstr "" | 6391 | msgstr "" | ||
6392 | "<classname>Gtk::Style</classname> och <classname>Gtk::Rc</classname> togs " | 6392 | "<classname>Gtk::Style</classname> och <classname>Gtk::Rc</classname> togs " | ||
6393 | "bort, ersatta av <classname>Gtk::StyleContext</classname> och olika " | 6393 | "bort, ersatta av <classname>Gtk::StyleContext</classname> och olika " | ||
n | 6394 | "<classname>Gtk::StyleProvider</classname>, som <classname>Gtk::CssProvider</" | n | 6394 | "<classname>Gtk::StyleProvider</classname>-klasser, som <classname>Gtk::" |
6395 | "classname>." | 6395 | "CssProvider</classname>." | ||
6396 | 6396 | ||||
6397 | #. (itstool) path: section/para | 6397 | #. (itstool) path: section/para | ||
6398 | #: C/index-in.docbook:2590 | 6398 | #: C/index-in.docbook:2590 | ||
6399 | #, fuzzy | 6399 | #, fuzzy | ||
6400 | #| msgid "" | 6400 | #| msgid "" | ||
6512 | "classGtk_1_1TreeModelSort.html\">Referens för TreeModelSort</link>" | 6512 | "classGtk_1_1TreeModelSort.html\">Referens för TreeModelSort</link>" | ||
6513 | 6513 | ||||
6514 | #. (itstool) path: figure/title | 6514 | #. (itstool) path: figure/title | ||
6515 | #: C/index-in.docbook:2629 | 6515 | #: C/index-in.docbook:2629 | ||
6516 | #, fuzzy | 6516 | #, fuzzy | ||
n | n | 6517 | #| msgid "The Model" | ||
6517 | msgid "TreeListModel" | 6518 | msgid "TreeListModel" | ||
6518 | msgstr "Modellen" | 6519 | msgstr "Modellen" | ||
6519 | 6520 | ||||
6520 | #. (itstool) path: imageobject/imagedata | 6521 | #. (itstool) path: imageobject/imagedata | ||
6521 | #. This is a reference to an external file such as an image or video. When | 6522 | #. This is a reference to an external file such as an image or video. When | ||
6550 | msgid "The TreeView widget" | 6551 | msgid "The TreeView widget" | ||
6551 | msgstr "TreeView-komponenten" | 6552 | msgstr "TreeView-komponenten" | ||
6552 | 6553 | ||||
6553 | #. (itstool) path: note/para | 6554 | #. (itstool) path: note/para | ||
6554 | #: C/index-in.docbook:2645 | 6555 | #: C/index-in.docbook:2645 | ||
n | 6555 | #, fuzzy | n | ||
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." | ||||
6561 | msgid "" | 6556 | msgid "" | ||
6562 | "<classname>Gtk::TreeView</classname> is deprecated since <application>gtkmm</" | 6557 | "<classname>Gtk::TreeView</classname> is deprecated since <application>gtkmm</" | ||
6563 | "application> 4.10. In new code, use <classname>Gtk::ListView</classname> for " | 6558 | "application> 4.10. In new code, use <classname>Gtk::ListView</classname> for " | ||
6564 | "lists and <classname>Gtk::ColumnView</classname> for tabular lists." | 6559 | "lists and <classname>Gtk::ColumnView</classname> for tabular lists." | ||
6565 | msgstr "" | 6560 | msgstr "" | ||
n | 6566 | "<classname>FileChooserDialog</classname> (föråldrad sedan " | n | 6561 | "<classname>Gtk::TreeView</classname> är föråldrad sedan <application>gtkmm</" |
6567 | "<application>gtkmm</application> 4.10) och <classname>FileDialog</classname> " | 6562 | "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 " | 6563 | "listor och <classname>Gtk::ColumnView</classname> för tabellistor." | ||
6569 | "användning med menyobjekten ”Öppna” eller ”Spara”." | ||||
6570 | 6564 | ||||
6571 | #. (itstool) path: chapter/para | 6565 | #. (itstool) path: chapter/para | ||
6572 | #: C/index-in.docbook:2650 | 6566 | #: C/index-in.docbook:2650 | ||
6573 | msgid "" | 6567 | msgid "" | ||
6574 | "The <classname>Gtk::TreeView</classname> widget can contain lists or trees " | 6568 | "The <classname>Gtk::TreeView</classname> widget can contain lists or trees " | ||
6577 | "Komponenten <classname>Gtk::TreeView</classname> kan innehålla listor eller " | 6571 | "Komponenten <classname>Gtk::TreeView</classname> kan innehålla listor eller " | ||
6578 | "träd med data i kolumner." | 6572 | "träd med data i kolumner." | ||
6579 | 6573 | ||||
6580 | #. (itstool) path: section/title | 6574 | #. (itstool) path: section/title | ||
6581 | #: C/index-in.docbook:2656 | 6575 | #: C/index-in.docbook:2656 | ||
n | 6582 | #, fuzzy | n | ||
6583 | msgid "The Model" | 6576 | msgid "The Model" | ||
6584 | msgstr "Modellen" | 6577 | msgstr "Modellen" | ||
6585 | 6578 | ||||
6586 | #. (itstool) path: section/para | 6579 | #. (itstool) path: section/para | ||
6587 | #: C/index-in.docbook:2658 | 6580 | #: C/index-in.docbook:2658 | ||
7973 | "tillåta eller förbjuda dragning eller släppning genom att returnera " | 7966 | "tillåta eller förbjuda dragning eller släppning genom att returnera " | ||
7974 | "<literal>true</literal> eller <literal>false</literal>." | 7967 | "<literal>true</literal> eller <literal>false</literal>." | ||
7975 | 7968 | ||||
7976 | #. (itstool) path: section/para | 7969 | #. (itstool) path: section/para | ||
7977 | #: C/index-in.docbook:3220 | 7970 | #: C/index-in.docbook:3220 | ||
n | 7978 | #, fuzzy | n | ||
7979 | msgid "This is demonstrated in the drag_and_drop example." | 7971 | msgid "This is demonstrated in the drag_and_drop example." | ||
7980 | msgstr "Detta demonstreras i dra-och-släpp-exemplet." | 7972 | msgstr "Detta demonstreras i dra-och-släpp-exemplet." | ||
7981 | 7973 | ||||
7982 | #. (itstool) path: section/title | 7974 | #. (itstool) path: section/title | ||
7983 | #: C/index-in.docbook:3226 C/index-in.docbook:3336 | 7975 | #: C/index-in.docbook:3226 C/index-in.docbook:3336 | ||
8280 | "signal handlers connected to a <classname>SignalListItemFactory</classname>. " | 8272 | "signal handlers connected to a <classname>SignalListItemFactory</classname>. " | ||
8281 | "This provides flexibility, but the <classname>StringList</classname> class " | 8273 | "This provides flexibility, but the <classname>StringList</classname> class " | ||
8282 | "provides a simpler text-based specialization in case that flexibility is not " | 8274 | "provides a simpler text-based specialization in case that flexibility is not " | ||
8283 | "required." | 8275 | "required." | ||
8284 | msgstr "" | 8276 | msgstr "" | ||
n | 8285 | "Listan tillhandahålls via en <classname>TreeModel</classname>, och kolumner " | n | 8277 | "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 " | 8278 | "från denna modell läggs till vyn för <classname>DropDown</classname>-" | ||
8287 | "<methodname>ComboBox::pack_start()</methodname>. Detta tillhandahåller " | 8279 | "komponenten med signalhanterare anslutna till en " | ||
8288 | "flexibilitet och typsäkerhet under kompilering, men <classname>ComboBoxText</" | 8280 | "<classname>SignalListItemFactory</classname>. Detta tillhandahåller " | ||
8289 | "classname>-klassen tillhandahåller en enklare textbaserad specialisering om " | 8281 | "flexibilitet, men <classname>StringList</classname>-klassen tillhandahåller " | ||
8290 | "den flexibiliteten inte behövs." | 8282 | "en enklare textbaserad specialisering om den flexibiliteten inte behövs." | ||
8291 | 8283 | ||||
8292 | #. (itstool) path: chapter/para | 8284 | #. (itstool) path: chapter/para | ||
8293 | #: C/index-in.docbook:3380 | 8285 | #: C/index-in.docbook:3380 | ||
8294 | msgid "" | 8286 | msgid "" | ||
8295 | "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/" | 8287 | "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/" | ||
8304 | msgstr "Modellen" | 8296 | msgstr "Modellen" | ||
8305 | 8297 | ||||
8306 | #. (itstool) path: section/para | 8298 | #. (itstool) path: section/para | ||
8307 | #: C/index-in.docbook:3385 | 8299 | #: C/index-in.docbook:3385 | ||
8308 | #, fuzzy | 8300 | #, fuzzy | ||
n | 8309 | #| 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:" | ||||
8313 | msgid "" | 8301 | msgid "" | ||
8314 | "The model for a <classname>DropDown</classname> can be defined and filled " | 8302 | "The model for a <classname>DropDown</classname> can be defined and filled " | ||
8315 | "exactly as for a <classname>ListView</classname> or a <classname>ColumnView</" | 8303 | "exactly as for a <classname>ListView</classname> or a <classname>ColumnView</" | ||
8316 | "classname>. It must be a subclass of <classname>Glib::Object</classname>. " | 8304 | "classname>. It must be a subclass of <classname>Glib::Object</classname>. " | ||
8317 | "For instance, you might have a <classname>DropDown</classname> with one " | 8305 | "For instance, you might have a <classname>DropDown</classname> with one " | ||
8318 | "integer and one text column, like so:" | 8306 | "integer and one text column, like so:" | ||
8319 | msgstr "" | 8307 | msgstr "" | ||
n | 8320 | "Modellen för en ComboBox kan definieras och fyllas i exakt som för en " | n | 8308 | "Modellen för en <classname>DropDown</classname> kan definieras och fyllas i " |
8321 | "<classname>TreeView</classname>. Exempelvis kan du härleda en ComboBox med " | 8309 | "exakt som för en <classname>ListView</classname> eller en " | ||
8322 | "ett heltal och en textkolumn, så här:" | 8310 | "<classname>ColumnView</classname>. Den måste vara en underklass till " | ||
8311 | "<classname>Glib::Object</classname>. Exempelvis kan du ha en " | ||||
8312 | "<classname>DropDown</classname> med ett heltal och en textkolumn, så här:" | ||||
8323 | 8313 | ||||
8324 | #. (itstool) path: section/para | 8314 | #. (itstool) path: section/para | ||
8325 | #: C/index-in.docbook:3413 | 8315 | #: C/index-in.docbook:3413 | ||
8326 | #, fuzzy | 8316 | #, fuzzy | ||
8327 | msgid "" | 8317 | msgid "" | ||
8360 | "get the selected data from the model. For instance, you might read an " | 8350 | "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 " | 8351 | "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 " | 8352 | "the human-readable description in the <classname>DropDown</classname>. For " | ||
8363 | "instance:" | 8353 | "instance:" | ||
8364 | msgstr "" | 8354 | msgstr "" | ||
n | 8365 | "För att upptäcka vilket objekt, om något, som användaren har valt från en " | n | 8355 | "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>. " | 8356 | "<classname>DropDown</classname>, anropa <methodname>DropDown::" | ||
8367 | "Detta<classname>TreeModel::iterator</classname> returnerar en som du kan " | 8357 | "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 " | 8358 | "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, " | 8359 | "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 " | 8360 | "mänskligt läsbara beskrivningen i vår <classname>DropDown</classname>. Till " | ||
8371 | "ComboBox. Till exempel:" | 8361 | "exempel:" | ||
8372 | 8362 | ||||
8373 | #. (itstool) path: section/programlisting | 8363 | #. (itstool) path: section/programlisting | ||
8374 | #: C/index-in.docbook:3433 | 8364 | #: C/index-in.docbook:3433 | ||
8375 | #, fuzzy, no-wrap | 8365 | #, fuzzy, no-wrap | ||
8376 | msgid "" | 8366 | msgid "" | ||
8407 | "You might need to react to every change of selection in the " | 8397 | "You might need to react to every change of selection in the " | ||
8408 | "<classname>DropDown</classname>, for instance to update other widgets. To do " | 8398 | "<classname>DropDown</classname>, for instance to update other widgets. To do " | ||
8409 | "so, you should connect to <methodname>property_selected().signal_changed()</" | 8399 | "so, you should connect to <methodname>property_selected().signal_changed()</" | ||
8410 | "methodname>. For instance:" | 8400 | "methodname>. For instance:" | ||
8411 | msgstr "" | 8401 | msgstr "" | ||
n | 8412 | "Du behöver reagera på varje ändring av val i vår ComboBox, till exempel för " | n | 8402 | "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 " | 8403 | "classname>, till exempel för att uppdatera andra komponenter. För att göra " | ||
8414 | "<literal>changed</literal>. Till exempel:" | 8404 | "så bör du ansluta till <methodname>property_selected().signal_changed()</" | ||
8405 | "methodname>. Till exempel:" | ||||
8415 | 8406 | ||||
8416 | #. (itstool) path: section/programlisting | 8407 | #. (itstool) path: section/programlisting | ||
8417 | #: C/index-in.docbook:3452 | 8408 | #: C/index-in.docbook:3452 | ||
8418 | #, fuzzy, no-wrap | 8409 | #, fuzzy, no-wrap | ||
8419 | #| msgid "" | 8410 | #| msgid "" | ||
8561 | msgid "Font Example" | 8552 | msgid "Font Example" | ||
8562 | msgstr "Typsnittsexempel" | 8553 | msgstr "Typsnittsexempel" | ||
8563 | 8554 | ||||
8564 | #. (itstool) path: section/para | 8555 | #. (itstool) path: section/para | ||
8565 | #: C/index-in.docbook:3506 | 8556 | #: C/index-in.docbook:3506 | ||
n | 8566 | #, fuzzy | n | ||
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." | ||||
8573 | msgid "" | 8557 | msgid "" | ||
8574 | "This example uses a <classname>Pango::FontMap</classname> as its model. This " | 8558 | "This example uses a <classname>Pango::FontMap</classname> as its model. This " | ||
8575 | "is possible because <classname>Pango::FontMap</classname> implements the " | 8559 | "is possible because <classname>Pango::FontMap</classname> implements the " | ||
8576 | "<classname>Gio::ListModel</classname> interface. Of course you can use a " | 8560 | "<classname>Gio::ListModel</classname> interface. Of course you can use a " | ||
8577 | "<classname>FontDialogButton</classname> instead." | 8561 | "<classname>FontDialogButton</classname> instead." | ||
8578 | msgstr "" | 8562 | msgstr "" | ||
n | 8579 | "<classname>Gtk::Button</classname>, <classname>Gtk::ToolButton</classname>, " | n | 8563 | "Detta exempel använder en <classname>Pango::FontMap</classname> som sin " |
8580 | "<classname>Gtk::MenuItem</classname> och <classname>Gtk::Switch</classname> " | 8564 | "modell. Detta är möjligt för att <classname>Pango::FontMap</classname> " | ||
8581 | "implementerar <classname>Gtk::Actionable</classname>-gränssnittet i stället " | 8565 | "implementerar <classname>Gio::ListModel</classname>-gränssnittet. Du kan " | ||
8582 | "för det borttagna <classname>Gtk::Activatable</classname>-gränssnittet." | 8566 | "förstås använda en <classname>FontDialogButton</classname> i stället." | ||
8583 | 8567 | ||||
8584 | #. (itstool) path: figure/title | 8568 | #. (itstool) path: figure/title | ||
8585 | #: C/index-in.docbook:3513 C/index-in.docbook:3532 | 8569 | #: C/index-in.docbook:3513 C/index-in.docbook:3532 | ||
8586 | msgid "Search Font" | 8570 | msgid "Search Font" | ||
8587 | msgstr "Sök typsnitt" | 8571 | msgstr "Sök typsnitt" | ||
8655 | msgid "Combo Boxes" | 8639 | msgid "Combo Boxes" | ||
8656 | msgstr "Kombinationsrutor" | 8640 | msgstr "Kombinationsrutor" | ||
8657 | 8641 | ||||
8658 | #. (itstool) path: note/para | 8642 | #. (itstool) path: note/para | ||
8659 | #: C/index-in.docbook:3545 | 8643 | #: C/index-in.docbook:3545 | ||
n | 8660 | #, fuzzy | n | ||
8661 | #| msgid "" | ||||
8662 | #| "<classname>Gdk::DrawContext</classname> and <classname>Gdk::CairoContext</" | ||||
8663 | #| "classname> are new. <classname>Gdk::DrawingContext</classname> has been " | ||||
8664 | #| "removed." | ||||
8665 | msgid "" | 8644 | msgid "" | ||
8666 | "<classname>Gtk::ComboBox</classname> and <classname>Gtk::ComboBoxText</" | 8645 | "<classname>Gtk::ComboBox</classname> and <classname>Gtk::ComboBoxText</" | ||
8667 | "classname> are deprecated since <application>gtkmm</application> 4.10. Use " | 8646 | "classname> are deprecated since <application>gtkmm</application> 4.10. Use " | ||
8668 | "<classname>Gtk::DropDown</classname> in new code." | 8647 | "<classname>Gtk::DropDown</classname> in new code." | ||
8669 | msgstr "" | 8648 | msgstr "" | ||
n | 8670 | "<classname>Gdk::DrawContext</classname> och <classname>Gdk::CairoContext</" | n | 8649 | "<classname>Gtk::ComboBox</classname> och <classname>Gtk::ComboBoxText</" |
8671 | "classname> är nya. <classname>Gdk::DrawingContext</classname> har tagits " | 8650 | "classname> är föråldrade sedan <application>gtkmm</application> 4.10. Använd " | ||
8672 | "bort." | 8651 | "<classname>Gtk::DropDown</classname> i ny kod." | ||
8673 | 8652 | ||||
8674 | #. (itstool) path: chapter/para | 8653 | #. (itstool) path: chapter/para | ||
8675 | #: C/index-in.docbook:3549 | 8654 | #: C/index-in.docbook:3549 | ||
8676 | msgid "" | 8655 | msgid "" | ||
8677 | "The <classname>ComboBox</classname> widget offers a list (or tree) of " | 8656 | "The <classname>ComboBox</classname> widget offers a list (or tree) of " | ||
10814 | "kunde det vara det anpassade svarsvärdet som du angivit när du använt " | 10793 | "kunde det vara det anpassade svarsvärdet som du angivit när du använt " | ||
10815 | "<methodname>add_button()</methodname>." | 10794 | "<methodname>add_button()</methodname>." | ||
10816 | 10795 | ||||
10817 | #. (itstool) path: chapter/para | 10796 | #. (itstool) path: chapter/para | ||
10818 | #: C/index-in.docbook:4499 | 10797 | #: C/index-in.docbook:4499 | ||
n | 10819 | #, fuzzy | n | ||
10820 | msgid "" | 10798 | msgid "" | ||
10821 | "To show the dialog, call <methodname>set_visible(true)</methodname>. If the " | 10799 | "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 " | 10800 | "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 " | 10801 | "<methodname>set_hide_on_close()</methodname>, or else the dialog will be " | ||
10824 | "destroyed when it's closed. Connect to the <literal>response</literal> " | 10802 | "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</" | 10803 | "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." | 10804 | "literal> signal handler is also where you should hide the dialog." | ||
10827 | msgstr "" | 10805 | msgstr "" | ||
n | 10828 | "För att visa dialogrutan, anropa <methodname>show()</methodname>. Om samma " | n | 10806 | "För att visa dialogrutan, anropa <methodname>set_visible(true)</methodname>. " |
10829 | "dialoginstans kommer visas flera gånger måste du också anropa " | 10807 | "Om samma dialoginstans kommer visas flera gånger måste du också anropa " | ||
10830 | "<methodname>set_hide_on_close()</methodname>, annars kommer dialogrutan " | 10808 | "<methodname>set_hide_on_close()</methodname>, annars kommer dialogrutan " | ||
10831 | "förstöras då den stängs. Anslut till <literal>response</literal>-signalen om " | 10809 | "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>-" | 10810 | "du vill veta vilken knapp som trycktes på. <literal>response</literal>-" | ||
10833 | "signalhanteraren är också var du ska dölja dialogrutan." | 10811 | "signalhanteraren är också var du ska dölja dialogrutan." | ||
10834 | 10812 | ||||
14980 | msgid "Timeouts, I/O and Idle Functions" | 14958 | msgid "Timeouts, I/O and Idle Functions" | ||
14981 | msgstr "Timeout, I/O och inaktivitetsfunktioner" | 14959 | msgstr "Timeout, I/O och inaktivitetsfunktioner" | ||
14982 | 14960 | ||||
14983 | #. (itstool) path: section/title | 14961 | #. (itstool) path: section/title | ||
14984 | #: C/index-in.docbook:6435 | 14962 | #: C/index-in.docbook:6435 | ||
n | 14985 | #, fuzzy | n | ||
14986 | msgid "Timeouts" | 14963 | msgid "Timeouts" | ||
14987 | msgstr "Timeout" | 14964 | msgstr "Timeout" | ||
14988 | 14965 | ||||
14989 | #. (itstool) path: section/para | 14966 | #. (itstool) path: section/para | ||
14990 | #: C/index-in.docbook:6437 | 14967 | #: C/index-in.docbook:6437 | ||
15487 | "över klassräckvidd är det ökade datadöljandet och minskade beroendena." | 15464 | "över klassräckvidd är det ökade datadöljandet och minskade beroendena." | ||
15488 | 15465 | ||||
15489 | #. (itstool) path: section/programlisting | 15466 | #. (itstool) path: section/programlisting | ||
15490 | #: C/index-in.docbook:6672 | 15467 | #: C/index-in.docbook:6672 | ||
15491 | #, fuzzy, no-wrap | 15468 | #, fuzzy, no-wrap | ||
n | n | 15469 | #| msgid "" | ||
15470 | #| "\n" | ||||
15471 | #| "{\n" | ||||
15472 | #| " Gtk::Button aButton;\n" | ||||
15473 | #| " aButton.set_visible(true);\n" | ||||
15474 | #| " ...\n" | ||||
15475 | #| " app->run();\n" | ||||
15476 | #| "}\n" | ||||
15492 | msgid "" | 15477 | msgid "" | ||
15493 | "<code>{\n" | 15478 | "<code>{\n" | ||
15494 | " Gtk::Button aButton;\n" | 15479 | " Gtk::Button aButton;\n" | ||
15495 | " aButton.set_visible(true);\n" | 15480 | " aButton.set_visible(true);\n" | ||
15496 | " ...\n" | 15481 | " ...\n" | ||
15499 | "</code>" | 15484 | "</code>" | ||
15500 | msgstr "" | 15485 | msgstr "" | ||
15501 | "\n" | 15486 | "\n" | ||
15502 | "{\n" | 15487 | "{\n" | ||
15503 | " Gtk::Button aButton;\n" | 15488 | " Gtk::Button aButton;\n" | ||
n | 15504 | " aButton.show();\n" | n | 15489 | " aButton.set_visible(true);\n" |
15505 | " ...\n" | 15490 | " ...\n" | ||
15506 | " app->run();\n" | 15491 | " app->run();\n" | ||
15507 | "}\n" | 15492 | "}\n" | ||
15508 | 15493 | ||||
15509 | #. (itstool) path: section/para | 15494 | #. (itstool) path: section/para | ||
16064 | "<methodname>get_widget()</methodname> method, providing the widget's name. " | 16049 | "<methodname>get_widget()</methodname> method, providing the widget's name. " | ||
16065 | "This name should be specified in the <application>Cambalache</application> " | 16050 | "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 " | 16051 | "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>." | 16052 | "pointer will be set to <literal>nullptr</literal>." | ||
16068 | msgstr "" | 16053 | msgstr "" | ||
n | 16069 | "För att komma åt en komponent, exempelvis för att visa en dialogruta med " | n | 16054 | "För att komma åt en komponent, exempelvis för att visa en dialogruta, " |
16070 | "<methodname>show()</methodname>, använder du metoden " | 16055 | "använder du metoden <methodname>get_widget()</methodname> och " | ||
16071 | "<methodname>get_widget()</methodname> och tillhandahåller komponentens namn. " | 16056 | "tillhandahåller komponentens namn. Detta namn bör anges i " | ||
16072 | "Detta namn bör anges i <application>Glade</application>s egenskapsfönster. " | 16057 | "<application>Glade</application>s egenskapsfönster. Om komponenten inte " | ||
16073 | "Om komponenten inte kunde hittas eller är av fel typ så kommer pekaren " | 16058 | "kunde hittas eller är av fel typ så kommer pekaren sättas till nullptr." | ||
16074 | "sättas till nullptr." | ||||
16075 | 16059 | ||||
16076 | #. (itstool) path: section/para | 16060 | #. (itstool) path: section/para | ||
16077 | #: C/index-in.docbook:6910 | 16061 | #: C/index-in.docbook:6910 | ||
n | 16078 | #, fuzzy | n | ||
16079 | msgid "" | 16062 | msgid "" | ||
16080 | "The dialogs in this chapter are derived from <classname>Gtk::Window</" | 16063 | "The dialogs in this chapter are derived from <classname>Gtk::Window</" | ||
16081 | "classname> because <classname>Gtk::Dialog</classname> is deprecated since " | 16064 | "classname> because <classname>Gtk::Dialog</classname> is deprecated since " | ||
16082 | "<application>gtkmm</application> 4.10." | 16065 | "<application>gtkmm</application> 4.10." | ||
16083 | msgstr "" | 16066 | msgstr "" | ||
n | 16084 | "I detta steg använder vi en <classname>Gtk::Builder</classname>-instans för " | n | 16067 | "Dialogrutorna i detta kapitel härleds från <classname>Gtk::Window</" |
16085 | "att associera en <classname>Gtk::Builder</classname>-ui-fil med vår " | 16068 | "classname> eftersom <classname>Gtk::Dialog</classname> är föråldrat sedan " | ||
16086 | "programfönsterklass." | 16069 | "<application>gtkmm</application> 4.10." | ||
16087 | 16070 | ||||
16088 | #. (itstool) path: section/programlisting | 16071 | #. (itstool) path: section/programlisting | ||
16089 | #: C/index-in.docbook:6914 | 16072 | #: C/index-in.docbook:6914 | ||
16090 | #, fuzzy, no-wrap | 16073 | #, fuzzy, no-wrap | ||
16091 | msgid "" | 16074 | msgid "" | ||
16101 | msgid "" | 16084 | msgid "" | ||
16102 | "<classname>Gtk::Builder</classname> checks for a null pointer, and checks " | 16085 | "<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 " | 16086 | "that the widget is of the expected type, and will show warnings on the " | ||
16104 | "command line about these." | 16087 | "command line about these." | ||
16105 | msgstr "" | 16088 | msgstr "" | ||
n | 16106 | "<application>Gtk::Builder</application> tittar efter en null-pekare, och " | n | 16089 | "<classname>Gtk::Builder</classname> tittar efter en null-pekare, och " |
16107 | "kontrollerar att komponenten är av förväntad typ, och kommer visa varningar " | 16090 | "kontrollerar att komponenten är av förväntad typ, och kommer visa varningar " | ||
16108 | "på kommandoraden om dessa." | 16091 | "på kommandoraden om dessa." | ||
16109 | 16092 | ||||
16110 | #. (itstool) path: section/para | 16093 | #. (itstool) path: section/para | ||
16111 | #: C/index-in.docbook:6923 | 16094 | #: C/index-in.docbook:6923 | ||
16313 | "}\n" | 16296 | "}\n" | ||
16314 | 16297 | ||||
16315 | #. (itstool) path: section/para | 16298 | #. (itstool) path: section/para | ||
16316 | #: C/index-in.docbook:7009 | 16299 | #: C/index-in.docbook:7009 | ||
16317 | #, fuzzy | 16300 | #, fuzzy | ||
n | n | 16301 | #| msgid "" | ||
16302 | #| "It's possible to pass additional arguments from " | ||||
16303 | #| "<methodname>get_widget_derived()</methodname> to the constructor of the " | ||||
16304 | #| "derived widget. For instance, this call to " | ||||
16305 | #| "<methodname>get_widget_derived()</methodname> <_:programlisting-1/> can " | ||||
16306 | #| "invoke this constructor" | ||||
16318 | msgid "" | 16307 | msgid "" | ||
16319 | "It's possible to pass additional arguments from " | 16308 | "It's possible to pass additional arguments from " | ||
16320 | "<methodname>get_widget_derived()</methodname> to the constructor of the " | 16309 | "<methodname>get_widget_derived()</methodname> to the constructor of the " | ||
16321 | "derived widget. For instance, this call to <methodname>get_widget_derived()</" | 16310 | "derived widget. For instance, this call to <methodname>get_widget_derived()</" | ||
16322 | "methodname>" | 16311 | "methodname>" | ||
16323 | msgstr "" | 16312 | msgstr "" | ||
16324 | "Det är möjligt att skicka ytterligare argument från " | 16313 | "Det är möjligt att skicka ytterligare argument från " | ||
16325 | "<methodname>get_widget_derived()</methodname> till konstruktorn för den " | 16314 | "<methodname>get_widget_derived()</methodname> till konstruktorn för den " | ||
16326 | "härledda komponenten. Exempelvis kan detta anrop till " | 16315 | "härledda komponenten. Exempelvis kan detta anrop till " | ||
16327 | "<methodname>get_widget_derived()</methodname> <_:programlisting-1/> starta " | 16316 | "<methodname>get_widget_derived()</methodname> <_:programlisting-1/> starta " | ||
n | 16328 | "denna konstruktor <_:programlisting-2/>" | n | 16317 | "denna konstruktor" |
16329 | 16318 | ||||
16330 | #. (itstool) path: section/programlisting | 16319 | #. (itstool) path: section/programlisting | ||
16331 | #: C/index-in.docbook:7014 | 16320 | #: C/index-in.docbook:7014 | ||
16332 | #, fuzzy, no-wrap | 16321 | #, fuzzy, no-wrap | ||
16333 | msgid "" | 16322 | msgid "" | ||
18050 | "huvud taget, anropas från klassens init-funktion. Några andra " | 18039 | "huvud taget, anropas från klassens init-funktion. Några andra " | ||
18051 | "<application>GTK</application>-funktioner måste, om de anropas, anropas från " | 18040 | "<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 " | 18041 | "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::" | 18042 | "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. " | 18043 | "ExtraClassInit</classname> och härleda din anpassade klass från den klassen. " | ||
n | n | 18044 | "Exemplet för <link linkend=\"custom-css-name-example\">anpassat CSS-namn</" | ||
18055 | "Följande exempel visar hur detta görs." | 18045 | "link> visar hur detta görs." | ||
18056 | 18046 | ||||
18057 | #. (itstool) path: section/para | 18047 | #. (itstool) path: section/para | ||
18058 | #: C/index-in.docbook:7780 | 18048 | #: C/index-in.docbook:7780 | ||
18059 | msgid "This example implements a widget which draws Penrose triangles." | 18049 | msgid "This example implements a widget which draws Penrose triangles." | ||
18060 | msgstr "Detta exempel implementerar en komponent som ritar Penrose-trianglar." | 18050 | msgstr "Detta exempel implementerar en komponent som ritar Penrose-trianglar." | ||
18110 | "som endast tillämpas på dessa komponenter, exempelvis vissa knappar, utan " | 18100 | "som endast tillämpas på dessa komponenter, exempelvis vissa knappar, utan " | ||
18111 | "att påverka andra liknande komponenter." | 18101 | "att påverka andra liknande komponenter." | ||
18112 | 18102 | ||||
18113 | #. (itstool) path: section/title | 18103 | #. (itstool) path: section/title | ||
18114 | #: C/index-in.docbook:7803 | 18104 | #: C/index-in.docbook:7803 | ||
n | 18115 | #, fuzzy | n | ||
18116 | msgid "CSS Node Name, Widget Name, CSS Class Name" | 18105 | msgid "CSS Node Name, Widget Name, CSS Class Name" | ||
18117 | msgstr "CSS-nodnamn, Komponentnamn, CSS-klassnamn" | 18106 | msgstr "CSS-nodnamn, Komponentnamn, CSS-klassnamn" | ||
18118 | 18107 | ||||
18119 | #. (itstool) path: listitem/para | 18108 | #. (itstool) path: listitem/para | ||
18120 | #: C/index-in.docbook:7807 | 18109 | #: C/index-in.docbook:7807 | ||
18145 | "konstruktor. Den ställer in namnet för en komponentinstans." | 18134 | "konstruktor. Den ställer in namnet för en komponentinstans." | ||
18146 | 18135 | ||||
18147 | #. (itstool) path: listitem/para | 18136 | #. (itstool) path: listitem/para | ||
18148 | #: C/index-in.docbook:7814 | 18137 | #: C/index-in.docbook:7814 | ||
18149 | #, fuzzy | 18138 | #, fuzzy | ||
n | n | 18139 | #| msgid "" | ||
18140 | #| "<methodname>Gtk::Widget::add_class_name()</methodname> can be called from " | ||||
18141 | #| "a C++ constructor. It adds the name of a CSS class, used by a widget " | ||||
18142 | #| "instance." | ||||
18150 | msgid "" | 18143 | msgid "" | ||
18151 | "<methodname>Gtk::Widget::add_class_name()</methodname> can be called from a " | 18144 | "<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 " | 18145 | "<phrase role=\"nowrap\">C++</phrase> constructor. It adds the name of a CSS " | ||
18153 | "class, used by a widget instance." | 18146 | "class, used by a widget instance." | ||
18154 | msgstr "" | 18147 | msgstr "" | ||
n | 18155 | "<methodname>Gtk::Widget::set_name()</methodname> kan anropas från en C++-" | n | 18148 | "<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 " | 18149 | "+-konstruktor. Den lägger till namnet för en CSS-klass, använd av en " | ||
18157 | "komponentinstans." | 18150 | "komponentinstans." | ||
18158 | 18151 | ||||
18159 | #. (itstool) path: section/para | 18152 | #. (itstool) path: section/para | ||
18160 | #: C/index-in.docbook:7805 | 18153 | #: C/index-in.docbook:7805 | ||
18161 | #, fuzzy | 18154 | #, fuzzy | ||
18162 | msgid "" | 18155 | msgid "" | ||
18163 | "There are three ways of referring from a widget to data in a CSS file: <_:" | 18156 | "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 " | 18157 | "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." | 18158 | "name, a label with a widget name and a label that uses its own CSS class." | ||
18166 | msgstr "" | 18159 | msgstr "" | ||
n | 18167 | "Det finns två sätt att ge en komponent ett namn som du kan hänvisa till från " | n | 18160 | "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 " | 18161 | "itemizedlist-1/> Följande exempel visar en knapp med eget CSS-nodnamn, en " | ||
18169 | "CSS-nodnamn och en etikett med ett komponentnamn." | 18162 | "etikett med ett komponentnamn och en etikett som använder sin egen CSS-klass." | ||
18170 | 18163 | ||||
18171 | #. (itstool) path: section/title | 18164 | #. (itstool) path: section/title | ||
18172 | #: C/index-in.docbook:7823 | 18165 | #: C/index-in.docbook:7823 | ||
18173 | msgid "Custom Style Information" | 18166 | msgid "Custom Style Information" | ||
18174 | msgstr "Anpassad stilinformation" | 18167 | msgstr "Anpassad stilinformation" | ||
18750 | "endast ett huvudfönster. Dessa program kan använda <methodname>Gtk::" | 18743 | "endast ett huvudfönster. Dessa program kan använda <methodname>Gtk::" | ||
18751 | "Application::make_window_and_run(int argc, char** argv, T_Args&&... " | 18744 | "Application::make_window_and_run(int argc, char** argv, T_Args&&... " | ||
18752 | "args)</methodname>. Det skapar och visar ett fönster. När fönstret är dolt " | 18745 | "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 " | 18746 | "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, " | 18747 | "returnerar till anroparen. Detta kan hända när användaren stänger fönstret, " | ||
n | 18755 | "eller när din kod bestämmer sig för att köra <methodname>hide()</methodname> " | n | 18748 | "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 " | 18749 | "<methodname>set_visible(false)</methodname>. Du kan förhindra användaren " | ||
18757 | "(exempelvis om det finns osparade ändringar) genom att åsidosätta " | 18750 | "från att stränga fönstret (exempelvis om det finns osparade ändringar) genom " | ||
18758 | "<methodname>Gtk::Window::on_close_request()</methodname>." | 18751 | "att åsidosätta <methodname>Gtk::Window::on_close_request()</methodname>." | ||
18759 | 18752 | ||||
18760 | #. (itstool) path: section/para | 18753 | #. (itstool) path: section/para | ||
18761 | #: C/index-in.docbook:8139 | 18754 | #: C/index-in.docbook:8139 | ||
18762 | msgid "Most of our examples use this technique." | 18755 | msgid "Most of our examples use this technique." | ||
18763 | msgstr "De flesta av våra exempel använder denna teknik." | 18756 | msgstr "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::" | 18811 | "Packa komponenten i en behållare med lämpligt anrop, t.ex. <methodname>Gtk::" | ||
18819 | "Box::append()</methodname>." | 18812 | "Box::append()</methodname>." | ||
18820 | 18813 | ||||
18821 | #. (itstool) path: section/para | 18814 | #. (itstool) path: section/para | ||
18822 | #: C/index-in.docbook:8187 | 18815 | #: C/index-in.docbook:8187 | ||
n | 18823 | #, fuzzy | n | ||
18824 | msgid "" | 18816 | msgid "" | ||
18825 | "If you don't want all widgets to be shown, call <methodname>Gtk::Widget::" | 18817 | "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. " | 18818 | "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, " | 18819 | "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 " | 18820 | "even if <methodname>set_visible(false)</methodname> is not called on the " | ||
18829 | "child widgets." | 18821 | "child widgets." | ||
18830 | msgstr "" | 18822 | msgstr "" | ||
18831 | "Om du inte vill att alla komponenter ska visas anropar du <methodname>Gtk::" | 18823 | "Om du inte vill att alla komponenter ska visas anropar du <methodname>Gtk::" | ||
n | 18832 | "Widget::hide()</methodname> på komponenterna som du inte vill ska visas. Om " | n | 18824 | "Widget::set_visible(false)</methodname> på komponenterna som du inte vill " |
18833 | "en behållarkomponent är dold så är även alla dess underordnade komponenter " | 18825 | "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 " | 18826 | "komponenter dolda, även om <methodname>set_visible(false)</methodname> inte " | ||
18835 | "underordnade komponenterna." | 18827 | "anropas på de underordnade komponenterna." | ||
18836 | 18828 | ||||
18837 | #. (itstool) path: chapter/title | 18829 | #. (itstool) path: chapter/title | ||
18838 | #: C/index-in.docbook:8198 | 18830 | #: C/index-in.docbook:8198 | ||
18839 | msgid "Building applications" | 18831 | msgid "Building applications" | ||
18840 | msgstr "Bygga program" | 18832 | msgstr "Bygga program" | ||
19556 | "FontDialogButton</classname> and <classname>Gtk::DropDown</classname> in the " | 19548 | "FontDialogButton</classname> and <classname>Gtk::DropDown</classname> in the " | ||
19557 | "preference dialog. The types of the properties in these classes can't be " | 19549 | "preference dialog. The types of the properties in these classes can't be " | ||
19558 | "automatically converted to the string type that <classname>Gio::Settings</" | 19550 | "automatically converted to the string type that <classname>Gio::Settings</" | ||
19559 | "classname> requires." | 19551 | "classname> requires." | ||
19560 | msgstr "" | 19552 | msgstr "" | ||
n | 19561 | "Vi denna punkt kommer programmet redan reagera om du ändrar en av " | n | 19553 | "Vid denna punkt kommer programmet redan reagera om du ändrar en av " |
19562 | "inställningarna, exempelvis genom att använda kommandoradsverktyget " | 19554 | "inställningarna, exempelvis genom att använda kommandoradsverktyget " | ||
19563 | "<command>gsettings</command>. Vi förväntar oss förstås att programmet " | 19555 | "<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 " | 19556 | "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</" | 19557 | "inställningsdialog kommer vara en underklass av <classname>Gtk::Dialog</" | ||
19566 | "classname>, och vi kommer använda samma tekniker som vi redan sett i " | 19558 | "classname>, och vi kommer använda samma tekniker som vi redan sett i " | ||
19567 | "<classname>ExampleAppWindow</classname>: en <classname>Gtk::Builder</" | 19559 | "<classname>ExampleAppWindow</classname>: en <classname>Gtk::Builder</" | ||
n | 19568 | "classname>-ui-fil och inställningsbindningar." | n | 19560 | "classname>-ui-fil och inställningsbindningar. I detta fall är dock " |
19561 | "bindningarna mer avancerade. Vi använder <classname>Gtk::FontDialogButton</" | ||||
19562 | "classname> och <classname>Gtk::DropDown</classname> i inställningsdialogen. " | ||||
19563 | "Typerna för egenskaperna i dessa klasser kan inte automatiskt konverteras " | ||||
19564 | "till den strängtyp som <classname>Gio::Settings</classname> kräver." | ||||
19569 | 19565 | ||||
19570 | #. (itstool) path: section/para | 19566 | #. (itstool) path: section/para | ||
19571 | #: C/index-in.docbook:8525 | 19567 | #: C/index-in.docbook:8525 | ||
19572 | #, fuzzy | 19568 | #, fuzzy | ||
19573 | msgid "" | 19569 | msgid "" | ||
19577 | "in our application class, and make it open a new preference dialog." | 19573 | "in our application class, and make it open a new preference dialog." | ||
19578 | msgstr "" | 19574 | msgstr "" | ||
19579 | "När vi skapat filen <filename>prefs.ui</filename> och klassen " | 19575 | "När vi skapat filen <filename>prefs.ui</filename> och klassen " | ||
19580 | "<classname>ExampleAppPrefs</classname> besöker vi åter metoden " | 19576 | "<classname>ExampleAppPrefs</classname> besöker vi åter metoden " | ||
19581 | "<methodname>ExampleApplication::on_action_preferences()</methodname> i vår " | 19577 | "<methodname>ExampleApplication::on_action_preferences()</methodname> i vår " | ||
n | 19582 | "programklass, och får den öppna en ny inställningsdialog." | n | 19578 | "programklass, och får den att öppna en ny inställningsdialog." |
19583 | 19579 | ||||
19584 | #. (itstool) path: section/programlisting | 19580 | #. (itstool) path: section/programlisting | ||
19585 | #: C/index-in.docbook:8530 | 19581 | #: C/index-in.docbook:8530 | ||
19586 | #, fuzzy, no-wrap | 19582 | #, fuzzy, no-wrap | ||
19587 | #| msgid "" | 19583 | #| msgid "" | ||
20114 | "filename>. Denna fil finns i modulen <literal>gtkmm-documentation</literal> " | 20110 | "filename>. Denna fil finns i modulen <literal>gtkmm-documentation</literal> " | ||
20115 | "i GNOME git." | 20111 | "i GNOME git." | ||
20116 | 20112 | ||||
20117 | #. (itstool) path: chapter/para | 20113 | #. (itstool) path: chapter/para | ||
20118 | #: C/index-in.docbook:8760 | 20114 | #: C/index-in.docbook:8760 | ||
n | 20119 | #, fuzzy | n | ||
20120 | msgid "" | 20115 | msgid "" | ||
20121 | "If you do decide to contribute, please post your contribution as an issue or " | 20116 | "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-" | 20117 | "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 " | 20118 | "documentation\">GitLab</link>. You can also discuss your ideas on GNOME's " | ||
20124 | "<link xlink:href=\"https://discourse.gnome.org\">Discourse</link> instance, " | 20119 | "<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, " | 20123 | "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, " | 20124 | "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 " | 20125 | "and copies of this document (including your contribution) may be distributed " | ||
20131 | "freely." | 20126 | "freely." | ||
20132 | msgstr "" | 20127 | msgstr "" | ||
n | 20133 | "Om du bestämmer dig för att bidra kan du skicka ditt bidrag till sändlistan " | n | 20128 | "Om du bestämmer dig för att bidra kan du skicka ditt bidrag som ett ärende " |
20134 | "för <application>gtkmm</application> på <link xlink:href=\"mailto:gtkmm-" | ||||
20135 | "list@gnome.org\"><gtkmm-list@gnome.org></link> eller som ett ärende " | ||||
20136 | "eller en merge-förfrågan till <link xlink:href=\"https://gitlab.gnome.org/" | 20129 | "eller en merge-förfrågan till <link xlink:href=\"https://gitlab.gnome.org/" | ||
n | 20137 | "GNOME/gtkmm-documentation\">GitLab</link>. Var också medveten om att hela " | n | 20130 | "GNOME/gtkmm-documentation\">GitLab</link>. Du kan också diskutera dina idéer " |
20131 | "på GNOMEs <link xlink:href=\"https://discourse.gnome.org\">Discourse</link>-" | ||||
20132 | "instans, under kategorin <link xlink:href=\"https://discourse.gnome.org/c/" | ||||
20133 | "platform/language-bindings\"> Platform/Language bindings</link> med en " | ||||
20134 | "<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 " | 20135 | "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 " | 20136 | "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 " | 20137 | "program, och kopior av detta dokument (med ditt bidrag) måste kunna spridas " | ||
20141 | "fritt." | 20138 | "fritt." | ||
20142 | 20139 | ||||
20143 | #. (itstool) path: appendix/title | 20140 | #. (itstool) path: appendix/title | ||
20144 | #: C/index-in.docbook:8775 | 20141 | #: C/index-in.docbook:8775 | ||
22096 | msgid "$ cp examples/sample.jhbuildrc ~/.config/jhbuildrc" | 22093 | msgid "$ cp examples/sample.jhbuildrc ~/.config/jhbuildrc" | ||
22097 | msgstr "$ cp examples/sample.jhbuildrc ~/.config/jhbuildrc" | 22094 | msgstr "$ cp examples/sample.jhbuildrc ~/.config/jhbuildrc" | ||
22098 | 22095 | ||||
22099 | #. (itstool) path: section/para | 22096 | #. (itstool) path: section/para | ||
22100 | #: C/index-in.docbook:9632 | 22097 | #: C/index-in.docbook:9632 | ||
n | 22101 | #, fuzzy | n | ||
22102 | msgid "" | 22098 | msgid "" | ||
22103 | "To set up <application>jhbuild</application>, follow the basic installation " | 22099 | "To set up <application>jhbuild</application>, follow the basic installation " | ||
22104 | "instructions from the <link xlink:href=\"https://gnome.pages.gitlab.gnome." | 22100 | "instructions from the <link xlink:href=\"https://gnome.pages.gitlab.gnome." | ||
22105 | "org/jhbuild/\">jhbuild manual</link>. After you have installed " | 22101 | "org/jhbuild/\">jhbuild manual</link>. After you have installed " | ||
22106 | "<application>jhbuild</application>, you should copy the sample " | 22102 | "<application>jhbuild</application>, you should copy the sample " | ||
22107 | "<application>jhbuild</application> configuration file into your home " | 22103 | "<application>jhbuild</application> configuration file into your home " | ||
22108 | "directory by executing the following command from the <application>jhbuild</" | 22104 | "directory by executing the following command from the <application>jhbuild</" | ||
22109 | "application> directory: <_:screen-1/>" | 22105 | "application> directory: <_:screen-1/>" | ||
22110 | msgstr "" | 22106 | msgstr "" | ||
22111 | "Följ de grundläggande installationsinstruktionerna från <link xlink:" | 22107 | "Följ de grundläggande installationsinstruktionerna från <link xlink:" | ||
n | 22112 | "href=\"http://developer-old.gnome.org/jhbuild/unstable/\">handboken för " | n | 22108 | "href=\"https://gnome.pages.gitlab.gnome.org/jhbuild/\">handboken för " |
22113 | "jhbuild</link> för att konfigurera <application>jhbuild</application>. Efter " | 22109 | "jhbuild</link> för att konfigurera <application>jhbuild</application>. Efter " | ||
22114 | "att du har installerat <application>jhbuild</application> bör du kopiera " | 22110 | "att du har installerat <application>jhbuild</application> bör du kopiera " | ||
22115 | "<application>jhbuild</application>-exempelkonfigurationsfilen till din " | 22111 | "<application>jhbuild</application>-exempelkonfigurationsfilen till din " | ||
22116 | "hemkatalog genom att exekvera följande kommando från katalogen " | 22112 | "hemkatalog genom att exekvera följande kommando från katalogen " | ||
22117 | "<application>jhbuild</application>: <_:screen-1/>" | 22113 | "<application>jhbuild</application>: <_:screen-1/>" | ||
26105 | "char**</classname> such as the following:" | 26101 | "char**</classname> such as the following:" | ||
26106 | msgstr "" | 26102 | msgstr "" | ||
26107 | "<function>_WRAP_METHOD()</function> stöder också att sätta C++-" | 26103 | "<function>_WRAP_METHOD()</function> stöder också att sätta C++-" | ||
26108 | "utdataparametrar från C- utdataparametrar om den omslutna C-funktionen har " | 26104 | "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 " | 26105 | "några. Anta till exempel att vi vill omsluta följande C-funktion som " | ||
n | 26110 | "returnerar ett värde i sin C-utdataparameter <parameter>rect</parameter>: <_:" | n | 26106 | "returnerar ett värde i sin C-utdataparameter <parameter>out_mime_type</" |
26111 | "programlisting-1/> För att <command>gmmproc</command> ska placera det " | 26107 | "parameter>: <_:programlisting-1/> För att <command>gmmproc</command> ska " | ||
26112 | "returnerade värdet i C++-utdataparametern <parameter>rect</parameter> ska " | 26108 | "placera det returnerade värdet i C++-utdataparametern " | ||
26113 | "något i stil med följande <function>_WRAP_METHOD()</function>-makro " | 26109 | "<parameter>out_mime_type</parameter> ska något i stil med följande " | ||
26114 | "användas: <_:programlisting-2/> Den <literal>{>>}</literal> som följer " | 26110 | "<function>_WRAP_METHOD()</function>-makro användas: <_:programlisting-2/> " | ||
26115 | "parameternamnet <parameter>rect</parameter> indikerar att C++-" | 26111 | "Den <literal>{>>}</literal> som följer parameternamnet " | ||
26112 | "<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 " | 26113 | "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 " | 26114 | "<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 " | 26115 | "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 " | 26116 | "utdataparametern från temporärvariabeln. I detta fall kan det vara " | ||
26120 | "vara nödvändigt att ha en <function>_INITIALIZATION()</function> som " | 26117 | "nödvändigt att ha en <function>_INITIALIZATION()</function> som beskriver " | ||
26121 | "beskriver hur en <classname>Gdk::Rectangle&</classname> ska sättas från " | 26118 | "hur en <classname>Glib::ustring&</classname> ska sättas från en " | ||
26122 | "en <classname>GdkRectangle*</classname> som i det följande: <_:" | 26119 | "<classname>const char**</classname> som i det följande: <_:programlisting-3/>" | ||
26123 | "programlisting-3/>" | ||||
26124 | 26120 | ||||
26125 | #. (itstool) path: section/programlisting | 26121 | #. (itstool) path: section/programlisting | ||
26126 | #: C/index-in.docbook:11301 | 26122 | #: C/index-in.docbook:11301 | ||
26127 | #, fuzzy, no-wrap | 26123 | #, fuzzy, no-wrap | ||
26128 | #| msgid "" | 26124 | #| msgid "" | ||
26129 | #| "\n" | 26125 | #| "\n" | ||
n | 26130 | #| "_INITIALIZATION(`Gtk::Widget&',`GtkWidget*',`$3 = Glib::wrap($4)')\n" | n | 26126 | #| "_INITIALIZATION(`Glib::ustring&',`const char*',`$3 = Glib::convert_const |
> | _gchar_ptr_to_ustring($4)')\n" | ||||
26131 | msgid "" | 26127 | msgid "" | ||
26132 | "<code>\n" | 26128 | "<code>\n" | ||
26133 | "_INITIALIZATION(`Glib::ustring&',`const char*',`$3 = Glib::convert_const_gc | 26129 | "_INITIALIZATION(`Glib::ustring&',`const char*',`$3 = Glib::convert_const_gc | ||
> | har_ptr_to_ustring($4)')\n" | > | har_ptr_to_ustring($4)')\n" | ||
26134 | "</code>" | 26130 | "</code>" | ||
26135 | msgstr "" | 26131 | msgstr "" | ||
26136 | "\n" | 26132 | "\n" | ||
t | 26137 | "_INITIALIZATION(`Gtk::Widget&',`GtkWidget*',`$3 = Glib::wrap($4)')\n" | t | 26133 | "_INITIALIZATION(`Glib::ustring&',`const char*',`$3 = Glib::convert_const_gc |
> | har_ptr_to_ustring($4)')\n" | ||||
26138 | 26134 | ||||
26139 | #. (itstool) path: section/title | 26135 | #. (itstool) path: section/title | ||
26140 | #: C/index-in.docbook:11307 | 26136 | #: C/index-in.docbook:11307 | ||
26141 | #, fuzzy | 26137 | #, fuzzy | ||
26142 | msgid "String Parameter Processing" | 26138 | msgid "String Parameter Processing" |
Note: both files are merged with latest POT file.