gtkmm-documentation - master - Tutorial - Swedish

← Back to actions


Uploaded file by Anders Jonsson on 2023-03-05 01:03:36+00:00
Uploaded file by Anders Jonsson on 2023-03-05 11:22:43+00:00
5#5#
6msgid ""6msgid ""
7msgstr ""7msgstr ""
8"Project-Id-Version: gtkmm-documentation master\n"8"Project-Id-Version: gtkmm-documentation master\n"
9"POT-Creation-Date: 2025-07-08 14:05+0000\n"9"POT-Creation-Date: 2025-07-08 14:05+0000\n"
n10"PO-Revision-Date: 2023-03-05 02:03+0100\n"n10"PO-Revision-Date: 2023-03-05 12:22+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"
2830msgid "Push buttons"2830msgid "Push buttons"
2831msgstr "Tryckknappar"2831msgstr "Tryckknappar"
28322832
2833#. (itstool) path: listitem/para2833#. (itstool) path: listitem/para
2834#: C/index-in.docbook:9222834#: C/index-in.docbook:922
n2835#, fuzzyn
2836msgid ""2835msgid ""
2837"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"2836"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
2838"classGtk_1_1Button.html\"><classname>Gtk::Button</classname></link>. "2837"classGtk_1_1Button.html\"><classname>Gtk::Button</classname></link>. "
2839"Standard buttons, usually marked with a label or picture. Pushing one "2838"Standard buttons, usually marked with a label or picture. Pushing one "
2840"triggers an action. See the <link linkend=\"sec-pushbuttons\">Button</link> "2839"triggers an action. See the <link linkend=\"sec-pushbuttons\">Button</link> "
2873msgid "Check buttons"2872msgid "Check buttons"
2874msgstr "Kryssrutor"2873msgstr "Kryssrutor"
28752874
2876#. (itstool) path: listitem/para2875#. (itstool) path: listitem/para
2877#: C/index-in.docbook:9412876#: C/index-in.docbook:941
n2878#, fuzzyn
2879msgid ""2877msgid ""
2880"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"2878"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
2881"classGtk_1_1CheckButton.html\"><classname>Gtk::CheckButton</classname></"2879"classGtk_1_1CheckButton.html\"><classname>Gtk::CheckButton</classname></"
2882"link>. These act like ToggleButtons, but show their state in small squares, "2880"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 "2881"with their label at the side. They should be used in most situations which "
3789msgid "Entry Completion"3787msgid "Entry Completion"
3790msgstr "Inmatningskomplettering"3788msgstr "Inmatningskomplettering"
37913789
3792#. (itstool) path: note/para3790#. (itstool) path: note/para
3793#: C/index-in.docbook:13813791#: C/index-in.docbook:1381
n3794#, fuzzyn
3795#| msgid ""
3796#| "Some new classes were added in <application>gtkmm</application> 4 and "
3797#| "<application>glibmm</application> 2.68:"
3798msgid ""3792msgid ""
3799"<classname>Gtk::EntryCompletion</classname> is deprecated since "3793"<classname>Gtk::EntryCompletion</classname> is deprecated since "
3800"<application>gtkmm</application> 4.10. There is no replacement in "3794"<application>gtkmm</application> 4.10. There is no replacement in "
3801"<application>gtkmm</application>."3795"<application>gtkmm</application>."
3802msgstr ""3796msgstr ""
n3803"Några nya klasser lades till i <application>gtkmm</application> 4 och "n3797"<classname>Gtk::EntryCompletion</classname> är föråldrad sedan "
3798"<application>gtkmm</application> 4.10. Det finns ingen ersättning i "
3804"<application>glibmm</application> 2.68:"3799"<application>gtkmm</application>."
38053800
3806#. (itstool) path: section/para3801#. (itstool) path: section/para
3807#: C/index-in.docbook:13853802#: C/index-in.docbook:1385
3808msgid ""3803msgid ""
3809"An <classname>Entry</classname> widget can offer a drop-down list of pre-"3804"An <classname>Entry</classname> widget can offer a drop-down list of pre-"
4399"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"4394"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
4400"classGtk_1_1InfoBar.html\">Referens</link>"4395"classGtk_1_1InfoBar.html\">Referens</link>"
44014396
4402#. (itstool) path: section/para4397#. (itstool) path: section/para
4403#: C/index-in.docbook:16974398#: C/index-in.docbook:1697
n4404#, fuzzyn
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."
4410msgid ""4399msgid ""
4411"The <classname>InfoBar</classname> widget is deprecated since "4400"The <classname>InfoBar</classname> widget is deprecated since "
4412"<application>gtkmm</application> 4.10. The example shows an info bar "4401"<application>gtkmm</application> 4.10. The example shows an info bar "
4413"consisting of a <classname>Box</classname> with a <classname>Label</"4402"consisting of a <classname>Box</classname> with a <classname>Label</"
4414"classname> and a <classname>Button</classname>."4403"classname> and a <classname>Button</classname>."
4415msgstr ""4404msgstr ""
n4416"<classname>FileChooser</classname> och klasserna som implementerar den är "n4405"<classname>InfoBar</classname>-komponenten är föråldrad sedan "
4417"föråldrade sedan <application>gtkmm</application> 4.10. De har ersatts av "4406"<application>gtkmm</application> 4.10. Exemplen visar en inforad som består "
4418"<classname>FileDialog</classname>, vilken finns tillgänglig sedan "4407"av en <classname>Box</classname> med en <classname>Label</classname> och en "
4419"<application>gtkmm</application> 4.10."4408"<classname>Button</classname>."
44204409
4421#. (itstool) path: imageobject/imagedata4410#. (itstool) path: imageobject/imagedata
4422#. This is a reference to an external file such as an image or video. When4411#. 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 to4412#. 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 to4413#. 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 "5603"<application>gtkmm</application> 4.10. There is no replacement in "
5615"<application>gtkmm</application>. libadwaita (a C library) has replacement "5604"<application>gtkmm</application>. libadwaita (a C library) has replacement "
5616"parts (like AdwCarousel). In some cases, a <classname>Gtk::Notebook</"5605"parts (like AdwCarousel). In some cases, a <classname>Gtk::Notebook</"
5617"classname> might be an acceptable replacement."5606"classname> might be an acceptable replacement."
5618msgstr ""5607msgstr ""
nn5608"<classname>Gtk::Assistant</classname> är föråldrad sedan <application>gtkmm</"
5609"application> 4.10. Det finns ingen ersättning i <application>gtkmm</"
5610"application>. libadwaita (ett C-bibliotek) har ersättningsdelar (som "
5611"AdwCarousel). I vissa fall kan en <classname>Gtk::Notebook</classname> vara "
5612"en acceptabel ersättning."
56195613
5620#. (itstool) path: section/para5614#. (itstool) path: section/para
5621#: C/index-in.docbook:22975615#: C/index-in.docbook:2297
5622#, fuzzy5616#, fuzzy
5623msgid ""5617msgid ""
5742"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"5736"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
5743"master/examples/book/actionbar\">Källkod, ActionBar</link>"5737"master/examples/book/actionbar\">Källkod, ActionBar</link>"
57445738
5745#. (itstool) path: section/para5739#. (itstool) path: section/para
5746#: C/index-in.docbook:23455740#: C/index-in.docbook:2345
n5747#, fuzzyn
5748#| msgid ""
5749#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
5750#| "tree/master/examples/book/flowbox\">Source Code, FlowBox</link>"
5751msgid ""5741msgid ""
5752"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"5742"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
5753"master/examples/book/listbox_flowbox/flowbox\">Source Code, FlowBox</link>"5743"master/examples/book/listbox_flowbox/flowbox\">Source Code, FlowBox</link>"
5754msgstr ""5744msgstr ""
5755"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"5745"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n5756"master/examples/book/flowbox\">Källkod, FlowBox</link>"n5746"master/examples/book/listbox_flowbox/flowbox\">Källkod, FlowBox</link>"
57575747
5758#. (itstool) path: chapter/title5748#. (itstool) path: chapter/title
5759#: C/index-in.docbook:23525749#: C/index-in.docbook:2352
5760msgid "ListView, GridView, ColumnView"5750msgid "ListView, GridView, ColumnView"
5761msgstr ""5751msgstr ""
5810"link> i <application>gtkmm-documentation</application>s exempel."5800"link> i <application>gtkmm-documentation</application>s exempel."
58115801
5812#. (itstool) path: section/title5802#. (itstool) path: section/title
5813#: C/index-in.docbook:23775803#: C/index-in.docbook:2377
5814#, fuzzy5804#, fuzzy
nn5805#| msgid "The Model"
5815msgid "The Data Model"5806msgid "The Data Model"
5816msgstr "Modellen"5807msgstr "Modellen"
58175808
5818#. (itstool) path: section/para5809#. (itstool) path: section/para
5819#: C/index-in.docbook:23795810#: C/index-in.docbook:2379
5827msgstr ""5818msgstr ""
58285819
5829#. (itstool) path: section/para5820#. (itstool) path: section/para
5830#: C/index-in.docbook:23875821#: C/index-in.docbook:2387
5831#, fuzzy5822#, fuzzy
n5832#| 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:"
5836msgid ""5823msgid ""
5837"The elements in a model are called <emphasis>items</emphasis>. All items are "5824"The elements in a model are called <emphasis>items</emphasis>. All items are "
5838"instances of a subclass of <classname>Glib::Object</classname>. For "5825"instances of a subclass of <classname>Glib::Object</classname>. For "
5839"instance, you might have a <classname>ColumnView</classname> with one "5826"instance, you might have a <classname>ColumnView</classname> with one "
5840"integer and one text column, like so:"5827"integer and one text column, like so:"
5841msgstr ""5828msgstr ""
n5842"Modellen för en ComboBox kan definieras och fyllas i exakt som för en "n5829"Modellen för en <classname>DropDown</classname> kan definieras och fyllas i "
5843"<classname>TreeView</classname>. Exempelvis kan du härleda en ComboBox med "5830"exakt som för en <classname>ListView</classname> eller en "
5844"ett heltal och en textkolumn, så här:"5831"<classname>ColumnView</classname>. Den måste vara en underklass till "
5832"<classname>Glib::Object</classname>. Exempelvis kan du ha en "
5833"<classname>DropDown</classname> med ett heltal och en textkolumn, så här:"
58455834
5846#. (itstool) path: section/programlisting5835#. (itstool) path: section/programlisting
5847#: C/index-in.docbook:2393 C/index-in.docbook:33915836#: C/index-in.docbook:2393 C/index-in.docbook:3391
n5848#, no-wrapn5837#, fuzzy, no-wrap
5838#| msgid ""
5839#| "class ModelColumns : public Glib::Object\n"
5840#| "{\n"
5841#| "public:\n"
5842#| "  int m_col_id;\n"
5843#| "  Glib::ustring m_col_name;\n"
5844#| "\n"
5845#| "  static Glib::RefPtr&lt;ModelColumns&gt; create(\n"
5846#| "    int col_id, const Glib::ustring&amp; col_name)\n"
5847#| "  {\n"
5848#| "    return Glib::make_refptr_for_instance&lt;ModelColumns&gt;(\n"
5849#| "      new ModelColumns(col_id, col_name));\n"
5850#| "  }\n"
5851#| "\n"
5852#| "protected:\n"
5853#| "  ModelColumns(int col_id, const Glib::ustring&amp; col_name)\n"
5854#| "  : m_col_id(col_id), m_col_name(col_name)\n"
5855#| "  {}\n"
5856#| "};\n"
5857#| "\n"
5858#| "Glib::RefPtr&lt;Gio::ListStore&lt;ModelColumns&gt;&gt; m_ListStore;\n"
5849msgid ""5859msgid ""
5850"<code>class ModelColumns : public Glib::Object\n"5860"<code>class ModelColumns : public Glib::Object\n"
5851"{\n"5861"{\n"
5852"public:\n"5862"public:\n"
5853"  int m_col_id;\n"5863"  int m_col_id;\n"
5867"};\n"5877"};\n"
5868"\n"5878"\n"
5869"Glib::RefPtr&lt;Gio::ListStore&lt;ModelColumns&gt;&gt; m_ListStore;\n"5879"Glib::RefPtr&lt;Gio::ListStore&lt;ModelColumns&gt;&gt; m_ListStore;\n"
5870"</code>"5880"</code>"
5871msgstr ""5881msgstr ""
nn5882"class ModelColumns : public Glib::Object\n"
5883"{\n"
5884"public:\n"
5885"  int m_col_id;\n"
5886"  Glib::ustring m_col_name;\n"
5887"\n"
5888"  static Glib::RefPtr&lt;ModelColumns&gt; create(\n"
5889"    int col_id, const Glib::ustring&amp; col_name)\n"
5890"  {\n"
5891"    return Glib::make_refptr_for_instance&lt;ModelColumns&gt;(\n"
5892"      new ModelColumns(col_id, col_name));\n"
5893"  }\n"
5894"\n"
5895"protected:\n"
5896"  ModelColumns(int col_id, const Glib::ustring&amp; col_name)\n"
5897"  : m_col_id(col_id), m_col_name(col_name)\n"
5898"  {}\n"
5899"};\n"
5900"\n"
5901"Glib::RefPtr&lt;Gio::ListStore&lt;ModelColumns&gt;&gt; m_ListStore;\n"
58725902
5873#. (itstool) path: section/para5903#. (itstool) path: section/para
5874#: C/index-in.docbook:24155904#: C/index-in.docbook:2415
5875msgid ""5905msgid ""
5876"Every item in a model has a position which is the unsigned integer that "5906"Every item in a model has a position which is the unsigned integer that "
6098#. (itstool) path: section/para6128#. (itstool) path: section/para
6099#: C/index-in.docbook:24906129#: C/index-in.docbook:2490
6100#, fuzzy6130#, fuzzy
6101#| msgid ""6131#| msgid ""
6102#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"6132#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
n6103#| "tree/master/examples/book/treeview/list/\">Source Code</link>"n6133#| "tree/master/examples/book/listmodelviews/gridview\">Source Code"
6134#| "GridView</link>"
6104msgid ""6135msgid ""
6105"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6136"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
6106"master/examples/book/listmodelviews/list_listview\">Source Code</link>"6137"master/examples/book/listmodelviews/list_listview\">Source Code</link>"
6107msgstr ""6138msgstr ""
6108"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6139"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n6109"master/examples/book/treeview/list/\">Källkod</link>"n6140"master/examples/book/listmodelviews/gridview\">Källkod, GridView</link>"
61106141
6111#. (itstool) path: section/title6142#. (itstool) path: section/title
6112#. (itstool) path: figure/title6143#. (itstool) path: figure/title
6113#: C/index-in.docbook:2496 C/index-in.docbook:25086144#: C/index-in.docbook:2496 C/index-in.docbook:2508
6114#, fuzzy6145#, fuzzy
6154#. (itstool) path: section/para6185#. (itstool) path: section/para
6155#: C/index-in.docbook:25146186#: C/index-in.docbook:2514
6156#, fuzzy6187#, fuzzy
6157#| msgid ""6188#| msgid ""
6158#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"6189#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
n6159#| "tree/master/examples/book/textview/\">Source Code</link>"n6190#| "tree/master/examples/book/listmodelviews/gridview\">Source Code"
6191#| "GridView</link>"
6160msgid ""6192msgid ""
6161"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6193"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
6162"master/examples/book/listmodelviews/gridview\">Source Code</link>"6194"master/examples/book/listmodelviews/gridview\">Source Code</link>"
6163msgstr ""6195msgstr ""
6164"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6196"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n6165"master/examples/book/textview/\">Källkod</link>"n6197"master/examples/book/listmodelviews/gridview\">Källkod, GridView</link>"
61666198
6167#. (itstool) path: section/title6199#. (itstool) path: section/title
6168#. (itstool) path: figure/title6200#. (itstool) path: figure/title
6169#: C/index-in.docbook:2520 C/index-in.docbook:25326201#: C/index-in.docbook:2520 C/index-in.docbook:2532
6170msgid "ColumnView"6202msgid "ColumnView"
6213#. (itstool) path: section/para6245#. (itstool) path: section/para
6214#: C/index-in.docbook:25386246#: C/index-in.docbook:2538
6215#, fuzzy6247#, fuzzy
6216#| msgid ""6248#| msgid ""
6217#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"6249#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
n6218#| "tree/master/examples/book/treeview/list/\">Source Code</link>"n6250#| "tree/master/examples/book/listmodelviews/gridview\">Source Code"
6251#| "GridView</link>"
6219msgid ""6252msgid ""
6220"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6253"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
6221"master/examples/book/listmodelviews/list_columnview\">Source Code</link>"6254"master/examples/book/listmodelviews/list_columnview\">Source Code</link>"
6222msgstr ""6255msgstr ""
6223"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6256"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n6224"master/examples/book/treeview/list/\">Källkod</link>"n6257"master/examples/book/listmodelviews/gridview\">Källkod, GridView</link>"
62256258
6226#. (itstool) path: section/title6259#. (itstool) path: section/title
6227#: C/index-in.docbook:2545 C/index-in.docbook:31396260#: C/index-in.docbook:2545 C/index-in.docbook:3139
6228msgid "Sorting"6261msgid "Sorting"
6229msgstr "Sortering"6262msgstr "Sortering"
6472"classGtk_1_1TreeModelSort.html\">Referens för TreeModelSort</link>"6505"classGtk_1_1TreeModelSort.html\">Referens för TreeModelSort</link>"
64736506
6474#. (itstool) path: figure/title6507#. (itstool) path: figure/title
6475#: C/index-in.docbook:26296508#: C/index-in.docbook:2629
6476#, fuzzy6509#, fuzzy
nn6510#| msgid "The Model"
6477msgid "TreeListModel"6511msgid "TreeListModel"
6478msgstr "Modellen"6512msgstr "Modellen"
64796513
6480#. (itstool) path: imageobject/imagedata6514#. (itstool) path: imageobject/imagedata
6481#. This is a reference to an external file such as an image or video. When6515#. This is a reference to an external file such as an image or video. When
6494#. (itstool) path: section/para6528#. (itstool) path: section/para
6495#: C/index-in.docbook:26356529#: C/index-in.docbook:2635
6496#, fuzzy6530#, fuzzy
6497#| msgid ""6531#| msgid ""
6498#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"6532#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
n6499#| "tree/master/examples/book/treeview/tree/\">Source Code</link>"n6533#| "tree/master/examples/book/listmodelviews/gridview\">Source Code"
6534#| "GridView</link>"
6500msgid ""6535msgid ""
6501"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6536"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
6502"master/examples/book/listmodelviews/tree_columnview\">Source Code</link>"6537"master/examples/book/listmodelviews/tree_columnview\">Source Code</link>"
6503msgstr ""6538msgstr ""
6504"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"6539"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n6505"master/examples/book/treeview/tree/\">Källkod</link>"n6540"master/examples/book/listmodelviews/gridview\">Källkod, GridView</link>"
65066541
6507#. (itstool) path: chapter/title6542#. (itstool) path: chapter/title
6508#: C/index-in.docbook:26436543#: C/index-in.docbook:2643
6509msgid "The TreeView widget"6544msgid "The TreeView widget"
6510msgstr "TreeView-komponenten"6545msgstr "TreeView-komponenten"
65116546
6512#. (itstool) path: note/para6547#. (itstool) path: note/para
6513#: C/index-in.docbook:26456548#: C/index-in.docbook:2645
n6514#, fuzzyn
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."
6520msgid ""6549msgid ""
6521"<classname>Gtk::TreeView</classname> is deprecated since <application>gtkmm</"6550"<classname>Gtk::TreeView</classname> is deprecated since <application>gtkmm</"
6522"application> 4.10. In new code, use <classname>Gtk::ListView</classname> for "6551"application> 4.10. In new code, use <classname>Gtk::ListView</classname> for "
6523"lists and <classname>Gtk::ColumnView</classname> for tabular lists."6552"lists and <classname>Gtk::ColumnView</classname> for tabular lists."
6524msgstr ""6553msgstr ""
n6525"<classname>FileChooserDialog</classname> (föråldrad sedan "n6554"<classname>Gtk::TreeView</classname> är föråldrad sedan <application>gtkmm</"
6526"<application>gtkmm</application> 4.10) och <classname>FileDialog</classname> "6555"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 "6556"listor och <classname>Gtk::ColumnView</classname> för tabellistor."
6528"användning med menyobjekten ”Öppna” eller ”Spara”."
65296557
6530#. (itstool) path: chapter/para6558#. (itstool) path: chapter/para
6531#: C/index-in.docbook:26506559#: C/index-in.docbook:2650
6532msgid ""6560msgid ""
6533"The <classname>Gtk::TreeView</classname> widget can contain lists or trees "6561"The <classname>Gtk::TreeView</classname> widget can contain lists or trees "
6536"Komponenten <classname>Gtk::TreeView</classname> kan innehålla listor eller "6564"Komponenten <classname>Gtk::TreeView</classname> kan innehålla listor eller "
6537"träd med data i kolumner."6565"träd med data i kolumner."
65386566
6539#. (itstool) path: section/title6567#. (itstool) path: section/title
6540#: C/index-in.docbook:26566568#: C/index-in.docbook:2656
n6541#, fuzzyn
6542msgid "The Model"6569msgid "The Model"
6543msgstr "Modellen"6570msgstr "Modellen"
65446571
6545#. (itstool) path: section/para6572#. (itstool) path: section/para
6546#: C/index-in.docbook:26586573#: C/index-in.docbook:2658
7932"tillåta eller förbjuda dragning eller släppning genom att returnera "7959"tillåta eller förbjuda dragning eller släppning genom att returnera "
7933"<literal>true</literal> eller <literal>false</literal>."7960"<literal>true</literal> eller <literal>false</literal>."
79347961
7935#. (itstool) path: section/para7962#. (itstool) path: section/para
7936#: C/index-in.docbook:32207963#: C/index-in.docbook:3220
n7937#, fuzzyn
7938msgid "This is demonstrated in the drag_and_drop example."7964msgid "This is demonstrated in the drag_and_drop example."
7939msgstr "Detta demonstreras i dra-och-släpp-exemplet."7965msgstr "Detta demonstreras i dra-och-släpp-exemplet."
79407966
7941#. (itstool) path: section/title7967#. (itstool) path: section/title
7942#: C/index-in.docbook:3226 C/index-in.docbook:33367968#: C/index-in.docbook:3226 C/index-in.docbook:3336
8186"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"8212"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
8187"master/examples/book/treeview/popup/\">Källkod</link>"8213"master/examples/book/treeview/popup/\">Källkod</link>"
81888214
8189#. (itstool) path: chapter/title8215#. (itstool) path: chapter/title
8190#: C/index-in.docbook:33598216#: C/index-in.docbook:3359
n8191#, fuzzyn
8192#| msgid "The DrawingArea Widget"
8193msgid "The DropDown Widget"8217msgid "The DropDown Widget"
n8194msgstr "DrawingArea-komponenten"n8218msgstr "DropDown-komponenten"
81958219
8196#. (itstool) path: chapter/para8220#. (itstool) path: chapter/para
8197#: C/index-in.docbook:33618221#: C/index-in.docbook:3361
8198msgid ""8222msgid ""
8199"The <classname>DropDown</classname> widget is an alternative to the "8223"The <classname>DropDown</classname> widget is an alternative to the "
8200"deprecated <classname>ComboBox</classname>. It uses list models instead of "8224"deprecated <classname>ComboBox</classname>. It uses list models instead of "
8201"tree models, and the content is displayed using widgets instead of cell "8225"tree models, and the content is displayed using widgets instead of cell "
8202"renderers."8226"renderers."
8203msgstr ""8227msgstr ""
nn8228"Komponenten <classname>DropDown</classname> är ett alternativ till den "
8229"föråldrade <classname>ComboBox</classname>. Den använder listmodeller i "
8230"stället för trädmodeller, och innehållet visas med komponenter i stället för "
8231"cellrenderare."
82048232
8205#. (itstool) path: chapter/para8233#. (itstool) path: chapter/para
8206#: C/index-in.docbook:33668234#: C/index-in.docbook:3366
8207#, fuzzy8235#, fuzzy
8208#| msgid ""8236#| msgid ""
8237"signal handlers connected to a <classname>SignalListItemFactory</classname>. "8265"signal handlers connected to a <classname>SignalListItemFactory</classname>. "
8238"This provides flexibility, but the <classname>StringList</classname> class "8266"This provides flexibility, but the <classname>StringList</classname> class "
8239"provides a simpler text-based specialization in case that flexibility is not "8267"provides a simpler text-based specialization in case that flexibility is not "
8240"required."8268"required."
8241msgstr ""8269msgstr ""
n8242"Listan tillhandahålls via en <classname>TreeModel</classname>, och kolumner "n8270"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 "8271"från denna modell läggs till vyn för <classname>DropDown</classname>-"
8244"<methodname>ComboBox::pack_start()</methodname>. Detta tillhandahåller "8272"komponenten med signalhanterare anslutna till en "
8245"flexibilitet och typsäkerhet under kompilering, men <classname>ComboBoxText</"8273"<classname>SignalListItemFactory</classname>. Detta tillhandahåller "
8246"classname>-klassen tillhandahåller en enklare textbaserad specialisering om "8274"flexibilitet, men <classname>StringList</classname>-klassen tillhandahåller "
8247"den flexibiliteten inte behövs."8275"en enklare textbaserad specialisering om den flexibiliteten inte behövs."
82488276
8249#. (itstool) path: chapter/para8277#. (itstool) path: chapter/para
8250#: C/index-in.docbook:33808278#: C/index-in.docbook:3380
n8251#, fuzzyn
8252#| msgid ""
8253#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
8254#| "classGtk_1_1Box.html\">Reference</link>"
8255msgid ""8279msgid ""
8256"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"8280"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
8257"classGtk_1_1DropDown.html\">Reference</link>"8281"classGtk_1_1DropDown.html\">Reference</link>"
8258msgstr ""8282msgstr ""
8259"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"8283"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n8260"classGtk_1_1Box.html\">Referens</link>"n8284"classGtk_1_1DropDown.html\">Referens</link>"
82618285
8262#. (itstool) path: section/title8286#. (itstool) path: section/title
8263#: C/index-in.docbook:3383 C/index-in.docbook:35588287#: C/index-in.docbook:3383 C/index-in.docbook:3558
n8264#, fuzzyn
8265msgid "The model"8288msgid "The model"
8266msgstr "Modellen"8289msgstr "Modellen"
82678290
8268#. (itstool) path: section/para8291#. (itstool) path: section/para
8269#: C/index-in.docbook:33858292#: C/index-in.docbook:3385
8270#, fuzzy8293#, fuzzy
n8271#| 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:"
8275msgid ""8294msgid ""
8276"The model for a <classname>DropDown</classname> can be defined and filled "8295"The model for a <classname>DropDown</classname> can be defined and filled "
8277"exactly as for a <classname>ListView</classname> or a <classname>ColumnView</"8296"exactly as for a <classname>ListView</classname> or a <classname>ColumnView</"
8278"classname>. It must be a subclass of <classname>Glib::Object</classname>. "8297"classname>. It must be a subclass of <classname>Glib::Object</classname>. "
8279"For instance, you might have a <classname>DropDown</classname> with one "8298"For instance, you might have a <classname>DropDown</classname> with one "
8280"integer and one text column, like so:"8299"integer and one text column, like so:"
8281msgstr ""8300msgstr ""
n8282"Modellen för en ComboBox kan definieras och fyllas i exakt som för en "n8301"Modellen för en <classname>DropDown</classname> kan definieras och fyllas i "
8283"<classname>TreeView</classname>. Exempelvis kan du härleda en ComboBox med "8302"exakt som för en <classname>ListView</classname> eller en "
8284"ett heltal och en textkolumn, så här:"8303"<classname>ColumnView</classname>. Den måste vara en underklass till "
8304"<classname>Glib::Object</classname>. Exempelvis kan du ha en "
8305"<classname>DropDown</classname> med ett heltal och en textkolumn, så här:"
82858306
8286#. (itstool) path: section/para8307#. (itstool) path: section/para
8287#: C/index-in.docbook:34138308#: C/index-in.docbook:3413
nn8309#, fuzzy
8288msgid ""8310msgid ""
8289"After appending rows to this model, you should provide the model to the "8311"After appending rows to this model, you should provide the model to the "
8290"<classname>DropDown</classname> with the <methodname>set_model()</"8312"<classname>DropDown</classname> with the <methodname>set_model()</"
8291"methodname> method. Unless you use the <classname>StringList</classname> "8313"methodname> method. Unless you use the <classname>StringList</classname> "
8292"model, you also need to set a <classname>ListItemFactory</classname> with "8314"model, you also need to set a <classname>ListItemFactory</classname> with "
8294"dropdown menu to look different from the item in the <classname>DropDown</"8316"dropdown menu to look different from the item in the <classname>DropDown</"
8295"classname> widget, you also need to set a separate "8317"classname> widget, you also need to set a separate "
8296"<classname>ListItemFactory</classname> with <methodname>set_list_factory()</"8318"<classname>ListItemFactory</classname> with <methodname>set_list_factory()</"
8297"methodname>."8319"methodname>."
8298msgstr ""8320msgstr ""
nn8321"Efter att ha lagt till rader till denna modell bör du tillhandahålla "
8322"modellen till vår <classname>DropDown</classname> med metoden "
8323"<methodname>set_model()</methodname>. Om du inte använder modellen "
8324"<classname>StringList</classname> så kommer du också behöva ställa in en "
8325"<classname>ListItemFactory</classname> med <methodname>set_factory()</"
8326"methodname>. Om du vill att objekten i rullgardinsmenyn ska se annorlunda "
8327"från objektet i <classname>DropDown</classname>-komponenten så behöver du "
8328"också ställa in en separat <classname>ListItemFactory</classname> med "
8329"<methodname>set_list_factory()</methodname>."
82998330
8300#. (itstool) path: section/title8331#. (itstool) path: section/title
8301#: C/index-in.docbook:34248332#: C/index-in.docbook:3424
n8302#, fuzzyn
8303msgid "The selected item"8333msgid "The selected item"
n8304msgstr "De markerade raderna"n8334msgstr "Det valda objektet"
83058335
8306#. (itstool) path: section/para8336#. (itstool) path: section/para
8307#: C/index-in.docbook:34268337#: C/index-in.docbook:3426
8308#, fuzzy8338#, fuzzy
8309msgid ""8339msgid ""
8313"get the selected data from the model. For instance, you might read an "8343"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 "8344"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 "8345"the human-readable description in the <classname>DropDown</classname>. For "
8316"instance:"8346"instance:"
8317msgstr ""8347msgstr ""
n8318"För att upptäcka vilket objekt, om något, som användaren har valt från en "n8348"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>. "8349"<classname>DropDown</classname>, anropa <methodname>DropDown::"
8320"Detta<classname>TreeModel::iterator</classname> returnerar en som du kan "8350"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 "8351"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, "8352"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 "8353"mänskligt läsbara beskrivningen i vår <classname>DropDown</classname>. Till "
8324"ComboBox. Till exempel:"8354"exempel:"
83258355
8326#. (itstool) path: section/programlisting8356#. (itstool) path: section/programlisting
8327#: C/index-in.docbook:34338357#: C/index-in.docbook:3433
8328#, fuzzy, no-wrap8358#, fuzzy, no-wrap
8329msgid ""8359msgid ""
8336"}\n"8366"}\n"
8337"else\n"8367"else\n"
8338"  set_nothing_chosen(); // Your own function.\n"8368"  set_nothing_chosen(); // Your own function.\n"
8339"</code>"8369"</code>"
8340msgstr ""8370msgstr ""
n8341"Gtk::TreeModel::iterator iter = m_Combo.get_active();\n"n8371"unsigned int sel = m_DropDown.get_selected();\n"
8342"if(iter)\n"8372"if (sel != GTK_INVALID_LIST_POSITION)\n"
8343"{\n"8373"{\n"
n8344"  auto row = *iter;\n"n
8345"\n"
8346"  //Få data för markerad rad, med vår kunskap\n"8374"  // Få data för markerad rad, med vår kunskap om listmodellen:\n"
8347"  //om trädmodellen:\n"8375"  auto id = m_ListStore-&gt;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"8376"  set_some_id_chosen(id); // Din egen funktion.\n"
8350"}\n"8377"}\n"
8351"else\n"8378"else\n"
n8352"  set_nothing_chosen(); //Din egen funktion."n8379"  set_nothing_chosen(); // Din egen funktion.\n"
83538380
8354#. (itstool) path: section/title8381#. (itstool) path: section/title
8355#: C/index-in.docbook:3446 C/index-in.docbook:3597 C/index-in.docbook:36588382#: C/index-in.docbook:3446 C/index-in.docbook:3597 C/index-in.docbook:3658
8356msgid "Responding to changes"8383msgid "Responding to changes"
8357msgstr "Svara på ändringar"8384msgstr "Svara på ändringar"
8363"You might need to react to every change of selection in the "8390"You might need to react to every change of selection in the "
8364"<classname>DropDown</classname>, for instance to update other widgets. To do "8391"<classname>DropDown</classname>, for instance to update other widgets. To do "
8365"so, you should connect to <methodname>property_selected().signal_changed()</"8392"so, you should connect to <methodname>property_selected().signal_changed()</"
8366"methodname>. For instance:"8393"methodname>. For instance:"
8367msgstr ""8394msgstr ""
n8368"Du behöver reagera på varje ändring av val i vår ComboBox, till exempel för "n8395"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 "8396"classname>, till exempel för att uppdatera andra komponenter. För att göra "
8370"<literal>changed</literal>. Till exempel:"8397"så bör du ansluta till <methodname>property_selected().signal_changed()</"
8398"methodname>. Till exempel:"
83718399
8372#. (itstool) path: section/programlisting8400#. (itstool) path: section/programlisting
8373#: C/index-in.docbook:34528401#: C/index-in.docbook:3452
8374#, fuzzy, no-wrap8402#, fuzzy, no-wrap
8375#| msgid ""8403#| msgid ""
n8376#| "m_combo.signal_changed().connect( sigc::mem_fun(*this,\n"n8404#| "m_DropDown.property_selected().signal_changed().connect(\n"
8377#| "      &amp;ExampleWindow::on_combo_changed) );"8405#| "  sigc::mem_fun(*this, &amp;ExampleWindow::on_dropdown_changed));\n"
8378msgid ""8406msgid ""
8379"<code>m_DropDown.property_selected().signal_changed().connect(\n"8407"<code>m_DropDown.property_selected().signal_changed().connect(\n"
8380"  sigc::mem_fun(*this, &amp;ExampleWindow::on_dropdown_changed));\n"8408"  sigc::mem_fun(*this, &amp;ExampleWindow::on_dropdown_changed));\n"
8381"</code>"8409"</code>"
8382msgstr ""8410msgstr ""
n8383"m_combo.signal_changed().connect( sigc::mem_fun(*this,\n"n8411"m_DropDown.property_selected().signal_changed().connect(\n"
8384"      &amp;ExampleWindow::on_combo_changed) );"8412"  sigc::mem_fun(*this, &amp;ExampleWindow::on_dropdown_changed));\n"
83858413
8386#. (itstool) path: section/title8414#. (itstool) path: section/title
8387#: C/index-in.docbook:34588415#: C/index-in.docbook:3458
n8388#, fuzzyn
8389msgid "Simple String Example"8416msgid "Simple String Example"
n8390msgstr "Enkelt inmatningsexempel"n8417msgstr "Enkelt stngexempel"
83918418
8392#. (itstool) path: figure/title8419#. (itstool) path: figure/title
8393#: C/index-in.docbook:34618420#: C/index-in.docbook:3461
8394msgid "Simple DropDown"8421msgid "Simple DropDown"
n8395msgstr ""n8422msgstr "Enkel DropDown"
83968423
8397#. (itstool) path: imageobject/imagedata8424#. (itstool) path: imageobject/imagedata
8398#. This is a reference to an external file such as an image or video. When8425#. 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 to8426#. 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 to8427#. update your localized copy. The msgstr is not used at all. Set it to
8404msgctxt "_"8431msgctxt "_"
8405msgid ""8432msgid ""
8406"external ref='figures/dropdown_string.png' "8433"external ref='figures/dropdown_string.png' "
8407"md5='b1689605c645e1ada3040f6df3335c56'"8434"md5='b1689605c645e1ada3040f6df3335c56'"
8408msgstr ""8435msgstr ""
n8409"external ref='figures/printing.png' md5='d4565328475ec89edf5f2230cb3fc5d0'"n8436"external ref='figures/dropdown_string.png' "
8437"md5='b1689605c645e1ada3040f6df3335c56'"
84108438
8411#. (itstool) path: section/para8439#. (itstool) path: section/para
8412#: C/index-in.docbook:34678440#: C/index-in.docbook:3467
n8413#, fuzzyn
8414#| msgid ""
8415#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
8416#| "tree/master/examples/book/entry/icon\">Source Code</link>"
8417msgid ""8441msgid ""
8418"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"8442"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
8419"master/examples/book/dropdown/string\">Source Code</link>"8443"master/examples/book/dropdown/string\">Source Code</link>"
8420msgstr ""8444msgstr ""
8421"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"8445"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n8422"master/examples/book/entry/icon\">Källkod</link>"n8446"master/examples/book/dropdown/string\">Källkod</link>"
84238447
8424#. (itstool) path: section/title8448#. (itstool) path: section/title
8425#: C/index-in.docbook:34718449#: C/index-in.docbook:3471
8426msgid "Examples with a Search Entry"8450msgid "Examples with a Search Entry"
n8427msgstr ""n8451msgstr "Exempel med ett sökfält"
84288452
8429#. (itstool) path: section/para8453#. (itstool) path: section/para
8430#: C/index-in.docbook:34738454#: C/index-in.docbook:3473
n8431#, fuzzyn
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."
8436msgid ""8455msgid ""
8437"The dropdown menu may contain an <classname>Entry</classname> that allows to "8456"The dropdown menu may contain an <classname>Entry</classname> that allows to "
8438"search for items in the list. Call <methodname>set_enable_search()</"8457"search for items in the list. Call <methodname>set_enable_search()</"
8439"methodname> and <methodname>set_expression()</methodname>. For instance:"8458"methodname> and <methodname>set_expression()</methodname>. For instance:"
8440msgstr ""8459msgstr ""
n8441"<classname>Gtk::Grid</classname> arrangerar sina underordnade komponenter i "n8460"Rullgardinsmeny kan innehålla ett <classname>Entry</classname> som tillåter "
8442"rader och kolumner. Använd <methodname>attach()</methodname> och "8461"sökning efter objekt i listan. Anropa <methodname>set_enable_search()</"
8443"<methodname>attach_next_to()</methodname> för att infoga underordnade "8462"methodname> och <methodname>set_expression()</methodname>. Till exempel:"
8444"komponenter."
84458463
8446#. (itstool) path: section/programlisting8464#. (itstool) path: section/programlisting
8447#: C/index-in.docbook:34778465#: C/index-in.docbook:3477
n8448#, no-wrapn8466#, fuzzy, no-wrap
8467#| msgid ""
8468#| "m_DropDown.set_enable_search(true);\n"
8469#| "auto expression = Gtk::ClosureExpression&lt;Glib::ustring&gt;::create(\n"
8470#| "  sigc::mem_fun(*this, &amp;ExampleWindow::get_col_name));\n"
8471#| "m_DropDown.set_expression(expression);\n"
8472#| "\n"
8473#| "//-------\n"
8474#| "Glib::ustring ExampleWindow::get_col_name(const Glib::RefPtr&lt;Glib::Object
 >Base&gt;&amp; item)\n"
8475#| "{\n"
8476#| "  const auto col = std::dynamic_pointer_cast&lt;ModelColumns&gt;(item);\n"
8477#| "  return col ? col-&gt;m_col_name : \"\";\n"
8478#| "}\n"
8449msgid ""8479msgid ""
8450"<code>m_DropDown.set_enable_search(true);\n"8480"<code>m_DropDown.set_enable_search(true);\n"
8451"auto expression = Gtk::ClosureExpression&lt;Glib::ustring&gt;::create(\n"8481"auto expression = Gtk::ClosureExpression&lt;Glib::ustring&gt;::create(\n"
8452"  sigc::mem_fun(*this, &amp;ExampleWindow::get_col_name));\n"8482"  sigc::mem_fun(*this, &amp;ExampleWindow::get_col_name));\n"
8453"m_DropDown.set_expression(expression);\n"8483"m_DropDown.set_expression(expression);\n"
8458"  const auto col = std::dynamic_pointer_cast&lt;ModelColumns&gt;(item);\n"8488"  const auto col = std::dynamic_pointer_cast&lt;ModelColumns&gt;(item);\n"
8459"  return col ? col-&gt;m_col_name : \"\";\n"8489"  return col ? col-&gt;m_col_name : \"\";\n"
8460"}\n"8490"}\n"
8461"</code>"8491"</code>"
8462msgstr ""8492msgstr ""
nn8493"m_DropDown.set_enable_search(true);\n"
8494"auto expression = Gtk::ClosureExpression&lt;Glib::ustring&gt;::create(\n"
8495"  sigc::mem_fun(*this, &amp;ExampleWindow::get_col_name));\n"
8496"m_DropDown.set_expression(expression);\n"
8497"\n"
8498"//-------\n"
8499"Glib::ustring ExampleWindow::get_col_name(const Glib::RefPtr&lt;Glib::ObjectBas
 >e&gt;&amp; item)\n"
8500"{\n"
8501"  const auto col = std::dynamic_pointer_cast&lt;ModelColumns&gt;(item);\n"
8502"  return col ? col-&gt;m_col_name : \"\";\n"
8503"}\n"
84638504
8464#. (itstool) path: section/title8505#. (itstool) path: section/title
8465#: C/index-in.docbook:34918506#: C/index-in.docbook:3491
n8466#, fuzzyn
8467#| msgid "Simple Example"
8468msgid "String Example"8507msgid "String Example"
n8469msgstr "Enkelt exempel"n8508msgstr "Strängexempel"
84708509
8471#. (itstool) path: figure/title8510#. (itstool) path: figure/title
8472#: C/index-in.docbook:34948511#: C/index-in.docbook:3494
8473msgid "Search String"8512msgid "Search String"
n8474msgstr ""n8513msgstr "Sök sträng"
84758514
8476#. (itstool) path: imageobject/imagedata8515#. (itstool) path: imageobject/imagedata
8477#. This is a reference to an external file such as an image or video. When8516#. 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 to8517#. 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 to8518#. update your localized copy. The msgstr is not used at all. Set it to
8487msgctxt "_"8526msgctxt "_"
8488msgid ""8527msgid ""
8489"external ref='figures/dropdown_search_string.png' "8528"external ref='figures/dropdown_search_string.png' "
8490"md5='e130e644e7cfb13a5b90ab1372b17503'"8529"md5='e130e644e7cfb13a5b90ab1372b17503'"
8491msgstr ""8530msgstr ""
n8492"external ref='figures/drawingarea_arcs.png' "n8531"external ref='figures/dropdown_search_string.png' "
8493"md5='d94b40e33b9fab7ea9e2c870b97fcf0c'"8532"md5='e130e644e7cfb13a5b90ab1372b17503'"
84948533
8495#. (itstool) path: section/para8534#. (itstool) path: section/para
8496#: C/index-in.docbook:35008535#: C/index-in.docbook:3500
n8497#, fuzzyn
8498#| msgid ""
8499#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
8500#| "tree/master/examples/book/drawingarea/arcs\">Source Code</link>"
8501msgid ""8536msgid ""
8502"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"8537"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
8503"master/examples/book/dropdown/search_string\">Source Code</link>"8538"master/examples/book/dropdown/search_string\">Source Code</link>"
8504msgstr ""8539msgstr ""
8505"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"8540"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n8506"master/examples/book/drawingarea/arcs\">Källkod</link>"n8541"master/examples/book/dropdown/search_string\">Källkod</link>"
85078542
8508#. (itstool) path: section/title8543#. (itstool) path: section/title
8509#: C/index-in.docbook:35048544#: C/index-in.docbook:3504
n8510#, fuzzyn
8511#| msgid "Full Example"
8512msgid "Font Example"8545msgid "Font Example"
n8513msgstr "Fullständigt exempel"n8546msgstr "Typsnittsexempel"
85148547
8515#. (itstool) path: section/para8548#. (itstool) path: section/para
8516#: C/index-in.docbook:35068549#: C/index-in.docbook:3506
n8517#, fuzzyn
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."
8524msgid ""8550msgid ""
8525"This example uses a <classname>Pango::FontMap</classname> as its model. This "8551"This example uses a <classname>Pango::FontMap</classname> as its model. This "
8526"is possible because <classname>Pango::FontMap</classname> implements the "8552"is possible because <classname>Pango::FontMap</classname> implements the "
8527"<classname>Gio::ListModel</classname> interface. Of course you can use a "8553"<classname>Gio::ListModel</classname> interface. Of course you can use a "
8528"<classname>FontDialogButton</classname> instead."8554"<classname>FontDialogButton</classname> instead."
8529msgstr ""8555msgstr ""
n8530"<classname>Gtk::Button</classname>, <classname>Gtk::ToolButton</classname>, "n8556"Detta exempel använder en <classname>Pango::FontMap</classname> som sin "
8531"<classname>Gtk::MenuItem</classname> och <classname>Gtk::Switch</classname> "8557"modell. Detta är möjligt för att <classname>Pango::FontMap</classname> "
8532"implementerar <classname>Gtk::Actionable</classname>-gränssnittet i stället "8558"implementerar <classname>Gio::ListModel</classname>-gränssnittet. Du kan "
8533"för det borttagna <classname>Gtk::Activatable</classname>-gränssnittet."8559"förstås använda en <classname>FontDialogButton</classname> i stället."
85348560
8535#. (itstool) path: figure/title8561#. (itstool) path: figure/title
8536#: C/index-in.docbook:3513 C/index-in.docbook:35328562#: C/index-in.docbook:3513 C/index-in.docbook:3532
8537msgid "Search Font"8563msgid "Search Font"
n8538msgstr ""n8564msgstr "Sök typsnitt"
85398565
8540#. (itstool) path: imageobject/imagedata8566#. (itstool) path: imageobject/imagedata
8541#. This is a reference to an external file such as an image or video. When8567#. 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 to8568#. 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 to8569#. update your localized copy. The msgstr is not used at all. Set it to
8547msgctxt "_"8573msgctxt "_"
8548msgid ""8574msgid ""
8549"external ref='figures/dropdown_search_font.png' "8575"external ref='figures/dropdown_search_font.png' "
8550"md5='1733e29c88c19dc6c4cbd1114446ac18'"8576"md5='1733e29c88c19dc6c4cbd1114446ac18'"
8551msgstr ""8577msgstr ""
n8552"external ref='figures/drawingarea_pango_text.png' "n8578"external ref='figures/dropdown_search_font.png' "
8553"md5='07c39668c9dda2ac1f9455caf6e4d16a'"8579"md5='1733e29c88c19dc6c4cbd1114446ac18'"
85548580
8555#. (itstool) path: section/para8581#. (itstool) path: section/para
8556#: C/index-in.docbook:35198582#: C/index-in.docbook:3519
n8557#, fuzzyn
8558#| msgid ""
8559#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
8560#| "tree/master/examples/book/paned\">Source Code</link>"
8561msgid ""8583msgid ""
8562"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"8584"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
8563"master/examples/book/dropdown/search_font\">Source Code</link>"8585"master/examples/book/dropdown/search_font\">Source Code</link>"
8564msgstr ""8586msgstr ""
8565"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"8587"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n8566"master/examples/book/paned\">Källkod</link>"n8588"master/examples/book/dropdown/search_font\">Källkod</link>"
85678589
8568#. (itstool) path: section/title8590#. (itstool) path: section/title
8569#: C/index-in.docbook:35248591#: C/index-in.docbook:3524
n8570#, fuzzyn
8571#| msgid "Simple Example"
8572msgid "Complex Example"8592msgid "Complex Example"
n8573msgstr "Enkelt exempel"n8593msgstr "Komplext exempel"
85748594
8575#. (itstool) path: section/para8595#. (itstool) path: section/para
8576#: C/index-in.docbook:35268596#: C/index-in.docbook:3526
8577msgid ""8597msgid ""
8578"This is a more complex example with two <classname>SignalListItemFactory</"8598"This is a more complex example with two <classname>SignalListItemFactory</"
8579"classname> objects and their signal handlers. This example would be simpler "8599"classname> objects and their signal handlers. This example would be simpler "
8580"without the checkmark in the dropdown menu."8600"without the checkmark in the dropdown menu."
8581msgstr ""8601msgstr ""
nn8602"Detta är ett mer komplext exempel med två <classname>SignalListItemFactory</"
8603"classname>-objekt och deras signalhanterare. Detta exempel skulle vara "
8604"enklare utan bocken i rullgardinsmenyn."
85828605
8583#. (itstool) path: imageobject/imagedata8606#. (itstool) path: imageobject/imagedata
8584#. This is a reference to an external file such as an image or video. When8607#. 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 to8608#. 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 to8609#. update your localized copy. The msgstr is not used at all. Set it to
8590msgctxt "_"8613msgctxt "_"
8591msgid ""8614msgid ""
8592"external ref='figures/dropdown_complex.png' "8615"external ref='figures/dropdown_complex.png' "
8593"md5='2167fb44e42653aa7fd855604c4c1e65'"8616"md5='2167fb44e42653aa7fd855604c4c1e65'"
8594msgstr ""8617msgstr ""
n8595"external ref='figures/combobox_complex.png' "n8618"external ref='figures/dropdown_complex.png' "
8596"md5='ec96e29fe85caef072868284443e413e'"8619"md5='2167fb44e42653aa7fd855604c4c1e65'"
85978620
8598#. (itstool) path: section/para8621#. (itstool) path: section/para
8599#: C/index-in.docbook:35388622#: C/index-in.docbook:3538
n8600#, fuzzyn
8601#| msgid ""
8602#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
8603#| "tree/master/examples/book/combobox/complex\">Source Code</link>"
8604msgid ""8623msgid ""
8605"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"8624"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
8606"master/examples/book/dropdown/complex\">Source Code</link>"8625"master/examples/book/dropdown/complex\">Source Code</link>"
8607msgstr ""8626msgstr ""
8608"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"8627"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n8609"master/examples/book/combobox/complex\">Källkod</link>"n8628"master/examples/book/dropdown/complex\">Källkod</link>"
86108629
8611#. (itstool) path: chapter/title8630#. (itstool) path: chapter/title
8612#: C/index-in.docbook:35438631#: C/index-in.docbook:3543
8613msgid "Combo Boxes"8632msgid "Combo Boxes"
8614msgstr "Kombinationsrutor"8633msgstr "Kombinationsrutor"
86158634
8616#. (itstool) path: note/para8635#. (itstool) path: note/para
8617#: C/index-in.docbook:35458636#: C/index-in.docbook:3545
n8618#, fuzzyn
8619#| msgid ""
8620#| "<classname>Gdk::DrawContext</classname> and <classname>Gdk::CairoContext</"
8621#| "classname> are new. <classname>Gdk::DrawingContext</classname> has been "
8622#| "removed."
8623msgid ""8637msgid ""
8624"<classname>Gtk::ComboBox</classname> and <classname>Gtk::ComboBoxText</"8638"<classname>Gtk::ComboBox</classname> and <classname>Gtk::ComboBoxText</"
8625"classname> are deprecated since <application>gtkmm</application> 4.10. Use "8639"classname> are deprecated since <application>gtkmm</application> 4.10. Use "
8626"<classname>Gtk::DropDown</classname> in new code."8640"<classname>Gtk::DropDown</classname> in new code."
8627msgstr ""8641msgstr ""
n8628"<classname>Gdk::DrawContext</classname> och <classname>Gdk::CairoContext</"n8642"<classname>Gtk::ComboBox</classname> och <classname>Gtk::ComboBoxText</"
8629"classname> är nya. <classname>Gdk::DrawingContext</classname> har tagits "8643"classname> är föråldrade sedan <application>gtkmm</application> 4.10. Använd "
8630"bort."8644"<classname>Gtk::DropDown</classname> i ny kod."
86318645
8632#. (itstool) path: chapter/para8646#. (itstool) path: chapter/para
8633#: C/index-in.docbook:35498647#: C/index-in.docbook:3549
8634msgid ""8648msgid ""
8635"The <classname>ComboBox</classname> widget offers a list (or tree) of "8649"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 "10786"kunde det vara det anpassade svarsvärdet som du angivit när du använt "
10773"<methodname>add_button()</methodname>."10787"<methodname>add_button()</methodname>."
1077410788
10775#. (itstool) path: chapter/para10789#. (itstool) path: chapter/para
10776#: C/index-in.docbook:449910790#: C/index-in.docbook:4499
n10777#, fuzzyn
10778msgid ""10791msgid ""
10779"To show the dialog, call <methodname>set_visible(true)</methodname>. If the "10792"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 "10793"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 "10794"<methodname>set_hide_on_close()</methodname>, or else the dialog will be "
10782"destroyed when it's closed. Connect to the <literal>response</literal> "10795"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</"10796"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."10797"literal> signal handler is also where you should hide the dialog."
10785msgstr ""10798msgstr ""
n10786"För att visa dialogrutan, anropa <methodname>show()</methodname>. Om samma "n10799"För att visa dialogrutan, anropa <methodname>set_visible(true)</methodname>. "
10787"dialoginstans kommer visas flera gånger måste du också anropa "10800"Om samma dialoginstans kommer visas flera gånger måste du också anropa "
10788"<methodname>set_hide_on_close()</methodname>, annars kommer dialogrutan "10801"<methodname>set_hide_on_close()</methodname>, annars kommer dialogrutan "
10789"förstöras då den stängs. Anslut till <literal>response</literal>-signalen om "10802"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>-"10803"du vill veta vilken knapp som trycktes på. <literal>response</literal>-"
10791"signalhanteraren är också var du ska dölja dialogrutan."10804"signalhanteraren är också var du ska dölja dialogrutan."
1079210805
10852msgctxt "_"10865msgctxt "_"
10853msgid ""10866msgid ""
10854"external ref='figures/dialogs_alertdialog.png' "10867"external ref='figures/dialogs_alertdialog.png' "
10855"md5='88fa2103ad6d842eeebc68cc8cfd94ef'"10868"md5='88fa2103ad6d842eeebc68cc8cfd94ef'"
10856msgstr ""10869msgstr ""
n10857"external ref='figures/dialogs_messagedialog.png' "n10870"external ref='figures/dialogs_alertdialog.png' "
10858"md5='58151003c2b562b9f27b064c3193f7b1'"10871"md5='88fa2103ad6d842eeebc68cc8cfd94ef'"
1085910872
10860#. (itstool) path: section/para10873#. (itstool) path: section/para
10861#: C/index-in.docbook:453210874#: C/index-in.docbook:4532
10862msgid ""10875msgid ""
10863"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"10876"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
10933msgctxt "_"10946msgctxt "_"
10934msgid ""10947msgid ""
10935"external ref='figures/dialogs_filedialog.png' "10948"external ref='figures/dialogs_filedialog.png' "
10936"md5='15ecc452482112428259d0dcd8d0394a'"10949"md5='15ecc452482112428259d0dcd8d0394a'"
10937msgstr ""10950msgstr ""
n10938"external ref='figures/dialogs_filechooser.png' "n10951"external ref='figures/dialogs_filedialog.png' "
10939"md5='15ecc452482112428259d0dcd8d0394a'"10952"md5='15ecc452482112428259d0dcd8d0394a'"
1094010953
10941#. (itstool) path: section/para10954#. (itstool) path: section/para
10942#: C/index-in.docbook:456110955#: C/index-in.docbook:4561
10943msgid ""10956msgid ""
11006msgctxt "_"11019msgctxt "_"
11007msgid ""11020msgid ""
11008"external ref='figures/dialogs_colordialog.png' "11021"external ref='figures/dialogs_colordialog.png' "
11009"md5='029761e82cf06d3cbeaac2b7ccd70e57'"11022"md5='029761e82cf06d3cbeaac2b7ccd70e57'"
11010msgstr ""11023msgstr ""
n11011"external ref='figures/dialogs_colorchooserdialog.png' "n11024"external ref='figures/dialogs_colordialog.png' "
11012"md5='029761e82cf06d3cbeaac2b7ccd70e57'"11025"md5='029761e82cf06d3cbeaac2b7ccd70e57'"
1101311026
11014#. (itstool) path: section/para11027#. (itstool) path: section/para
11015#: C/index-in.docbook:458811028#: C/index-in.docbook:4588
11016msgid ""11029msgid ""
11077msgctxt "_"11090msgctxt "_"
11078msgid ""11091msgid ""
11079"external ref='figures/dialogs_fontdialog.png' "11092"external ref='figures/dialogs_fontdialog.png' "
11080"md5='e35e05429468fa8823416b8a0deff342'"11093"md5='e35e05429468fa8823416b8a0deff342'"
11081msgstr ""11094msgstr ""
n11082"external ref='figures/dialogs_fontchooserdialog.png' "n11095"external ref='figures/dialogs_fontdialog.png' "
11083"md5='e35e05429468fa8823416b8a0deff342'"11096"md5='e35e05429468fa8823416b8a0deff342'"
1108411097
11085#. (itstool) path: section/para11098#. (itstool) path: section/para
11086#: C/index-in.docbook:461511099#: C/index-in.docbook:4615
11087msgid ""11100msgid ""
11167"master/examples/book/dialogs/aboutdialog\">Källkod</link>"11180"master/examples/book/dialogs/aboutdialog\">Källkod</link>"
1116811181
11169#. (itstool) path: section/title11182#. (itstool) path: section/title
11170#: C/index-in.docbook:465211183#: C/index-in.docbook:4652
11171#, fuzzy11184#, fuzzy
n11172#| msgid "Custom Widget"n
11173msgid "Custom Dialog"11185msgid "Custom Dialog"
n11174msgstr "Anpassad komponent"n11186msgstr "Anpassad dialogruta"
1117511187
11176#. (itstool) path: section/para11188#. (itstool) path: section/para
11177#: C/index-in.docbook:465311189#: C/index-in.docbook:4653
11178#, fuzzy11190#, fuzzy
11179msgid ""11191msgid ""
11185"skapa din egen dialogruta genom att härleda en klass från <classname>Window</"11197"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."11198"classname> och fylla den med komponenterna som du behöver."
1118711199
11188#. (itstool) path: section/para11200#. (itstool) path: section/para
11189#: C/index-in.docbook:465911201#: C/index-in.docbook:4659
n11190#, fuzzyn
11191#| msgid ""
11192#| "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
11193#| "classGtk_1_1Widget.html\">Widget Reference</link>"
11194msgid ""11202msgid ""
11195"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"11203"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
11196"classGtk_1_1Window.html\">Window Reference</link>"11204"classGtk_1_1Window.html\">Window Reference</link>"
11197msgstr ""11205msgstr ""
11198"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"11206"<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/gtkmm/"
n11199"classGtk_1_1Widget.html\">Widget-referens</link>"n11207"classGtk_1_1Window.html\">Window-referens</link>"
1120011208
11201#. (itstool) path: figure/title11209#. (itstool) path: figure/title
11202#: C/index-in.docbook:466511210#: C/index-in.docbook:4665
11203#, fuzzy11211#, fuzzy
n11204#| msgid "Dialogs"n
11205msgid "Window Dialog"11212msgid "Window Dialog"
n11206msgstr "Dialogrutor"n11213msgstr "Fönsterdialog"
1120711214
11208#. (itstool) path: imageobject/imagedata11215#. (itstool) path: imageobject/imagedata
11209#. This is a reference to an external file such as an image or video. When11216#. 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 to11217#. 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 to11218#. update your localized copy. The msgstr is not used at all. Set it to
11215msgctxt "_"11222msgctxt "_"
11216msgid ""11223msgid ""
11217"external ref='figures/dialogs_windowdialog.png' "11224"external ref='figures/dialogs_windowdialog.png' "
11218"md5='53deb18153f6903fe45d015fc06ccef3'"11225"md5='53deb18153f6903fe45d015fc06ccef3'"
11219msgstr ""11226msgstr ""
n11220"external ref='figures/dialogs_messagedialog.png' "n11227"external ref='figures/dialogs_windowdialog.png' "
11221"md5='58151003c2b562b9f27b064c3193f7b1'"11228"md5='53deb18153f6903fe45d015fc06ccef3'"
1122211229
11223#. (itstool) path: section/para11230#. (itstool) path: section/para
11224#: C/index-in.docbook:467111231#: C/index-in.docbook:4671
11225msgid ""11232msgid ""
11226"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"11233"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
15451"över klassräckvidd är det ökade datadöljandet och minskade beroendena."15458"över klassräckvidd är det ökade datadöljandet och minskade beroendena."
1545215459
15453#. (itstool) path: section/programlisting15460#. (itstool) path: section/programlisting
15454#: C/index-in.docbook:667215461#: C/index-in.docbook:6672
15455#, fuzzy, no-wrap15462#, fuzzy, no-wrap
nn15463#| msgid ""
15464#| "\n"
15465#| "{\n"
15466#| "  Gtk::Button aButton;\n"
15467#| "  aButton.set_visible(true);\n"
15468#| "  ...\n"
15469#| "  app-&gt;run();\n"
15470#| "}\n"
15456msgid ""15471msgid ""
15457"<code>{\n"15472"<code>{\n"
15458"  Gtk::Button aButton;\n"15473"  Gtk::Button aButton;\n"
15459"  aButton.set_visible(true);\n"15474"  aButton.set_visible(true);\n"
15460"  ...\n"15475"  ...\n"
15463"</code>"15478"</code>"
15464msgstr ""15479msgstr ""
15465"\n"15480"\n"
15466"{\n"15481"{\n"
15467"  Gtk::Button aButton;\n"15482"  Gtk::Button aButton;\n"
n15468"  aButton.show();\n"n15483"  aButton.set_visible(true);\n"
15469"  ...\n"15484"  ...\n"
15470"  app-&gt;run();\n"15485"  app-&gt;run();\n"
15471"}\n"15486"}\n"
1547215487
15473#. (itstool) path: section/para15488#. (itstool) path: section/para
16028"<methodname>get_widget()</methodname> method, providing the widget's name. "16043"<methodname>get_widget()</methodname> method, providing the widget's name. "
16029"This name should be specified in the <application>Cambalache</application> "16044"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 "16045"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>."16046"pointer will be set to <literal>nullptr</literal>."
16032msgstr ""16047msgstr ""
n16033"För att komma åt en komponent, exempelvis för att visa en dialogruta med "n16048"För att komma åt en komponent, exempelvis för att visa en dialogruta, "
16034"<methodname>show()</methodname>, använder du metoden "16049"använder du metoden <methodname>get_widget()</methodname> och "
16035"<methodname>get_widget()</methodname> och tillhandahåller komponentens namn. "16050"tillhandahåller komponentens namn. Detta namn bör anges i "
16036"Detta namn bör anges i <application>Glade</application>s egenskapsfönster. "16051"<application>Glade</application>s egenskapsfönster. Om komponenten inte "
16037"Om komponenten inte kunde hittas eller är av fel typ så kommer pekaren "16052"kunde hittas eller är av fel typ så kommer pekaren sättas till nullptr."
16038"sättas till nullptr."
1603916053
16040#. (itstool) path: section/para16054#. (itstool) path: section/para
16041#: C/index-in.docbook:691016055#: C/index-in.docbook:6910
n16042#, fuzzyn
16043msgid ""16056msgid ""
16044"The dialogs in this chapter are derived from <classname>Gtk::Window</"16057"The dialogs in this chapter are derived from <classname>Gtk::Window</"
16045"classname> because <classname>Gtk::Dialog</classname> is deprecated since "16058"classname> because <classname>Gtk::Dialog</classname> is deprecated since "
16046"<application>gtkmm</application> 4.10."16059"<application>gtkmm</application> 4.10."
16047msgstr ""16060msgstr ""
n16048"I detta steg använder vi en <classname>Gtk::Builder</classname>-instans för "n16061"Dialogrutorna i detta kapitel härleds från <classname>Gtk::Window</"
16049"att associera en <classname>Gtk::Builder</classname>-ui-fil med vår "16062"classname> eftersom <classname>Gtk::Dialog</classname> är föråldrat sedan "
16050"programfönsterklass."16063"<application>gtkmm</application> 4.10."
1605116064
16052#. (itstool) path: section/programlisting16065#. (itstool) path: section/programlisting
16053#: C/index-in.docbook:691416066#: C/index-in.docbook:6914
16054#, fuzzy, no-wrap16067#, fuzzy, no-wrap
16055msgid ""16068msgid ""
16065msgid ""16078msgid ""
16066"<classname>Gtk::Builder</classname> checks for a null pointer, and checks "16079"<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 "16080"that the widget is of the expected type, and will show warnings on the "
16068"command line about these."16081"command line about these."
16069msgstr ""16082msgstr ""
n16070"<application>Gtk::Builder</application> tittar efter en null-pekare, och "n16083"<classname>Gtk::Builder</classname> tittar efter en null-pekare, och "
16071"kontrollerar att komponenten är av förväntad typ, och kommer visa varningar "16084"kontrollerar att komponenten är av förväntad typ, och kommer visa varningar "
16072"på kommandoraden om dessa."16085"på kommandoraden om dessa."
1607316086
16074#. (itstool) path: section/para16087#. (itstool) path: section/para
16075#: C/index-in.docbook:692316088#: C/index-in.docbook:6923
16277"}\n"16290"}\n"
1627816291
16279#. (itstool) path: section/para16292#. (itstool) path: section/para
16280#: C/index-in.docbook:700916293#: C/index-in.docbook:7009
16281#, fuzzy16294#, fuzzy
nn16295#| msgid ""
16296#| "It's possible to pass additional arguments from "
16297#| "<methodname>get_widget_derived()</methodname> to the constructor of the "
16298#| "derived widget. For instance, this call to "
16299#| "<methodname>get_widget_derived()</methodname> <_:programlisting-1/> can "
16300#| "invoke this constructor"
16282msgid ""16301msgid ""
16283"It's possible to pass additional arguments from "16302"It's possible to pass additional arguments from "
16284"<methodname>get_widget_derived()</methodname> to the constructor of the "16303"<methodname>get_widget_derived()</methodname> to the constructor of the "
16285"derived widget. For instance, this call to <methodname>get_widget_derived()</"16304"derived widget. For instance, this call to <methodname>get_widget_derived()</"
16286"methodname>"16305"methodname>"
16287msgstr ""16306msgstr ""
16288"Det är möjligt att skicka ytterligare argument från "16307"Det är möjligt att skicka ytterligare argument från "
16289"<methodname>get_widget_derived()</methodname> till konstruktorn för den "16308"<methodname>get_widget_derived()</methodname> till konstruktorn för den "
16290"härledda komponenten. Exempelvis kan detta anrop till "16309"härledda komponenten. Exempelvis kan detta anrop till "
16291"<methodname>get_widget_derived()</methodname> <_:programlisting-1/> starta "16310"<methodname>get_widget_derived()</methodname> <_:programlisting-1/> starta "
n16292"denna konstruktor <_:programlisting-2/>"n16311"denna konstruktor"
1629316312
16294#. (itstool) path: section/programlisting16313#. (itstool) path: section/programlisting
16295#: C/index-in.docbook:701416314#: C/index-in.docbook:7014
16296#, fuzzy, no-wrap16315#, fuzzy, no-wrap
16297msgid ""16316msgid ""
18010"your custom class from that class. The <link linkend=\"custom-css-name-"18029"your custom class from that class. The <link linkend=\"custom-css-name-"
18011"example\">custom CSS name example</link> shows how that's done."18030"example\">custom CSS name example</link> shows how that's done."
18012msgstr ""18031msgstr ""
18013"Vissa <application>GTK</application>-funktioner måste, om de anropas över "18032"Vissa <application>GTK</application>-funktioner måste, om de anropas över "
18014"huvud taget, anropas från klassens init-funktion. Några andra "18033"huvud taget, anropas från klassens init-funktion. Några andra "
n18015"<application>GTK</application>-funktioner måste, om de anropas , anropas "n18034"<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 "18035"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::"18036"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. "18037"ExtraClassInit</classname> och härleda din anpassade klass från den klassen. "
nn18038"Exemplet för <link linkend=\"custom-css-name-example\">anpassat CSS-namn</"
18019"ljande exempel visar hur detta görs."18039"link> visar hur detta görs."
1802018040
18021#. (itstool) path: section/para18041#. (itstool) path: section/para
18022#: C/index-in.docbook:778018042#: C/index-in.docbook:7780
18023msgid "This example implements a widget which draws Penrose triangles."18043msgid "This example implements a widget which draws Penrose triangles."
18024msgstr "Detta exempel implementerar en komponent som ritar Penrose-trianglar."18044msgstr "Detta exempel implementerar en komponent som ritar Penrose-trianglar."
18075"att påverka andra liknande komponenter."18095"att påverka andra liknande komponenter."
1807618096
18077#. (itstool) path: section/title18097#. (itstool) path: section/title
18078#: C/index-in.docbook:780318098#: C/index-in.docbook:7803
18079msgid "CSS Node Name, Widget Name, CSS Class Name"18099msgid "CSS Node Name, Widget Name, CSS Class Name"
n18080msgstr ""n18100msgstr "CSS-nodnamn, Komponentnamn, CSS-klassnamn"
1808118101
18082#. (itstool) path: listitem/para18102#. (itstool) path: listitem/para
18083#: C/index-in.docbook:780718103#: C/index-in.docbook:7807
18084#, fuzzy18104#, fuzzy
18085msgid ""18105msgid ""
1810918129
18110#. (itstool) path: listitem/para18130#. (itstool) path: listitem/para
18111#: C/index-in.docbook:781418131#: C/index-in.docbook:7814
18112#, fuzzy18132#, fuzzy
18113#| msgid ""18133#| msgid ""
n18114#| "<methodname>Gtk::Widget::set_name()</methodname> can be called from a C++ "n18134#| "<methodname>Gtk::Widget::add_class_name()</methodname> can be called from "
18115#| "constructor. It sets the name of a widget instance."18135#| "a C++ constructor. It adds the name of a CSS class, used by a widget "
18136#| "instance."
18116msgid ""18137msgid ""
18117"<methodname>Gtk::Widget::add_class_name()</methodname> can be called from a "18138"<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 "18139"<phrase role=\"nowrap\">C++</phrase> constructor. It adds the name of a CSS "
18119"class, used by a widget instance."18140"class, used by a widget instance."
18120msgstr ""18141msgstr ""
n18121"<methodname>Gtk::Widget::set_name()</methodname> kan anropas från en C++-"n18142"<methodname>Gtk::Widget::add_class_name()</methodname> kan anropas från en C+"
18122"konstruktor. Den ställer in namnet för en komponentinstans."18143"+-konstruktor. Den lägger till namnet för en CSS-klass, använd av en "
18144"komponentinstans."
1812318145
18124#. (itstool) path: section/para18146#. (itstool) path: section/para
18125#: C/index-in.docbook:780518147#: C/index-in.docbook:7805
18126#, fuzzy18148#, fuzzy
18127msgid ""18149msgid ""
18128"There are three ways of referring from a widget to data in a CSS file: <_:"18150"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 "18151"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."18152"name, a label with a widget name and a label that uses its own CSS class."
18131msgstr ""18153msgstr ""
n18132"Det finns två sätt att ge en komponent ett namn som du kan hänvisa till från "n18154"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 "18155"itemizedlist-1/> Följande exempel visar en knapp med eget CSS-nodnamn, en "
18134"CSS-nodnamn och en etikett med ett komponentnamn."18156"etikett med ett komponentnamn och en etikett som använder sin egen CSS-klass."
1813518157
18136#. (itstool) path: section/title18158#. (itstool) path: section/title
18137#: C/index-in.docbook:782318159#: C/index-in.docbook:7823
18138msgid "Custom Style Information"18160msgid "Custom Style Information"
18139msgstr "Anpassad stilinformation"18161msgstr "Anpassad stilinformation"
18164msgid "CSS files are described in the documentation of GTK."18186msgid "CSS files are described in the documentation of GTK."
18165msgstr "CSS-filer beskrivs i dokumentationen för GTK."18187msgstr "CSS-filer beskrivs i dokumentationen för GTK."
1816618188
18167#. (itstool) path: section/para18189#. (itstool) path: section/para
18168#: C/index-in.docbook:783818190#: C/index-in.docbook:7838
n18169#, fuzzyn
18170#| msgid "This example implements a widget which draws Penrose triangles."
18171msgid ""18191msgid ""
18172"This example implements a button and two labels with custom style "18192"This example implements a button and two labels with custom style "
18173"information."18193"information."
n18174msgstr "Detta exempel implementerar en komponent som ritar Penrose-trianglar."n18194msgstr ""
18195"Detta exempel implementerar en knapp och två etiketter med anpassad "
18196"stilinformation."
1817518197
18176#. (itstool) path: figure/title18198#. (itstool) path: figure/title
18177#: C/index-in.docbook:784118199#: C/index-in.docbook:7841
18178#, fuzzy18200#, fuzzy
18179msgid "Custom CSS Name"18201msgid "Custom CSS Name"
18189msgctxt "_"18211msgctxt "_"
18190msgid ""18212msgid ""
18191"external ref='figures/custom_css_name.png' "18213"external ref='figures/custom_css_name.png' "
18192"md5='fb3d968b1fd40eb219e5a78946adff0f'"18214"md5='fb3d968b1fd40eb219e5a78946adff0f'"
18193msgstr ""18215msgstr ""
n18194"external ref='figures/frame.png' md5='e7b49b5f57afa5c0d4c487c187f1be55'"n18216"external ref='figures/custom_css_name.png' "
18217"md5='fb3d968b1fd40eb219e5a78946adff0f'"
1819518218
18196#. (itstool) path: section/para18219#. (itstool) path: section/para
18197#: C/index-in.docbook:784718220#: C/index-in.docbook:7847
n18198#, fuzzyn
18199#| msgid ""
18200#| "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/"
18201#| "tree/master/examples/book/custom/custom_container/\">Source Code</link>"
18202msgid ""18221msgid ""
18203"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"18222"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
18204"master/examples/book/custom/custom_css_name/\">Source Code</link>"18223"master/examples/book/custom/custom_css_name/\">Source Code</link>"
18205msgstr ""18224msgstr ""
18206"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"18225"<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/"
n18207"master/examples/book/custom/custom_container/\">Källkod</link>"n18226"master/examples/book/custom/custom_css_name/\">Källkod</link>"
1820818227
18209#. (itstool) path: chapter/title18228#. (itstool) path: chapter/title
18210#: C/index-in.docbook:785418229#: C/index-in.docbook:7854
18211msgid "Multi-threaded programs"18230msgid "Multi-threaded programs"
18212msgstr "Flertrådade program"18231msgstr "Flertrådade program"
18718"endast ett huvudfönster. Dessa program kan använda <methodname>Gtk::"18737"endast ett huvudfönster. Dessa program kan använda <methodname>Gtk::"
18719"Application::make_window_and_run(int argc, char** argv, T_Args&amp;&amp;... "18738"Application::make_window_and_run(int argc, char** argv, T_Args&amp;&amp;... "
18720"args)</methodname>. Det skapar och visar ett fönster. När fönstret är dolt "18739"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 "18740"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, "18741"returnerar till anroparen. Detta kan hända när användaren stänger fönstret, "
n18723"eller när din kod bestämmer sig för att köra <methodname>hide()</methodname> "n18742"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 "18743"<methodname>set_visible(false)</methodname>. Du kan förhindra användaren "
18725"(exempelvis om det finns osparade ändringar) genom att åsidosätta "18744"från att stränga fönstret (exempelvis om det finns osparade ändringar) genom "
18726"<methodname>Gtk::Window::on_close_request()</methodname>."18745"att åsidosätta <methodname>Gtk::Window::on_close_request()</methodname>."
1872718746
18728#. (itstool) path: section/para18747#. (itstool) path: section/para
18729#: C/index-in.docbook:813918748#: C/index-in.docbook:8139
18730msgid "Most of our examples use this technique."18749msgid "Most of our examples use this technique."
18731msgstr "De flesta av våra exempel använder denna teknik."18750msgstr "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::"18805"Packa komponenten i en behållare med lämpligt anrop, t.ex. <methodname>Gtk::"
18787"Box::append()</methodname>."18806"Box::append()</methodname>."
1878818807
18789#. (itstool) path: section/para18808#. (itstool) path: section/para
18790#: C/index-in.docbook:818718809#: C/index-in.docbook:8187
n18791#, fuzzyn
18792msgid ""18810msgid ""
18793"If you don't want all widgets to be shown, call <methodname>Gtk::Widget::"18811"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. "18812"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, "18813"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 "18814"even if <methodname>set_visible(false)</methodname> is not called on the "
18797"child widgets."18815"child widgets."
18798msgstr ""18816msgstr ""
18799"Om du inte vill att alla komponenter ska visas anropar du <methodname>Gtk::"18817"Om du inte vill att alla komponenter ska visas anropar du <methodname>Gtk::"
n18800"Widget::hide()</methodname> på komponenterna som du inte vill ska visas. Om "n18818"Widget::set_visible(false)</methodname> på komponenterna som du inte vill "
18801"en behållarkomponent är dold så är även alla dess underordnade komponenter "18819"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 "18820"komponenter dolda, även om <methodname>set_visible(false)</methodname> inte "
18803"underordnade komponenterna."18821"anropas på de underordnade komponenterna."
1880418822
18805#. (itstool) path: chapter/title18823#. (itstool) path: chapter/title
18806#: C/index-in.docbook:819818824#: C/index-in.docbook:8198
18807msgid "Building applications"18825msgid "Building applications"
18808msgstr "Bygga program"18826msgstr "Bygga program"
19524"FontDialogButton</classname> and <classname>Gtk::DropDown</classname> in the "19542"FontDialogButton</classname> and <classname>Gtk::DropDown</classname> in the "
19525"preference dialog. The types of the properties in these classes can't be "19543"preference dialog. The types of the properties in these classes can't be "
19526"automatically converted to the string type that <classname>Gio::Settings</"19544"automatically converted to the string type that <classname>Gio::Settings</"
19527"classname> requires."19545"classname> requires."
19528msgstr ""19546msgstr ""
n19529"Vi denna punkt kommer programmet redan reagera om du ändrar en av "n19547"Vid denna punkt kommer programmet redan reagera om du ändrar en av "
19530"inställningarna, exempelvis genom att använda kommandoradsverktyget "19548"inställningarna, exempelvis genom att använda kommandoradsverktyget "
19531"<command>gsettings</command>. Vi förväntar oss förstås att programmet "19549"<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 "19550"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</"19551"inställningsdialog kommer vara en underklass av <classname>Gtk::Dialog</"
19534"classname>, och vi kommer använda samma tekniker som vi redan sett i "19552"classname>, och vi kommer använda samma tekniker som vi redan sett i "
19535"<classname>ExampleAppWindow</classname>: en <classname>Gtk::Builder</"19553"<classname>ExampleAppWindow</classname>: en <classname>Gtk::Builder</"
n19536"classname>-ui-fil och inställningsbindningar."n19554"classname>-ui-fil och inställningsbindningar. I detta fall är dock "
19555"bindningarna mer avancerade. Vi använder <classname>Gtk::FontDialogButton</"
19556"classname> och <classname>Gtk::DropDown</classname> i inställningsdialogen. "
19557"Typerna för egenskaperna i dessa klasser kan inte automatiskt konverteras "
19558"till den strängtyp som <classname>Gio::Settings</classname> kräver."
1953719559
19538#. (itstool) path: section/para19560#. (itstool) path: section/para
19539#: C/index-in.docbook:852519561#: C/index-in.docbook:8525
19540#, fuzzy19562#, fuzzy
19541msgid ""19563msgid ""
19545"in our application class, and make it open a new preference dialog."19567"in our application class, and make it open a new preference dialog."
19546msgstr ""19568msgstr ""
19547"När vi skapat filen <filename>prefs.ui</filename> och klassen "19569"När vi skapat filen <filename>prefs.ui</filename> och klassen "
19548"<classname>ExampleAppPrefs</classname> besöker vi åter metoden "19570"<classname>ExampleAppPrefs</classname> besöker vi åter metoden "
19549"<methodname>ExampleApplication::on_action_preferences()</methodname> i vår "19571"<methodname>ExampleApplication::on_action_preferences()</methodname> i vår "
n19550"programklass, och får den öppna en ny inställningsdialog."n19572"programklass, och får den att öppna en ny inställningsdialog."
1955119573
19552#. (itstool) path: section/programlisting19574#. (itstool) path: section/programlisting
19553#: C/index-in.docbook:853019575#: C/index-in.docbook:8530
19554#, fuzzy, no-wrap19576#, fuzzy, no-wrap
19555#| msgid ""19577#| msgid ""
20082"filename>. Denna fil finns i modulen <literal>gtkmm-documentation</literal> "20104"filename>. Denna fil finns i modulen <literal>gtkmm-documentation</literal> "
20083"i GNOME git."20105"i GNOME git."
2008420106
20085#. (itstool) path: chapter/para20107#. (itstool) path: chapter/para
20086#: C/index-in.docbook:876020108#: C/index-in.docbook:8760
n20087#, fuzzyn
20088msgid ""20109msgid ""
20089"If you do decide to contribute, please post your contribution as an issue or "20110"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-"20111"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 "20112"documentation\">GitLab</link>. You can also discuss your ideas on GNOME's "
20092"<link xlink:href=\"https://discourse.gnome.org\">Discourse</link> instance, "20113"<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, "20117"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, "20118"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 "20119"and copies of this document (including your contribution) may be distributed "
20099"freely."20120"freely."
20100msgstr ""20121msgstr ""
n20101"Om du bestämmer dig för att bidra kan du skicka ditt bidrag till sändlistan "n20122"Om du bestämmer dig för att bidra kan du skicka ditt bidrag som etärende "
20102"för <application>gtkmm</application> på <link xlink:href=\"mailto:gtkmm-"
20103"list@gnome.org\">&lt;gtkmm-list@gnome.org&gt;</link> eller som ett ärende "
20104"eller en merge-förfrågan till <link xlink:href=\"https://gitlab.gnome.org/"20123"eller en merge-förfrågan till <link xlink:href=\"https://gitlab.gnome.org/"
n20105"GNOME/gtkmm-documentation\">GitLab</link>. Var också medveten om att hela "n20124"GNOME/gtkmm-documentation\">GitLab</link>. Du kan också diskutera dina idéer "
20125"på GNOMEs <link xlink:href=\"https://discourse.gnome.org\">Discourse</link>-"
20126"instans, under kategorin <link xlink:href=\"https://discourse.gnome.org/c/"
20127"platform/language-bindings\"> Platform/Language bindings</link> med en "
20128"<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 "20129"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 "20130"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 "20131"program, och kopior av detta dokument (med ditt bidrag) måste kunna spridas "
20109"fritt."20132"fritt."
2011020133
20111#. (itstool) path: appendix/title20134#. (itstool) path: appendix/title
20112#: C/index-in.docbook:877520135#: C/index-in.docbook:8775
22064msgid "$ cp examples/sample.jhbuildrc ~/.config/jhbuildrc"22087msgid "$ cp examples/sample.jhbuildrc ~/.config/jhbuildrc"
22065msgstr "$ cp examples/sample.jhbuildrc ~/.config/jhbuildrc"22088msgstr "$ cp examples/sample.jhbuildrc ~/.config/jhbuildrc"
2206622089
22067#. (itstool) path: section/para22090#. (itstool) path: section/para
22068#: C/index-in.docbook:963222091#: C/index-in.docbook:9632
n22069#, fuzzyn
22070msgid ""22092msgid ""
22071"To set up <application>jhbuild</application>, follow the basic installation "22093"To set up <application>jhbuild</application>, follow the basic installation "
22072"instructions from the <link xlink:href=\"https://gnome.pages.gitlab.gnome."22094"instructions from the <link xlink:href=\"https://gnome.pages.gitlab.gnome."
22073"org/jhbuild/\">jhbuild manual</link>. After you have installed "22095"org/jhbuild/\">jhbuild manual</link>. After you have installed "
22074"<application>jhbuild</application>, you should copy the sample "22096"<application>jhbuild</application>, you should copy the sample "
22075"<application>jhbuild</application> configuration file into your home "22097"<application>jhbuild</application> configuration file into your home "
22076"directory by executing the following command from the <application>jhbuild</"22098"directory by executing the following command from the <application>jhbuild</"
22077"application> directory: <_:screen-1/>"22099"application> directory: <_:screen-1/>"
22078msgstr ""22100msgstr ""
22079"Följ de grundläggande installationsinstruktionerna från <link xlink:"22101"Följ de grundläggande installationsinstruktionerna från <link xlink:"
n22080"href=\"http://developer-old.gnome.org/jhbuild/unstable/\">handboken för "n22102"href=\"https://gnome.pages.gitlab.gnome.org/jhbuild/\">handboken för "
22081"jhbuild</link> för att konfigurera <application>jhbuild</application>. Efter "22103"jhbuild</link> för att konfigurera <application>jhbuild</application>. Efter "
22082"att du har installerat <application>jhbuild</application> bör du kopiera "22104"att du har installerat <application>jhbuild</application> bör du kopiera "
22083"<application>jhbuild</application>-exempelkonfigurationsfilen till din "22105"<application>jhbuild</application>-exempelkonfigurationsfilen till din "
22084"hemkatalog genom att exekvera följande kommando från katalogen "22106"hemkatalog genom att exekvera följande kommando från katalogen "
22085"<application>jhbuild</application>: <_:screen-1/>"22107"<application>jhbuild</application>: <_:screen-1/>"
26073"char**</classname> such as the following:"26095"char**</classname> such as the following:"
26074msgstr ""26096msgstr ""
26075"<function>_WRAP_METHOD()</function> stöder också att sätta C++-"26097"<function>_WRAP_METHOD()</function> stöder också att sätta C++-"
26076"utdataparametrar från C- utdataparametrar om den omslutna C-funktionen har "26098"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 "26099"några. Anta till exempel att vi vill omsluta följande C-funktion som "
n26078"returnerar ett värde i sin C-utdataparameter <parameter>rect</parameter>: <_:"n26100"returnerar ett värde i sin C-utdataparameter <parameter>out_mime_type</"
26079"programlisting-1/> För att <command>gmmproc</command> ska placera det "26101"parameter>: <_:programlisting-1/> För att <command>gmmproc</command> ska "
26080"returnerade värdet i C++-utdataparametern <parameter>rect</parameter> ska "26102"placera det returnerade värdet i C++-utdataparametern "
26081"något i stil med följande <function>_WRAP_METHOD()</function>-makro "26103"<parameter>out_mime_type</parameter> ska något i stil med följande "
26082"användas: <_:programlisting-2/> Den <literal>{&gt;&gt;}</literal> som följer "26104"<function>_WRAP_METHOD()</function>-makro användas: <_:programlisting-2/> "
26083"parameternamnet <parameter>rect</parameter> indikerar att C++-"26105"Den <literal>{&gt;&gt;}</literal> som följer parameternamnet "
26106"<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 "26107"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 "26108"<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 "26109"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 "26110"utdataparametern från temporärvariabeln. I detta fall kan det vara "
26088"vara nödvändigt att ha en <function>_INITIALIZATION()</function> som "26111"nödvändigt att ha en <function>_INITIALIZATION()</function> som beskriver "
26089"beskriver hur en <classname>Gdk::Rectangle&amp;</classname> ska sättas från "26112"hur en <classname>Glib::ustring&amp;</classname> ska sättas från en "
26090"en <classname>GdkRectangle*</classname> som i det följande: <_:"26113"<classname>const char**</classname> som i det följande: <_:programlisting-3/>"
26091"programlisting-3/>"
2609226114
26093#. (itstool) path: section/programlisting26115#. (itstool) path: section/programlisting
26094#: C/index-in.docbook:1130126116#: C/index-in.docbook:11301
26095#, fuzzy, no-wrap26117#, fuzzy, no-wrap
26096#| msgid ""26118#| msgid ""
26097#| "\n"26119#| "\n"
n26098#| "_INITIALIZATION(`Gtk::Widget&amp;',`GtkWidget*',`$3 = Glib::wrap($4)')\n"n26120#| "_INITIALIZATION(`Glib::ustring&amp;',`const char*',`$3 = Glib::convert_const
 >_gchar_ptr_to_ustring($4)')\n"
26099msgid ""26121msgid ""
26100"<code>\n"26122"<code>\n"
26101"_INITIALIZATION(`Glib::ustring&amp;',`const char*',`$3 = Glib::convert_const_gc26123"_INITIALIZATION(`Glib::ustring&amp;',`const char*',`$3 = Glib::convert_const_gc
>har_ptr_to_ustring($4)')\n">har_ptr_to_ustring($4)')\n"
26102"</code>"26124"</code>"
26103msgstr ""26125msgstr ""
26104"\n"26126"\n"
n26105"_INITIALIZATION(`Gtk::Widget&amp;',`GtkWidget*',`$3 = Glib::wrap($4)')\n"n26127"_INITIALIZATION(`Glib::ustring&amp;',`const char*',`$3 = Glib::convert_const_gc
 >har_ptr_to_ustring($4)')\n"
2610626128
26107#. (itstool) path: section/title26129#. (itstool) path: section/title
26108#: C/index-in.docbook:1130726130#: C/index-in.docbook:11307
26109#, fuzzy26131#, fuzzy
26110msgid "String Parameter Processing"26132msgid "String Parameter Processing"
27404#~ "namespaceGlib.html\">Reference</link>"27426#~ "namespaceGlib.html\">Reference</link>"
27405#~ msgstr ""27427#~ msgstr ""
27406#~ "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/"27428#~ "<link xlink:href=\"https://gnome.pages.gitlab.gnome.org/glibmm/"
27407#~ "namespaceGlib.html\">Referens</link>"27429#~ "namespaceGlib.html\">Referens</link>"
2740827430
n27409#, fuzzyn
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-wrap27431#, no-wrap
27421#~ msgid "intltool-update --pot"27432#~ msgid "intltool-update --pot"
27422#~ msgstr "intltool-update --pot"27433#~ msgstr "intltool-update --pot"
2742327434
27424#~ msgid ""27435#~ msgid ""
27432#~ "<link xlink:href=\"http://ftp.gnome.org/pub/GNOME/sources/gnomemm_hello/"27443#~ "<link xlink:href=\"http://ftp.gnome.org/pub/GNOME/sources/gnomemm_hello/"
27433#~ "\"><literal>gnomemm_hello</literal> example package</link>"27444#~ "\"><literal>gnomemm_hello</literal> example package</link>"
27434#~ msgstr ""27445#~ msgstr ""
27435#~ "<link xlink:href=\"http://ftp.gnome.org/pub/GNOME/sources/gnomemm_hello/"27446#~ "<link xlink:href=\"http://ftp.gnome.org/pub/GNOME/sources/gnomemm_hello/"
27436#~ "\">Exempelpaketet <literal>gnomemm_hello</literal></link>"27447#~ "\">Exempelpaketet <literal>gnomemm_hello</literal></link>"
n27437 n
27438#~ msgid "Widget Name and CSS Node Name"
27439#~ msgstr "Komponentnamn och CSS-nodnamn"
2744027448
27441#~ msgid "For instance, from <filename>adjustment.hg</filename>:"27449#~ msgid "For instance, from <filename>adjustment.hg</filename>:"
27442#~ msgstr "Till exempel, från <filename>adjustment.hg</filename>:"27450#~ msgstr "Till exempel, från <filename>adjustment.hg</filename>:"
2744327451
27444#~ msgid "For example, from <filename>iochannel.hg</filename> in glibmm:"27452#~ msgid "For example, from <filename>iochannel.hg</filename> in glibmm:"
27556#~ "<_:programlisting-2/>"27564#~ "<_:programlisting-2/>"
27557#~ msgstr ""27565#~ msgstr ""
27558#~ "Detta kompileringsfel kan se ut så här: <_:programlisting-1/> eller så "27566#~ "Detta kompileringsfel kan se ut så här: <_:programlisting-1/> eller så "
27559#~ "här: <_:programlisting-2/>"27567#~ "här: <_:programlisting-2/>"
2756027568
tt27569#~ msgid "Widget Name and CSS Node Name"
27570#~ msgstr "Komponentnamn och CSS-nodnamn"
27571 
27561#, fuzzy27572#, fuzzy
27562#~ msgid ""27573#~ msgid ""
27563#~ "<classname>MessageDialog</classname> is a convenience class, used to "27574#~ "<classname>MessageDialog</classname> is a convenience class, used to "
27564#~ "create simple, standard message dialogs, with a message and buttons for "27575#~ "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 "27576#~ "user response. You can specify the type of message and the text in the "

Note: both files are merged with latest POT file.