gtkmm-documentation - master - Tutorial - Swedish
Uploaded file by Anders Jonsson on 2023-03-05 01:03:36+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 02:03+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 | ||
2830 | msgid "Push buttons" | 2832 | msgid "Push buttons" | ||
2831 | msgstr "Tryckknappar" | 2833 | msgstr "Tryckknappar" | ||
2832 | 2834 | ||||
2833 | #. (itstool) path: listitem/para | 2835 | #. (itstool) path: listitem/para | ||
2834 | #: C/index-in.docbook:922 | 2836 | #: C/index-in.docbook:922 | ||
n | 2835 | #, fuzzy | n | ||
2836 | msgid "" | 2837 | msgid "" | ||
2837 | "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/" | 2838 | "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/" | ||
2838 | "classGtk_1_1Button.html\"><classname>Gtk::Button</classname></link>. " | 2839 | "classGtk_1_1Button.html\"><classname>Gtk::Button</classname></link>. " | ||
2839 | "Standard buttons, usually marked with a label or picture. Pushing one " | 2840 | "Standard buttons, usually marked with a label or picture. Pushing one " | ||
2840 | "triggers an action. See the <link linkend=\"sec-pushbuttons\">Button</link> " | 2841 | "triggers an action. See the <link linkend=\"sec-pushbuttons\">Button</link> " | ||
2873 | msgid "Check buttons" | 2874 | msgid "Check buttons" | ||
2874 | msgstr "Kryssrutor" | 2875 | msgstr "Kryssrutor" | ||
2875 | 2876 | ||||
2876 | #. (itstool) path: listitem/para | 2877 | #. (itstool) path: listitem/para | ||
2877 | #: C/index-in.docbook:941 | 2878 | #: C/index-in.docbook:941 | ||
n | 2878 | #, fuzzy | n | ||
2879 | msgid "" | 2879 | msgid "" | ||
2880 | "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/" | 2880 | "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/" | ||
2881 | "classGtk_1_1CheckButton.html\"><classname>Gtk::CheckButton</classname></" | 2881 | "classGtk_1_1CheckButton.html\"><classname>Gtk::CheckButton</classname></" | ||
2882 | "link>. These act like ToggleButtons, but show their state in small squares, " | 2882 | "link>. These act like ToggleButtons, but show their state in small squares, " | ||
2883 | "with their label at the side. They should be used in most situations which " | 2883 | "with their label at the side. They should be used in most situations which " | ||
3789 | msgid "Entry Completion" | 3789 | msgid "Entry Completion" | ||
3790 | msgstr "Inmatningskomplettering" | 3790 | msgstr "Inmatningskomplettering" | ||
3791 | 3791 | ||||
3792 | #. (itstool) path: note/para | 3792 | #. (itstool) path: note/para | ||
3793 | #: C/index-in.docbook:1381 | 3793 | #: C/index-in.docbook:1381 | ||
n | 3794 | #, fuzzy | n | ||
3795 | #| msgid "" | ||||
3796 | #| "Some new classes were added in <application>gtkmm</application> 4 and " | ||||
3797 | #| "<application>glibmm</application> 2.68:" | ||||
3798 | msgid "" | 3794 | msgid "" | ||
3799 | "<classname>Gtk::EntryCompletion</classname> is deprecated since " | 3795 | "<classname>Gtk::EntryCompletion</classname> is deprecated since " | ||
3800 | "<application>gtkmm</application> 4.10. There is no replacement in " | 3796 | "<application>gtkmm</application> 4.10. There is no replacement in " | ||
3801 | "<application>gtkmm</application>." | 3797 | "<application>gtkmm</application>." | ||
3802 | msgstr "" | 3798 | msgstr "" | ||
n | 3803 | "Några nya klasser lades till i <application>gtkmm</application> 4 och " | n | 3799 | "<classname>Gtk::EntryCompletion</classname> är föråldrad sedan " |
3800 | "<application>gtkmm</application> 4.10. Det finns ingen ersättning i " | ||||
3804 | "<application>glibmm</application> 2.68:" | 3801 | "<application>gtkmm</application>." | ||
3805 | 3802 | ||||
3806 | #. (itstool) path: section/para | 3803 | #. (itstool) path: section/para | ||
3807 | #: C/index-in.docbook:1385 | 3804 | #: C/index-in.docbook:1385 | ||
3808 | msgid "" | 3805 | msgid "" | ||
3809 | "An <classname>Entry</classname> widget can offer a drop-down list of pre-" | 3806 | "An <classname>Entry</classname> widget can offer a drop-down list of pre-" | ||
4399 | "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/" | 4396 | "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/" | ||
4400 | "classGtk_1_1InfoBar.html\">Referens</link>" | 4397 | "classGtk_1_1InfoBar.html\">Referens</link>" | ||
4401 | 4398 | ||||
4402 | #. (itstool) path: section/para | 4399 | #. (itstool) path: section/para | ||
4403 | #: C/index-in.docbook:1697 | 4400 | #: C/index-in.docbook:1697 | ||
n | 4404 | #, fuzzy | n | ||
4405 | #| msgid "" | ||||
4406 | #| "<classname>FileChooser</classname> and the classes that implement it are " | ||||
4407 | #| "deprecated since <application>gtkmm</application> 4.10. They have been " | ||||
4408 | #| "replaced by <classname>FileDialog</classname>, which is available since " | ||||
4409 | #| "<application>gtkmm</application> 4.10." | ||||
4410 | msgid "" | 4401 | msgid "" | ||
4411 | "The <classname>InfoBar</classname> widget is deprecated since " | 4402 | "The <classname>InfoBar</classname> widget is deprecated since " | ||
4412 | "<application>gtkmm</application> 4.10. The example shows an info bar " | 4403 | "<application>gtkmm</application> 4.10. The example shows an info bar " | ||
4413 | "consisting of a <classname>Box</classname> with a <classname>Label</" | 4404 | "consisting of a <classname>Box</classname> with a <classname>Label</" | ||
4414 | "classname> and a <classname>Button</classname>." | 4405 | "classname> and a <classname>Button</classname>." | ||
4415 | msgstr "" | 4406 | msgstr "" | ||
n | 4416 | "<classname>FileChooser</classname> och klasserna som implementerar den är " | n | 4407 | "<classname>InfoBar</classname>-komponenten är föråldrad sedan " |
4417 | "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 " | ||
4418 | "<classname>FileDialog</classname>, vilken finns tillgänglig sedan " | 4409 | "av en <classname>Box</classname> med en <classname>Label</classname> och en " | ||
4419 | "<application>gtkmm</application> 4.10." | 4410 | "<classname>Button</classname>." | ||
4420 | 4411 | ||||
4421 | #. (itstool) path: imageobject/imagedata | 4412 | #. (itstool) path: imageobject/imagedata | ||
4422 | #. 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 | ||
4423 | #. 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 | ||
4424 | #. 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 | ||
5614 | "<application>gtkmm</application> 4.10. There is no replacement in " | 5605 | "<application>gtkmm</application> 4.10. There is no replacement in " | ||
5615 | "<application>gtkmm</application>. libadwaita (a C library) has replacement " | 5606 | "<application>gtkmm</application>. libadwaita (a C library) has replacement " | ||
5616 | "parts (like AdwCarousel). In some cases, a <classname>Gtk::Notebook</" | 5607 | "parts (like AdwCarousel). In some cases, a <classname>Gtk::Notebook</" | ||
5617 | "classname> might be an acceptable replacement." | 5608 | "classname> might be an acceptable replacement." | ||
5618 | msgstr "" | 5609 | msgstr "" | ||
n | n | 5610 | "<classname>Gtk::Assistant</classname> är föråldrad sedan <application>gtkmm</" | ||
5611 | "application> 4.10. Det finns ingen ersättning i <application>gtkmm</" | ||||
5612 | "application>. libadwaita (ett C-bibliotek) har ersättningsdelar (som " | ||||
5613 | "AdwCarousel). I vissa fall kan en <classname>Gtk::Notebook</classname> vara " | ||||
5614 | "en acceptabel ersättning." | ||||
5619 | 5615 | ||||
5620 | #. (itstool) path: section/para | 5616 | #. (itstool) path: section/para | ||
5621 | #: C/index-in.docbook:2297 | 5617 | #: C/index-in.docbook:2297 | ||
5622 | #, fuzzy | 5618 | #, fuzzy | ||
5623 | msgid "" | 5619 | msgid "" | ||
5742 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | 5738 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | ||
5743 | "master/examples/book/actionbar\">Källkod, ActionBar</link>" | 5739 | "master/examples/book/actionbar\">Källkod, ActionBar</link>" | ||
5744 | 5740 | ||||
5745 | #. (itstool) path: section/para | 5741 | #. (itstool) path: section/para | ||
5746 | #: C/index-in.docbook:2345 | 5742 | #: C/index-in.docbook:2345 | ||
n | 5747 | #, fuzzy | n | ||
5748 | #| msgid "" | ||||
5749 | #| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/" | ||||
5750 | #| "tree/master/examples/book/flowbox\">Source Code, FlowBox</link>" | ||||
5751 | msgid "" | 5743 | msgid "" | ||
5752 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | 5744 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | ||
5753 | "master/examples/book/listbox_flowbox/flowbox\">Source Code, FlowBox</link>" | 5745 | "master/examples/book/listbox_flowbox/flowbox\">Source Code, FlowBox</link>" | ||
5754 | msgstr "" | 5746 | msgstr "" | ||
5755 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | 5747 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | ||
n | 5756 | "master/examples/book/flowbox\">Källkod, FlowBox</link>" | n | 5748 | "master/examples/book/listbox_flowbox/flowbox\">Källkod, FlowBox</link>" |
5757 | 5749 | ||||
5758 | #. (itstool) path: chapter/title | 5750 | #. (itstool) path: chapter/title | ||
5759 | #: C/index-in.docbook:2352 | 5751 | #: C/index-in.docbook:2352 | ||
5760 | msgid "ListView, GridView, ColumnView" | 5752 | msgid "ListView, GridView, ColumnView" | ||
5761 | msgstr "" | 5753 | msgstr "" | ||
5810 | "link> i <application>gtkmm-documentation</application>s exempel." | 5802 | "link> i <application>gtkmm-documentation</application>s exempel." | ||
5811 | 5803 | ||||
5812 | #. (itstool) path: section/title | 5804 | #. (itstool) path: section/title | ||
5813 | #: C/index-in.docbook:2377 | 5805 | #: C/index-in.docbook:2377 | ||
5814 | #, fuzzy | 5806 | #, fuzzy | ||
n | n | 5807 | #| msgid "The Model" | ||
5815 | msgid "The Data Model" | 5808 | msgid "The Data Model" | ||
5816 | msgstr "Modellen" | 5809 | msgstr "Modellen" | ||
5817 | 5810 | ||||
5818 | #. (itstool) path: section/para | 5811 | #. (itstool) path: section/para | ||
5819 | #: C/index-in.docbook:2379 | 5812 | #: C/index-in.docbook:2379 | ||
5827 | msgstr "" | 5820 | msgstr "" | ||
5828 | 5821 | ||||
5829 | #. (itstool) path: section/para | 5822 | #. (itstool) path: section/para | ||
5830 | #: C/index-in.docbook:2387 | 5823 | #: C/index-in.docbook:2387 | ||
5831 | #, fuzzy | 5824 | #, fuzzy | ||
n | 5832 | #| msgid "" | n | ||
5833 | #| "The model for a ComboBox can be defined and filled exactly as for a " | ||||
5834 | #| "<classname>TreeView</classname>. For instance, you might derive a " | ||||
5835 | #| "ComboBox class with one integer and one text column, like so:" | ||||
5836 | msgid "" | 5825 | msgid "" | ||
5837 | "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 " | ||
5838 | "instances of a subclass of <classname>Glib::Object</classname>. For " | 5827 | "instances of a subclass of <classname>Glib::Object</classname>. For " | ||
5839 | "instance, you might have a <classname>ColumnView</classname> with one " | 5828 | "instance, you might have a <classname>ColumnView</classname> with one " | ||
5840 | "integer and one text column, like so:" | 5829 | "integer and one text column, like so:" | ||
5841 | msgstr "" | 5830 | msgstr "" | ||
n | 5842 | "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 " |
5843 | "<classname>TreeView</classname>. Exempelvis kan du härleda en ComboBox med " | 5832 | "exakt som för en <classname>ListView</classname> eller en " | ||
5844 | "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:" | ||||
5845 | 5836 | ||||
5846 | #. (itstool) path: section/programlisting | 5837 | #. (itstool) path: section/programlisting | ||
5847 | #: C/index-in.docbook:2393 C/index-in.docbook:3391 | 5838 | #: C/index-in.docbook:2393 C/index-in.docbook:3391 | ||
n | 5848 | #, no-wrap | n | 5839 | #, fuzzy, no-wrap |
5840 | #| msgid "" | ||||
5841 | #| "class ModelColumns : public Glib::Object\n" | ||||
5842 | #| "{\n" | ||||
5843 | #| "public:\n" | ||||
5844 | #| " int m_col_id;\n" | ||||
5845 | #| " Glib::ustring m_col_name;\n" | ||||
5846 | #| "\n" | ||||
5847 | #| " static Glib::RefPtr<ModelColumns> create(\n" | ||||
5848 | #| " int col_id, const Glib::ustring& col_name)\n" | ||||
5849 | #| " {\n" | ||||
5850 | #| " return Glib::make_refptr_for_instance<ModelColumns>(\n" | ||||
5851 | #| " new ModelColumns(col_id, col_name));\n" | ||||
5852 | #| " }\n" | ||||
5853 | #| "\n" | ||||
5854 | #| "protected:\n" | ||||
5855 | #| " ModelColumns(int col_id, const Glib::ustring& col_name)\n" | ||||
5856 | #| " : m_col_id(col_id), m_col_name(col_name)\n" | ||||
5857 | #| " {}\n" | ||||
5858 | #| "};\n" | ||||
5859 | #| "\n" | ||||
5860 | #| "Glib::RefPtr<Gio::ListStore<ModelColumns>> m_ListStore;\n" | ||||
5849 | msgid "" | 5861 | msgid "" | ||
5850 | "<code>class ModelColumns : public Glib::Object\n" | 5862 | "<code>class ModelColumns : public Glib::Object\n" | ||
5851 | "{\n" | 5863 | "{\n" | ||
5852 | "public:\n" | 5864 | "public:\n" | ||
5853 | " int m_col_id;\n" | 5865 | " int m_col_id;\n" | ||
5867 | "};\n" | 5879 | "};\n" | ||
5868 | "\n" | 5880 | "\n" | ||
5869 | "Glib::RefPtr<Gio::ListStore<ModelColumns>> m_ListStore;\n" | 5881 | "Glib::RefPtr<Gio::ListStore<ModelColumns>> m_ListStore;\n" | ||
5870 | "</code>" | 5882 | "</code>" | ||
5871 | msgstr "" | 5883 | msgstr "" | ||
n | n | 5884 | "class ModelColumns : public Glib::Object\n" | ||
5885 | "{\n" | ||||
5886 | "public:\n" | ||||
5887 | " int m_col_id;\n" | ||||
5888 | " Glib::ustring m_col_name;\n" | ||||
5889 | "\n" | ||||
5890 | " static Glib::RefPtr<ModelColumns> create(\n" | ||||
5891 | " int col_id, const Glib::ustring& col_name)\n" | ||||
5892 | " {\n" | ||||
5893 | " return Glib::make_refptr_for_instance<ModelColumns>(\n" | ||||
5894 | " new ModelColumns(col_id, col_name));\n" | ||||
5895 | " }\n" | ||||
5896 | "\n" | ||||
5897 | "protected:\n" | ||||
5898 | " ModelColumns(int col_id, const Glib::ustring& col_name)\n" | ||||
5899 | " : m_col_id(col_id), m_col_name(col_name)\n" | ||||
5900 | " {}\n" | ||||
5901 | "};\n" | ||||
5902 | "\n" | ||||
5903 | "Glib::RefPtr<Gio::ListStore<ModelColumns>> m_ListStore;\n" | ||||
5872 | 5904 | ||||
5873 | #. (itstool) path: section/para | 5905 | #. (itstool) path: section/para | ||
5874 | #: C/index-in.docbook:2415 | 5906 | #: C/index-in.docbook:2415 | ||
5875 | msgid "" | 5907 | msgid "" | ||
5876 | "Every item in a model has a position which is the unsigned integer that " | 5908 | "Every item in a model has a position which is the unsigned integer that " | ||
6098 | #. (itstool) path: section/para | 6130 | #. (itstool) path: section/para | ||
6099 | #: C/index-in.docbook:2490 | 6131 | #: C/index-in.docbook:2490 | ||
6100 | #, fuzzy | 6132 | #, fuzzy | ||
6101 | #| msgid "" | 6133 | #| msgid "" | ||
6102 | #| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/" | 6134 | #| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/" | ||
n | 6103 | #| "tree/master/examples/book/treeview/list/\">Source Code</link>" | n | 6135 | #| "tree/master/examples/book/listmodelviews/gridview\">Source Code, " |
6136 | #| "GridView</link>" | ||||
6104 | msgid "" | 6137 | msgid "" | ||
6105 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | 6138 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | ||
6106 | "master/examples/book/listmodelviews/list_listview\">Source Code</link>" | 6139 | "master/examples/book/listmodelviews/list_listview\">Source Code</link>" | ||
6107 | msgstr "" | 6140 | msgstr "" | ||
6108 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | 6141 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | ||
n | 6109 | "master/examples/book/treeview/list/\">Källkod</link>" | n | 6142 | "master/examples/book/listmodelviews/gridview\">Källkod, GridView</link>" |
6110 | 6143 | ||||
6111 | #. (itstool) path: section/title | 6144 | #. (itstool) path: section/title | ||
6112 | #. (itstool) path: figure/title | 6145 | #. (itstool) path: figure/title | ||
6113 | #: C/index-in.docbook:2496 C/index-in.docbook:2508 | 6146 | #: C/index-in.docbook:2496 C/index-in.docbook:2508 | ||
6114 | #, fuzzy | 6147 | #, fuzzy | ||
6154 | #. (itstool) path: section/para | 6187 | #. (itstool) path: section/para | ||
6155 | #: C/index-in.docbook:2514 | 6188 | #: C/index-in.docbook:2514 | ||
6156 | #, fuzzy | 6189 | #, fuzzy | ||
6157 | #| msgid "" | 6190 | #| msgid "" | ||
6158 | #| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/" | 6191 | #| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/" | ||
n | 6159 | #| "tree/master/examples/book/textview/\">Source Code</link>" | n | 6192 | #| "tree/master/examples/book/listmodelviews/gridview\">Source Code, " |
6193 | #| "GridView</link>" | ||||
6160 | msgid "" | 6194 | msgid "" | ||
6161 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | 6195 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | ||
6162 | "master/examples/book/listmodelviews/gridview\">Source Code</link>" | 6196 | "master/examples/book/listmodelviews/gridview\">Source Code</link>" | ||
6163 | msgstr "" | 6197 | msgstr "" | ||
6164 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | 6198 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | ||
n | 6165 | "master/examples/book/textview/\">Källkod</link>" | n | 6199 | "master/examples/book/listmodelviews/gridview\">Källkod, GridView</link>" |
6166 | 6200 | ||||
6167 | #. (itstool) path: section/title | 6201 | #. (itstool) path: section/title | ||
6168 | #. (itstool) path: figure/title | 6202 | #. (itstool) path: figure/title | ||
6169 | #: C/index-in.docbook:2520 C/index-in.docbook:2532 | 6203 | #: C/index-in.docbook:2520 C/index-in.docbook:2532 | ||
6170 | msgid "ColumnView" | 6204 | msgid "ColumnView" | ||
6213 | #. (itstool) path: section/para | 6247 | #. (itstool) path: section/para | ||
6214 | #: C/index-in.docbook:2538 | 6248 | #: C/index-in.docbook:2538 | ||
6215 | #, fuzzy | 6249 | #, fuzzy | ||
6216 | #| msgid "" | 6250 | #| msgid "" | ||
6217 | #| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/" | 6251 | #| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/" | ||
n | 6218 | #| "tree/master/examples/book/treeview/list/\">Source Code</link>" | n | 6252 | #| "tree/master/examples/book/listmodelviews/gridview\">Source Code, " |
6253 | #| "GridView</link>" | ||||
6219 | msgid "" | 6254 | msgid "" | ||
6220 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | 6255 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | ||
6221 | "master/examples/book/listmodelviews/list_columnview\">Source Code</link>" | 6256 | "master/examples/book/listmodelviews/list_columnview\">Source Code</link>" | ||
6222 | msgstr "" | 6257 | msgstr "" | ||
6223 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | 6258 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | ||
n | 6224 | "master/examples/book/treeview/list/\">Källkod</link>" | n | 6259 | "master/examples/book/listmodelviews/gridview\">Källkod, GridView</link>" |
6225 | 6260 | ||||
6226 | #. (itstool) path: section/title | 6261 | #. (itstool) path: section/title | ||
6227 | #: C/index-in.docbook:2545 C/index-in.docbook:3139 | 6262 | #: C/index-in.docbook:2545 C/index-in.docbook:3139 | ||
6228 | msgid "Sorting" | 6263 | msgid "Sorting" | ||
6229 | msgstr "Sortering" | 6264 | msgstr "Sortering" | ||
6341 | msgstr "Filtrera filer" | 6376 | msgstr "Filtrera filer" | ||
6342 | 6377 | ||||
6343 | #. (itstool) path: section/para | 6378 | #. (itstool) path: section/para | ||
6344 | #: C/index-in.docbook:2584 | 6379 | #: C/index-in.docbook:2584 | ||
6345 | #, 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>." | ||||
6346 | msgid "" | 6386 | msgid "" | ||
6347 | "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</" | ||
6348 | "classname>. Set a <classname>Filter</classname> such as a " | 6388 | "classname>. Set a <classname>Filter</classname> such as a " | ||
6349 | "<classname>StringFilter</classname> or a <classname>BoolFilter</classname> " | 6389 | "<classname>StringFilter</classname> or a <classname>BoolFilter</classname> " | ||
6350 | "to the <classname>FilterListModel</classname>." | 6390 | "to the <classname>FilterListModel</classname>." | ||
6351 | msgstr "" | 6391 | msgstr "" | ||
6352 | "<classname>Gtk::Style</classname> och <classname>Gtk::Rc</classname> togs " | 6392 | "<classname>Gtk::Style</classname> och <classname>Gtk::Rc</classname> togs " | ||
6353 | "bort, ersatta av <classname>Gtk::StyleContext</classname> och olika " | 6393 | "bort, ersatta av <classname>Gtk::StyleContext</classname> och olika " | ||
n | 6354 | "<classname>Gtk::StyleProvider</classname>, som <classname>Gtk::CssProvider</" | n | 6394 | "<classname>Gtk::StyleProvider</classname>-klasser, som <classname>Gtk::" |
6355 | "classname>." | 6395 | "CssProvider</classname>." | ||
6356 | 6396 | ||||
6357 | #. (itstool) path: section/para | 6397 | #. (itstool) path: section/para | ||
6358 | #: C/index-in.docbook:2590 | 6398 | #: C/index-in.docbook:2590 | ||
6359 | #, fuzzy | 6399 | #, fuzzy | ||
6360 | #| msgid "" | 6400 | #| msgid "" | ||
6472 | "classGtk_1_1TreeModelSort.html\">Referens för TreeModelSort</link>" | 6512 | "classGtk_1_1TreeModelSort.html\">Referens för TreeModelSort</link>" | ||
6473 | 6513 | ||||
6474 | #. (itstool) path: figure/title | 6514 | #. (itstool) path: figure/title | ||
6475 | #: C/index-in.docbook:2629 | 6515 | #: C/index-in.docbook:2629 | ||
6476 | #, fuzzy | 6516 | #, fuzzy | ||
n | n | 6517 | #| msgid "The Model" | ||
6477 | msgid "TreeListModel" | 6518 | msgid "TreeListModel" | ||
6478 | msgstr "Modellen" | 6519 | msgstr "Modellen" | ||
6479 | 6520 | ||||
6480 | #. (itstool) path: imageobject/imagedata | 6521 | #. (itstool) path: imageobject/imagedata | ||
6481 | #. 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 | ||
6494 | #. (itstool) path: section/para | 6535 | #. (itstool) path: section/para | ||
6495 | #: C/index-in.docbook:2635 | 6536 | #: C/index-in.docbook:2635 | ||
6496 | #, fuzzy | 6537 | #, fuzzy | ||
6497 | #| msgid "" | 6538 | #| msgid "" | ||
6498 | #| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/" | 6539 | #| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/" | ||
n | 6499 | #| "tree/master/examples/book/treeview/tree/\">Source Code</link>" | n | 6540 | #| "tree/master/examples/book/listmodelviews/gridview\">Source Code, " |
6541 | #| "GridView</link>" | ||||
6500 | msgid "" | 6542 | msgid "" | ||
6501 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | 6543 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | ||
6502 | "master/examples/book/listmodelviews/tree_columnview\">Source Code</link>" | 6544 | "master/examples/book/listmodelviews/tree_columnview\">Source Code</link>" | ||
6503 | msgstr "" | 6545 | msgstr "" | ||
6504 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | 6546 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | ||
n | 6505 | "master/examples/book/treeview/tree/\">Källkod</link>" | n | 6547 | "master/examples/book/listmodelviews/gridview\">Källkod, GridView</link>" |
6506 | 6548 | ||||
6507 | #. (itstool) path: chapter/title | 6549 | #. (itstool) path: chapter/title | ||
6508 | #: C/index-in.docbook:2643 | 6550 | #: C/index-in.docbook:2643 | ||
6509 | msgid "The TreeView widget" | 6551 | msgid "The TreeView widget" | ||
6510 | msgstr "TreeView-komponenten" | 6552 | msgstr "TreeView-komponenten" | ||
6511 | 6553 | ||||
6512 | #. (itstool) path: note/para | 6554 | #. (itstool) path: note/para | ||
6513 | #: C/index-in.docbook:2645 | 6555 | #: C/index-in.docbook:2645 | ||
n | 6514 | #, fuzzy | n | ||
6515 | #| msgid "" | ||||
6516 | #| "The <classname>FileChooserDialog</classname> (deprecated since " | ||||
6517 | #| "<application>gtkmm</application> 4.10) and <classname>FileDialog</" | ||||
6518 | #| "classname> (available since <application>gtkmm</application> 4.10) are " | ||||
6519 | #| "suitable for use with \"Open\" or \"Save\" menu items." | ||||
6520 | msgid "" | 6556 | msgid "" | ||
6521 | "<classname>Gtk::TreeView</classname> is deprecated since <application>gtkmm</" | 6557 | "<classname>Gtk::TreeView</classname> is deprecated since <application>gtkmm</" | ||
6522 | "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 " | ||
6523 | "lists and <classname>Gtk::ColumnView</classname> for tabular lists." | 6559 | "lists and <classname>Gtk::ColumnView</classname> for tabular lists." | ||
6524 | msgstr "" | 6560 | msgstr "" | ||
n | 6525 | "<classname>FileChooserDialog</classname> (föråldrad sedan " | n | 6561 | "<classname>Gtk::TreeView</classname> är föråldrad sedan <application>gtkmm</" |
6526 | "<application>gtkmm</application> 4.10) och <classname>FileDialog</classname> " | 6562 | "application> 4.10. Använd i ny kod <classname>Gtk::ListView</classname> för " | ||
6527 | "(tillgänglig sedan <application>gtkmm</application> 4.10) är lämpliga för " | 6563 | "listor och <classname>Gtk::ColumnView</classname> för tabellistor." | ||
6528 | "användning med menyobjekten ”Öppna” eller ”Spara”." | ||||
6529 | 6564 | ||||
6530 | #. (itstool) path: chapter/para | 6565 | #. (itstool) path: chapter/para | ||
6531 | #: C/index-in.docbook:2650 | 6566 | #: C/index-in.docbook:2650 | ||
6532 | msgid "" | 6567 | msgid "" | ||
6533 | "The <classname>Gtk::TreeView</classname> widget can contain lists or trees " | 6568 | "The <classname>Gtk::TreeView</classname> widget can contain lists or trees " | ||
6536 | "Komponenten <classname>Gtk::TreeView</classname> kan innehålla listor eller " | 6571 | "Komponenten <classname>Gtk::TreeView</classname> kan innehålla listor eller " | ||
6537 | "träd med data i kolumner." | 6572 | "träd med data i kolumner." | ||
6538 | 6573 | ||||
6539 | #. (itstool) path: section/title | 6574 | #. (itstool) path: section/title | ||
6540 | #: C/index-in.docbook:2656 | 6575 | #: C/index-in.docbook:2656 | ||
n | 6541 | #, fuzzy | n | ||
6542 | msgid "The Model" | 6576 | msgid "The Model" | ||
6543 | msgstr "Modellen" | 6577 | msgstr "Modellen" | ||
6544 | 6578 | ||||
6545 | #. (itstool) path: section/para | 6579 | #. (itstool) path: section/para | ||
6546 | #: C/index-in.docbook:2658 | 6580 | #: C/index-in.docbook:2658 | ||
7932 | "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 " | ||
7933 | "<literal>true</literal> eller <literal>false</literal>." | 7967 | "<literal>true</literal> eller <literal>false</literal>." | ||
7934 | 7968 | ||||
7935 | #. (itstool) path: section/para | 7969 | #. (itstool) path: section/para | ||
7936 | #: C/index-in.docbook:3220 | 7970 | #: C/index-in.docbook:3220 | ||
n | 7937 | #, fuzzy | n | ||
7938 | msgid "This is demonstrated in the drag_and_drop example." | 7971 | msgid "This is demonstrated in the drag_and_drop example." | ||
7939 | msgstr "Detta demonstreras i dra-och-släpp-exemplet." | 7972 | msgstr "Detta demonstreras i dra-och-släpp-exemplet." | ||
7940 | 7973 | ||||
7941 | #. (itstool) path: section/title | 7974 | #. (itstool) path: section/title | ||
7942 | #: C/index-in.docbook:3226 C/index-in.docbook:3336 | 7975 | #: C/index-in.docbook:3226 C/index-in.docbook:3336 | ||
8186 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | 8219 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | ||
8187 | "master/examples/book/treeview/popup/\">Källkod</link>" | 8220 | "master/examples/book/treeview/popup/\">Källkod</link>" | ||
8188 | 8221 | ||||
8189 | #. (itstool) path: chapter/title | 8222 | #. (itstool) path: chapter/title | ||
8190 | #: C/index-in.docbook:3359 | 8223 | #: C/index-in.docbook:3359 | ||
n | 8191 | #, fuzzy | n | ||
8192 | #| msgid "The DrawingArea Widget" | ||||
8193 | msgid "The DropDown Widget" | 8224 | msgid "The DropDown Widget" | ||
n | 8194 | msgstr "DrawingArea-komponenten" | n | 8225 | msgstr "DropDown-komponenten" |
8195 | 8226 | ||||
8196 | #. (itstool) path: chapter/para | 8227 | #. (itstool) path: chapter/para | ||
8197 | #: C/index-in.docbook:3361 | 8228 | #: C/index-in.docbook:3361 | ||
8198 | msgid "" | 8229 | msgid "" | ||
8199 | "The <classname>DropDown</classname> widget is an alternative to the " | 8230 | "The <classname>DropDown</classname> widget is an alternative to the " | ||
8200 | "deprecated <classname>ComboBox</classname>. It uses list models instead of " | 8231 | "deprecated <classname>ComboBox</classname>. It uses list models instead of " | ||
8201 | "tree models, and the content is displayed using widgets instead of cell " | 8232 | "tree models, and the content is displayed using widgets instead of cell " | ||
8202 | "renderers." | 8233 | "renderers." | ||
8203 | msgstr "" | 8234 | msgstr "" | ||
n | n | 8235 | "Komponenten <classname>DropDown</classname> är ett alternativ till den " | ||
8236 | "föråldrade <classname>ComboBox</classname>. Den använder listmodeller i " | ||||
8237 | "stället för trädmodeller, och innehållet visas med komponenter i stället för " | ||||
8238 | "cellrenderare." | ||||
8204 | 8239 | ||||
8205 | #. (itstool) path: chapter/para | 8240 | #. (itstool) path: chapter/para | ||
8206 | #: C/index-in.docbook:3366 | 8241 | #: C/index-in.docbook:3366 | ||
8207 | #, fuzzy | 8242 | #, fuzzy | ||
8208 | #| msgid "" | 8243 | #| msgid "" | ||
8237 | "signal handlers connected to a <classname>SignalListItemFactory</classname>. " | 8272 | "signal handlers connected to a <classname>SignalListItemFactory</classname>. " | ||
8238 | "This provides flexibility, but the <classname>StringList</classname> class " | 8273 | "This provides flexibility, but the <classname>StringList</classname> class " | ||
8239 | "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 " | ||
8240 | "required." | 8275 | "required." | ||
8241 | msgstr "" | 8276 | msgstr "" | ||
n | 8242 | "Listan tillhandahålls via en <classname>TreeModel</classname>, och kolumner " | n | 8277 | "Listan tillhandahålls via en <classname>Gio::ListModel</classname>, och data " |
8243 | "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>-" | ||
8244 | "<methodname>ComboBox::pack_start()</methodname>. Detta tillhandahåller " | 8279 | "komponenten med signalhanterare anslutna till en " | ||
8245 | "flexibilitet och typsäkerhet under kompilering, men <classname>ComboBoxText</" | 8280 | "<classname>SignalListItemFactory</classname>. Detta tillhandahåller " | ||
8246 | "classname>-klassen tillhandahåller en enklare textbaserad specialisering om " | 8281 | "flexibilitet, men <classname>StringList</classname>-klassen tillhandahåller " | ||
8247 | "den flexibiliteten inte behövs." | 8282 | "en enklare textbaserad specialisering om den flexibiliteten inte behövs." | ||
8248 | 8283 | ||||
8249 | #. (itstool) path: chapter/para | 8284 | #. (itstool) path: chapter/para | ||
8250 | #: C/index-in.docbook:3380 | 8285 | #: C/index-in.docbook:3380 | ||
n | 8251 | #, fuzzy | n | ||
8252 | #| msgid "" | ||||
8253 | #| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/" | ||||
8254 | #| "classGtk_1_1Box.html\">Reference</link>" | ||||
8255 | msgid "" | 8286 | msgid "" | ||
8256 | "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/" | 8287 | "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/" | ||
8257 | "classGtk_1_1DropDown.html\">Reference</link>" | 8288 | "classGtk_1_1DropDown.html\">Reference</link>" | ||
8258 | msgstr "" | 8289 | msgstr "" | ||
8259 | "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/" | 8290 | "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/" | ||
n | 8260 | "classGtk_1_1Box.html\">Referens</link>" | n | 8291 | "classGtk_1_1DropDown.html\">Referens</link>" |
8261 | 8292 | ||||
8262 | #. (itstool) path: section/title | 8293 | #. (itstool) path: section/title | ||
8263 | #: C/index-in.docbook:3383 C/index-in.docbook:3558 | 8294 | #: C/index-in.docbook:3383 C/index-in.docbook:3558 | ||
n | 8264 | #, fuzzy | n | ||
8265 | msgid "The model" | 8295 | msgid "The model" | ||
8266 | msgstr "Modellen" | 8296 | msgstr "Modellen" | ||
8267 | 8297 | ||||
8268 | #. (itstool) path: section/para | 8298 | #. (itstool) path: section/para | ||
8269 | #: C/index-in.docbook:3385 | 8299 | #: C/index-in.docbook:3385 | ||
8270 | #, fuzzy | 8300 | #, fuzzy | ||
n | 8271 | #| msgid "" | n | ||
8272 | #| "The model for a ComboBox can be defined and filled exactly as for a " | ||||
8273 | #| "<classname>TreeView</classname>. For instance, you might derive a " | ||||
8274 | #| "ComboBox class with one integer and one text column, like so:" | ||||
8275 | msgid "" | 8301 | msgid "" | ||
8276 | "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 " | ||
8277 | "exactly as for a <classname>ListView</classname> or a <classname>ColumnView</" | 8303 | "exactly as for a <classname>ListView</classname> or a <classname>ColumnView</" | ||
8278 | "classname>. It must be a subclass of <classname>Glib::Object</classname>. " | 8304 | "classname>. It must be a subclass of <classname>Glib::Object</classname>. " | ||
8279 | "For instance, you might have a <classname>DropDown</classname> with one " | 8305 | "For instance, you might have a <classname>DropDown</classname> with one " | ||
8280 | "integer and one text column, like so:" | 8306 | "integer and one text column, like so:" | ||
8281 | msgstr "" | 8307 | msgstr "" | ||
n | 8282 | "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 " |
8283 | "<classname>TreeView</classname>. Exempelvis kan du härleda en ComboBox med " | 8309 | "exakt som för en <classname>ListView</classname> eller en " | ||
8284 | "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:" | ||||
8285 | 8313 | ||||
8286 | #. (itstool) path: section/para | 8314 | #. (itstool) path: section/para | ||
8287 | #: C/index-in.docbook:3413 | 8315 | #: C/index-in.docbook:3413 | ||
n | n | 8316 | #, fuzzy | ||
8288 | msgid "" | 8317 | msgid "" | ||
8289 | "After appending rows to this model, you should provide the model to the " | 8318 | "After appending rows to this model, you should provide the model to the " | ||
8290 | "<classname>DropDown</classname> with the <methodname>set_model()</" | 8319 | "<classname>DropDown</classname> with the <methodname>set_model()</" | ||
8291 | "methodname> method. Unless you use the <classname>StringList</classname> " | 8320 | "methodname> method. Unless you use the <classname>StringList</classname> " | ||
8292 | "model, you also need to set a <classname>ListItemFactory</classname> with " | 8321 | "model, you also need to set a <classname>ListItemFactory</classname> with " | ||
8294 | "dropdown menu to look different from the item in the <classname>DropDown</" | 8323 | "dropdown menu to look different from the item in the <classname>DropDown</" | ||
8295 | "classname> widget, you also need to set a separate " | 8324 | "classname> widget, you also need to set a separate " | ||
8296 | "<classname>ListItemFactory</classname> with <methodname>set_list_factory()</" | 8325 | "<classname>ListItemFactory</classname> with <methodname>set_list_factory()</" | ||
8297 | "methodname>." | 8326 | "methodname>." | ||
8298 | msgstr "" | 8327 | msgstr "" | ||
n | n | 8328 | "Efter att ha lagt till rader till denna modell bör du tillhandahålla " | ||
8329 | "modellen till vår <classname>DropDown</classname> med metoden " | ||||
8330 | "<methodname>set_model()</methodname>. Om du inte använder modellen " | ||||
8331 | "<classname>StringList</classname> så kommer du också behöva ställa in en " | ||||
8332 | "<classname>ListItemFactory</classname> med <methodname>set_factory()</" | ||||
8333 | "methodname>. Om du vill att objekten i rullgardinsmenyn ska se annorlunda " | ||||
8334 | "från objektet i <classname>DropDown</classname>-komponenten så behöver du " | ||||
8335 | "också ställa in en separat <classname>ListItemFactory</classname> med " | ||||
8336 | "<methodname>set_list_factory()</methodname>." | ||||
8299 | 8337 | ||||
8300 | #. (itstool) path: section/title | 8338 | #. (itstool) path: section/title | ||
8301 | #: C/index-in.docbook:3424 | 8339 | #: C/index-in.docbook:3424 | ||
n | 8302 | #, fuzzy | n | ||
8303 | msgid "The selected item" | 8340 | msgid "The selected item" | ||
n | 8304 | msgstr "De markerade raderna" | n | 8341 | msgstr "Det valda objektet" |
8305 | 8342 | ||||
8306 | #. (itstool) path: section/para | 8343 | #. (itstool) path: section/para | ||
8307 | #: C/index-in.docbook:3426 | 8344 | #: C/index-in.docbook:3426 | ||
8308 | #, fuzzy | 8345 | #, fuzzy | ||
8309 | msgid "" | 8346 | msgid "" | ||
8313 | "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 " | ||
8314 | "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 " | ||
8315 | "the human-readable description in the <classname>DropDown</classname>. For " | 8352 | "the human-readable description in the <classname>DropDown</classname>. For " | ||
8316 | "instance:" | 8353 | "instance:" | ||
8317 | msgstr "" | 8354 | msgstr "" | ||
n | 8318 | "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 " |
8319 | "ComboBox, anropa <methodname>ComboBox::get_active()</methodname>. " | 8356 | "<classname>DropDown</classname>, anropa <methodname>DropDown::" | ||
8320 | "Detta<classname>TreeModel::iterator</classname> returnerar en som du kan " | 8357 | "get_selected()</methodname>. Detta returnerar en <type>unsigned int</type> " | ||
8321 | "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 " | ||
8322 | "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 " | ||
8323 | "ä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 " | ||
8324 | "ComboBox. Till exempel:" | 8361 | "exempel:" | ||
8325 | 8362 | ||||
8326 | #. (itstool) path: section/programlisting | 8363 | #. (itstool) path: section/programlisting | ||
8327 | #: C/index-in.docbook:3433 | 8364 | #: C/index-in.docbook:3433 | ||
8328 | #, fuzzy, no-wrap | 8365 | #, fuzzy, no-wrap | ||
8329 | msgid "" | 8366 | msgid "" | ||
8336 | "}\n" | 8373 | "}\n" | ||
8337 | "else\n" | 8374 | "else\n" | ||
8338 | " set_nothing_chosen(); // Your own function.\n" | 8375 | " set_nothing_chosen(); // Your own function.\n" | ||
8339 | "</code>" | 8376 | "</code>" | ||
8340 | msgstr "" | 8377 | msgstr "" | ||
n | 8341 | "Gtk::TreeModel::iterator iter = m_Combo.get_active();\n" | n | 8378 | "unsigned int sel = m_DropDown.get_selected();\n" |
8342 | "if(iter)\n" | 8379 | "if (sel != GTK_INVALID_LIST_POSITION)\n" | ||
8343 | "{\n" | 8380 | "{\n" | ||
n | 8344 | " auto row = *iter;\n" | n | ||
8345 | "\n" | ||||
8346 | " //Få data för markerad rad, med vår kunskap\n" | 8381 | " // Få data för markerad rad, med vår kunskap om listmodellen:\n" | ||
8347 | " //om trädmodellen:\n" | 8382 | " auto id = m_ListStore->get_item(sel).m_col_id;\n" | ||
8348 | " auto id = row[m_Columns.m_col_id];\n" | ||||
8349 | " set_something_id_chosen(id); //Din egen funktion.\n" | 8383 | " set_some_id_chosen(id); // Din egen funktion.\n" | ||
8350 | "}\n" | 8384 | "}\n" | ||
8351 | "else\n" | 8385 | "else\n" | ||
n | 8352 | " set_nothing_chosen(); //Din egen funktion." | n | 8386 | " set_nothing_chosen(); // Din egen funktion.\n" |
8353 | 8387 | ||||
8354 | #. (itstool) path: section/title | 8388 | #. (itstool) path: section/title | ||
8355 | #: C/index-in.docbook:3446 C/index-in.docbook:3597 C/index-in.docbook:3658 | 8389 | #: C/index-in.docbook:3446 C/index-in.docbook:3597 C/index-in.docbook:3658 | ||
8356 | msgid "Responding to changes" | 8390 | msgid "Responding to changes" | ||
8357 | msgstr "Svara på ändringar" | 8391 | msgstr "Svara på ändringar" | ||
8363 | "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 " | ||
8364 | "<classname>DropDown</classname>, for instance to update other widgets. To do " | 8398 | "<classname>DropDown</classname>, for instance to update other widgets. To do " | ||
8365 | "so, you should connect to <methodname>property_selected().signal_changed()</" | 8399 | "so, you should connect to <methodname>property_selected().signal_changed()</" | ||
8366 | "methodname>. For instance:" | 8400 | "methodname>. For instance:" | ||
8367 | msgstr "" | 8401 | msgstr "" | ||
n | 8368 | "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</" |
8369 | "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 " | ||
8370 | "<literal>changed</literal>. Till exempel:" | 8404 | "så bör du ansluta till <methodname>property_selected().signal_changed()</" | ||
8405 | "methodname>. Till exempel:" | ||||
8371 | 8406 | ||||
8372 | #. (itstool) path: section/programlisting | 8407 | #. (itstool) path: section/programlisting | ||
8373 | #: C/index-in.docbook:3452 | 8408 | #: C/index-in.docbook:3452 | ||
8374 | #, fuzzy, no-wrap | 8409 | #, fuzzy, no-wrap | ||
8375 | #| msgid "" | 8410 | #| msgid "" | ||
n | 8376 | #| "m_combo.signal_changed().connect( sigc::mem_fun(*this,\n" | n | 8411 | #| "m_DropDown.property_selected().signal_changed().connect(\n" |
8377 | #| " &ExampleWindow::on_combo_changed) );" | 8412 | #| " sigc::mem_fun(*this, &ExampleWindow::on_dropdown_changed));\n" | ||
8378 | msgid "" | 8413 | msgid "" | ||
8379 | "<code>m_DropDown.property_selected().signal_changed().connect(\n" | 8414 | "<code>m_DropDown.property_selected().signal_changed().connect(\n" | ||
8380 | " sigc::mem_fun(*this, &ExampleWindow::on_dropdown_changed));\n" | 8415 | " sigc::mem_fun(*this, &ExampleWindow::on_dropdown_changed));\n" | ||
8381 | "</code>" | 8416 | "</code>" | ||
8382 | msgstr "" | 8417 | msgstr "" | ||
n | 8383 | "m_combo.signal_changed().connect( sigc::mem_fun(*this,\n" | n | 8418 | "m_DropDown.property_selected().signal_changed().connect(\n" |
8384 | " &ExampleWindow::on_combo_changed) );" | 8419 | " sigc::mem_fun(*this, &ExampleWindow::on_dropdown_changed));\n" | ||
8385 | 8420 | ||||
8386 | #. (itstool) path: section/title | 8421 | #. (itstool) path: section/title | ||
8387 | #: C/index-in.docbook:3458 | 8422 | #: C/index-in.docbook:3458 | ||
n | 8388 | #, fuzzy | n | ||
8389 | msgid "Simple String Example" | 8423 | msgid "Simple String Example" | ||
n | 8390 | msgstr "Enkelt inmatningsexempel" | n | 8424 | msgstr "Enkelt strängexempel" |
8391 | 8425 | ||||
8392 | #. (itstool) path: figure/title | 8426 | #. (itstool) path: figure/title | ||
8393 | #: C/index-in.docbook:3461 | 8427 | #: C/index-in.docbook:3461 | ||
8394 | msgid "Simple DropDown" | 8428 | msgid "Simple DropDown" | ||
n | 8395 | msgstr "" | n | 8429 | msgstr "Enkel DropDown" |
8396 | 8430 | ||||
8397 | #. (itstool) path: imageobject/imagedata | 8431 | #. (itstool) path: imageobject/imagedata | ||
8398 | #. This is a reference to an external file such as an image or video. When | 8432 | #. This is a reference to an external file such as an image or video. When | ||
8399 | #. the file changes, the md5 hash will change to let you know you need to | 8433 | #. the file changes, the md5 hash will change to let you know you need to | ||
8400 | #. update your localized copy. The msgstr is not used at all. Set it to | 8434 | #. update your localized copy. The msgstr is not used at all. Set it to | ||
8404 | msgctxt "_" | 8438 | msgctxt "_" | ||
8405 | msgid "" | 8439 | msgid "" | ||
8406 | "external ref='figures/dropdown_string.png' " | 8440 | "external ref='figures/dropdown_string.png' " | ||
8407 | "md5='b1689605c645e1ada3040f6df3335c56'" | 8441 | "md5='b1689605c645e1ada3040f6df3335c56'" | ||
8408 | msgstr "" | 8442 | msgstr "" | ||
n | 8409 | "external ref='figures/printing.png' md5='d4565328475ec89edf5f2230cb3fc5d0'" | n | 8443 | "external ref='figures/dropdown_string.png' " |
8444 | "md5='b1689605c645e1ada3040f6df3335c56'" | ||||
8410 | 8445 | ||||
8411 | #. (itstool) path: section/para | 8446 | #. (itstool) path: section/para | ||
8412 | #: C/index-in.docbook:3467 | 8447 | #: C/index-in.docbook:3467 | ||
n | 8413 | #, fuzzy | n | ||
8414 | #| msgid "" | ||||
8415 | #| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/" | ||||
8416 | #| "tree/master/examples/book/entry/icon\">Source Code</link>" | ||||
8417 | msgid "" | 8448 | msgid "" | ||
8418 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | 8449 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | ||
8419 | "master/examples/book/dropdown/string\">Source Code</link>" | 8450 | "master/examples/book/dropdown/string\">Source Code</link>" | ||
8420 | msgstr "" | 8451 | msgstr "" | ||
8421 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | 8452 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | ||
n | 8422 | "master/examples/book/entry/icon\">Källkod</link>" | n | 8453 | "master/examples/book/dropdown/string\">Källkod</link>" |
8423 | 8454 | ||||
8424 | #. (itstool) path: section/title | 8455 | #. (itstool) path: section/title | ||
8425 | #: C/index-in.docbook:3471 | 8456 | #: C/index-in.docbook:3471 | ||
8426 | msgid "Examples with a Search Entry" | 8457 | msgid "Examples with a Search Entry" | ||
n | 8427 | msgstr "" | n | 8458 | msgstr "Exempel med ett sökfält" |
8428 | 8459 | ||||
8429 | #. (itstool) path: section/para | 8460 | #. (itstool) path: section/para | ||
8430 | #: C/index-in.docbook:3473 | 8461 | #: C/index-in.docbook:3473 | ||
n | 8431 | #, fuzzy | n | ||
8432 | #| msgid "" | ||||
8433 | #| "<classname>Gtk::Grid</classname> arranges its child widgets in rows and " | ||||
8434 | #| "columns. Use <methodname>attach()</methodname> and " | ||||
8435 | #| "<methodname>attach_next_to()</methodname> to insert child widgets." | ||||
8436 | msgid "" | 8462 | msgid "" | ||
8437 | "The dropdown menu may contain an <classname>Entry</classname> that allows to " | 8463 | "The dropdown menu may contain an <classname>Entry</classname> that allows to " | ||
8438 | "search for items in the list. Call <methodname>set_enable_search()</" | 8464 | "search for items in the list. Call <methodname>set_enable_search()</" | ||
8439 | "methodname> and <methodname>set_expression()</methodname>. For instance:" | 8465 | "methodname> and <methodname>set_expression()</methodname>. For instance:" | ||
8440 | msgstr "" | 8466 | msgstr "" | ||
n | 8441 | "<classname>Gtk::Grid</classname> arrangerar sina underordnade komponenter i " | n | 8467 | "Rullgardinsmeny kan innehålla ett <classname>Entry</classname> som tillåter " |
8442 | "rader och kolumner. Använd <methodname>attach()</methodname> och " | 8468 | "sökning efter objekt i listan. Anropa <methodname>set_enable_search()</" | ||
8443 | "<methodname>attach_next_to()</methodname> för att infoga underordnade " | 8469 | "methodname> och <methodname>set_expression()</methodname>. Till exempel:" | ||
8444 | "komponenter." | ||||
8445 | 8470 | ||||
8446 | #. (itstool) path: section/programlisting | 8471 | #. (itstool) path: section/programlisting | ||
8447 | #: C/index-in.docbook:3477 | 8472 | #: C/index-in.docbook:3477 | ||
n | 8448 | #, no-wrap | n | 8473 | #, fuzzy, no-wrap |
8474 | #| msgid "" | ||||
8475 | #| "m_DropDown.set_enable_search(true);\n" | ||||
8476 | #| "auto expression = Gtk::ClosureExpression<Glib::ustring>::create(\n" | ||||
8477 | #| " sigc::mem_fun(*this, &ExampleWindow::get_col_name));\n" | ||||
8478 | #| "m_DropDown.set_expression(expression);\n" | ||||
8479 | #| "\n" | ||||
8480 | #| "//-------\n" | ||||
8481 | #| "Glib::ustring ExampleWindow::get_col_name(const Glib::RefPtr<Glib::Object | ||||
> | Base>& item)\n" | ||||
8482 | #| "{\n" | ||||
8483 | #| " const auto col = std::dynamic_pointer_cast<ModelColumns>(item);\n" | ||||
8484 | #| " return col ? col->m_col_name : \"\";\n" | ||||
8485 | #| "}\n" | ||||
8449 | msgid "" | 8486 | msgid "" | ||
8450 | "<code>m_DropDown.set_enable_search(true);\n" | 8487 | "<code>m_DropDown.set_enable_search(true);\n" | ||
8451 | "auto expression = Gtk::ClosureExpression<Glib::ustring>::create(\n" | 8488 | "auto expression = Gtk::ClosureExpression<Glib::ustring>::create(\n" | ||
8452 | " sigc::mem_fun(*this, &ExampleWindow::get_col_name));\n" | 8489 | " sigc::mem_fun(*this, &ExampleWindow::get_col_name));\n" | ||
8453 | "m_DropDown.set_expression(expression);\n" | 8490 | "m_DropDown.set_expression(expression);\n" | ||
8458 | " const auto col = std::dynamic_pointer_cast<ModelColumns>(item);\n" | 8495 | " const auto col = std::dynamic_pointer_cast<ModelColumns>(item);\n" | ||
8459 | " return col ? col->m_col_name : \"\";\n" | 8496 | " return col ? col->m_col_name : \"\";\n" | ||
8460 | "}\n" | 8497 | "}\n" | ||
8461 | "</code>" | 8498 | "</code>" | ||
8462 | msgstr "" | 8499 | msgstr "" | ||
n | n | 8500 | "m_DropDown.set_enable_search(true);\n" | ||
8501 | "auto expression = Gtk::ClosureExpression<Glib::ustring>::create(\n" | ||||
8502 | " sigc::mem_fun(*this, &ExampleWindow::get_col_name));\n" | ||||
8503 | "m_DropDown.set_expression(expression);\n" | ||||
8504 | "\n" | ||||
8505 | "//-------\n" | ||||
8506 | "Glib::ustring ExampleWindow::get_col_name(const Glib::RefPtr<Glib::ObjectBas | ||||
> | e>& item)\n" | ||||
8507 | "{\n" | ||||
8508 | " const auto col = std::dynamic_pointer_cast<ModelColumns>(item);\n" | ||||
8509 | " return col ? col->m_col_name : \"\";\n" | ||||
8510 | "}\n" | ||||
8463 | 8511 | ||||
8464 | #. (itstool) path: section/title | 8512 | #. (itstool) path: section/title | ||
8465 | #: C/index-in.docbook:3491 | 8513 | #: C/index-in.docbook:3491 | ||
n | 8466 | #, fuzzy | n | ||
8467 | #| msgid "Simple Example" | ||||
8468 | msgid "String Example" | 8514 | msgid "String Example" | ||
n | 8469 | msgstr "Enkelt exempel" | n | 8515 | msgstr "Strängexempel" |
8470 | 8516 | ||||
8471 | #. (itstool) path: figure/title | 8517 | #. (itstool) path: figure/title | ||
8472 | #: C/index-in.docbook:3494 | 8518 | #: C/index-in.docbook:3494 | ||
8473 | msgid "Search String" | 8519 | msgid "Search String" | ||
n | 8474 | msgstr "" | n | 8520 | msgstr "Sök sträng" |
8475 | 8521 | ||||
8476 | #. (itstool) path: imageobject/imagedata | 8522 | #. (itstool) path: imageobject/imagedata | ||
8477 | #. This is a reference to an external file such as an image or video. When | 8523 | #. This is a reference to an external file such as an image or video. When | ||
8478 | #. the file changes, the md5 hash will change to let you know you need to | 8524 | #. the file changes, the md5 hash will change to let you know you need to | ||
8479 | #. update your localized copy. The msgstr is not used at all. Set it to | 8525 | #. update your localized copy. The msgstr is not used at all. Set it to | ||
8487 | msgctxt "_" | 8533 | msgctxt "_" | ||
8488 | msgid "" | 8534 | msgid "" | ||
8489 | "external ref='figures/dropdown_search_string.png' " | 8535 | "external ref='figures/dropdown_search_string.png' " | ||
8490 | "md5='e130e644e7cfb13a5b90ab1372b17503'" | 8536 | "md5='e130e644e7cfb13a5b90ab1372b17503'" | ||
8491 | msgstr "" | 8537 | msgstr "" | ||
n | 8492 | "external ref='figures/drawingarea_arcs.png' " | n | 8538 | "external ref='figures/dropdown_search_string.png' " |
8493 | "md5='d94b40e33b9fab7ea9e2c870b97fcf0c'" | 8539 | "md5='e130e644e7cfb13a5b90ab1372b17503'" | ||
8494 | 8540 | ||||
8495 | #. (itstool) path: section/para | 8541 | #. (itstool) path: section/para | ||
8496 | #: C/index-in.docbook:3500 | 8542 | #: C/index-in.docbook:3500 | ||
n | 8497 | #, fuzzy | n | ||
8498 | #| msgid "" | ||||
8499 | #| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/" | ||||
8500 | #| "tree/master/examples/book/drawingarea/arcs\">Source Code</link>" | ||||
8501 | msgid "" | 8543 | msgid "" | ||
8502 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | 8544 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | ||
8503 | "master/examples/book/dropdown/search_string\">Source Code</link>" | 8545 | "master/examples/book/dropdown/search_string\">Source Code</link>" | ||
8504 | msgstr "" | 8546 | msgstr "" | ||
8505 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | 8547 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | ||
n | 8506 | "master/examples/book/drawingarea/arcs\">Källkod</link>" | n | 8548 | "master/examples/book/dropdown/search_string\">Källkod</link>" |
8507 | 8549 | ||||
8508 | #. (itstool) path: section/title | 8550 | #. (itstool) path: section/title | ||
8509 | #: C/index-in.docbook:3504 | 8551 | #: C/index-in.docbook:3504 | ||
n | 8510 | #, fuzzy | n | ||
8511 | #| msgid "Full Example" | ||||
8512 | msgid "Font Example" | 8552 | msgid "Font Example" | ||
n | 8513 | msgstr "Fullständigt exempel" | n | 8553 | msgstr "Typsnittsexempel" |
8514 | 8554 | ||||
8515 | #. (itstool) path: section/para | 8555 | #. (itstool) path: section/para | ||
8516 | #: C/index-in.docbook:3506 | 8556 | #: C/index-in.docbook:3506 | ||
n | 8517 | #, fuzzy | n | ||
8518 | #| msgid "" | ||||
8519 | #| "<classname>Gtk::Button</classname>, <classname>Gtk::ToolButton</" | ||||
8520 | #| "classname>, <classname>Gtk::MenuItem</classname> and <classname>Gtk::" | ||||
8521 | #| "Switch</classname> implement the <classname>Gtk::Actionable</classname> " | ||||
8522 | #| "interface instead of the removed <classname>Gtk::Activatable</classname> " | ||||
8523 | #| "interface." | ||||
8524 | msgid "" | 8557 | msgid "" | ||
8525 | "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 " | ||
8526 | "is possible because <classname>Pango::FontMap</classname> implements the " | 8559 | "is possible because <classname>Pango::FontMap</classname> implements the " | ||
8527 | "<classname>Gio::ListModel</classname> interface. Of course you can use a " | 8560 | "<classname>Gio::ListModel</classname> interface. Of course you can use a " | ||
8528 | "<classname>FontDialogButton</classname> instead." | 8561 | "<classname>FontDialogButton</classname> instead." | ||
8529 | msgstr "" | 8562 | msgstr "" | ||
n | 8530 | "<classname>Gtk::Button</classname>, <classname>Gtk::ToolButton</classname>, " | n | 8563 | "Detta exempel använder en <classname>Pango::FontMap</classname> som sin " |
8531 | "<classname>Gtk::MenuItem</classname> och <classname>Gtk::Switch</classname> " | 8564 | "modell. Detta är möjligt för att <classname>Pango::FontMap</classname> " | ||
8532 | "implementerar <classname>Gtk::Actionable</classname>-gränssnittet i stället " | 8565 | "implementerar <classname>Gio::ListModel</classname>-gränssnittet. Du kan " | ||
8533 | "för det borttagna <classname>Gtk::Activatable</classname>-gränssnittet." | 8566 | "förstås använda en <classname>FontDialogButton</classname> i stället." | ||
8534 | 8567 | ||||
8535 | #. (itstool) path: figure/title | 8568 | #. (itstool) path: figure/title | ||
8536 | #: C/index-in.docbook:3513 C/index-in.docbook:3532 | 8569 | #: C/index-in.docbook:3513 C/index-in.docbook:3532 | ||
8537 | msgid "Search Font" | 8570 | msgid "Search Font" | ||
n | 8538 | msgstr "" | n | 8571 | msgstr "Sök typsnitt" |
8539 | 8572 | ||||
8540 | #. (itstool) path: imageobject/imagedata | 8573 | #. (itstool) path: imageobject/imagedata | ||
8541 | #. This is a reference to an external file such as an image or video. When | 8574 | #. This is a reference to an external file such as an image or video. When | ||
8542 | #. the file changes, the md5 hash will change to let you know you need to | 8575 | #. the file changes, the md5 hash will change to let you know you need to | ||
8543 | #. update your localized copy. The msgstr is not used at all. Set it to | 8576 | #. update your localized copy. The msgstr is not used at all. Set it to | ||
8547 | msgctxt "_" | 8580 | msgctxt "_" | ||
8548 | msgid "" | 8581 | msgid "" | ||
8549 | "external ref='figures/dropdown_search_font.png' " | 8582 | "external ref='figures/dropdown_search_font.png' " | ||
8550 | "md5='1733e29c88c19dc6c4cbd1114446ac18'" | 8583 | "md5='1733e29c88c19dc6c4cbd1114446ac18'" | ||
8551 | msgstr "" | 8584 | msgstr "" | ||
n | 8552 | "external ref='figures/drawingarea_pango_text.png' " | n | 8585 | "external ref='figures/dropdown_search_font.png' " |
8553 | "md5='07c39668c9dda2ac1f9455caf6e4d16a'" | 8586 | "md5='1733e29c88c19dc6c4cbd1114446ac18'" | ||
8554 | 8587 | ||||
8555 | #. (itstool) path: section/para | 8588 | #. (itstool) path: section/para | ||
8556 | #: C/index-in.docbook:3519 | 8589 | #: C/index-in.docbook:3519 | ||
n | 8557 | #, fuzzy | n | ||
8558 | #| msgid "" | ||||
8559 | #| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/" | ||||
8560 | #| "tree/master/examples/book/paned\">Source Code</link>" | ||||
8561 | msgid "" | 8590 | msgid "" | ||
8562 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | 8591 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | ||
8563 | "master/examples/book/dropdown/search_font\">Source Code</link>" | 8592 | "master/examples/book/dropdown/search_font\">Source Code</link>" | ||
8564 | msgstr "" | 8593 | msgstr "" | ||
8565 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | 8594 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | ||
n | 8566 | "master/examples/book/paned\">Källkod</link>" | n | 8595 | "master/examples/book/dropdown/search_font\">Källkod</link>" |
8567 | 8596 | ||||
8568 | #. (itstool) path: section/title | 8597 | #. (itstool) path: section/title | ||
8569 | #: C/index-in.docbook:3524 | 8598 | #: C/index-in.docbook:3524 | ||
n | 8570 | #, fuzzy | n | ||
8571 | #| msgid "Simple Example" | ||||
8572 | msgid "Complex Example" | 8599 | msgid "Complex Example" | ||
n | 8573 | msgstr "Enkelt exempel" | n | 8600 | msgstr "Komplext exempel" |
8574 | 8601 | ||||
8575 | #. (itstool) path: section/para | 8602 | #. (itstool) path: section/para | ||
8576 | #: C/index-in.docbook:3526 | 8603 | #: C/index-in.docbook:3526 | ||
8577 | msgid "" | 8604 | msgid "" | ||
8578 | "This is a more complex example with two <classname>SignalListItemFactory</" | 8605 | "This is a more complex example with two <classname>SignalListItemFactory</" | ||
8579 | "classname> objects and their signal handlers. This example would be simpler " | 8606 | "classname> objects and their signal handlers. This example would be simpler " | ||
8580 | "without the checkmark in the dropdown menu." | 8607 | "without the checkmark in the dropdown menu." | ||
8581 | msgstr "" | 8608 | msgstr "" | ||
n | n | 8609 | "Detta är ett mer komplext exempel med två <classname>SignalListItemFactory</" | ||
8610 | "classname>-objekt och deras signalhanterare. Detta exempel skulle vara " | ||||
8611 | "enklare utan bocken i rullgardinsmenyn." | ||||
8582 | 8612 | ||||
8583 | #. (itstool) path: imageobject/imagedata | 8613 | #. (itstool) path: imageobject/imagedata | ||
8584 | #. This is a reference to an external file such as an image or video. When | 8614 | #. This is a reference to an external file such as an image or video. When | ||
8585 | #. the file changes, the md5 hash will change to let you know you need to | 8615 | #. the file changes, the md5 hash will change to let you know you need to | ||
8586 | #. update your localized copy. The msgstr is not used at all. Set it to | 8616 | #. update your localized copy. The msgstr is not used at all. Set it to | ||
8590 | msgctxt "_" | 8620 | msgctxt "_" | ||
8591 | msgid "" | 8621 | msgid "" | ||
8592 | "external ref='figures/dropdown_complex.png' " | 8622 | "external ref='figures/dropdown_complex.png' " | ||
8593 | "md5='2167fb44e42653aa7fd855604c4c1e65'" | 8623 | "md5='2167fb44e42653aa7fd855604c4c1e65'" | ||
8594 | msgstr "" | 8624 | msgstr "" | ||
n | 8595 | "external ref='figures/combobox_complex.png' " | n | 8625 | "external ref='figures/dropdown_complex.png' " |
8596 | "md5='ec96e29fe85caef072868284443e413e'" | 8626 | "md5='2167fb44e42653aa7fd855604c4c1e65'" | ||
8597 | 8627 | ||||
8598 | #. (itstool) path: section/para | 8628 | #. (itstool) path: section/para | ||
8599 | #: C/index-in.docbook:3538 | 8629 | #: C/index-in.docbook:3538 | ||
n | 8600 | #, fuzzy | n | ||
8601 | #| msgid "" | ||||
8602 | #| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/" | ||||
8603 | #| "tree/master/examples/book/combobox/complex\">Source Code</link>" | ||||
8604 | msgid "" | 8630 | msgid "" | ||
8605 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | 8631 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | ||
8606 | "master/examples/book/dropdown/complex\">Source Code</link>" | 8632 | "master/examples/book/dropdown/complex\">Source Code</link>" | ||
8607 | msgstr "" | 8633 | msgstr "" | ||
8608 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | 8634 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | ||
n | 8609 | "master/examples/book/combobox/complex\">Källkod</link>" | n | 8635 | "master/examples/book/dropdown/complex\">Källkod</link>" |
8610 | 8636 | ||||
8611 | #. (itstool) path: chapter/title | 8637 | #. (itstool) path: chapter/title | ||
8612 | #: C/index-in.docbook:3543 | 8638 | #: C/index-in.docbook:3543 | ||
8613 | msgid "Combo Boxes" | 8639 | msgid "Combo Boxes" | ||
8614 | msgstr "Kombinationsrutor" | 8640 | msgstr "Kombinationsrutor" | ||
8615 | 8641 | ||||
8616 | #. (itstool) path: note/para | 8642 | #. (itstool) path: note/para | ||
8617 | #: C/index-in.docbook:3545 | 8643 | #: C/index-in.docbook:3545 | ||
n | 8618 | #, fuzzy | n | ||
8619 | #| msgid "" | ||||
8620 | #| "<classname>Gdk::DrawContext</classname> and <classname>Gdk::CairoContext</" | ||||
8621 | #| "classname> are new. <classname>Gdk::DrawingContext</classname> has been " | ||||
8622 | #| "removed." | ||||
8623 | msgid "" | 8644 | msgid "" | ||
8624 | "<classname>Gtk::ComboBox</classname> and <classname>Gtk::ComboBoxText</" | 8645 | "<classname>Gtk::ComboBox</classname> and <classname>Gtk::ComboBoxText</" | ||
8625 | "classname> are deprecated since <application>gtkmm</application> 4.10. Use " | 8646 | "classname> are deprecated since <application>gtkmm</application> 4.10. Use " | ||
8626 | "<classname>Gtk::DropDown</classname> in new code." | 8647 | "<classname>Gtk::DropDown</classname> in new code." | ||
8627 | msgstr "" | 8648 | msgstr "" | ||
n | 8628 | "<classname>Gdk::DrawContext</classname> och <classname>Gdk::CairoContext</" | n | 8649 | "<classname>Gtk::ComboBox</classname> och <classname>Gtk::ComboBoxText</" |
8629 | "classname> är nya. <classname>Gdk::DrawingContext</classname> har tagits " | 8650 | "classname> är föråldrade sedan <application>gtkmm</application> 4.10. Använd " | ||
8630 | "bort." | 8651 | "<classname>Gtk::DropDown</classname> i ny kod." | ||
8631 | 8652 | ||||
8632 | #. (itstool) path: chapter/para | 8653 | #. (itstool) path: chapter/para | ||
8633 | #: C/index-in.docbook:3549 | 8654 | #: C/index-in.docbook:3549 | ||
8634 | msgid "" | 8655 | msgid "" | ||
8635 | "The <classname>ComboBox</classname> widget offers a list (or tree) of " | 8656 | "The <classname>ComboBox</classname> widget offers a list (or tree) of " | ||
10772 | "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 " | ||
10773 | "<methodname>add_button()</methodname>." | 10794 | "<methodname>add_button()</methodname>." | ||
10774 | 10795 | ||||
10775 | #. (itstool) path: chapter/para | 10796 | #. (itstool) path: chapter/para | ||
10776 | #: C/index-in.docbook:4499 | 10797 | #: C/index-in.docbook:4499 | ||
n | 10777 | #, fuzzy | n | ||
10778 | msgid "" | 10798 | msgid "" | ||
10779 | "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 " | ||
10780 | "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 " | ||
10781 | "<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 " | ||
10782 | "destroyed when it's closed. Connect to the <literal>response</literal> " | 10802 | "destroyed when it's closed. Connect to the <literal>response</literal> " | ||
10783 | "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</" | ||
10784 | "literal> signal handler is also where you should hide the dialog." | 10804 | "literal> signal handler is also where you should hide the dialog." | ||
10785 | msgstr "" | 10805 | msgstr "" | ||
n | 10786 | "För att visa dialogrutan, anropa <methodname>show()</methodname>. Om samma " | n | 10806 | "För att visa dialogrutan, anropa <methodname>set_visible(true)</methodname>. " |
10787 | "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 " | ||
10788 | "<methodname>set_hide_on_close()</methodname>, annars kommer dialogrutan " | 10808 | "<methodname>set_hide_on_close()</methodname>, annars kommer dialogrutan " | ||
10789 | "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 " | ||
10790 | "du vill veta vilken knapp som trycktes på. <literal>response</literal>-" | 10810 | "du vill veta vilken knapp som trycktes på. <literal>response</literal>-" | ||
10791 | "signalhanteraren är också var du ska dölja dialogrutan." | 10811 | "signalhanteraren är också var du ska dölja dialogrutan." | ||
10792 | 10812 | ||||
10852 | msgctxt "_" | 10872 | msgctxt "_" | ||
10853 | msgid "" | 10873 | msgid "" | ||
10854 | "external ref='figures/dialogs_alertdialog.png' " | 10874 | "external ref='figures/dialogs_alertdialog.png' " | ||
10855 | "md5='88fa2103ad6d842eeebc68cc8cfd94ef'" | 10875 | "md5='88fa2103ad6d842eeebc68cc8cfd94ef'" | ||
10856 | msgstr "" | 10876 | msgstr "" | ||
n | 10857 | "external ref='figures/dialogs_messagedialog.png' " | n | 10877 | "external ref='figures/dialogs_alertdialog.png' " |
10858 | "md5='58151003c2b562b9f27b064c3193f7b1'" | 10878 | "md5='88fa2103ad6d842eeebc68cc8cfd94ef'" | ||
10859 | 10879 | ||||
10860 | #. (itstool) path: section/para | 10880 | #. (itstool) path: section/para | ||
10861 | #: C/index-in.docbook:4532 | 10881 | #: C/index-in.docbook:4532 | ||
10862 | msgid "" | 10882 | msgid "" | ||
10863 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | 10883 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | ||
10933 | msgctxt "_" | 10953 | msgctxt "_" | ||
10934 | msgid "" | 10954 | msgid "" | ||
10935 | "external ref='figures/dialogs_filedialog.png' " | 10955 | "external ref='figures/dialogs_filedialog.png' " | ||
10936 | "md5='15ecc452482112428259d0dcd8d0394a'" | 10956 | "md5='15ecc452482112428259d0dcd8d0394a'" | ||
10937 | msgstr "" | 10957 | msgstr "" | ||
n | 10938 | "external ref='figures/dialogs_filechooser.png' " | n | 10958 | "external ref='figures/dialogs_filedialog.png' " |
10939 | "md5='15ecc452482112428259d0dcd8d0394a'" | 10959 | "md5='15ecc452482112428259d0dcd8d0394a'" | ||
10940 | 10960 | ||||
10941 | #. (itstool) path: section/para | 10961 | #. (itstool) path: section/para | ||
10942 | #: C/index-in.docbook:4561 | 10962 | #: C/index-in.docbook:4561 | ||
10943 | msgid "" | 10963 | msgid "" | ||
11006 | msgctxt "_" | 11026 | msgctxt "_" | ||
11007 | msgid "" | 11027 | msgid "" | ||
11008 | "external ref='figures/dialogs_colordialog.png' " | 11028 | "external ref='figures/dialogs_colordialog.png' " | ||
11009 | "md5='029761e82cf06d3cbeaac2b7ccd70e57'" | 11029 | "md5='029761e82cf06d3cbeaac2b7ccd70e57'" | ||
11010 | msgstr "" | 11030 | msgstr "" | ||
n | 11011 | "external ref='figures/dialogs_colorchooserdialog.png' " | n | 11031 | "external ref='figures/dialogs_colordialog.png' " |
11012 | "md5='029761e82cf06d3cbeaac2b7ccd70e57'" | 11032 | "md5='029761e82cf06d3cbeaac2b7ccd70e57'" | ||
11013 | 11033 | ||||
11014 | #. (itstool) path: section/para | 11034 | #. (itstool) path: section/para | ||
11015 | #: C/index-in.docbook:4588 | 11035 | #: C/index-in.docbook:4588 | ||
11016 | msgid "" | 11036 | msgid "" | ||
11077 | msgctxt "_" | 11097 | msgctxt "_" | ||
11078 | msgid "" | 11098 | msgid "" | ||
11079 | "external ref='figures/dialogs_fontdialog.png' " | 11099 | "external ref='figures/dialogs_fontdialog.png' " | ||
11080 | "md5='e35e05429468fa8823416b8a0deff342'" | 11100 | "md5='e35e05429468fa8823416b8a0deff342'" | ||
11081 | msgstr "" | 11101 | msgstr "" | ||
n | 11082 | "external ref='figures/dialogs_fontchooserdialog.png' " | n | 11102 | "external ref='figures/dialogs_fontdialog.png' " |
11083 | "md5='e35e05429468fa8823416b8a0deff342'" | 11103 | "md5='e35e05429468fa8823416b8a0deff342'" | ||
11084 | 11104 | ||||
11085 | #. (itstool) path: section/para | 11105 | #. (itstool) path: section/para | ||
11086 | #: C/index-in.docbook:4615 | 11106 | #: C/index-in.docbook:4615 | ||
11087 | msgid "" | 11107 | msgid "" | ||
11167 | "master/examples/book/dialogs/aboutdialog\">Källkod</link>" | 11187 | "master/examples/book/dialogs/aboutdialog\">Källkod</link>" | ||
11168 | 11188 | ||||
11169 | #. (itstool) path: section/title | 11189 | #. (itstool) path: section/title | ||
11170 | #: C/index-in.docbook:4652 | 11190 | #: C/index-in.docbook:4652 | ||
11171 | #, fuzzy | 11191 | #, fuzzy | ||
n | 11172 | #| msgid "Custom Widget" | n | ||
11173 | msgid "Custom Dialog" | 11192 | msgid "Custom Dialog" | ||
n | 11174 | msgstr "Anpassad komponent" | n | 11193 | msgstr "Anpassad dialogruta" |
11175 | 11194 | ||||
11176 | #. (itstool) path: section/para | 11195 | #. (itstool) path: section/para | ||
11177 | #: C/index-in.docbook:4653 | 11196 | #: C/index-in.docbook:4653 | ||
11178 | #, fuzzy | 11197 | #, fuzzy | ||
11179 | msgid "" | 11198 | msgid "" | ||
11185 | "skapa din egen dialogruta genom att härleda en klass från <classname>Window</" | 11204 | "skapa din egen dialogruta genom att härleda en klass från <classname>Window</" | ||
11186 | "classname> och fylla den med komponenterna som du behöver." | 11205 | "classname> och fylla den med komponenterna som du behöver." | ||
11187 | 11206 | ||||
11188 | #. (itstool) path: section/para | 11207 | #. (itstool) path: section/para | ||
11189 | #: C/index-in.docbook:4659 | 11208 | #: C/index-in.docbook:4659 | ||
n | 11190 | #, fuzzy | n | ||
11191 | #| msgid "" | ||||
11192 | #| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/" | ||||
11193 | #| "classGtk_1_1Widget.html\">Widget Reference</link>" | ||||
11194 | msgid "" | 11209 | msgid "" | ||
11195 | "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/" | 11210 | "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/" | ||
11196 | "classGtk_1_1Window.html\">Window Reference</link>" | 11211 | "classGtk_1_1Window.html\">Window Reference</link>" | ||
11197 | msgstr "" | 11212 | msgstr "" | ||
11198 | "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/" | 11213 | "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/" | ||
n | 11199 | "classGtk_1_1Widget.html\">Widget-referens</link>" | n | 11214 | "classGtk_1_1Window.html\">Window-referens</link>" |
11200 | 11215 | ||||
11201 | #. (itstool) path: figure/title | 11216 | #. (itstool) path: figure/title | ||
11202 | #: C/index-in.docbook:4665 | 11217 | #: C/index-in.docbook:4665 | ||
11203 | #, fuzzy | 11218 | #, fuzzy | ||
n | 11204 | #| msgid "Dialogs" | n | ||
11205 | msgid "Window Dialog" | 11219 | msgid "Window Dialog" | ||
n | 11206 | msgstr "Dialogrutor" | n | 11220 | msgstr "Fönsterdialog" |
11207 | 11221 | ||||
11208 | #. (itstool) path: imageobject/imagedata | 11222 | #. (itstool) path: imageobject/imagedata | ||
11209 | #. This is a reference to an external file such as an image or video. When | 11223 | #. This is a reference to an external file such as an image or video. When | ||
11210 | #. the file changes, the md5 hash will change to let you know you need to | 11224 | #. the file changes, the md5 hash will change to let you know you need to | ||
11211 | #. update your localized copy. The msgstr is not used at all. Set it to | 11225 | #. update your localized copy. The msgstr is not used at all. Set it to | ||
11215 | msgctxt "_" | 11229 | msgctxt "_" | ||
11216 | msgid "" | 11230 | msgid "" | ||
11217 | "external ref='figures/dialogs_windowdialog.png' " | 11231 | "external ref='figures/dialogs_windowdialog.png' " | ||
11218 | "md5='53deb18153f6903fe45d015fc06ccef3'" | 11232 | "md5='53deb18153f6903fe45d015fc06ccef3'" | ||
11219 | msgstr "" | 11233 | msgstr "" | ||
n | 11220 | "external ref='figures/dialogs_messagedialog.png' " | n | 11234 | "external ref='figures/dialogs_windowdialog.png' " |
11221 | "md5='58151003c2b562b9f27b064c3193f7b1'" | 11235 | "md5='53deb18153f6903fe45d015fc06ccef3'" | ||
11222 | 11236 | ||||
11223 | #. (itstool) path: section/para | 11237 | #. (itstool) path: section/para | ||
11224 | #: C/index-in.docbook:4671 | 11238 | #: C/index-in.docbook:4671 | ||
11225 | msgid "" | 11239 | msgid "" | ||
11226 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | 11240 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | ||
14944 | msgid "Timeouts, I/O and Idle Functions" | 14958 | msgid "Timeouts, I/O and Idle Functions" | ||
14945 | msgstr "Timeout, I/O och inaktivitetsfunktioner" | 14959 | msgstr "Timeout, I/O och inaktivitetsfunktioner" | ||
14946 | 14960 | ||||
14947 | #. (itstool) path: section/title | 14961 | #. (itstool) path: section/title | ||
14948 | #: C/index-in.docbook:6435 | 14962 | #: C/index-in.docbook:6435 | ||
n | 14949 | #, fuzzy | n | ||
14950 | msgid "Timeouts" | 14963 | msgid "Timeouts" | ||
14951 | msgstr "Timeout" | 14964 | msgstr "Timeout" | ||
14952 | 14965 | ||||
14953 | #. (itstool) path: section/para | 14966 | #. (itstool) path: section/para | ||
14954 | #: C/index-in.docbook:6437 | 14967 | #: C/index-in.docbook:6437 | ||
15451 | "över klassräckvidd är det ökade datadöljandet och minskade beroendena." | 15464 | "över klassräckvidd är det ökade datadöljandet och minskade beroendena." | ||
15452 | 15465 | ||||
15453 | #. (itstool) path: section/programlisting | 15466 | #. (itstool) path: section/programlisting | ||
15454 | #: C/index-in.docbook:6672 | 15467 | #: C/index-in.docbook:6672 | ||
15455 | #, 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" | ||||
15456 | msgid "" | 15477 | msgid "" | ||
15457 | "<code>{\n" | 15478 | "<code>{\n" | ||
15458 | " Gtk::Button aButton;\n" | 15479 | " Gtk::Button aButton;\n" | ||
15459 | " aButton.set_visible(true);\n" | 15480 | " aButton.set_visible(true);\n" | ||
15460 | " ...\n" | 15481 | " ...\n" | ||
15463 | "</code>" | 15484 | "</code>" | ||
15464 | msgstr "" | 15485 | msgstr "" | ||
15465 | "\n" | 15486 | "\n" | ||
15466 | "{\n" | 15487 | "{\n" | ||
15467 | " Gtk::Button aButton;\n" | 15488 | " Gtk::Button aButton;\n" | ||
n | 15468 | " aButton.show();\n" | n | 15489 | " aButton.set_visible(true);\n" |
15469 | " ...\n" | 15490 | " ...\n" | ||
15470 | " app->run();\n" | 15491 | " app->run();\n" | ||
15471 | "}\n" | 15492 | "}\n" | ||
15472 | 15493 | ||||
15473 | #. (itstool) path: section/para | 15494 | #. (itstool) path: section/para | ||
16028 | "<methodname>get_widget()</methodname> method, providing the widget's name. " | 16049 | "<methodname>get_widget()</methodname> method, providing the widget's name. " | ||
16029 | "This name should be specified in the <application>Cambalache</application> " | 16050 | "This name should be specified in the <application>Cambalache</application> " | ||
16030 | "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 " | ||
16031 | "pointer will be set to <literal>nullptr</literal>." | 16052 | "pointer will be set to <literal>nullptr</literal>." | ||
16032 | msgstr "" | 16053 | msgstr "" | ||
n | 16033 | "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, " |
16034 | "<methodname>show()</methodname>, använder du metoden " | 16055 | "använder du metoden <methodname>get_widget()</methodname> och " | ||
16035 | "<methodname>get_widget()</methodname> och tillhandahåller komponentens namn. " | 16056 | "tillhandahåller komponentens namn. Detta namn bör anges i " | ||
16036 | "Detta namn bör anges i <application>Glade</application>s egenskapsfönster. " | 16057 | "<application>Glade</application>s egenskapsfönster. Om komponenten inte " | ||
16037 | "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." | ||
16038 | "sättas till nullptr." | ||||
16039 | 16059 | ||||
16040 | #. (itstool) path: section/para | 16060 | #. (itstool) path: section/para | ||
16041 | #: C/index-in.docbook:6910 | 16061 | #: C/index-in.docbook:6910 | ||
n | 16042 | #, fuzzy | n | ||
16043 | msgid "" | 16062 | msgid "" | ||
16044 | "The dialogs in this chapter are derived from <classname>Gtk::Window</" | 16063 | "The dialogs in this chapter are derived from <classname>Gtk::Window</" | ||
16045 | "classname> because <classname>Gtk::Dialog</classname> is deprecated since " | 16064 | "classname> because <classname>Gtk::Dialog</classname> is deprecated since " | ||
16046 | "<application>gtkmm</application> 4.10." | 16065 | "<application>gtkmm</application> 4.10." | ||
16047 | msgstr "" | 16066 | msgstr "" | ||
n | 16048 | "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</" |
16049 | "att associera en <classname>Gtk::Builder</classname>-ui-fil med vår " | 16068 | "classname> eftersom <classname>Gtk::Dialog</classname> är föråldrat sedan " | ||
16050 | "programfönsterklass." | 16069 | "<application>gtkmm</application> 4.10." | ||
16051 | 16070 | ||||
16052 | #. (itstool) path: section/programlisting | 16071 | #. (itstool) path: section/programlisting | ||
16053 | #: C/index-in.docbook:6914 | 16072 | #: C/index-in.docbook:6914 | ||
16054 | #, fuzzy, no-wrap | 16073 | #, fuzzy, no-wrap | ||
16055 | msgid "" | 16074 | msgid "" | ||
16065 | msgid "" | 16084 | msgid "" | ||
16066 | "<classname>Gtk::Builder</classname> checks for a null pointer, and checks " | 16085 | "<classname>Gtk::Builder</classname> checks for a null pointer, and checks " | ||
16067 | "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 " | ||
16068 | "command line about these." | 16087 | "command line about these." | ||
16069 | msgstr "" | 16088 | msgstr "" | ||
n | 16070 | "<application>Gtk::Builder</application> tittar efter en null-pekare, och " | n | 16089 | "<classname>Gtk::Builder</classname> tittar efter en null-pekare, och " |
16071 | "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 " | ||
16072 | "på kommandoraden om dessa." | 16091 | "på kommandoraden om dessa." | ||
16073 | 16092 | ||||
16074 | #. (itstool) path: section/para | 16093 | #. (itstool) path: section/para | ||
16075 | #: C/index-in.docbook:6923 | 16094 | #: C/index-in.docbook:6923 | ||
16277 | "}\n" | 16296 | "}\n" | ||
16278 | 16297 | ||||
16279 | #. (itstool) path: section/para | 16298 | #. (itstool) path: section/para | ||
16280 | #: C/index-in.docbook:7009 | 16299 | #: C/index-in.docbook:7009 | ||
16281 | #, 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" | ||||
16282 | msgid "" | 16307 | msgid "" | ||
16283 | "It's possible to pass additional arguments from " | 16308 | "It's possible to pass additional arguments from " | ||
16284 | "<methodname>get_widget_derived()</methodname> to the constructor of the " | 16309 | "<methodname>get_widget_derived()</methodname> to the constructor of the " | ||
16285 | "derived widget. For instance, this call to <methodname>get_widget_derived()</" | 16310 | "derived widget. For instance, this call to <methodname>get_widget_derived()</" | ||
16286 | "methodname>" | 16311 | "methodname>" | ||
16287 | msgstr "" | 16312 | msgstr "" | ||
16288 | "Det är möjligt att skicka ytterligare argument från " | 16313 | "Det är möjligt att skicka ytterligare argument från " | ||
16289 | "<methodname>get_widget_derived()</methodname> till konstruktorn för den " | 16314 | "<methodname>get_widget_derived()</methodname> till konstruktorn för den " | ||
16290 | "härledda komponenten. Exempelvis kan detta anrop till " | 16315 | "härledda komponenten. Exempelvis kan detta anrop till " | ||
16291 | "<methodname>get_widget_derived()</methodname> <_:programlisting-1/> starta " | 16316 | "<methodname>get_widget_derived()</methodname> <_:programlisting-1/> starta " | ||
n | 16292 | "denna konstruktor <_:programlisting-2/>" | n | 16317 | "denna konstruktor" |
16293 | 16318 | ||||
16294 | #. (itstool) path: section/programlisting | 16319 | #. (itstool) path: section/programlisting | ||
16295 | #: C/index-in.docbook:7014 | 16320 | #: C/index-in.docbook:7014 | ||
16296 | #, fuzzy, no-wrap | 16321 | #, fuzzy, no-wrap | ||
16297 | msgid "" | 16322 | msgid "" | ||
18010 | "your custom class from that class. The <link linkend=\"custom-css-name-" | 18035 | "your custom class from that class. The <link linkend=\"custom-css-name-" | ||
18011 | "example\">custom CSS name example</link> shows how that's done." | 18036 | "example\">custom CSS name example</link> shows how that's done." | ||
18012 | msgstr "" | 18037 | msgstr "" | ||
18013 | "Vissa <application>GTK</application>-funktioner måste, om de anropas över " | 18038 | "Vissa <application>GTK</application>-funktioner måste, om de anropas över " | ||
18014 | "huvud taget, anropas från klassens init-funktion. Några andra " | 18039 | "huvud taget, anropas från klassens init-funktion. Några andra " | ||
n | 18015 | "<application>GTK</application>-funktioner måste, om de anropas , anropas " | n | 18040 | "<application>GTK</application>-funktioner måste, om de anropas, anropas från " |
18016 | "från instansens init-funktion. Om din anpassade komponent måste anropa någon " | 18041 | "instansens init-funktion. Om din anpassade komponent måste anropa någon av " | ||
18017 | "av 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::" | ||
18018 | "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</" | ||
18019 | "Följande exempel visar hur detta görs." | 18045 | "link> visar hur detta görs." | ||
18020 | 18046 | ||||
18021 | #. (itstool) path: section/para | 18047 | #. (itstool) path: section/para | ||
18022 | #: C/index-in.docbook:7780 | 18048 | #: C/index-in.docbook:7780 | ||
18023 | msgid "This example implements a widget which draws Penrose triangles." | 18049 | msgid "This example implements a widget which draws Penrose triangles." | ||
18024 | msgstr "Detta exempel implementerar en komponent som ritar Penrose-trianglar." | 18050 | msgstr "Detta exempel implementerar en komponent som ritar Penrose-trianglar." | ||
18075 | "att påverka andra liknande komponenter." | 18101 | "att påverka andra liknande komponenter." | ||
18076 | 18102 | ||||
18077 | #. (itstool) path: section/title | 18103 | #. (itstool) path: section/title | ||
18078 | #: C/index-in.docbook:7803 | 18104 | #: C/index-in.docbook:7803 | ||
18079 | msgid "CSS Node Name, Widget Name, CSS Class Name" | 18105 | msgid "CSS Node Name, Widget Name, CSS Class Name" | ||
n | 18080 | msgstr "" | n | 18106 | msgstr "CSS-nodnamn, Komponentnamn, CSS-klassnamn" |
18081 | 18107 | ||||
18082 | #. (itstool) path: listitem/para | 18108 | #. (itstool) path: listitem/para | ||
18083 | #: C/index-in.docbook:7807 | 18109 | #: C/index-in.docbook:7807 | ||
18084 | #, fuzzy | 18110 | #, fuzzy | ||
18085 | msgid "" | 18111 | msgid "" | ||
18109 | 18135 | ||||
18110 | #. (itstool) path: listitem/para | 18136 | #. (itstool) path: listitem/para | ||
18111 | #: C/index-in.docbook:7814 | 18137 | #: C/index-in.docbook:7814 | ||
18112 | #, fuzzy | 18138 | #, fuzzy | ||
18113 | #| msgid "" | 18139 | #| msgid "" | ||
n | 18114 | #| "<methodname>Gtk::Widget::set_name()</methodname> can be called from a C++ " | n | 18140 | #| "<methodname>Gtk::Widget::add_class_name()</methodname> can be called from " |
18115 | #| "constructor. It sets the name of a widget instance." | 18141 | #| "a C++ constructor. It adds the name of a CSS class, used by a widget " | ||
18142 | #| "instance." | ||||
18116 | msgid "" | 18143 | msgid "" | ||
18117 | "<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 " | ||
18118 | "<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 " | ||
18119 | "class, used by a widget instance." | 18146 | "class, used by a widget instance." | ||
18120 | msgstr "" | 18147 | msgstr "" | ||
n | 18121 | "<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+" |
18122 | "konstruktor. Den ställer in namnet för en komponentinstans." | 18149 | "+-konstruktor. Den lägger till namnet för en CSS-klass, använd av en " | ||
18150 | "komponentinstans." | ||||
18123 | 18151 | ||||
18124 | #. (itstool) path: section/para | 18152 | #. (itstool) path: section/para | ||
18125 | #: C/index-in.docbook:7805 | 18153 | #: C/index-in.docbook:7805 | ||
18126 | #, fuzzy | 18154 | #, fuzzy | ||
18127 | msgid "" | 18155 | msgid "" | ||
18128 | "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: <_:" | ||
18129 | "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 " | ||
18130 | "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." | ||
18131 | msgstr "" | 18159 | msgstr "" | ||
n | 18132 | "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: <_:" |
18133 | "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 " | ||
18134 | "CSS-nodnamn och en etikett med ett komponentnamn." | 18162 | "etikett med ett komponentnamn och en etikett som använder sin egen CSS-klass." | ||
18135 | 18163 | ||||
18136 | #. (itstool) path: section/title | 18164 | #. (itstool) path: section/title | ||
18137 | #: C/index-in.docbook:7823 | 18165 | #: C/index-in.docbook:7823 | ||
18138 | msgid "Custom Style Information" | 18166 | msgid "Custom Style Information" | ||
18139 | msgstr "Anpassad stilinformation" | 18167 | msgstr "Anpassad stilinformation" | ||
18164 | msgid "CSS files are described in the documentation of GTK." | 18192 | msgid "CSS files are described in the documentation of GTK." | ||
18165 | msgstr "CSS-filer beskrivs i dokumentationen för GTK." | 18193 | msgstr "CSS-filer beskrivs i dokumentationen för GTK." | ||
18166 | 18194 | ||||
18167 | #. (itstool) path: section/para | 18195 | #. (itstool) path: section/para | ||
18168 | #: C/index-in.docbook:7838 | 18196 | #: C/index-in.docbook:7838 | ||
n | 18169 | #, fuzzy | n | ||
18170 | #| msgid "This example implements a widget which draws Penrose triangles." | ||||
18171 | msgid "" | 18197 | msgid "" | ||
18172 | "This example implements a button and two labels with custom style " | 18198 | "This example implements a button and two labels with custom style " | ||
18173 | "information." | 18199 | "information." | ||
n | 18174 | msgstr "Detta exempel implementerar en komponent som ritar Penrose-trianglar." | n | 18200 | msgstr "" |
18201 | "Detta exempel implementerar en knapp och två etiketter med anpassad " | ||||
18202 | "stilinformation." | ||||
18175 | 18203 | ||||
18176 | #. (itstool) path: figure/title | 18204 | #. (itstool) path: figure/title | ||
18177 | #: C/index-in.docbook:7841 | 18205 | #: C/index-in.docbook:7841 | ||
18178 | #, fuzzy | 18206 | #, fuzzy | ||
18179 | msgid "Custom CSS Name" | 18207 | msgid "Custom CSS Name" | ||
18189 | msgctxt "_" | 18217 | msgctxt "_" | ||
18190 | msgid "" | 18218 | msgid "" | ||
18191 | "external ref='figures/custom_css_name.png' " | 18219 | "external ref='figures/custom_css_name.png' " | ||
18192 | "md5='fb3d968b1fd40eb219e5a78946adff0f'" | 18220 | "md5='fb3d968b1fd40eb219e5a78946adff0f'" | ||
18193 | msgstr "" | 18221 | msgstr "" | ||
n | 18194 | "external ref='figures/frame.png' md5='e7b49b5f57afa5c0d4c487c187f1be55'" | n | 18222 | "external ref='figures/custom_css_name.png' " |
18223 | "md5='fb3d968b1fd40eb219e5a78946adff0f'" | ||||
18195 | 18224 | ||||
18196 | #. (itstool) path: section/para | 18225 | #. (itstool) path: section/para | ||
18197 | #: C/index-in.docbook:7847 | 18226 | #: C/index-in.docbook:7847 | ||
n | 18198 | #, fuzzy | n | ||
18199 | #| msgid "" | ||||
18200 | #| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/" | ||||
18201 | #| "tree/master/examples/book/custom/custom_container/\">Source Code</link>" | ||||
18202 | msgid "" | 18227 | msgid "" | ||
18203 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | 18228 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | ||
18204 | "master/examples/book/custom/custom_css_name/\">Source Code</link>" | 18229 | "master/examples/book/custom/custom_css_name/\">Source Code</link>" | ||
18205 | msgstr "" | 18230 | msgstr "" | ||
18206 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | 18231 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | ||
n | 18207 | "master/examples/book/custom/custom_container/\">Källkod</link>" | n | 18232 | "master/examples/book/custom/custom_css_name/\">Källkod</link>" |
18208 | 18233 | ||||
18209 | #. (itstool) path: chapter/title | 18234 | #. (itstool) path: chapter/title | ||
18210 | #: C/index-in.docbook:7854 | 18235 | #: C/index-in.docbook:7854 | ||
18211 | msgid "Multi-threaded programs" | 18236 | msgid "Multi-threaded programs" | ||
18212 | msgstr "Flertrådade program" | 18237 | msgstr "Flertrådade program" | ||
18718 | "endast ett huvudfönster. Dessa program kan använda <methodname>Gtk::" | 18743 | "endast ett huvudfönster. Dessa program kan använda <methodname>Gtk::" | ||
18719 | "Application::make_window_and_run(int argc, char** argv, T_Args&&... " | 18744 | "Application::make_window_and_run(int argc, char** argv, T_Args&&... " | ||
18720 | "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 " | ||
18721 | "tar <methodname>make_window_and_run()</methodname> bort fönstret och " | 18746 | "tar <methodname>make_window_and_run()</methodname> bort fönstret och " | ||
18722 | "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 | 18723 | "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 " |
18724 | "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 " | ||
18725 | "(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 " | ||
18726 | "<methodname>Gtk::Window::on_close_request()</methodname>." | 18751 | "att åsidosätta <methodname>Gtk::Window::on_close_request()</methodname>." | ||
18727 | 18752 | ||||
18728 | #. (itstool) path: section/para | 18753 | #. (itstool) path: section/para | ||
18729 | #: C/index-in.docbook:8139 | 18754 | #: C/index-in.docbook:8139 | ||
18730 | msgid "Most of our examples use this technique." | 18755 | msgid "Most of our examples use this technique." | ||
18731 | msgstr "De flesta av våra exempel använder denna teknik." | 18756 | msgstr "De flesta av våra exempel använder denna teknik." | ||
18786 | "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::" | ||
18787 | "Box::append()</methodname>." | 18812 | "Box::append()</methodname>." | ||
18788 | 18813 | ||||
18789 | #. (itstool) path: section/para | 18814 | #. (itstool) path: section/para | ||
18790 | #: C/index-in.docbook:8187 | 18815 | #: C/index-in.docbook:8187 | ||
n | 18791 | #, fuzzy | n | ||
18792 | msgid "" | 18816 | msgid "" | ||
18793 | "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::" | ||
18794 | "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. " | ||
18795 | "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, " | ||
18796 | "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 " | ||
18797 | "child widgets." | 18821 | "child widgets." | ||
18798 | msgstr "" | 18822 | msgstr "" | ||
18799 | "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 | 18800 | "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 " |
18801 | "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 " | ||
18802 | "dolda, även om <methodname>hide()</methodname> inte anropas på de " | 18826 | "komponenter dolda, även om <methodname>set_visible(false)</methodname> inte " | ||
18803 | "underordnade komponenterna." | 18827 | "anropas på de underordnade komponenterna." | ||
18804 | 18828 | ||||
18805 | #. (itstool) path: chapter/title | 18829 | #. (itstool) path: chapter/title | ||
18806 | #: C/index-in.docbook:8198 | 18830 | #: C/index-in.docbook:8198 | ||
18807 | msgid "Building applications" | 18831 | msgid "Building applications" | ||
18808 | msgstr "Bygga program" | 18832 | msgstr "Bygga program" | ||
19524 | "FontDialogButton</classname> and <classname>Gtk::DropDown</classname> in the " | 19548 | "FontDialogButton</classname> and <classname>Gtk::DropDown</classname> in the " | ||
19525 | "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 " | ||
19526 | "automatically converted to the string type that <classname>Gio::Settings</" | 19550 | "automatically converted to the string type that <classname>Gio::Settings</" | ||
19527 | "classname> requires." | 19551 | "classname> requires." | ||
19528 | msgstr "" | 19552 | msgstr "" | ||
n | 19529 | "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 " |
19530 | "inställningarna, exempelvis genom att använda kommandoradsverktyget " | 19554 | "inställningarna, exempelvis genom att använda kommandoradsverktyget " | ||
19531 | "<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 " | ||
19532 | "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 " | ||
19533 | "inställningsdialog kommer vara en underklass av <classname>Gtk::Dialog</" | 19557 | "inställningsdialog kommer vara en underklass av <classname>Gtk::Dialog</" | ||
19534 | "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 " | ||
19535 | "<classname>ExampleAppWindow</classname>: en <classname>Gtk::Builder</" | 19559 | "<classname>ExampleAppWindow</classname>: en <classname>Gtk::Builder</" | ||
n | 19536 | "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." | ||||
19537 | 19565 | ||||
19538 | #. (itstool) path: section/para | 19566 | #. (itstool) path: section/para | ||
19539 | #: C/index-in.docbook:8525 | 19567 | #: C/index-in.docbook:8525 | ||
19540 | #, fuzzy | 19568 | #, fuzzy | ||
19541 | msgid "" | 19569 | msgid "" | ||
19545 | "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." | ||
19546 | msgstr "" | 19574 | msgstr "" | ||
19547 | "När vi skapat filen <filename>prefs.ui</filename> och klassen " | 19575 | "När vi skapat filen <filename>prefs.ui</filename> och klassen " | ||
19548 | "<classname>ExampleAppPrefs</classname> besöker vi åter metoden " | 19576 | "<classname>ExampleAppPrefs</classname> besöker vi åter metoden " | ||
19549 | "<methodname>ExampleApplication::on_action_preferences()</methodname> i vår " | 19577 | "<methodname>ExampleApplication::on_action_preferences()</methodname> i vår " | ||
n | 19550 | "programklass, och får den öppna en ny inställningsdialog." | n | 19578 | "programklass, och får den att öppna en ny inställningsdialog." |
19551 | 19579 | ||||
19552 | #. (itstool) path: section/programlisting | 19580 | #. (itstool) path: section/programlisting | ||
19553 | #: C/index-in.docbook:8530 | 19581 | #: C/index-in.docbook:8530 | ||
19554 | #, fuzzy, no-wrap | 19582 | #, fuzzy, no-wrap | ||
19555 | #| msgid "" | 19583 | #| msgid "" | ||
20082 | "filename>. Denna fil finns i modulen <literal>gtkmm-documentation</literal> " | 20110 | "filename>. Denna fil finns i modulen <literal>gtkmm-documentation</literal> " | ||
20083 | "i GNOME git." | 20111 | "i GNOME git." | ||
20084 | 20112 | ||||
20085 | #. (itstool) path: chapter/para | 20113 | #. (itstool) path: chapter/para | ||
20086 | #: C/index-in.docbook:8760 | 20114 | #: C/index-in.docbook:8760 | ||
n | 20087 | #, fuzzy | n | ||
20088 | msgid "" | 20115 | msgid "" | ||
20089 | "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 " | ||
20090 | "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-" | ||
20091 | "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 " | ||
20092 | "<link xlink:href=\"https://discourse.gnome.org\">Discourse</link> instance, " | 20119 | "<link xlink:href=\"https://discourse.gnome.org\">Discourse</link> instance, " | ||
20096 | "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, " | ||
20097 | "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, " | ||
20098 | "and copies of this document (including your contribution) may be distributed " | 20125 | "and copies of this document (including your contribution) may be distributed " | ||
20099 | "freely." | 20126 | "freely." | ||
20100 | msgstr "" | 20127 | msgstr "" | ||
n | 20101 | "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 " |
20102 | "för <application>gtkmm</application> på <link xlink:href=\"mailto:gtkmm-" | ||||
20103 | "list@gnome.org\"><gtkmm-list@gnome.org></link> eller som ett ärende " | ||||
20104 | "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 | 20105 | "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 " | ||||
20106 | "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 " | ||
20107 | "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 " | ||
20108 | "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 " | ||
20109 | "fritt." | 20138 | "fritt." | ||
20110 | 20139 | ||||
20111 | #. (itstool) path: appendix/title | 20140 | #. (itstool) path: appendix/title | ||
20112 | #: C/index-in.docbook:8775 | 20141 | #: C/index-in.docbook:8775 | ||
22064 | msgid "$ cp examples/sample.jhbuildrc ~/.config/jhbuildrc" | 22093 | msgid "$ cp examples/sample.jhbuildrc ~/.config/jhbuildrc" | ||
22065 | msgstr "$ cp examples/sample.jhbuildrc ~/.config/jhbuildrc" | 22094 | msgstr "$ cp examples/sample.jhbuildrc ~/.config/jhbuildrc" | ||
22066 | 22095 | ||||
22067 | #. (itstool) path: section/para | 22096 | #. (itstool) path: section/para | ||
22068 | #: C/index-in.docbook:9632 | 22097 | #: C/index-in.docbook:9632 | ||
n | 22069 | #, fuzzy | n | ||
22070 | msgid "" | 22098 | msgid "" | ||
22071 | "To set up <application>jhbuild</application>, follow the basic installation " | 22099 | "To set up <application>jhbuild</application>, follow the basic installation " | ||
22072 | "instructions from the <link xlink:href=\"https://gnome.pages.gitlab.gnome." | 22100 | "instructions from the <link xlink:href=\"https://gnome.pages.gitlab.gnome." | ||
22073 | "org/jhbuild/\">jhbuild manual</link>. After you have installed " | 22101 | "org/jhbuild/\">jhbuild manual</link>. After you have installed " | ||
22074 | "<application>jhbuild</application>, you should copy the sample " | 22102 | "<application>jhbuild</application>, you should copy the sample " | ||
22075 | "<application>jhbuild</application> configuration file into your home " | 22103 | "<application>jhbuild</application> configuration file into your home " | ||
22076 | "directory by executing the following command from the <application>jhbuild</" | 22104 | "directory by executing the following command from the <application>jhbuild</" | ||
22077 | "application> directory: <_:screen-1/>" | 22105 | "application> directory: <_:screen-1/>" | ||
22078 | msgstr "" | 22106 | msgstr "" | ||
22079 | "Följ de grundläggande installationsinstruktionerna från <link xlink:" | 22107 | "Följ de grundläggande installationsinstruktionerna från <link xlink:" | ||
n | 22080 | "href=\"http://developer-old.gnome.org/jhbuild/unstable/\">handboken för " | n | 22108 | "href=\"https://gnome.pages.gitlab.gnome.org/jhbuild/\">handboken för " |
22081 | "jhbuild</link> för att konfigurera <application>jhbuild</application>. Efter " | 22109 | "jhbuild</link> för att konfigurera <application>jhbuild</application>. Efter " | ||
22082 | "att du har installerat <application>jhbuild</application> bör du kopiera " | 22110 | "att du har installerat <application>jhbuild</application> bör du kopiera " | ||
22083 | "<application>jhbuild</application>-exempelkonfigurationsfilen till din " | 22111 | "<application>jhbuild</application>-exempelkonfigurationsfilen till din " | ||
22084 | "hemkatalog genom att exekvera följande kommando från katalogen " | 22112 | "hemkatalog genom att exekvera följande kommando från katalogen " | ||
22085 | "<application>jhbuild</application>: <_:screen-1/>" | 22113 | "<application>jhbuild</application>: <_:screen-1/>" | ||
26073 | "char**</classname> such as the following:" | 26101 | "char**</classname> such as the following:" | ||
26074 | msgstr "" | 26102 | msgstr "" | ||
26075 | "<function>_WRAP_METHOD()</function> stöder också att sätta C++-" | 26103 | "<function>_WRAP_METHOD()</function> stöder också att sätta C++-" | ||
26076 | "utdataparametrar från C- utdataparametrar om den omslutna C-funktionen har " | 26104 | "utdataparametrar från C- utdataparametrar om den omslutna C-funktionen har " | ||
26077 | "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 | 26078 | "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</" |
26079 | "programlisting-1/> För att <command>gmmproc</command> ska placera det " | 26107 | "parameter>: <_:programlisting-1/> För att <command>gmmproc</command> ska " | ||
26080 | "returnerade värdet i C++-utdataparametern <parameter>rect</parameter> ska " | 26108 | "placera det returnerade värdet i C++-utdataparametern " | ||
26081 | "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 " | ||
26082 | "användas: <_:programlisting-2/> Den <literal>{>>}</literal> som följer " | 26110 | "<function>_WRAP_METHOD()</function>-makro användas: <_:programlisting-2/> " | ||
26083 | "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 " | ||||
26084 | "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. " | ||
26085 | "C-funktionen. <command>gmmproc</command> kommer att generera en deklaration " | 26114 | "<command>gmmproc</command> kommer att generera en deklaration av en temporär " | ||
26086 | "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++-" | ||
26087 | "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 " | ||
26088 | "vara nödvändigt att ha en <function>_INITIALIZATION()</function> som " | 26117 | "nödvändigt att ha en <function>_INITIALIZATION()</function> som beskriver " | ||
26089 | "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 " | ||
26090 | "en <classname>GdkRectangle*</classname> som i det följande: <_:" | 26119 | "<classname>const char**</classname> som i det följande: <_:programlisting-3/>" | ||
26091 | "programlisting-3/>" | ||||
26092 | 26120 | ||||
26093 | #. (itstool) path: section/programlisting | 26121 | #. (itstool) path: section/programlisting | ||
26094 | #: C/index-in.docbook:11301 | 26122 | #: C/index-in.docbook:11301 | ||
26095 | #, fuzzy, no-wrap | 26123 | #, fuzzy, no-wrap | ||
26096 | #| msgid "" | 26124 | #| msgid "" | ||
26097 | #| "\n" | 26125 | #| "\n" | ||
n | 26098 | #| "_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" | ||||
26099 | msgid "" | 26127 | msgid "" | ||
26100 | "<code>\n" | 26128 | "<code>\n" | ||
26101 | "_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" | ||
26102 | "</code>" | 26130 | "</code>" | ||
26103 | msgstr "" | 26131 | msgstr "" | ||
26104 | "\n" | 26132 | "\n" | ||
n | 26105 | "_INITIALIZATION(`Gtk::Widget&',`GtkWidget*',`$3 = Glib::wrap($4)')\n" | n | 26133 | "_INITIALIZATION(`Glib::ustring&',`const char*',`$3 = Glib::convert_const_gc |
> | har_ptr_to_ustring($4)')\n" | ||||
26106 | 26134 | ||||
26107 | #. (itstool) path: section/title | 26135 | #. (itstool) path: section/title | ||
26108 | #: C/index-in.docbook:11307 | 26136 | #: C/index-in.docbook:11307 | ||
26109 | #, fuzzy | 26137 | #, fuzzy | ||
26110 | msgid "String Parameter Processing" | 26138 | msgid "String Parameter Processing" | ||
27404 | #~ "namespaceGlib.html\">Reference</link>" | 27432 | #~ "namespaceGlib.html\">Reference</link>" | ||
27405 | #~ msgstr "" | 27433 | #~ msgstr "" | ||
27406 | #~ "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/" | 27434 | #~ "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/" | ||
27407 | #~ "namespaceGlib.html\">Referens</link>" | 27435 | #~ "namespaceGlib.html\">Referens</link>" | ||
27408 | 27436 | ||||
n | 27409 | #, fuzzy | n | ||
27410 | #~| msgid "" | ||||
27411 | #~| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/" | ||||
27412 | #~| "tree/master/examples/book/iconview\">Source Code, IconView</link>" | ||||
27413 | #~ msgid "" | ||||
27414 | #~ "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/" | ||||
27415 | #~ "tree/master/examples/book/gridview\">Source Code, GridView</link>" | ||||
27416 | #~ msgstr "" | ||||
27417 | #~ "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/" | ||||
27418 | #~ "tree/master/examples/book/iconview\">Källkod, IconView</link>" | ||||
27419 | |||||
27420 | #, no-wrap | 27437 | #, no-wrap | ||
27421 | #~ msgid "intltool-update --pot" | 27438 | #~ msgid "intltool-update --pot" | ||
27422 | #~ msgstr "intltool-update --pot" | 27439 | #~ msgstr "intltool-update --pot" | ||
27423 | 27440 | ||||
27424 | #~ msgid "" | 27441 | #~ msgid "" | ||
27432 | #~ "<link xlink:href=\"http://ftp.gnome.org/pub/GNOME/sources/gnomemm_hello/" | 27449 | #~ "<link xlink:href=\"http://ftp.gnome.org/pub/GNOME/sources/gnomemm_hello/" | ||
27433 | #~ "\"><literal>gnomemm_hello</literal> example package</link>" | 27450 | #~ "\"><literal>gnomemm_hello</literal> example package</link>" | ||
27434 | #~ msgstr "" | 27451 | #~ msgstr "" | ||
27435 | #~ "<link xlink:href=\"http://ftp.gnome.org/pub/GNOME/sources/gnomemm_hello/" | 27452 | #~ "<link xlink:href=\"http://ftp.gnome.org/pub/GNOME/sources/gnomemm_hello/" | ||
27436 | #~ "\">Exempelpaketet <literal>gnomemm_hello</literal></link>" | 27453 | #~ "\">Exempelpaketet <literal>gnomemm_hello</literal></link>" | ||
n | 27437 | n | |||
27438 | #~ msgid "Widget Name and CSS Node Name" | ||||
27439 | #~ msgstr "Komponentnamn och CSS-nodnamn" | ||||
27440 | 27454 | ||||
27441 | #~ msgid "For instance, from <filename>adjustment.hg</filename>:" | 27455 | #~ msgid "For instance, from <filename>adjustment.hg</filename>:" | ||
27442 | #~ msgstr "Till exempel, från <filename>adjustment.hg</filename>:" | 27456 | #~ msgstr "Till exempel, från <filename>adjustment.hg</filename>:" | ||
27443 | 27457 | ||||
27444 | #~ msgid "For example, from <filename>iochannel.hg</filename> in glibmm:" | 27458 | #~ msgid "For example, from <filename>iochannel.hg</filename> in glibmm:" | ||
27556 | #~ "<_:programlisting-2/>" | 27570 | #~ "<_:programlisting-2/>" | ||
27557 | #~ msgstr "" | 27571 | #~ msgstr "" | ||
27558 | #~ "Detta kompileringsfel kan se ut så här: <_:programlisting-1/> eller så " | 27572 | #~ "Detta kompileringsfel kan se ut så här: <_:programlisting-1/> eller så " | ||
27559 | #~ "här: <_:programlisting-2/>" | 27573 | #~ "här: <_:programlisting-2/>" | ||
27560 | 27574 | ||||
t | t | 27575 | #~ msgid "Widget Name and CSS Node Name" | ||
27576 | #~ msgstr "Komponentnamn och CSS-nodnamn" | ||||
27577 | |||||
27561 | #, fuzzy | 27578 | #, fuzzy | ||
27562 | #~ msgid "" | 27579 | #~ msgid "" | ||
27563 | #~ "<classname>MessageDialog</classname> is a convenience class, used to " | 27580 | #~ "<classname>MessageDialog</classname> is a convenience class, used to " | ||
27564 | #~ "create simple, standard message dialogs, with a message and buttons for " | 27581 | #~ "create simple, standard message dialogs, with a message and buttons for " | ||
27565 | #~ "user response. You can specify the type of message and the text in the " | 27582 | #~ "user response. You can specify the type of message and the text in the " |
Note: both files are merged with latest POT file.