gtkmm-documentation - master - Tutorial - Swedish
Uploaded file by Anders Jonsson on 2022-08-15 17:40:49+00:00 | Uploaded file by Anders Jonsson on 2022-08-16 10:26:55+00:00 | ||||
---|---|---|---|---|---|
5 | # | 5 | # | ||
6 | msgid "" | 6 | msgid "" | ||
7 | msgstr "" | 7 | msgstr "" | ||
8 | "Project-Id-Version: gtkmm-documentation master\n" | 8 | "Project-Id-Version: gtkmm-documentation master\n" | ||
9 | "POT-Creation-Date: 2025-07-08 14:05+0000\n" | 9 | "POT-Creation-Date: 2025-07-08 14:05+0000\n" | ||
n | 10 | "PO-Revision-Date: 2022-08-15 19:40+0200\n" | n | 10 | "PO-Revision-Date: 2022-08-16 12:26+0200\n" |
11 | "Last-Translator: Anders Jonsson <anders.jonsson@norsjovallen.se>\n" | 11 | "Last-Translator: Anders Jonsson <anders.jonsson@norsjovallen.se>\n" | ||
12 | "Language-Team: Swedish <tp-sv@listor.tp-sv.se>\n" | 12 | "Language-Team: Swedish <tp-sv@listor.tp-sv.se>\n" | ||
13 | "Language: sv\n" | 13 | "Language: sv\n" | ||
14 | "MIME-Version: 1.0\n" | 14 | "MIME-Version: 1.0\n" | ||
15 | "Content-Type: text/plain; charset=UTF-8\n" | 15 | "Content-Type: text/plain; charset=UTF-8\n" | ||
381 | "komponenter i GTK hanteras genom användning av pekare. Som C++-kodare vet du " | 381 | "komponenter i GTK hanteras genom användning av pekare. Som C++-kodare vet du " | ||
382 | "att pekare ska undvikas när möjligt." | 382 | "att pekare ska undvikas när möjligt." | ||
383 | 383 | ||||
384 | #. (itstool) path: section/para | 384 | #. (itstool) path: section/para | ||
385 | #: C/index-in.docbook:160 | 385 | #: C/index-in.docbook:160 | ||
n | 386 | #, fuzzy | n | ||
387 | msgid "" | 386 | msgid "" | ||
388 | "<application>gtkmm</application> involves less code compared to GTK, which " | 387 | "<application>gtkmm</application> involves less code compared to GTK, which " | ||
389 | "uses prefixed function names and lots of cast macros." | 388 | "uses prefixed function names and lots of cast macros." | ||
390 | msgstr "" | 389 | msgstr "" | ||
n | 391 | "<application>gtkmm</application> involverar mindre kod än GTK, vilket " | n | 390 | "<application>gtkmm</application> innefattar mindre kod än GTK, vilket " |
392 | "använder prefixade funktionsnamn och massor av typkonverteringsmakron." | 391 | "använder prefixade funktionsnamn och många typkonverteringsmakron." | ||
393 | 392 | ||||
394 | #. (itstool) path: section/title | 393 | #. (itstool) path: section/title | ||
395 | #: C/index-in.docbook:164 | 394 | #: C/index-in.docbook:164 | ||
396 | msgid "<application>gtkmm</application> compared to Qt" | 395 | msgid "<application>gtkmm</application> compared to Qt" | ||
397 | msgstr "<application>gtkmm</application> jämfört med Qt" | 396 | msgstr "<application>gtkmm</application> jämfört med Qt" | ||
645 | "Distributioner som inkluderar <application>gtkmm</application> i sina förråd " | 644 | "Distributioner som inkluderar <application>gtkmm</application> i sina förråd " | ||
646 | "inkluderar Debian, Ubuntu, Red Hat, Fedora, Mandriva, Suse och många fler." | 645 | "inkluderar Debian, Ubuntu, Red Hat, Fedora, Mandriva, Suse och många fler." | ||
647 | 646 | ||||
648 | #. (itstool) path: section/para | 647 | #. (itstool) path: section/para | ||
649 | #: C/index-in.docbook:238 | 648 | #: C/index-in.docbook:238 | ||
n | 650 | #, fuzzy | n | ||
651 | #| msgid "" | ||||
652 | #| "The names of the <application>gtkmm</application> packages vary from " | ||||
653 | #| "distribution to distribution (e.g. <application>libgtkmm-4.0-dev</" | ||||
654 | #| "application> on Debian and Ubuntu or <application>gtkmm40-devel</" | ||||
655 | #| "application> on Red Hat Fedora), so check with your distribution's " | ||||
656 | #| "package management program for the correct package name and install it " | ||||
657 | #| "like you would any other package." | ||||
658 | msgid "" | 649 | msgid "" | ||
659 | "The names of the <application>gtkmm</application> packages vary from " | 650 | "The names of the <application>gtkmm</application> packages vary from " | ||
660 | "distribution to distribution (e.g. <application>libgtkmm-4.0-dev</" | 651 | "distribution to distribution (e.g. <application>libgtkmm-4.0-dev</" | ||
661 | "application> on Debian and Ubuntu or <application>gtkmm4.0-devel</" | 652 | "application> on Debian and Ubuntu or <application>gtkmm4.0-devel</" | ||
662 | "application> on Red Hat and Fedora), so check with your distribution's " | 653 | "application> on Red Hat and Fedora), so check with your distribution's " | ||
663 | "package management program for the correct package name and install it like " | 654 | "package management program for the correct package name and install it like " | ||
664 | "you would any other package." | 655 | "you would any other package." | ||
665 | msgstr "" | 656 | msgstr "" | ||
666 | "Namnen på <application>gtkmm</application>-paketen varierar från " | 657 | "Namnen på <application>gtkmm</application>-paketen varierar från " | ||
667 | "distribution till distribution (t.ex. <application>libgtkmm-4.0-dev</" | 658 | "distribution till distribution (t.ex. <application>libgtkmm-4.0-dev</" | ||
n | 668 | "application> på Debian och Ubuntu eller <application>gtkmm40-devel</" | n | 659 | "application> på Debian och Ubuntu eller <application>gtkmm4.0-devel</" |
669 | "application> på Red Hat och Fedora), så se i din distributions " | 660 | "application> på Red Hat och Fedora), så se i din distributions " | ||
670 | "pakethanteringsprogram vad som är rätt paketnamn och installera det som " | 661 | "pakethanteringsprogram vad som är rätt paketnamn och installera det som " | ||
671 | "vilket annat paket som helst." | 662 | "vilket annat paket som helst." | ||
672 | 663 | ||||
673 | #. (itstool) path: note/para | 664 | #. (itstool) path: note/para | ||
1073 | msgstr "g++ simple.cc -o simple `pkg-config --cflags --libs gtkmm-4.0` -std=c++1 | 1064 | msgstr "g++ simple.cc -o simple `pkg-config --cflags --libs gtkmm-4.0` -std=c++1 | ||
> | 7" | > | 7" | ||
1074 | 1065 | ||||
1075 | #. (itstool) path: section/para | 1066 | #. (itstool) path: section/para | ||
1076 | #: C/index-in.docbook:393 | 1067 | #: C/index-in.docbook:393 | ||
1077 | #, fuzzy | 1068 | #, fuzzy | ||
n | n | 1069 | #| msgid "" | ||
1070 | #| "Note that you must surround the <literal>pkg-config</literal> invocation " | ||||
1071 | #| "with backquotes. Backquotes cause the shell to execute the command inside " | ||||
1072 | #| "them, and to use the command's output as part of the command line. Note " | ||||
1073 | #| "also that <literal>simple.cc</literal> must come before the <literal>pkg-" | ||||
1074 | #| "config</literal> invocation on the command line. <literal>-std=c++17</" | ||||
1075 | #| "literal> is necessary only if your compiler is not C++17 compliant by " | ||||
1076 | #| "default." | ||||
1078 | msgid "" | 1077 | msgid "" | ||
1079 | "Note that you must surround the <application>pkg-config</application> " | 1078 | "Note that you must surround the <application>pkg-config</application> " | ||
1080 | "invocation with backquotes. Backquotes cause the shell to execute the " | 1079 | "invocation with backquotes. Backquotes cause the shell to execute the " | ||
1081 | "command inside them, and to use the command's output as part of the command " | 1080 | "command inside them, and to use the command's output as part of the command " | ||
1082 | "line. Note also that <filename>base.cc</filename> must come before the " | 1081 | "line. Note also that <filename>base.cc</filename> must come before the " | ||
1084 | "<literal><phrase role=\"nowrap\">-std=c++17</phrase></literal> is necessary " | 1083 | "<literal><phrase role=\"nowrap\">-std=c++17</phrase></literal> is necessary " | ||
1085 | "only if your compiler is not <phrase role=\"nowrap\">C++17</phrase> " | 1084 | "only if your compiler is not <phrase role=\"nowrap\">C++17</phrase> " | ||
1086 | "compliant by default." | 1085 | "compliant by default." | ||
1087 | msgstr "" | 1086 | msgstr "" | ||
1088 | "Observera att du måste omsluta anropet av <literal>pkg-config</literal> med " | 1087 | "Observera att du måste omsluta anropet av <literal>pkg-config</literal> med " | ||
n | 1089 | "bakåtcitat. Bakåtcitat får skalet att exekvera kommandot inuti dem, och att " | n | 1088 | "grav accent (`). Grava accenter får skalet att exekvera kommandot inuti dem, " |
1090 | "använda kommandots utdata som en del av kommandoraden. Observera också att " | 1089 | "och att använda kommandots utdata som en del av kommandoraden. Observera " | ||
1091 | "<literal>simple.cc</literal> måste komma före anropet av <literal>pkg-" | 1090 | "också att <literal>simple.cc</literal> måste komma före anropet av " | ||
1092 | "config</literal> på kommandoraden. <literal>-std=c++17</literal> är endast " | 1091 | "<literal>pkg-config</literal> på kommandoraden. <literal>-std=c++17</" | ||
1093 | "nödvändigt om din kompilator inte följer C++17 som standard." | 1092 | "literal> är endast nödvändigt om din kompilator inte följer C++17 som " | ||
1093 | "standard." | ||||
1094 | 1094 | ||||
1095 | #. (itstool) path: section/title | 1095 | #. (itstool) path: section/title | ||
1096 | #: C/index-in.docbook:404 | 1096 | #: C/index-in.docbook:404 | ||
1097 | #, fuzzy | 1097 | #, fuzzy | ||
1098 | msgid "Headers and Linking" | 1098 | msgid "Headers and Linking" | ||
1117 | "i <application>gtkmm-documentation</application> beskriver hur du bygger " | 1117 | "i <application>gtkmm-documentation</application> beskriver hur du bygger " | ||
1118 | "exemplen." | 1118 | "exemplen." | ||
1119 | 1119 | ||||
1120 | #. (itstool) path: section/para | 1120 | #. (itstool) path: section/para | ||
1121 | #: C/index-in.docbook:414 | 1121 | #: C/index-in.docbook:414 | ||
n | 1122 | #, fuzzy | n | ||
1123 | msgid "" | 1122 | msgid "" | ||
1124 | "To simplify compilation, we use <literal>pkg-config</literal>, which is " | 1123 | "To simplify compilation, we use <literal>pkg-config</literal>, which is " | ||
1125 | "present in all (properly installed) <application>gtkmm</application> " | 1124 | "present in all (properly installed) <application>gtkmm</application> " | ||
1126 | "installations. This program 'knows' what compiler switches are needed to " | 1125 | "installations. This program 'knows' what compiler switches are needed to " | ||
1127 | "compile programs that use <application>gtkmm</application>. The <literal>--" | 1126 | "compile programs that use <application>gtkmm</application>. The <literal>--" | ||
1183 | " win_subsystem: 'windows',\n" | 1182 | " win_subsystem: 'windows',\n" | ||
1184 | ")" | 1183 | ")" | ||
1185 | 1184 | ||||
1186 | #. (itstool) path: section/para | 1185 | #. (itstool) path: section/para | ||
1187 | #: C/index-in.docbook:437 | 1186 | #: C/index-in.docbook:437 | ||
n | 1188 | #, fuzzy | n | ||
1189 | msgid "" | 1187 | msgid "" | ||
1190 | "gtkmm-4.0 is the name of the current stable API. There are older APIs called " | 1188 | "gtkmm-4.0 is the name of the current stable API. There are older APIs called " | ||
1191 | "gtkmm-2.4 and gtkmm-3.0 which install in parallel when they are available. " | 1189 | "gtkmm-2.4 and gtkmm-3.0 which install in parallel when they are available. " | ||
1192 | "There are several versions of gtkmm-2.4, such as gtkmm 2.10 and there are " | 1190 | "There are several versions of gtkmm-2.4, such as gtkmm 2.10 and there are " | ||
1193 | "several versions of the gtkmm-3.0 API. Note that the API name does not " | 1191 | "several versions of the gtkmm-3.0 API. Note that the API name does not " | ||
1469 | "engelska i ditt program." | 1467 | "engelska i ditt program." | ||
1470 | 1468 | ||||
1471 | #. (itstool) path: section/para | 1469 | #. (itstool) path: section/para | ||
1472 | #: C/index-in.docbook:518 | 1470 | #: C/index-in.docbook:518 | ||
1473 | #, fuzzy | 1471 | #, fuzzy | ||
n | n | 1472 | #| msgid "" | ||
1473 | #| "std::string uses 8 bits per character, but 8 bits aren't enough to encode " | ||||
1474 | #| "languages such as Arabic, Chinese, and Japanese. Although the encodings " | ||||
1475 | #| "for these languages have been specified by the <link xlink:href=\"http://" | ||||
1476 | #| "www.unicode.org/\">Unicode Consortium</link>, the C and C++ languages do " | ||||
1477 | #| "not yet provide any standardised Unicode support for UTF-8 encoding. GTK " | ||||
1478 | #| "and GNOME chose to implement Unicode using UTF-8, and that's what is " | ||||
1479 | #| "wrapped by Glib::ustring. It provides almost exactly the same interface " | ||||
1480 | #| "as std::string, along with automatic conversions to and from std::string." | ||||
1474 | msgid "" | 1481 | msgid "" | ||
1475 | "std::string uses 8 bits per character, but 8 bits aren't enough to encode " | 1482 | "std::string uses 8 bits per character, but 8 bits aren't enough to encode " | ||
1476 | "languages such as Arabic, Chinese, and Japanese. Although the encodings for " | 1483 | "languages such as Arabic, Chinese, and Japanese. Although the encodings for " | ||
1477 | "these languages have been specified by the <link xlink:href=\"http://www." | 1484 | "these languages have been specified by the <link xlink:href=\"http://www." | ||
1478 | "unicode.org/\">Unicode Consortium</link>, the C and <phrase " | 1485 | "unicode.org/\">Unicode Consortium</link>, the C and <phrase " | ||
1491 | "ustring. Det tillhandahåller nästan exakt samma gränssnitt som std::string, " | 1498 | "ustring. Det tillhandahåller nästan exakt samma gränssnitt som std::string, " | ||
1492 | "tillsammans med automatiska konverteringar till och från std::string." | 1499 | "tillsammans med automatiska konverteringar till och från std::string." | ||
1493 | 1500 | ||||
1494 | #. (itstool) path: section/para | 1501 | #. (itstool) path: section/para | ||
1495 | #: C/index-in.docbook:523 | 1502 | #: C/index-in.docbook:523 | ||
n | 1496 | #, fuzzy | n | ||
1497 | msgid "" | 1503 | msgid "" | ||
1498 | "One of the benefits of UTF-8 is that you don't need to use it unless you " | 1504 | "One of the benefits of UTF-8 is that you don't need to use it unless you " | ||
1499 | "want to, so you don't need to retrofit all of your code at once. " | 1505 | "want to, so you don't need to retrofit all of your code at once. " | ||
1500 | "<classname>std::string</classname> will still work for 7-bit ASCII strings. " | 1506 | "<classname>std::string</classname> will still work for 7-bit ASCII strings. " | ||
1501 | "But when you try to localize your application for languages like Chinese, " | 1507 | "But when you try to localize your application for languages like Chinese, " | ||
1511 | "du behöver göra att börja använda <classname>Glib::ustring</classname> i " | 1517 | "du behöver göra att börja använda <classname>Glib::ustring</classname> i " | ||
1512 | "stället." | 1518 | "stället." | ||
1513 | 1519 | ||||
1514 | #. (itstool) path: section/para | 1520 | #. (itstool) path: section/para | ||
1515 | #: C/index-in.docbook:524 | 1521 | #: C/index-in.docbook:524 | ||
n | 1516 | #, fuzzy | n | ||
1517 | msgid "" | 1522 | msgid "" | ||
1518 | "Note that UTF-8 isn't compatible with 8-bit encodings like ISO-8859-1. For " | 1523 | "Note that UTF-8 isn't compatible with 8-bit encodings like ISO-8859-1. For " | ||
1519 | "instance, German umlauts are not in the ASCII range and need more than 1 " | 1524 | "instance, German umlauts are not in the ASCII range and need more than 1 " | ||
1520 | "byte in the UTF-8 encoding. If your code contains 8-bit string literals, you " | 1525 | "byte in the UTF-8 encoding. If your code contains 8-bit string literals, you " | ||
1521 | "have to convert them to UTF-8 (e.g. the Bavarian greeting \"Grüß Gott\" " | 1526 | "have to convert them to UTF-8 (e.g. the Bavarian greeting \"Grüß Gott\" " | ||
1522 | "would be \"Gr\\xC3\\xBC\\xC3\\x9F Gott\")." | 1527 | "would be \"Gr\\xC3\\xBC\\xC3\\x9F Gott\")." | ||
1523 | msgstr "" | 1528 | msgstr "" | ||
1524 | "Observera att UTF-8 inte är kompatibelt med 8-bitars kodningar som " | 1529 | "Observera att UTF-8 inte är kompatibelt med 8-bitars kodningar som " | ||
n | 1525 | "ISO-8859-1. Exempelvis tyska umlaut finns inte i ASCII-intervallet och " | n | 1530 | "ISO-8859-1. Exempelvis finns tyska umlaut inte i ASCII-intervallet och " |
1526 | "behöver mer än 1 byte i UTF-8-kodningen. Om din kod innehåller 8-bitars " | 1531 | "behöver mer än 1 byte i UTF-8-kodningen. Om din kod innehåller 8-bitars " | ||
1527 | "stränglitteraler behöver du konvertera dem till UTF-8 (t.ex. skulle den " | 1532 | "stränglitteraler behöver du konvertera dem till UTF-8 (t.ex. skulle den " | ||
n | 1528 | "Bayerska hälsningen \"Grüß Gott\" bli \"Gr\\xC3\\xBC\\xC3\\x9F Gott\")." | n | 1533 | "bayerska hälsningen ”Grüß Gott” bli ”Gr\\xC3\\xBC\\xC3\\x9F Gott”)." |
1529 | 1534 | ||||
1530 | #. (itstool) path: section/para | 1535 | #. (itstool) path: section/para | ||
1531 | #: C/index-in.docbook:525 | 1536 | #: C/index-in.docbook:525 | ||
n | 1532 | #, fuzzy | n | ||
1533 | msgid "" | 1537 | msgid "" | ||
1534 | "You should avoid C-style pointer arithmetic, and functions such as strlen(). " | 1538 | "You should avoid C-style pointer arithmetic, and functions such as strlen(). " | ||
1535 | "In UTF-8, each character might need anywhere from 1 to 6 bytes, so it's not " | 1539 | "In UTF-8, each character might need anywhere from 1 to 6 bytes, so it's not " | ||
1536 | "possible to assume that the next byte is another character. <classname>Glib::" | 1540 | "possible to assume that the next byte is another character. <classname>Glib::" | ||
1537 | "ustring</classname> worries about the details of this for you so you can use " | 1541 | "ustring</classname> worries about the details of this for you so you can use " | ||
1538 | "methods such as Glib::ustring::substr() while still thinking in terms of " | 1542 | "methods such as Glib::ustring::substr() while still thinking in terms of " | ||
1539 | "characters instead of bytes." | 1543 | "characters instead of bytes." | ||
1540 | msgstr "" | 1544 | msgstr "" | ||
n | 1541 | "Du bör undvika pekararitmetik av C-stil, och funktioner som strlen(). I " | n | 1545 | "Du bör undvika pekararitmetik av C-stil och funktioner som strlen(). I UTF-8 " |
1542 | "UTF-8 kan varje tecken behöva vad som helst mellan 1 och 6 byte, så det är " | 1546 | "kan varje tecken behöva vad som helst från 1 till 6 byte, så det är inte " | ||
1543 | "inte möjligt att anta att nästa byte är ett annat tecken. <classname>Glib::" | 1547 | "möjligt att anta att nästa byte är ett nytt tecken. <classname>Glib::" | ||
1544 | "ustring</classname> sköter detaljera kring detta åt dig, så du kan använda " | 1548 | "ustring</classname> sköter detaljerna kring detta åt dig, så du kan använda " | ||
1545 | "metoder som Glib::ustring::substr() och tänka på antal tecken i stället för " | 1549 | "metoder som Glib::ustring::substr() och tänka på antal tecken i stället för " | ||
1546 | "byte." | 1550 | "byte." | ||
1547 | 1551 | ||||
1548 | #. (itstool) path: section/para | 1552 | #. (itstool) path: section/para | ||
1549 | #: C/index-in.docbook:527 | 1553 | #: C/index-in.docbook:527 | ||
n | 1550 | #, fuzzy | n | ||
1551 | msgid "" | 1554 | msgid "" | ||
1552 | "Unlike the Windows UCS-2 Unicode solution, this does not require any special " | 1555 | "Unlike the Windows UCS-2 Unicode solution, this does not require any special " | ||
1553 | "compiler options to process string literals, and it does not result in " | 1556 | "compiler options to process string literals, and it does not result in " | ||
1554 | "Unicode executables and libraries which are incompatible with ASCII ones." | 1557 | "Unicode executables and libraries which are incompatible with ASCII ones." | ||
1555 | msgstr "" | 1558 | msgstr "" | ||
n | 1556 | "Till skillnad från Windows UCS-2 Unicode-lösning, så kräver detta inte några " | n | 1559 | "Till skillnad från Windows Unicode-lösning UCS-2 så kräver detta inte några " |
1557 | "ytterligare kompilatorflaggor för att behandla stränglitteraler, och det " | 1560 | "ytterligare kompilatorflaggor för att behandla stränglitteraler, och det " | ||
1558 | "resulterar inte i körbara Unicode-program och bibliotek som är inkompatibla " | 1561 | "resulterar inte i körbara Unicode-program och bibliotek som är inkompatibla " | ||
1559 | "med de som använder ASCII." | 1562 | "med de som använder ASCII." | ||
1560 | 1563 | ||||
1561 | #. (itstool) path: section/para | 1564 | #. (itstool) path: section/para | ||
1571 | "<link xlink:href=\"http://developer.gnome.org/glibmm/unstable/" | 1574 | "<link xlink:href=\"http://developer.gnome.org/glibmm/unstable/" | ||
1572 | "classGlib_1_1ustring.html\">Referens</link>" | 1575 | "classGlib_1_1ustring.html\">Referens</link>" | ||
1573 | 1576 | ||||
1574 | #. (itstool) path: section/para | 1577 | #. (itstool) path: section/para | ||
1575 | #: C/index-in.docbook:531 | 1578 | #: C/index-in.docbook:531 | ||
n | 1576 | #, fuzzy | n | ||
1577 | msgid "" | 1579 | msgid "" | ||
1578 | "See the <link linkend=\"chapter-internationalization\">Internationalization</" | 1580 | "See the <link linkend=\"chapter-internationalization\">Internationalization</" | ||
1579 | "link> section for information about providing the UTF-8 string literals." | 1581 | "link> section for information about providing the UTF-8 string literals." | ||
1580 | msgstr "" | 1582 | msgstr "" | ||
1581 | "Se avsnittet <link linkend=\"chapter-" | 1583 | "Se avsnittet <link linkend=\"chapter-" | ||
2086 | "classname>. Den arrangerar sina underliggande komponenter enligt " | 2088 | "classname>. Den arrangerar sina underliggande komponenter enligt " | ||
2087 | "komponenternas egenskaper snarare än sina egna layoutdetaljer." | 2089 | "komponenternas egenskaper snarare än sina egna layoutdetaljer." | ||
2088 | 2090 | ||||
2089 | #. (itstool) path: listitem/simpara | 2091 | #. (itstool) path: listitem/simpara | ||
2090 | #: C/index-in.docbook:703 | 2092 | #: C/index-in.docbook:703 | ||
n | 2091 | #, fuzzy | n | ||
2092 | msgid "" | 2093 | msgid "" | ||
2093 | "<classname>Gtk::Switch</classname> displays On/Off states more explicitly " | 2094 | "<classname>Gtk::Switch</classname> displays On/Off states more explicitly " | ||
2094 | "than <classname>Gtk::CheckButton</classname>. It may be useful, for " | 2095 | "than <classname>Gtk::CheckButton</classname>. It may be useful, for " | ||
2095 | "instance, when allowing users to activate hardware." | 2096 | "instance, when allowing users to activate hardware." | ||
2096 | msgstr "" | 2097 | msgstr "" | ||
2255 | "Vi använder nu std::vector i flera metoder i stället för mellanliggande " | 2256 | "Vi använder nu std::vector i flera metoder i stället för mellanliggande " | ||
2256 | "*Handle-typer för att göra API:t tydligare." | 2257 | "*Handle-typer för att göra API:t tydligare." | ||
2257 | 2258 | ||||
2258 | #. (itstool) path: chapter/para | 2259 | #. (itstool) path: chapter/para | ||
2259 | #: C/index-in.docbook:737 | 2260 | #: C/index-in.docbook:737 | ||
n | 2260 | #, fuzzy | n | ||
2261 | msgid "" | 2261 | msgid "" | ||
2262 | "All deprecated API was removed in <application>gtkmm</application> 3.0, " | 2262 | "All deprecated API was removed in <application>gtkmm</application> 3.0, " | ||
2263 | "though there have been new deprecations in later <application>gtkmm</" | 2263 | "though there have been new deprecations in later <application>gtkmm</" | ||
2264 | "application> 3.x versions." | 2264 | "application> 3.x versions." | ||
2265 | msgstr "" | 2265 | msgstr "" | ||
2412 | #: C/index-in.docbook:791 | 2412 | #: C/index-in.docbook:791 | ||
2413 | msgid "" | 2413 | msgid "" | ||
2414 | "Some new classes were added in <application>gtkmm</application> 4 and " | 2414 | "Some new classes were added in <application>gtkmm</application> 4 and " | ||
2415 | "<application>glibmm</application> 2.68:" | 2415 | "<application>glibmm</application> 2.68:" | ||
2416 | msgstr "" | 2416 | msgstr "" | ||
n | 2417 | "Nägra nya klasser lades till i <application>gtkmm</application> 4 och " | n | 2417 | "Några nya klasser lades till i <application>gtkmm</application> 4 och " |
2418 | "<application>glibmm</application> 2.68:" | 2418 | "<application>glibmm</application> 2.68:" | ||
2419 | 2419 | ||||
2420 | #. (itstool) path: listitem/simpara | 2420 | #. (itstool) path: listitem/simpara | ||
2421 | #: C/index-in.docbook:793 | 2421 | #: C/index-in.docbook:793 | ||
2422 | msgid "" | 2422 | msgid "" | ||
2687 | "CheckButton</classname> eller <classname>Gtk::ToggleButton</classname> med " | 2687 | "CheckButton</classname> eller <classname>Gtk::ToggleButton</classname> med " | ||
2688 | "<methodname>set_group()</methodname>." | 2688 | "<methodname>set_group()</methodname>." | ||
2689 | 2689 | ||||
2690 | #. (itstool) path: chapter/para | 2690 | #. (itstool) path: chapter/para | ||
2691 | #: C/index-in.docbook:859 | 2691 | #: C/index-in.docbook:859 | ||
n | 2692 | #, fuzzy | n | ||
2693 | msgid "" | 2692 | msgid "" | ||
2694 | "All deprecated API was removed in <application>gtkmm</application> 4.0 and " | 2693 | "All deprecated API was removed in <application>gtkmm</application> 4.0 and " | ||
2695 | "<application>glibmm</application> 2.68, though there will be new " | 2694 | "<application>glibmm</application> 2.68, though there will be new " | ||
2696 | "deprecations in future versions." | 2695 | "deprecations in future versions." | ||
2697 | msgstr "" | 2696 | msgstr "" | ||
2698 | "Alla föråldrade API:er togs bort i <application>gtkmm</application> 4.0 och " | 2697 | "Alla föråldrade API:er togs bort i <application>gtkmm</application> 4.0 och " | ||
2699 | "<application>glibmm</application> 2.68, men det kommer göras nya " | 2698 | "<application>glibmm</application> 2.68, men det kommer göras nya " | ||
n | 2700 | "föråldringar framtida versioner." | n | 2699 | "föråldringar i framtida versioner." |
2701 | 2700 | ||||
2702 | # TODO: copy paste of wiki page? | 2701 | # TODO: copy paste of wiki page? | ||
2703 | #. (itstool) path: chapter/para | 2702 | #. (itstool) path: chapter/para | ||
2704 | #: C/index-in.docbook:862 | 2703 | #: C/index-in.docbook:862 | ||
2705 | #, fuzzy | 2704 | #, fuzzy | ||
3828 | msgid "" | 3827 | msgid "" | ||
3829 | "<classname>Gtk::EntryCompletion</classname> is deprecated since " | 3828 | "<classname>Gtk::EntryCompletion</classname> is deprecated since " | ||
3830 | "<application>gtkmm</application> 4.10. There is no replacement in " | 3829 | "<application>gtkmm</application> 4.10. There is no replacement in " | ||
3831 | "<application>gtkmm</application>." | 3830 | "<application>gtkmm</application>." | ||
3832 | msgstr "" | 3831 | msgstr "" | ||
n | 3833 | "Nägra nya klasser lades till i <application>gtkmm</application> 4 och " | n | 3832 | "Några nya klasser lades till i <application>gtkmm</application> 4 och " |
3834 | "<application>glibmm</application> 2.68:" | 3833 | "<application>glibmm</application> 2.68:" | ||
3835 | 3834 | ||||
3836 | #. (itstool) path: section/para | 3835 | #. (itstool) path: section/para | ||
3837 | #: C/index-in.docbook:1385 | 3836 | #: C/index-in.docbook:1385 | ||
3838 | msgid "" | 3837 | msgid "" | ||
4840 | msgid "AspectFrame" | 4839 | msgid "AspectFrame" | ||
4841 | msgstr "AspectFrame" | 4840 | msgstr "AspectFrame" | ||
4842 | 4841 | ||||
4843 | #. (itstool) path: section/para | 4842 | #. (itstool) path: section/para | ||
4844 | #: C/index-in.docbook:1885 | 4843 | #: C/index-in.docbook:1885 | ||
n | n | 4844 | #, fuzzy | ||
4845 | msgid "" | 4845 | msgid "" | ||
4846 | "The <classname>AspectFrame</classname> widget looks like a <classname>Frame</" | 4846 | "The <classname>AspectFrame</classname> widget looks like a <classname>Frame</" | ||
4847 | "classname> widget, but it also enforces the <emphasis>aspect ratio</" | 4847 | "classname> widget, but it also enforces the <emphasis>aspect ratio</" | ||
4848 | "emphasis> (the ratio of the width to the height) of the child widget, adding " | 4848 | "emphasis> (the ratio of the width to the height) of the child widget, adding " | ||
4849 | "extra space if necessary. For instance, this would allow you to display a " | 4849 | "extra space if necessary. For instance, this would allow you to display a " | ||
4850 | "photograph without allowing the user to distort it horizontally or " | 4850 | "photograph without allowing the user to distort it horizontally or " | ||
4851 | "vertically while resizing." | 4851 | "vertically while resizing." | ||
4852 | msgstr "" | 4852 | msgstr "" | ||
4853 | "<classname>AspectFrame</classname>-komponenten ser ut som en " | 4853 | "<classname>AspectFrame</classname>-komponenten ser ut som en " | ||
n | 4854 | "<classname>Frame</classname>-komponent, men den uppräthåller även " | n | 4854 | "<classname>Frame</classname>-komponent, men den upprätthåller även " |
4855 | "<emphasis>bildförhållandet</emphasis> (kvoten mellan bredden och höjden) för " | 4855 | "<emphasis>bildförhållandet</emphasis> (kvoten mellan bredden och höjden) för " | ||
4856 | "den underordnade komponenten, och lägger till extra utrymme om nödvändigt. " | 4856 | "den underordnade komponenten, och lägger till extra utrymme om nödvändigt. " | ||
4857 | "Exempelvis skulle detta låta dig visa ett foto utan att användaren kan " | 4857 | "Exempelvis skulle detta låta dig visa ett foto utan att användaren kan " | ||
4858 | "förvränga det horisontellt eller vertikalt då storleken ändras." | 4858 | "förvränga det horisontellt eller vertikalt då storleken ändras." | ||
4859 | 4859 | ||||
4939 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | 4939 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | ||
4940 | "master/examples/book/popover\">Källkod, Popover</link>" | 4940 | "master/examples/book/popover\">Källkod, Popover</link>" | ||
4941 | 4941 | ||||
4942 | #. (itstool) path: section/title | 4942 | #. (itstool) path: section/title | ||
4943 | #: C/index-in.docbook:1934 | 4943 | #: C/index-in.docbook:1934 | ||
n | 4944 | #, fuzzy | n | ||
4945 | msgid "Multiple-item Containers" | 4944 | msgid "Multiple-item Containers" | ||
4946 | msgstr "Flerobjektsbehållare" | 4945 | msgstr "Flerobjektsbehållare" | ||
4947 | 4946 | ||||
4948 | #. (itstool) path: section/para | 4947 | #. (itstool) path: section/para | ||
4949 | #: C/index-in.docbook:1936 | 4948 | #: C/index-in.docbook:1936 | ||
4984 | "”elastiska” - de kan vanligen sträckas ut på många olika sätt. Det här är på " | 4983 | "”elastiska” - de kan vanligen sträckas ut på många olika sätt. Det här är på " | ||
4985 | "grund av systemet för <emphasis>komponentpackning</emphasis>." | 4984 | "grund av systemet för <emphasis>komponentpackning</emphasis>." | ||
4986 | 4985 | ||||
4987 | #. (itstool) path: section/para | 4986 | #. (itstool) path: section/para | ||
4988 | #: C/index-in.docbook:1953 | 4987 | #: C/index-in.docbook:1953 | ||
n | 4989 | #, fuzzy | n | ||
4990 | msgid "" | 4988 | msgid "" | ||
4991 | "Many GUI toolkits require you to precisely place widgets in a window, using " | 4989 | "Many GUI toolkits require you to precisely place widgets in a window, using " | ||
4992 | "absolute positioning, often using a visual editor. This leads to several " | 4990 | "absolute positioning, often using a visual editor. This leads to several " | ||
4993 | "problems:" | 4991 | "problems:" | ||
4994 | msgstr "" | 4992 | msgstr "" | ||
5020 | "är det också omöjligt att förutse effekterna av varje tema och " | 5018 | "är det också omöjligt att förutse effekterna av varje tema och " | ||
5021 | "fönsterhanterare." | 5019 | "fönsterhanterare." | ||
5022 | 5020 | ||||
5023 | #. (itstool) path: listitem/para | 5021 | #. (itstool) path: listitem/para | ||
5024 | #: C/index-in.docbook:1968 | 5022 | #: C/index-in.docbook:1968 | ||
n | 5025 | #, fuzzy | n | ||
5026 | msgid "" | 5023 | msgid "" | ||
5027 | "Changing the layout of a window \"on the fly\", to make some extra widgets " | 5024 | "Changing the layout of a window \"on the fly\", to make some extra widgets " | ||
5028 | "appear, for instance, is complex. It requires tedious recalculation of every " | 5025 | "appear, for instance, is complex. It requires tedious recalculation of every " | ||
5029 | "widget's position." | 5026 | "widget's position." | ||
5030 | msgstr "" | 5027 | msgstr "" | ||
5031 | "Att ändra layouten för ett fönster ”i farten”, exempelvis för att få några " | 5028 | "Att ändra layouten för ett fönster ”i farten”, exempelvis för att få några " | ||
n | 5032 | "extra komponenter att dyka upp, är komplext. Det kräver tröttsam omräkning " | n | 5029 | "extra komponenter att visas, är komplext. Det kräver tröttsam omräkning av " |
5033 | "av varje komponents position." | 5030 | "varje komponents position." | ||
5034 | 5031 | ||||
5035 | #. (itstool) path: section/para | 5032 | #. (itstool) path: section/para | ||
5036 | #: C/index-in.docbook:1974 | 5033 | #: C/index-in.docbook:1974 | ||
5037 | #, fuzzy | 5034 | #, fuzzy | ||
5038 | msgid "" | 5035 | msgid "" | ||
5083 | "<application>gtkmm</application> är behållare med en underordnad, inklusive " | 5080 | "<application>gtkmm</application> är behållare med en underordnad, inklusive " | ||
5084 | "<classname>Gtk::Window</classname>." | 5081 | "<classname>Gtk::Window</classname>." | ||
5085 | 5082 | ||||
5086 | #. (itstool) path: section/para | 5083 | #. (itstool) path: section/para | ||
5087 | #: C/index-in.docbook:1992 | 5084 | #: C/index-in.docbook:1992 | ||
n | 5088 | #, fuzzy | n | ||
5089 | msgid "" | 5085 | msgid "" | ||
5090 | "Yes, that's correct: a Window can contain at most one widget. How, then, can " | 5086 | "Yes, that's correct: a Window can contain at most one widget. How, then, can " | ||
5091 | "we use a window for anything useful? By placing a multiple-child container " | 5087 | "we use a window for anything useful? By placing a multiple-child container " | ||
5092 | "in the window. The most useful container widgets are <classname>Gtk::Grid</" | 5088 | "in the window. The most useful container widgets are <classname>Gtk::Grid</" | ||
5093 | "classname> and <classname>Gtk::Box</classname>." | 5089 | "classname> and <classname>Gtk::Box</classname>." | ||
5094 | msgstr "" | 5090 | msgstr "" | ||
5095 | "Det stämmer: ett Window kan innehålla högst en komponent. Men hur kan vi då " | 5091 | "Det stämmer: ett Window kan innehålla högst en komponent. Men hur kan vi då " | ||
5096 | "använda ett fönster för något användbart? Genom att placera en " | 5092 | "använda ett fönster för något användbart? Genom att placera en " | ||
n | 5097 | "flerbarnsbehållare i fönster. De mest användbara behållarkomponenterna är " | n | 5093 | "flerobjektsbehållare i fönstret. De mest användbara behållarkomponenterna är " |
5098 | "<classname>Gtk::Grid</classname> och <classname>Gtk::Box</classname>." | 5094 | "<classname>Gtk::Grid</classname> och <classname>Gtk::Box</classname>." | ||
5099 | 5095 | ||||
5100 | #. (itstool) path: listitem/para | 5096 | #. (itstool) path: listitem/para | ||
5101 | #: C/index-in.docbook:2003 | 5097 | #: C/index-in.docbook:2003 | ||
5102 | msgid "" | 5098 | msgid "" | ||
5138 | "verktygslådor." | 5134 | "verktygslådor." | ||
5139 | 5135 | ||||
5140 | #. (itstool) path: section/title | 5136 | #. (itstool) path: section/title | ||
5141 | #: C/index-in.docbook:2033 | 5137 | #: C/index-in.docbook:2033 | ||
5142 | msgid "An improved Hello World" | 5138 | msgid "An improved Hello World" | ||
n | 5143 | msgstr "En förbättrad Hej världen" | n | 5139 | msgstr "Ett förbättrat Hej världen" |
5144 | 5140 | ||||
5145 | #. (itstool) path: section/para | 5141 | #. (itstool) path: section/para | ||
5146 | #: C/index-in.docbook:2035 | 5142 | #: C/index-in.docbook:2035 | ||
n | 5147 | #, fuzzy | n | ||
5148 | msgid "" | 5143 | msgid "" | ||
5149 | "Let's take a look at a slightly improved <literal>helloworld</literal>, " | 5144 | "Let's take a look at a slightly improved <literal>helloworld</literal>, " | ||
5150 | "showing what we've learnt." | 5145 | "showing what we've learnt." | ||
5151 | msgstr "" | 5146 | msgstr "" | ||
5152 | "Låt oss ta en titt på ett något förbättrat <literal>helloworld</literal> som " | 5147 | "Låt oss ta en titt på ett något förbättrat <literal>helloworld</literal> som " | ||
5194 | "Försök efter att ha byggt och kört detta program att ändra storlek på " | 5189 | "Försök efter att ha byggt och kört detta program att ändra storlek på " | ||
5195 | "fönstret för att se beteendet. Pröva även leka med <methodname>set_expand()</" | 5190 | "fönstret för att se beteendet. Pröva även leka med <methodname>set_expand()</" | ||
5196 | "methodname>, <methodname>set_hexpand()</methodname>, " | 5191 | "methodname>, <methodname>set_hexpand()</methodname>, " | ||
5197 | "<methodname>set_vexpand()</methodname>, <methodname>set_halign()</" | 5192 | "<methodname>set_vexpand()</methodname>, <methodname>set_halign()</" | ||
5198 | "methodname> och <methodname>set_valign()</methodname> medan du läser " | 5193 | "methodname> och <methodname>set_valign()</methodname> medan du läser " | ||
n | 5199 | "avsnittet <link linkend=\"sec-boxes\">Boxar</link> section." | n | 5194 | "avsnittet <link linkend=\"sec-boxes\">Boxar</link>." |
5200 | 5195 | ||||
5201 | #. (itstool) path: section/title | 5196 | #. (itstool) path: section/title | ||
5202 | #: C/index-in.docbook:2059 | 5197 | #: C/index-in.docbook:2059 | ||
5203 | #, fuzzy | 5198 | #, fuzzy | ||
5204 | msgid "Boxes" | 5199 | msgid "Boxes" | ||
5318 | "<methodname>set_margin_start()</methodname> and " | 5313 | "<methodname>set_margin_start()</methodname> and " | ||
5319 | "<methodname>set_margin_end()</methodname> methods." | 5314 | "<methodname>set_margin_end()</methodname> methods." | ||
5320 | msgstr "" | 5315 | msgstr "" | ||
5321 | "Varje rad innehåller en horisontell <classname>Box</classname> med flera " | 5316 | "Varje rad innehåller en horisontell <classname>Box</classname> med flera " | ||
5322 | "knappar. Var och en av knapparna på en rad packas i <classname>Box</" | 5317 | "knappar. Var och en av knapparna på en rad packas i <classname>Box</" | ||
n | 5323 | "classname>en med samma argumen till metoderna <methodname>set_hexpand()</" | n | 5318 | "classname>en med samma argument till metoderna <methodname>set_hexpand()</" |
5324 | "methodname>, <methodname>set_halign()</methodname>, " | 5319 | "methodname>, <methodname>set_halign()</methodname>, " | ||
5325 | "<methodname>set_margin_start()</methodname> och " | 5320 | "<methodname>set_margin_start()</methodname> och " | ||
5326 | "<methodname>set_margin_end()</methodname> methods." | 5321 | "<methodname>set_margin_end()</methodname> methods." | ||
5327 | 5322 | ||||
5328 | #. (itstool) path: section/para | 5323 | #. (itstool) path: section/para | ||
5493 | "When you run this example, provide a number between 1 and 3 as a command-" | 5488 | "When you run this example, provide a number between 1 and 3 as a command-" | ||
5494 | "line option, to see different packing options in use." | 5489 | "line option, to see different packing options in use." | ||
5495 | msgstr "" | 5490 | msgstr "" | ||
5496 | "Här är källkoden för exemplet som skapade skärmbilderna ovan. Skicka när du " | 5491 | "Här är källkoden för exemplet som skapade skärmbilderna ovan. Skicka när du " | ||
5497 | "kör detta exempel med ett tal mellan 1 och 3 som en kommandoradsflagga för " | 5492 | "kör detta exempel med ett tal mellan 1 och 3 som en kommandoradsflagga för " | ||
n | 5498 | "att se olika packningsalternativ under användning." | n | 5493 | "att se då olika packningsalternativ används." |
5499 | 5494 | ||||
5500 | #. (itstool) path: section/para | 5495 | #. (itstool) path: section/para | ||
5501 | #: C/index-in.docbook:2192 | 5496 | #: C/index-in.docbook:2192 | ||
5502 | msgid "" | 5497 | msgid "" | ||
5503 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | 5498 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | ||
5512 | msgid "Grid" | 5507 | msgid "Grid" | ||
5513 | msgstr "Grid" | 5508 | msgstr "Grid" | ||
5514 | 5509 | ||||
5515 | #. (itstool) path: section/para | 5510 | #. (itstool) path: section/para | ||
5516 | #: C/index-in.docbook:2200 | 5511 | #: C/index-in.docbook:2200 | ||
n | 5517 | #, fuzzy | n | ||
5518 | msgid "" | 5512 | msgid "" | ||
5519 | "A <classname>Grid</classname> dynamically lays out child widgets in rows and " | 5513 | "A <classname>Grid</classname> dynamically lays out child widgets in rows and " | ||
5520 | "columns. The dimensions of the grid do not need to be specified in the " | 5514 | "columns. The dimensions of the grid do not need to be specified in the " | ||
5521 | "constructor." | 5515 | "constructor." | ||
5522 | msgstr "" | 5516 | msgstr "" | ||
5814 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | 5808 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | ||
5815 | "master/examples/book/assistant/\">Källkod</link>" | 5809 | "master/examples/book/assistant/\">Källkod</link>" | ||
5816 | 5810 | ||||
5817 | #. (itstool) path: section/title | 5811 | #. (itstool) path: section/title | ||
5818 | #: C/index-in.docbook:2336 | 5812 | #: C/index-in.docbook:2336 | ||
n | 5819 | #, fuzzy | n | ||
5820 | msgid "Other Multi-item Containers" | 5813 | msgid "Other Multi-item Containers" | ||
n | 5821 | msgstr "Andra flerobjektbehållare" | n | 5814 | msgstr "Andra flerobjektsbehållare" |
5822 | 5815 | ||||
5823 | #. (itstool) path: section/para | 5816 | #. (itstool) path: section/para | ||
5824 | #: C/index-in.docbook:2338 | 5817 | #: C/index-in.docbook:2338 | ||
n | 5825 | #, fuzzy | n | ||
5826 | msgid "" | 5818 | msgid "" | ||
5827 | "There are other multi-item containers. See the reference documentation for a " | 5819 | "There are other multi-item containers. See the reference documentation for a " | ||
5828 | "complete list. Here are links to some example programs that show containers, " | 5820 | "complete list. Here are links to some example programs that show containers, " | ||
5829 | "which are not mentioned elsewhere in this tutorial." | 5821 | "which are not mentioned elsewhere in this tutorial." | ||
5830 | msgstr "" | 5822 | msgstr "" | ||
n | 5831 | "Det finns andra flerobjektbehållare. Se referensdokumentationen för en " | n | 5823 | "Det finns andra flerobjektsbehållare. Se referensdokumentationen för en " |
5832 | "fullständig lista. Här är länkar till några exempelprogram som visar " | 5824 | "fullständig lista. Här är länkar till några exempelprogram som visar " | ||
5833 | "behållare som inte nämns någon annanstans i denna handledning." | 5825 | "behållare som inte nämns någon annanstans i denna handledning." | ||
5834 | 5826 | ||||
5835 | #. (itstool) path: section/para | 5827 | #. (itstool) path: section/para | ||
5836 | #: C/index-in.docbook:2344 | 5828 | #: C/index-in.docbook:2344 | ||
7136 | "<methodname>TreeViewColumn::set_cell_data_func()</methodname>, or derive a " | 7128 | "<methodname>TreeViewColumn::set_cell_data_func()</methodname>, or derive a " | ||
7137 | "custom <classname>CellRenderer</classname>. Note that (unsigned) short is " | 7129 | "custom <classname>CellRenderer</classname>. Note that (unsigned) short is " | ||
7138 | "not supported by default - You could use (unsigned) int or (unsigned) long " | 7130 | "not supported by default - You could use (unsigned) int or (unsigned) long " | ||
7139 | "as the column type instead." | 7131 | "as the column type instead." | ||
7140 | msgstr "" | 7132 | msgstr "" | ||
n | 7141 | "När denna enkla <methodname>append_column()</methodname>-överlagring använs " | n | 7133 | "När denna enkla <methodname>append_column()</methodname>-överlagring används " |
7142 | "kommer vår <classname>TreeView</classname> modelldata med en lämplig " | 7134 | "kommer vår <classname>TreeView</classname> modelldata med en lämplig " | ||
7143 | "<classname>CellRenderer</classname>. Strängar och tal visas exempelvis i en " | 7135 | "<classname>CellRenderer</classname>. Strängar och tal visas exempelvis i en " | ||
7144 | "enkel <classname>Gtk::Entry</classname>-komponent, och booleaner visas i en " | 7136 | "enkel <classname>Gtk::Entry</classname>-komponent, och booleaner visas i en " | ||
7145 | "<classname>Gtk::CheckButton</classname>. Det här är vanligen vad du behöver. " | 7137 | "<classname>Gtk::CheckButton</classname>. Det här är vanligen vad du behöver. " | ||
7146 | "För andra kolumntyper måste du antingen ansluta ett återanrop som " | 7138 | "För andra kolumntyper måste du antingen ansluta ett återanrop som " | ||
7373 | "till den specifika <classname>CellRenderer</classname> som du förväntar dig, " | 7365 | "till den specifika <classname>CellRenderer</classname> som du förväntar dig, " | ||
7374 | "så du kan använda specifikt API." | 7366 | "så du kan använda specifikt API." | ||
7375 | 7367 | ||||
7376 | #. (itstool) path: section/para | 7368 | #. (itstool) path: section/para | ||
7377 | #: C/index-in.docbook:2965 | 7369 | #: C/index-in.docbook:2965 | ||
n | 7378 | #, fuzzy | n | ||
7379 | msgid "" | 7370 | msgid "" | ||
7380 | "For instance, for a CellRendererText, you would set the cell's " | 7371 | "For instance, for a CellRendererText, you would set the cell's " | ||
7381 | "<emphasis>editable</emphasis> property to true, like so:" | 7372 | "<emphasis>editable</emphasis> property to true, like so:" | ||
7382 | msgstr "" | 7373 | msgstr "" | ||
7383 | "För en CellRendererText skulle du exempelvis ställa in cellens " | 7374 | "För en CellRendererText skulle du exempelvis ställa in cellens " | ||
7384 | "<emphasis>editable</emphasis>-egenskap till true, så här:" | 7375 | "<emphasis>editable</emphasis>-egenskap till true, så här:" | ||
7385 | 7376 | ||||
7386 | #. (itstool) path: section/programlisting | 7377 | #. (itstool) path: section/programlisting | ||
7387 | #: C/index-in.docbook:2968 | 7378 | #: C/index-in.docbook:2968 | ||
7388 | #, fuzzy, no-wrap | 7379 | #, fuzzy, no-wrap | ||
n | n | 7380 | #| msgid "cell->property_editable() = true;" | ||
7389 | msgid "<code>cell->property_editable() = true;</code>" | 7381 | msgid "<code>cell->property_editable() = true;</code>" | ||
7390 | msgstr "cell->property_editable() = true;" | 7382 | msgstr "cell->property_editable() = true;" | ||
7391 | 7383 | ||||
7392 | #. (itstool) path: section/para | 7384 | #. (itstool) path: section/para | ||
7393 | #: C/index-in.docbook:2969 | 7385 | #: C/index-in.docbook:2969 | ||
n | 7394 | #, fuzzy | n | ||
7395 | msgid "" | 7386 | msgid "" | ||
7396 | "For a CellRendererToggle, you would set the <emphasis>activatable</emphasis> " | 7387 | "For a CellRendererToggle, you would set the <emphasis>activatable</emphasis> " | ||
7397 | "property instead." | 7388 | "property instead." | ||
7398 | msgstr "" | 7389 | msgstr "" | ||
7399 | "För en CellRendererToggle skulle du i stället ställa in egenskapen " | 7390 | "För en CellRendererToggle skulle du i stället ställa in egenskapen " | ||
8084 | msgid "" | 8075 | msgid "" | ||
8085 | "This is demonstrated in the Popup Context Menu example. In that example a " | 8076 | "This is demonstrated in the Popup Context Menu example. In that example a " | ||
8086 | "derived <classname>TreeView</classname> is used, but that's not necessary." | 8077 | "derived <classname>TreeView</classname> is used, but that's not necessary." | ||
8087 | msgstr "" | 8078 | msgstr "" | ||
8088 | "Detta demonstreras i exemplet poppuppsnabbvalsmeny. I det exemplet används " | 8079 | "Detta demonstreras i exemplet poppuppsnabbvalsmeny. I det exemplet används " | ||
n | 8089 | "en hörledd <classname>TreeView</classname>, men det är inte nödvändigt." | n | 8080 | "en härledd <classname>TreeView</classname>, men det är inte nödvändigt." |
8090 | 8081 | ||||
8091 | #. (itstool) path: section/title | 8082 | #. (itstool) path: section/title | ||
8092 | #: C/index-in.docbook:3242 C/index-in.docbook:3943 C/index-in.docbook:4245 | 8083 | #: C/index-in.docbook:3242 C/index-in.docbook:3943 C/index-in.docbook:4245 | ||
8093 | #: C/index-in.docbook:5573 C/index-in.docbook:5965 | 8084 | #: C/index-in.docbook:5573 C/index-in.docbook:5965 | ||
8094 | msgid "Examples" | 8085 | msgid "Examples" | ||
8275 | "<link linkend=\"sec-treeview-contextmenu\">TreeView - Poppuppsnabbvalsmeny</" | 8266 | "<link linkend=\"sec-treeview-contextmenu\">TreeView - Poppuppsnabbvalsmeny</" | ||
8276 | "link>." | 8267 | "link>." | ||
8277 | 8268 | ||||
8278 | #. (itstool) path: figure/title | 8269 | #. (itstool) path: figure/title | ||
8279 | #: C/index-in.docbook:3346 | 8270 | #: C/index-in.docbook:3346 | ||
n | 8280 | #, fuzzy | n | ||
8281 | msgid "TreeView - Popup Context Menu" | 8271 | msgid "TreeView - Popup Context Menu" | ||
8282 | msgstr "TreeView - Poppuppsnabbvalsmeny" | 8272 | msgstr "TreeView - Poppuppsnabbvalsmeny" | ||
8283 | 8273 | ||||
8284 | #. (itstool) path: imageobject/imagedata | 8274 | #. (itstool) path: imageobject/imagedata | ||
8285 | #. This is a reference to an external file such as an image or video. When | 8275 | #. This is a reference to an external file such as an image or video. When | ||
8856 | "Efter att ha lagt till rader till denna modell bör du tillhandahålla " | 8846 | "Efter att ha lagt till rader till denna modell bör du tillhandahålla " | ||
8857 | "modellen till <classname>ComboBox</classname>en med metoden " | 8847 | "modellen till <classname>ComboBox</classname>en med metoden " | ||
8858 | "<methodname>set_model()</methodname>. Använd sedan metoderna " | 8848 | "<methodname>set_model()</methodname>. Använd sedan metoderna " | ||
8859 | "<methodname>pack_start()</methodname> eller <methodname>pack_end()</" | 8849 | "<methodname>pack_start()</methodname> eller <methodname>pack_end()</" | ||
8860 | "methodname> för att ange vilka kolumner som kommer visas i vår ComboBox. Som " | 8850 | "methodname> för att ange vilka kolumner som kommer visas i vår ComboBox. Som " | ||
n | 8861 | "med TreeView kan du antingen använda standardcellrenderere genom att skicka " | n | 8851 | "med TreeView kan du antingen använda standardcellrenderare genom att skicka " |
8862 | "<classname>TreeModelColumn</classname> till packmetoderna, eller så kan du " | 8852 | "<classname>TreeModelColumn</classname> till packmetoderna, eller så kan du " | ||
8863 | "instansiera en specifik <classname>CellRenderer</classname> och ange en viss " | 8853 | "instansiera en specifik <classname>CellRenderer</classname> och ange en viss " | ||
8864 | "mappning med antingen <methodname>add_attribute()</methodname> eller " | 8854 | "mappning med antingen <methodname>add_attribute()</methodname> eller " | ||
8865 | "<methodname>set_cell_data_func()</methodname>. Observera att dessa metoder " | 8855 | "<methodname>set_cell_data_func()</methodname>. Observera att dessa metoder " | ||
8866 | "finns i basklassen <classname>CellLayout</classname>." | 8856 | "finns i basklassen <classname>CellLayout</classname>." | ||
10513 | "display some adjustable part of a larger area, such as the " | 10503 | "display some adjustable part of a larger area, such as the " | ||
10514 | "<classname>Viewport</classname> widget. These widgets have <classname>Gtk::" | 10504 | "<classname>Viewport</classname> widget. These widgets have <classname>Gtk::" | ||
10515 | "Adjustment</classname> objects that express this common part of their API." | 10505 | "Adjustment</classname> objects that express this common part of their API." | ||
10516 | msgstr "" | 10506 | msgstr "" | ||
10517 | "<application>gtkmm</application> har olika komponenter som kan visuellt " | 10507 | "<application>gtkmm</application> har olika komponenter som kan visuellt " | ||
n | 10518 | "justeras med musern eller tangentbordet, som <classname>Range</classname>-" | n | 10508 | "justeras med musen eller tangentbordet, som <classname>Range</classname>-" |
10519 | "komponenterna (beskrivna i avsnittet <link linkend=\"chapter-range-" | 10509 | "komponenterna (beskrivna i avsnittet <link linkend=\"chapter-range-" | ||
10520 | "widgets\">Range-komponenter</link>). Det finns också några komponenter som " | 10510 | "widgets\">Range-komponenter</link>). Det finns också några komponenter som " | ||
10521 | "visar en justerbar del av ett större område, som <classname>Viewport</" | 10511 | "visar en justerbar del av ett större område, som <classname>Viewport</" | ||
10522 | "classname>-komponenten. Dessa komponenter har <classname>Gtk::Adjustment</" | 10512 | "classname>-komponenten. Dessa komponenter har <classname>Gtk::Adjustment</" | ||
10523 | "classname>-objekt som uttrycker denna gemensamma del av deras API." | 10513 | "classname>-objekt som uttrycker denna gemensamma del av deras API." | ||
10601 | "<parameter>upper</parameter> anger det möjliga värdeintervallet som " | 10591 | "<parameter>upper</parameter> anger det möjliga värdeintervallet som " | ||
10602 | "justeringen kan hålla. Argumentet <parameter>step_increment</parameter> " | 10592 | "justeringen kan hålla. Argumentet <parameter>step_increment</parameter> " | ||
10603 | "anger den mindre av de två ökningar som användaren kan ändra värdet med, " | 10593 | "anger den mindre av de två ökningar som användaren kan ändra värdet med, " | ||
10604 | "medan <parameter>page_increment</parameter> är den större. Argumentet " | 10594 | "medan <parameter>page_increment</parameter> är den större. Argumentet " | ||
10605 | "<parameter>page_size</parameter> motsvarar vanligen på något vis det synliga " | 10595 | "<parameter>page_size</parameter> motsvarar vanligen på något vis det synliga " | ||
n | 10606 | "området för en panoreringskomponen. Argumentet <parameter>upper</parameter> " | n | 10596 | "området för en panoreringskomponent. Argumentet <parameter>upper</parameter> " |
10607 | "används för att representera koordinaten längst ner eller till höger i en " | 10597 | "används för att representera koordinaten längst ner eller till höger i en " | ||
10608 | "panoreringskomponents underordnade." | 10598 | "panoreringskomponents underordnade." | ||
10609 | 10599 | ||||
10610 | #. (itstool) path: section/title | 10600 | #. (itstool) path: section/title | ||
10611 | #: C/index-in.docbook:4355 | 10601 | #: C/index-in.docbook:4355 | ||
10620 | "The adjustable widgets can be roughly divided into those which use and " | 10610 | "The adjustable widgets can be roughly divided into those which use and " | ||
10621 | "require specific units for these values, and those which treat them as " | 10611 | "require specific units for these values, and those which treat them as " | ||
10622 | "arbitrary numbers." | 10612 | "arbitrary numbers." | ||
10623 | msgstr "" | 10613 | msgstr "" | ||
10624 | "De justerbara komponenterna kan i stort delas upp i de som använder och " | 10614 | "De justerbara komponenterna kan i stort delas upp i de som använder och " | ||
n | 10625 | "kräver specifila enheter för dessa värden, och de som behandlar dem som " | n | 10615 | "kräver specifika enheter för dessa värden, och de som behandlar dem som " |
10626 | "godtyckliga tal." | 10616 | "godtyckliga tal." | ||
10627 | 10617 | ||||
10628 | #. (itstool) path: section/para | 10618 | #. (itstool) path: section/para | ||
10629 | #: C/index-in.docbook:4362 | 10619 | #: C/index-in.docbook:4362 | ||
10630 | #, fuzzy | 10620 | #, fuzzy | ||
11485 | msgid "Cairo and Pango" | 11475 | msgid "Cairo and Pango" | ||
11486 | msgstr "Cairo och Pango" | 11476 | msgstr "Cairo och Pango" | ||
11487 | 11477 | ||||
11488 | #. (itstool) path: note/para | 11478 | #. (itstool) path: note/para | ||
11489 | #: C/index-in.docbook:4707 | 11479 | #: C/index-in.docbook:4707 | ||
n | 11490 | #, fuzzy | n | ||
11491 | msgid "" | 11480 | msgid "" | ||
11492 | "Although Cairo can render text, it's not meant to be a replacement for " | 11481 | "Although Cairo can render text, it's not meant to be a replacement for " | ||
11493 | "Pango. Pango is a better choice if you need to perform more advanced text " | 11482 | "Pango. Pango is a better choice if you need to perform more advanced text " | ||
11494 | "rendering such as wrapping or ellipsizing text. Drawing text with Cairo " | 11483 | "rendering such as wrapping or ellipsizing text. Drawing text with Cairo " | ||
11495 | "should only be done if the text is part of a graphic." | 11484 | "should only be done if the text is part of a graphic." | ||
11622 | "för att skapa ett <classname>Cairo::Context</classname>-objekt. De sista två " | 11611 | "för att skapa ett <classname>Cairo::Context</classname>-objekt. De sista två " | ||
11623 | "radera ändrar kontextens grafiktillstånd." | 11612 | "radera ändrar kontextens grafiktillstånd." | ||
11624 | 11613 | ||||
11625 | #. (itstool) path: section/para | 11614 | #. (itstool) path: section/para | ||
11626 | #: C/index-in.docbook:4761 | 11615 | #: C/index-in.docbook:4761 | ||
n | 11627 | #, fuzzy | n | ||
11628 | msgid "" | 11616 | msgid "" | ||
11629 | "There are a number of graphics state variables that can be set for a Cairo " | 11617 | "There are a number of graphics state variables that can be set for a Cairo " | ||
11630 | "context. The most common context attributes are color (using " | 11618 | "context. The most common context attributes are color (using " | ||
11631 | "<methodname>set_source_rgb()</methodname> or <methodname>set_source_rgba()</" | 11619 | "<methodname>set_source_rgb()</methodname> or <methodname>set_source_rgba()</" | ||
11632 | "methodname> for translucent colors), line width (using " | 11620 | "methodname> for translucent colors), line width (using " | ||
11641 | "cairographics.org/cairomm/\">cairomm</link> API documentation." | 11629 | "cairographics.org/cairomm/\">cairomm</link> API documentation." | ||
11642 | msgstr "" | 11630 | msgstr "" | ||
11643 | "Det finns ett antal grafiktillståndsvariabler som kan ställas in för en " | 11631 | "Det finns ett antal grafiktillståndsvariabler som kan ställas in för en " | ||
11644 | "Cairo-kontext. De vanligaste kontextattributen är färg (med " | 11632 | "Cairo-kontext. De vanligaste kontextattributen är färg (med " | ||
11645 | "<methodname>set_source_rgb()</methodname> eller " | 11633 | "<methodname>set_source_rgb()</methodname> eller " | ||
n | 11646 | "<methodname>set_source_rgba()</methodname> för genomskinliga färge), " | n | 11634 | "<methodname>set_source_rgba()</methodname> för genomskinliga färger), " |
11647 | "linjebredd (med <methodname>set_line_width()</methodname>), " | 11635 | "linjebredd (med <methodname>set_line_width()</methodname>), " | ||
11648 | "linjestreckningsmönster (med <methodname>set_dash()</methodname>), stil på " | 11636 | "linjestreckningsmönster (med <methodname>set_dash()</methodname>), stil på " | ||
11649 | "linjeände (med <methodname>set_line_cap()</methodname>), " | 11637 | "linjeände (med <methodname>set_line_cap()</methodname>), " | ||
11650 | "linjesammankopplingsstil (med <methodname>set_line_join()</methodname>) och " | 11638 | "linjesammankopplingsstil (med <methodname>set_line_join()</methodname>) och " | ||
11651 | "typsnittsstilar (med <methodname>set_font_size()</methodname>, " | 11639 | "typsnittsstilar (med <methodname>set_font_size()</methodname>, " | ||
11652 | "<methodname>set_font_face()</methodname> med flera). Det finns även många " | 11640 | "<methodname>set_font_face()</methodname> med flera). Det finns även många " | ||
11653 | "andra inställningar, såsom transformationsmatriser, fyllnadsregler, huruvida " | 11641 | "andra inställningar, såsom transformationsmatriser, fyllnadsregler, huruvida " | ||
11654 | "kantutjämning ska utföras med mera. För vidare information kan du se API-" | 11642 | "kantutjämning ska utföras med mera. För vidare information kan du se API-" | ||
n | 11655 | "documentationen för <link xlink:href=\"http://www.cairographics.org/cairomm/" | n | 11643 | "dokumentationen för <link xlink:href=\"http://www.cairographics.org/cairomm/" |
11656 | "\">cairomm</link>." | 11644 | "\">cairomm</link>." | ||
11657 | 11645 | ||||
11658 | #. (itstool) path: tip/para | 11646 | #. (itstool) path: tip/para | ||
11659 | #: C/index-in.docbook:4793 | 11647 | #: C/index-in.docbook:4793 | ||
n | 11660 | #, fuzzy | n | ||
11661 | msgid "" | 11648 | msgid "" | ||
11662 | "It is good practice to put all modifications to the graphics state between " | 11649 | "It is good practice to put all modifications to the graphics state between " | ||
11663 | "<methodname>save()</methodname>/<methodname>restore()</methodname> function " | 11650 | "<methodname>save()</methodname>/<methodname>restore()</methodname> function " | ||
11664 | "calls. For example, if you have a function that takes a <classname>Cairo::" | 11651 | "calls. For example, if you have a function that takes a <classname>Cairo::" | ||
11665 | "Context</classname> reference as an argument, you might implement it as " | 11652 | "Context</classname> reference as an argument, you might implement it as " | ||
11672 | "implementerar den som följande:" | 11659 | "implementerar den som följande:" | ||
11673 | 11660 | ||||
11674 | #. (itstool) path: tip/programlisting | 11661 | #. (itstool) path: tip/programlisting | ||
11675 | #: C/index-in.docbook:4799 | 11662 | #: C/index-in.docbook:4799 | ||
11676 | #, fuzzy, no-wrap | 11663 | #, fuzzy, no-wrap | ||
n | n | 11664 | #| msgid "" | ||
11665 | #| "void doSomething(const Cairo::RefPtr<Cairo::Context>& context, int | ||||
> | x)\n" | ||||
11666 | #| "{\n" | ||||
11667 | #| " context->save();\n" | ||||
11668 | #| " // change graphics state\n" | ||||
11669 | #| " // perform drawing operations\n" | ||||
11670 | #| " context->restore();\n" | ||||
11671 | #| "}" | ||||
11677 | msgid "" | 11672 | msgid "" | ||
11678 | "<code>void doSomething(const Cairo::RefPtr<Cairo::Context>& context, | 11673 | "<code>void doSomething(const Cairo::RefPtr<Cairo::Context>& context, | ||
> | int x)\n" | > | int x)\n" | ||
11679 | "{\n" | 11674 | "{\n" | ||
11680 | " context->save();\n" | 11675 | " context->save();\n" | ||
11681 | " // change graphics state\n" | 11676 | " // change graphics state\n" | ||
11712 | "Aktuellt tillstånd för en <classname>Cairo::Context</classname> kan sparas " | 11707 | "Aktuellt tillstånd för en <classname>Cairo::Context</classname> kan sparas " | ||
11713 | "till en intern stack med sparade tillstånd och sedan återställas till " | 11708 | "till en intern stack med sparade tillstånd och sedan återställas till " | ||
11714 | "tillståndet den var i när du sparade den. För att göra detta använder du " | 11709 | "tillståndet den var i när du sparade den. För att göra detta använder du " | ||
11715 | "metoderna <methodname>save()</methodname> och <methodname>restore()</" | 11710 | "metoderna <methodname>save()</methodname> och <methodname>restore()</" | ||
11716 | "methodname>. Detta kan vara användbart om du tillfälligt behöver ändra " | 11711 | "methodname>. Detta kan vara användbart om du tillfälligt behöver ändra " | ||
n | 11717 | "linjebredden och färgen (eller någonn annan grafikinställning) för att rita " | n | 11712 | "linjebredden och färgen (eller någon annan grafikinställning) för att rita " |
11718 | "något och sedan återgå till de tidigare inställningarna. I denna situation " | 11713 | "något och sedan återgå till de tidigare inställningarna. I denna situation " | ||
11719 | "bör du anropa <methodname>Cairo::Context::save()</methodname>, ändra " | 11714 | "bör du anropa <methodname>Cairo::Context::save()</methodname>, ändra " | ||
11720 | "grafikinställningarna, rita linjerna, och sedan anropa <methodname>Cairo::" | 11715 | "grafikinställningarna, rita linjerna, och sedan anropa <methodname>Cairo::" | ||
11721 | "Context::restore()</methodname> för att återställa det ursprungliga " | 11716 | "Context::restore()</methodname> för att återställa det ursprungliga " | ||
11722 | "grafiktillståndet. Flera anrop till <methodname>save()</methodname> och " | 11717 | "grafiktillståndet. Flera anrop till <methodname>save()</methodname> och " | ||
11724 | "<methodname>restore()</methodname> återställer tillståndet från den " | 11719 | "<methodname>restore()</methodname> återställer tillståndet från den " | ||
11725 | "matchande <methodname>save()</methodname> i paret. <_:tip-1/>" | 11720 | "matchande <methodname>save()</methodname> i paret. <_:tip-1/>" | ||
11726 | 11721 | ||||
11727 | #. (itstool) path: section/para | 11722 | #. (itstool) path: section/para | ||
11728 | #: C/index-in.docbook:4808 | 11723 | #: C/index-in.docbook:4808 | ||
n | 11729 | #, fuzzy | n | ||
11730 | msgid "" | 11724 | msgid "" | ||
11731 | "The draw function that you set with a call to <methodname>set_draw_func()</" | 11725 | "The draw function that you set with a call to <methodname>set_draw_func()</" | ||
11732 | "methodname> is called with a Cairo context that you shall use for drawing in " | 11726 | "methodname> is called with a Cairo context that you shall use for drawing in " | ||
11733 | "the <classname>Gtk::DrawingArea</classname> widget. It is not necessary to " | 11727 | "the <classname>Gtk::DrawingArea</classname> widget. It is not necessary to " | ||
11734 | "save and restore this Cairo context in the draw function." | 11728 | "save and restore this Cairo context in the draw function." | ||
11758 | "or some other mapping that works for your application. This can be done with " | 11752 | "or some other mapping that works for your application. This can be done with " | ||
11759 | "the <methodname>Cairo::Context::scale()</methodname> function." | 11753 | "the <methodname>Cairo::Context::scale()</methodname> function." | ||
11760 | msgstr "" | 11754 | msgstr "" | ||
11761 | "Eftersom Cairo-grafikbiblioteket skrivits med stöd för flera utmatningsmål " | 11755 | "Eftersom Cairo-grafikbiblioteket skrivits med stöd för flera utmatningsmål " | ||
11762 | "(X-fönstersystemet, PNG-bilder, OpenGL o.s.v.), så görs skillnad mellan " | 11756 | "(X-fönstersystemet, PNG-bilder, OpenGL o.s.v.), så görs skillnad mellan " | ||
n | 11763 | "koordinater i användar- och enhetsrymedn. Mappningen mellan dessa två " | n | 11757 | "koordinater i användar- och enhetsrymden. Mappningen mellan dessa två " |
11764 | "koordinatsystem är som standard ett-till-ett så att heltalsvärden grovt " | 11758 | "koordinatsystem är som standard ett-till-ett så att heltalsvärden grovt " | ||
11765 | "motsvarar bildpunkter på skärmen, men denna inställning kan justeras om så " | 11759 | "motsvarar bildpunkter på skärmen, men denna inställning kan justeras om så " | ||
11766 | "önskas. Ibland kan det vara användbart att skala koordinaterna så att hela " | 11760 | "önskas. Ibland kan det vara användbart att skala koordinaterna så att hela " | ||
11767 | "bredden och höjden för ett fönster båda har intervallet 0 till 1 " | 11761 | "bredden och höjden för ett fönster båda har intervallet 0 till 1 " | ||
11768 | "(”enhetskvadraten”) eller någon annan mappning som fungerar för ditt " | 11762 | "(”enhetskvadraten”) eller någon annan mappning som fungerar för ditt " | ||
11769 | "program. Detta kan göras med funktionen <methodname>Cairo::Context::scale()</" | 11763 | "program. Detta kan göras med funktionen <methodname>Cairo::Context::scale()</" | ||
11770 | "methodname>." | 11764 | "methodname>." | ||
11771 | 11765 | ||||
11772 | #. (itstool) path: section/para | 11766 | #. (itstool) path: section/para | ||
11773 | #: C/index-in.docbook:4817 | 11767 | #: C/index-in.docbook:4817 | ||
n | 11774 | #, fuzzy | n | ||
11775 | msgid "" | 11768 | msgid "" | ||
11776 | "Now that we understand the basics of the Cairo graphics library, we're " | 11769 | "Now that we understand the basics of the Cairo graphics library, we're " | ||
11777 | "almost ready to start drawing. We'll start with the simplest of drawing " | 11770 | "almost ready to start drawing. We'll start with the simplest of drawing " | ||
11778 | "elements: the straight line. But first you need to know a little bit about " | 11771 | "elements: the straight line. But first you need to know a little bit about " | ||
11779 | "Cairo's coordinate system. The origin of the Cairo coordinate system is " | 11772 | "Cairo's coordinate system. The origin of the Cairo coordinate system is " | ||
11780 | "located in the upper-left corner of the window with positive x values to the " | 11773 | "located in the upper-left corner of the window with positive x values to the " | ||
11781 | "right and positive y values going down. <_:tip-1/>" | 11774 | "right and positive y values going down. <_:tip-1/>" | ||
11782 | msgstr "" | 11775 | msgstr "" | ||
11783 | "Nu då vi förstå grunderna hos Cairo-grafikbiblioteket är vi nästan klara att " | 11776 | "Nu då vi förstå grunderna hos Cairo-grafikbiblioteket är vi nästan klara att " | ||
11784 | "börja rita. Vi börjar med det enklaste av ritelement: den raka linjen. Men " | 11777 | "börja rita. Vi börjar med det enklaste av ritelement: den raka linjen. Men " | ||
n | 11785 | "först behöver de veta lite om Cairos koordinatsystem. Origo för Cairos " | n | 11778 | "först behöver du känna till lite om Cairos koordinatsystem. Origo för Cairos " |
11786 | "koordinatsystem finns i fönstrets övre vänstra hörn med positiva x-värden " | 11779 | "koordinatsystem finns i fönstrets övre vänstra hörn med positiva x-värden " | ||
n | 11787 | "till höger och positive y-värden nedåt. <_:tip-1/>" | n | 11780 | "till höger och positiva y-värden nedåt. <_:tip-1/>" |
11788 | 11781 | ||||
11789 | #. (itstool) path: section/para | 11782 | #. (itstool) path: section/para | ||
11790 | #: C/index-in.docbook:4841 | 11783 | #: C/index-in.docbook:4841 | ||
11791 | #, fuzzy | 11784 | #, fuzzy | ||
11792 | msgid "" | 11785 | msgid "" | ||
11819 | "<methodname>stroke()</methodname> which will stroke the current path with " | 11812 | "<methodname>stroke()</methodname> which will stroke the current path with " | ||
11820 | "the line width and style specified in your <classname>Cairo::Context</" | 11813 | "the line width and style specified in your <classname>Cairo::Context</" | ||
11821 | "classname> object. After stroking, the current path will be cleared so that " | 11814 | "classname> object. After stroking, the current path will be cleared so that " | ||
11822 | "you can start on your next path." | 11815 | "you can start on your next path." | ||
11823 | msgstr "" | 11816 | msgstr "" | ||
n | 11824 | "Efter du slutat skapa din bana har du fortfarande inte ritat något som är " | n | 11817 | "Efter att du slutat skapa din bana har du fortfarande inte ritat något som " |
11825 | "synligt. För att göra banan synlig måste du använda banan " | 11818 | "är synligt. För att göra banan synlig måste du använda funktionen " | ||
11826 | "<methodname>stroke()</methodname> som kommer stryka den aktuella banan med " | 11819 | "<methodname>stroke()</methodname> som kommer stryka den aktuella banan med " | ||
11827 | "linjebredden och stilen som angivits i ditt <classname>Cairo::Context</" | 11820 | "linjebredden och stilen som angivits i ditt <classname>Cairo::Context</" | ||
11828 | "classname>-objekt. Efter att hu strukit kommer den aktuella banan rensas så " | 11821 | "classname>-objekt. Efter att hu strukit kommer den aktuella banan rensas så " | ||
11829 | "du kan börja på din nästa bana." | 11822 | "du kan börja på din nästa bana." | ||
11830 | 11823 | ||||
11893 | "functions <methodname>move_to()</methodname> and <methodname>line_to()</" | 11886 | "functions <methodname>move_to()</methodname> and <methodname>line_to()</" | ||
11894 | "methodname>, and then stroked this path with <methodname>stroke()</" | 11887 | "methodname>, and then stroked this path with <methodname>stroke()</" | ||
11895 | "methodname>." | 11888 | "methodname>." | ||
11896 | msgstr "" | 11889 | msgstr "" | ||
11897 | "Detta program innehåller en ensam klass, <classname>MyArea</classname>, som " | 11890 | "Detta program innehåller en ensam klass, <classname>MyArea</classname>, som " | ||
n | 11898 | "är en underkalss till <classname>Gtk::DrawingArea</classname> och innehåller " | n | 11891 | "är en underklass till <classname>Gtk::DrawingArea</classname> och innehåller " |
11899 | "en <methodname>on_draw()</methodname>-medlemsfunktion. Denna funktion blir " | 11892 | "en <methodname>on_draw()</methodname>-medlemsfunktion. Denna funktion blir " | ||
11900 | "ritfunktionen av ett anrop till <methodname>set_draw_func()</methodname> i " | 11893 | "ritfunktionen av ett anrop till <methodname>set_draw_func()</methodname> i " | ||
11901 | "<classname>MyArea</classname>s konstruktor. <methodname>on_draw()</" | 11894 | "<classname>MyArea</classname>s konstruktor. <methodname>on_draw()</" | ||
11902 | "methodname> anropas sedan närhelst bilden i ritytan behöver ritas om. Den " | 11895 | "methodname> anropas sedan närhelst bilden i ritytan behöver ritas om. Den " | ||
11903 | "skickas en <classname>Cairo::RefPtr</classname>-pekare till en " | 11896 | "skickas en <classname>Cairo::RefPtr</classname>-pekare till en " | ||
11940 | msgstr "" | 11933 | msgstr "" | ||
11941 | "Utöver att rita enkla raka linjer så finns det ett antal saker som du kan " | 11934 | "Utöver att rita enkla raka linjer så finns det ett antal saker som du kan " | ||
11942 | "anpassa med en linje. Du har redan sett exempel på att ställa in en linje " | 11935 | "anpassa med en linje. Du har redan sett exempel på att ställa in en linje " | ||
11943 | "färg och bredd, men det finns även annat." | 11936 | "färg och bredd, men det finns även annat." | ||
11944 | 11937 | ||||
n | n | 11938 | # TODO: are show*n* | ||
11945 | #. (itstool) path: section/para | 11939 | #. (itstool) path: section/para | ||
11946 | #: C/index-in.docbook:4914 | 11940 | #: C/index-in.docbook:4914 | ||
11947 | #, fuzzy | 11941 | #, fuzzy | ||
11948 | msgid "" | 11942 | msgid "" | ||
11949 | "If you've drawn a series of lines that form a path, you may want them to " | 11943 | "If you've drawn a series of lines that form a path, you may want them to " | ||
11954 | "dem på ett visst sätt. Cairo erbjuder tre olika sätt att koppla samman " | 11948 | "dem på ett visst sätt. Cairo erbjuder tre olika sätt att koppla samman " | ||
11955 | "linjer: Miter, Bevel, och Round. Dessa visas nedan:" | 11949 | "linjer: Miter, Bevel, och Round. Dessa visas nedan:" | ||
11956 | 11950 | ||||
11957 | #. (itstool) path: figure/title | 11951 | #. (itstool) path: figure/title | ||
11958 | #: C/index-in.docbook:4921 | 11952 | #: C/index-in.docbook:4921 | ||
n | 11959 | #, fuzzy | n | ||
11960 | msgid "Different join types in Cairo" | 11953 | msgid "Different join types in Cairo" | ||
11961 | msgstr "Olika sammankopplingstyper i Cairo" | 11954 | msgstr "Olika sammankopplingstyper i Cairo" | ||
11962 | 11955 | ||||
11963 | #. (itstool) path: imageobject/imagedata | 11956 | #. (itstool) path: imageobject/imagedata | ||
11964 | #. This is a reference to an external file such as an image or video. When | 11957 | #. This is a reference to an external file such as an image or video. When | ||
11972 | msgstr "" | 11965 | msgstr "" | ||
11973 | "external ref='figures/cairo_joins.png' md5='1b1e2a28e976039f1e4a0aa523ac40fb'" | 11966 | "external ref='figures/cairo_joins.png' md5='1b1e2a28e976039f1e4a0aa523ac40fb'" | ||
11974 | 11967 | ||||
11975 | #. (itstool) path: section/para | 11968 | #. (itstool) path: section/para | ||
11976 | #: C/index-in.docbook:4926 | 11969 | #: C/index-in.docbook:4926 | ||
n | 11977 | #, fuzzy | n | ||
11978 | msgid "" | 11970 | msgid "" | ||
11979 | "The line join style is set using the function <methodname>Cairo::Context::" | 11971 | "The line join style is set using the function <methodname>Cairo::Context::" | ||
11980 | "set_line_join()</methodname>." | 11972 | "set_line_join()</methodname>." | ||
11981 | msgstr "" | 11973 | msgstr "" | ||
11982 | "Linjesammankopplingsstilen ställs in med funktionen <methodname>Cairo::" | 11974 | "Linjesammankopplingsstilen ställs in med funktionen <methodname>Cairo::" | ||
12099 | "best explained using an example, so let's dive in." | 12091 | "best explained using an example, so let's dive in." | ||
12100 | msgstr "" | 12092 | msgstr "" | ||
12101 | "Utöver att rita raka linjer låter Cairo dig lätt rita krökta linjer " | 12093 | "Utöver att rita raka linjer låter Cairo dig lätt rita krökta linjer " | ||
12102 | "(tekniskt sett en kubisk Bézier-spline) med funktionerna <methodname>Cairo::" | 12094 | "(tekniskt sett en kubisk Bézier-spline) med funktionerna <methodname>Cairo::" | ||
12103 | "Context::curve_to()</methodname> och <methodname>Cairo::Context::" | 12095 | "Context::curve_to()</methodname> och <methodname>Cairo::Context::" | ||
n | 12104 | "rel_curve_to()</methodname>. Dessa funktioner tar koordinates för en " | n | 12096 | "rel_curve_to()</methodname>. Dessa funktioner tar koordinater för en " |
12105 | "målpunkt såväl som koordinater för två ”kontroll”-punkter. Detta förklaras " | 12097 | "målpunkt såväl som koordinater för två ”kontroll”-punkter. Detta förklaras " | ||
12106 | "bäst med ett exempel, så nu kör vi." | 12098 | "bäst med ett exempel, så nu kör vi." | ||
12107 | 12099 | ||||
12108 | #. (itstool) path: section/para | 12100 | #. (itstool) path: section/para | ||
12109 | #: C/index-in.docbook:4992 | 12101 | #: C/index-in.docbook:4992 | ||
12110 | #, fuzzy | 12102 | #, fuzzy | ||
12111 | msgid "" | 12103 | msgid "" | ||
12112 | "This simple application draws a curve with Cairo and displays the control " | 12104 | "This simple application draws a curve with Cairo and displays the control " | ||
12113 | "points for each end of the curve." | 12105 | "points for each end of the curve." | ||
12114 | msgstr "" | 12106 | msgstr "" | ||
n | 12115 | "Detta enkla program ritar en kurva med Cairo och visa kontrollpunkterna var " | n | 12107 | "Detta enkla program ritar en kurva med Cairo och visar kontrollpunkterna för " |
12116 | "varje ände av kurvan." | 12108 | "varje ände av kurvan." | ||
12117 | 12109 | ||||
12118 | #. (itstool) path: figure/title | 12110 | #. (itstool) path: figure/title | ||
12119 | #: C/index-in.docbook:4997 | 12111 | #: C/index-in.docbook:4997 | ||
12120 | #, fuzzy | 12112 | #, fuzzy | ||
12150 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | 12142 | "<link xlink:href=\"https://gitlab.gnome.org/GNOME/gtkmm-documentation/tree/" | ||
12151 | "master/examples/book/drawingarea/curve\">Källkod</link>" | 12143 | "master/examples/book/drawingarea/curve\">Källkod</link>" | ||
12152 | 12144 | ||||
12153 | #. (itstool) path: section/para | 12145 | #. (itstool) path: section/para | ||
12154 | #: C/index-in.docbook:5004 | 12146 | #: C/index-in.docbook:5004 | ||
n | 12155 | #, fuzzy | n | ||
12156 | msgid "" | 12147 | msgid "" | ||
12157 | "The only difference between this example and the straight line example is in " | 12148 | "The only difference between this example and the straight line example is in " | ||
12158 | "the <methodname>on_draw()</methodname> function, but there are a few new " | 12149 | "the <methodname>on_draw()</methodname> function, but there are a few new " | ||
12159 | "concepts and functions introduced here, so let's examine them briefly." | 12150 | "concepts and functions introduced here, so let's examine them briefly." | ||
12160 | msgstr "" | 12151 | msgstr "" | ||
12386 | "exactly the same as <methodname>Cairo::Context::arc()</methodname> but the " | 12377 | "exactly the same as <methodname>Cairo::Context::arc()</methodname> but the " | ||
12387 | "angles go the opposite direction." | 12378 | "angles go the opposite direction." | ||
12388 | msgstr "" | 12379 | msgstr "" | ||
12389 | "Funktionen <methodname>Cairo::Context::arc_negative()</methodname> är exakt " | 12380 | "Funktionen <methodname>Cairo::Context::arc_negative()</methodname> är exakt " | ||
12390 | "densamma som <methodname>Cairo::Context::arc()</methodname> men vinklarna " | 12381 | "densamma som <methodname>Cairo::Context::arc()</methodname> men vinklarna " | ||
n | 12391 | "går i motsatt rikning." | n | 12382 | "går i motsatt riktning." |
12392 | 12383 | ||||
12393 | #. (itstool) path: section/title | 12384 | #. (itstool) path: section/title | ||
12394 | #: C/index-in.docbook:5129 | 12385 | #: C/index-in.docbook:5129 | ||
12395 | msgid "Drawing Text" | 12386 | msgid "Drawing Text" | ||
12396 | msgstr "Rita text" | 12387 | msgstr "Rita text" | ||
12413 | msgstr "" | 12404 | msgstr "" | ||
12414 | "Texten ritas via Pango-layouter. Det lättaste sättet att skapa en " | 12405 | "Texten ritas via Pango-layouter. Det lättaste sättet att skapa en " | ||
12415 | "<classname>Pango::Layout</classname> är att använda <methodname>Gtk::Widget::" | 12406 | "<classname>Pango::Layout</classname> är att använda <methodname>Gtk::Widget::" | ||
12416 | "create_pango_layout()</methodname>. När den skapats kan layouten manipuleras " | 12407 | "create_pango_layout()</methodname>. När den skapats kan layouten manipuleras " | ||
12417 | "på olika sätt, inklusive att ändra texten, typsnittet o.s.v. Slutligen kan " | 12408 | "på olika sätt, inklusive att ändra texten, typsnittet o.s.v. Slutligen kan " | ||
n | 12418 | "layouten rendereras med metoden <methodname>Pango::Layout::" | n | 12409 | "layouten renderas med metoden <methodname>Pango::Layout::" |
12419 | "show_in_cairo_context()</methodname>." | 12410 | "show_in_cairo_context()</methodname>." | ||
12420 | 12411 | ||||
12421 | #. (itstool) path: section/para | 12412 | #. (itstool) path: section/para | ||
12422 | #: C/index-in.docbook:5146 | 12413 | #: C/index-in.docbook:5146 | ||
12423 | #, fuzzy | 12414 | #, fuzzy | ||
12551 | " cr->fill();\n" | 12542 | " cr->fill();\n" | ||
12552 | "}" | 12543 | "}" | ||
12553 | 12544 | ||||
12554 | #. (itstool) path: para/screen | 12545 | #. (itstool) path: para/screen | ||
12555 | #: C/index-in.docbook:5219 | 12546 | #: C/index-in.docbook:5219 | ||
n | 12556 | #, fuzzy, no-wrap | n | 12547 | #, no-wrap |
12557 | msgid "$ glib-compile-resources --target=resources.c --generate-source image.gre | 12548 | msgid "$ glib-compile-resources --target=resources.c --generate-source image.gre | ||
> | source.xml" | > | source.xml" | ||
12558 | msgstr "$ glib-compile-resources --target=resources.c --generate-source image.gr | 12549 | msgstr "$ glib-compile-resources --target=resources.c --generate-source image.gr | ||
> | esource.xml" | > | esource.xml" | ||
12559 | 12550 | ||||
12560 | #. (itstool) path: section/para | 12551 | #. (itstool) path: section/para | ||
12561 | #: C/index-in.docbook:5213 | 12552 | #: C/index-in.docbook:5213 | ||
12608 | msgid "Example Application: Creating a Clock with Cairo" | 12599 | msgid "Example Application: Creating a Clock with Cairo" | ||
12609 | msgstr "Exempelprogram: Skapa en klocka med Cairo" | 12600 | msgstr "Exempelprogram: Skapa en klocka med Cairo" | ||
12610 | 12601 | ||||
12611 | #. (itstool) path: section/para | 12602 | #. (itstool) path: section/para | ||
12612 | #: C/index-in.docbook:5244 | 12603 | #: C/index-in.docbook:5244 | ||
n | 12613 | #, fuzzy | n | ||
12614 | msgid "" | 12604 | msgid "" | ||
12615 | "Now that we've covered the basics of drawing with Cairo, let's try to put it " | 12605 | "Now that we've covered the basics of drawing with Cairo, let's try to put it " | ||
12616 | "all together and create a simple application that actually does something. " | 12606 | "all together and create a simple application that actually does something. " | ||
12617 | "The following example uses Cairo to create a custom <classname>Clock</" | 12607 | "The following example uses Cairo to create a custom <classname>Clock</" | ||
12618 | "classname> widget. The clock has a second hand, a minute hand, and an hour " | 12608 | "classname> widget. The clock has a second hand, a minute hand, and an hour " | ||
12620 | msgstr "" | 12610 | msgstr "" | ||
12621 | "Nu då vi täckt grunderna med att rita i Cairo kan vi försöka sätta ihop " | 12611 | "Nu då vi täckt grunderna med att rita i Cairo kan vi försöka sätta ihop " | ||
12622 | "allting och skapa ett enkelt program som faktiskt gör något. Följande " | 12612 | "allting och skapa ett enkelt program som faktiskt gör något. Följande " | ||
12623 | "exempel använder Cairo för att skapa en anpassad komponent <classname>Clock</" | 12613 | "exempel använder Cairo för att skapa en anpassad komponent <classname>Clock</" | ||
12624 | "classname>. Klockan har en sekundvisare, en minutvisare och en timvisare, " | 12614 | "classname>. Klockan har en sekundvisare, en minutvisare och en timvisare, " | ||
n | 12625 | "och uppdatear sig själv varje sekund." | n | 12615 | "och uppdaterar sig själv varje sekund." |
12626 | 12616 | ||||
12627 | #. (itstool) path: imageobject/imagedata | 12617 | #. (itstool) path: imageobject/imagedata | ||
12628 | #. This is a reference to an external file such as an image or video. When | 12618 | #. This is a reference to an external file such as an image or video. When | ||
12629 | #. the file changes, the md5 hash will change to let you know you need to | 12619 | #. the file changes, the md5 hash will change to let you know you need to | ||
12630 | #. update your localized copy. The msgstr is not used at all. Set it to | 12620 | #. update your localized copy. The msgstr is not used at all. Set it to | ||
12668 | "Denna funktions enda ansvar är att invalidera fönstret så att " | 12658 | "Denna funktions enda ansvar är att invalidera fönstret så att " | ||
12669 | "<application>gtkmm</application> kommer tvingas rita om det." | 12659 | "<application>gtkmm</application> kommer tvingas rita om det." | ||
12670 | 12660 | ||||
12671 | #. (itstool) path: section/para | 12661 | #. (itstool) path: section/para | ||
12672 | #: C/index-in.docbook:5266 | 12662 | #: C/index-in.docbook:5266 | ||
n | 12673 | #, fuzzy | n | ||
12674 | msgid "" | 12663 | msgid "" | ||
12675 | "Now let's take a look at the code that performs the actual drawing. The " | 12664 | "Now let's take a look at the code that performs the actual drawing. The " | ||
12676 | "first section of <methodname>on_draw()</methodname> should be pretty " | 12665 | "first section of <methodname>on_draw()</methodname> should be pretty " | ||
12677 | "familiar by now. This example again scales the coordinate system to be a " | 12666 | "familiar by now. This example again scales the coordinate system to be a " | ||
12678 | "unit square so that it's easier to draw the clock as a percentage of window " | 12667 | "unit square so that it's easier to draw the clock as a percentage of window " | ||
12682 | msgstr "" | 12671 | msgstr "" | ||
12683 | "Låt oss nu ta en titt på koden som utför det faktiska ritandet. Den första " | 12672 | "Låt oss nu ta en titt på koden som utför det faktiska ritandet. Den första " | ||
12684 | "delen av <methodname>on_draw()</methodname> bör vara ganska bekant nu. Detta " | 12673 | "delen av <methodname>on_draw()</methodname> bör vara ganska bekant nu. Detta " | ||
12685 | "exempel skalar igen koordinatsystemet till en enhetskvadrat så att det är " | 12674 | "exempel skalar igen koordinatsystemet till en enhetskvadrat så att det är " | ||
12686 | "lättare att rita klockan som en procentsats av fönsterstorleken så att den " | 12675 | "lättare att rita klockan som en procentsats av fönsterstorleken så att den " | ||
n | 12687 | "automatiskt kommer skalas ner när fönsterstorleken justeras. Vidare skalas " | n | 12676 | "automatiskt kommer skalas när fönsterstorleken justeras. Vidare skalas och " |
12688 | "koordinatesystemet över och ner så att koordinaten (0, 0) är i mitten av " | 12677 | "flyttas koordinatsystemet så att koordinaten (0, 0) är i mitten av fönstret." | ||
12689 | "fönstret." | ||||
12690 | 12678 | ||||
12691 | #. (itstool) path: section/para | 12679 | #. (itstool) path: section/para | ||
12692 | #: C/index-in.docbook:5276 | 12680 | #: C/index-in.docbook:5276 | ||
12693 | #, fuzzy | 12681 | #, fuzzy | ||
12694 | msgid "" | 12682 | msgid "" | ||
12712 | "sedan klipps denna bana för att säkerställa att våra nästa linjer inte går " | 12700 | "sedan klipps denna bana för att säkerställa att våra nästa linjer inte går " | ||
12713 | "utanför klockans kontur." | 12701 | "utanför klockans kontur." | ||
12714 | 12702 | ||||
12715 | #. (itstool) path: section/para | 12703 | #. (itstool) path: section/para | ||
12716 | #: C/index-in.docbook:5288 | 12704 | #: C/index-in.docbook:5288 | ||
n | 12717 | #, fuzzy | n | ||
12718 | msgid "" | 12705 | msgid "" | ||
12719 | "After drawing the outline, we go around the clock and draw ticks for every " | 12706 | "After drawing the outline, we go around the clock and draw ticks for every " | ||
12720 | "hour, with a larger tick at 12, 3, 6, and 9. Now we're finally ready to " | 12707 | "hour, with a larger tick at 12, 3, 6, and 9. Now we're finally ready to " | ||
12721 | "implement the time-keeping functionality of the clock, which simply involves " | 12708 | "implement the time-keeping functionality of the clock, which simply involves " | ||
12722 | "getting the current values for hours, minutes and seconds, and drawing the " | 12709 | "getting the current values for hours, minutes and seconds, and drawing the " | ||
12765 | "Lämpliga signaler kommer sedan sändas ut, som säger till signalhanterarna " | 12752 | "Lämpliga signaler kommer sedan sändas ut, som säger till signalhanterarna " | ||
12766 | "vilket format som användes." | 12753 | "vilket format som användes." | ||
12767 | 12754 | ||||
12768 | #. (itstool) path: section/para | 12755 | #. (itstool) path: section/para | ||
12769 | #: C/index-in.docbook:5315 | 12756 | #: C/index-in.docbook:5315 | ||
n | 12770 | #, fuzzy | n | ||
12771 | msgid "" | 12757 | msgid "" | ||
12772 | "<classname>Gdk::ContentFormats</classname> objects contain information about " | 12758 | "<classname>Gdk::ContentFormats</classname> objects contain information about " | ||
12773 | "available <type>GType</type>s and mime types (media types)." | 12759 | "available <type>GType</type>s and mime types (media types)." | ||
12774 | msgstr "" | 12760 | msgstr "" | ||
12775 | "<classname>Gdk::ContentFormats</classname>-objekt innehåller information om " | 12761 | "<classname>Gdk::ContentFormats</classname>-objekt innehåller information om " | ||
12782 | "<classname>Widget</classname>s can be identified as sources or targets using " | 12768 | "<classname>Widget</classname>s can be identified as sources or targets using " | ||
12783 | "<classname>Gtk::DragSource</classname> and <classname>Gtk::DropTarget</" | 12769 | "<classname>Gtk::DragSource</classname> and <classname>Gtk::DropTarget</" | ||
12784 | "classname> event controllers." | 12770 | "classname> event controllers." | ||
12785 | msgstr "" | 12771 | msgstr "" | ||
12786 | "<classname>Widget</classname>-komponenter kan identifieras som källor eller " | 12772 | "<classname>Widget</classname>-komponenter kan identifieras som källor eller " | ||
n | 12787 | "mål med hänsdelsekontrollerna <classname>Gtk::DragSource</classname> och " | n | 12773 | "mål med händelsekontrollerna <classname>Gtk::DragSource</classname> och " |
12788 | "<classname>Gtk::DropTarget</classname>." | 12774 | "<classname>Gtk::DropTarget</classname>." | ||
12789 | 12775 | ||||
12790 | #. (itstool) path: section/programlisting | 12776 | #. (itstool) path: section/programlisting | ||
12791 | #: C/index-in.docbook:5330 | 12777 | #: C/index-in.docbook:5330 | ||
12792 | #, fuzzy, no-wrap | 12778 | #, fuzzy, no-wrap | ||
12800 | "auto source = Gtk::DragSource::create();\n" | 12786 | "auto source = Gtk::DragSource::create();\n" | ||
12801 | "m_source_widget.add_controller(source);" | 12787 | "m_source_widget.add_controller(source);" | ||
12802 | 12788 | ||||
12803 | #. (itstool) path: listitem/para | 12789 | #. (itstool) path: listitem/para | ||
12804 | #: C/index-in.docbook:5337 | 12790 | #: C/index-in.docbook:5337 | ||
n | 12805 | #, fuzzy | n | ||
12806 | msgid "" | 12791 | msgid "" | ||
12807 | "<literal>void set_content(const Glib::RefPtr<Gdk::ContentProvider>" | 12792 | "<literal>void set_content(const Glib::RefPtr<Gdk::ContentProvider>" | ||
12808 | "& content)</literal>: Sets a content provider on the drag source." | 12793 | "& content)</literal>: Sets a content provider on the drag source." | ||
12809 | msgstr "" | 12794 | msgstr "" | ||
12810 | "<literal>void set_content(const Glib::RefPtr<Gdk::ContentProvider>" | 12795 | "<literal>void set_content(const Glib::RefPtr<Gdk::ContentProvider>" | ||
12811 | "& content)</literal>: Ställer in en innehållstillhandahållare på " | 12796 | "& content)</literal>: Ställer in en innehållstillhandahållare på " | ||
12812 | "dragkällan." | 12797 | "dragkällan." | ||
12813 | 12798 | ||||
12814 | #. (itstool) path: listitem/para | 12799 | #. (itstool) path: listitem/para | ||
12815 | #: C/index-in.docbook:5343 | 12800 | #: C/index-in.docbook:5343 | ||
n | 12816 | #, fuzzy | n | ||
12817 | msgid "" | 12801 | msgid "" | ||
12818 | "<literal>void set_actions(Gdk::DragAction actions)</literal>: Sets the " | 12802 | "<literal>void set_actions(Gdk::DragAction actions)</literal>: Sets the " | ||
12819 | "actions on the drag source. For instance <literal>Gdk::DragAction::COPY | " | 12803 | "actions on the drag source. For instance <literal>Gdk::DragAction::COPY | " | ||
12820 | "Gdk::DragAction::MOVE</literal>." | 12804 | "Gdk::DragAction::MOVE</literal>." | ||
12821 | msgstr "" | 12805 | msgstr "" | ||
n | 12822 | "<literal>void set_actions(Gdk::DragAction actions)</literal>: Ställer in en " | n | 12806 | "<literal>void set_actions(Gdk::DragAction actions)</literal>: Ställer in " |
12823 | "åtgärderna på dragkällan. Till exempel <literal>Gdk::DragAction::COPY | Gdk::" | 12807 | "åtgärderna på dragkällan. Till exempel <literal>Gdk::DragAction::COPY | Gdk::" | ||
12824 | "DragAction::MOVE</literal>." | 12808 | "DragAction::MOVE</literal>." | ||
12825 | 12809 | ||||
12826 | #. (itstool) path: listitem/para | 12810 | #. (itstool) path: listitem/para | ||
12827 | #: C/index-in.docbook:5350 | 12811 | #: C/index-in.docbook:5350 | ||
n | 12828 | #, fuzzy | n | ||
12829 | msgid "" | 12812 | msgid "" | ||
12830 | "<literal>void set_icon(const Glib::RefPtr<const Gdk::Paintable>& " | 12813 | "<literal>void set_icon(const Glib::RefPtr<const Gdk::Paintable>& " | ||
12831 | "paintable, int hot_x, int hot_y)</literal>: Sets a paintable to use as icon " | 12814 | "paintable, int hot_x, int hot_y)</literal>: Sets a paintable to use as icon " | ||
12832 | "during DND operations." | 12815 | "during DND operations." | ||
12833 | msgstr "" | 12816 | msgstr "" | ||
12850 | "auto target = Gtk::DropTarget::create(gtype, actions);\n" | 12833 | "auto target = Gtk::DropTarget::create(gtype, actions);\n" | ||
12851 | "m_target_widget.add_controller(target);" | 12834 | "m_target_widget.add_controller(target);" | ||
12852 | 12835 | ||||
12853 | #. (itstool) path: listitem/para | 12836 | #. (itstool) path: listitem/para | ||
12854 | #: C/index-in.docbook:5365 | 12837 | #: C/index-in.docbook:5365 | ||
n | 12855 | #, fuzzy | n | ||
12856 | msgid "" | 12838 | msgid "" | ||
12857 | "<literal>void set_gtypes(const std::vector<GType>& types)</" | 12839 | "<literal>void set_gtypes(const std::vector<GType>& types)</" | ||
12858 | "literal>: Sets the supported types for this drop target." | 12840 | "literal>: Sets the supported types for this drop target." | ||
12859 | msgstr "" | 12841 | msgstr "" | ||
12860 | "<literal>void set_gtypes(const std::vector<GType>& types)</" | 12842 | "<literal>void set_gtypes(const std::vector<GType>& types)</" | ||
12861 | "literal>: Ställer in typerna som stöds för detta släppmål." | 12843 | "literal>: Ställer in typerna som stöds för detta släppmål." | ||
12862 | 12844 | ||||
12863 | #. (itstool) path: listitem/para | 12845 | #. (itstool) path: listitem/para | ||
12864 | #: C/index-in.docbook:5371 | 12846 | #: C/index-in.docbook:5371 | ||
n | 12865 | #, fuzzy | n | ||
12866 | msgid "" | 12847 | msgid "" | ||
12867 | "<literal>void set_actions(Gdk::DragAction actions)</literal>: Sets the " | 12848 | "<literal>void set_actions(Gdk::DragAction actions)</literal>: Sets the " | ||
12868 | "actions that this drop target supports." | 12849 | "actions that this drop target supports." | ||
12869 | msgstr "" | 12850 | msgstr "" | ||
12870 | "<literal>void set_actions(Gdk::DragAction actions)</literal>: Ställer in " | 12851 | "<literal>void set_actions(Gdk::DragAction actions)</literal>: Ställer in " | ||
12871 | "åtgärderna som detta släppmål stöder." | 12852 | "åtgärderna som detta släppmål stöder." | ||
12872 | 12853 | ||||
12873 | #. (itstool) path: listitem/para | 12854 | #. (itstool) path: listitem/para | ||
12874 | #: C/index-in.docbook:5377 | 12855 | #: C/index-in.docbook:5377 | ||
n | 12875 | #, fuzzy | n | ||
12876 | msgid "" | 12856 | msgid "" | ||
12877 | "<literal>Glib::ValueBase get_value() const</literal>: Gets the current drop " | 12857 | "<literal>Glib::ValueBase get_value() const</literal>: Gets the current drop " | ||
12878 | "data, as a <classname>Glib::Value</classname>." | 12858 | "data, as a <classname>Glib::Value</classname>." | ||
12879 | msgstr "" | 12859 | msgstr "" | ||
12880 | "<literal>Glib::ValueBase get_value() const</literal>: Erhåller aktuella " | 12860 | "<literal>Glib::ValueBase get_value() const</literal>: Erhåller aktuella " | ||
12881 | "släppdata, som ett <classname>Glib::Value</classname>." | 12861 | "släppdata, som ett <classname>Glib::Value</classname>." | ||
12882 | 12862 | ||||
12883 | #. (itstool) path: listitem/para | 12863 | #. (itstool) path: listitem/para | ||
12884 | #: C/index-in.docbook:5383 | 12864 | #: C/index-in.docbook:5383 | ||
n | 12885 | #, fuzzy | n | ||
12886 | msgid "" | 12865 | msgid "" | ||
12887 | "<literal>void reject()</literal>: Rejects the ongoing drop operation. This " | 12866 | "<literal>void reject()</literal>: Rejects the ongoing drop operation. This " | ||
12888 | "function should be used when delaying the decision on whether to accept a " | 12867 | "function should be used when delaying the decision on whether to accept a " | ||
12889 | "drag or not until after reading the data." | 12868 | "drag or not until after reading the data." | ||
12890 | msgstr "" | 12869 | msgstr "" | ||
12925 | "<literal>drag_begin</literal>: Tillhandahåller en <classname>Gdk::Drag</" | 12904 | "<literal>drag_begin</literal>: Tillhandahåller en <classname>Gdk::Drag</" | ||
12926 | "classname>." | 12905 | "classname>." | ||
12927 | 12906 | ||||
12928 | #. (itstool) path: listitem/para | 12907 | #. (itstool) path: listitem/para | ||
12929 | #: C/index-in.docbook:5411 | 12908 | #: C/index-in.docbook:5411 | ||
n | 12930 | #, fuzzy | n | ||
12931 | msgid "" | 12909 | msgid "" | ||
12932 | "<literal>prepare</literal>: Shall return a <classname>Gdk::ContentProvider</" | 12910 | "<literal>prepare</literal>: Shall return a <classname>Gdk::ContentProvider</" | ||
12933 | "classname>, with the data to use for the drag that is about to start." | 12911 | "classname>, with the data to use for the drag that is about to start." | ||
12934 | msgstr "" | 12912 | msgstr "" | ||
12935 | "<literal>prepare</literal>: Ska returnera en <classname>Gdk::" | 12913 | "<literal>prepare</literal>: Ska returnera en <classname>Gdk::" | ||
12948 | "classname>, och en <type>bool</type> som berättar om dragningen utförde ett " | 12926 | "classname>, och en <type>bool</type> som berättar om dragningen utförde ett " | ||
12949 | "<literal>move</literal> och att data ska tas bort." | 12927 | "<literal>move</literal> och att data ska tas bort." | ||
12950 | 12928 | ||||
12951 | #. (itstool) path: listitem/para | 12929 | #. (itstool) path: listitem/para | ||
12952 | #: C/index-in.docbook:5416 | 12930 | #: C/index-in.docbook:5416 | ||
n | 12953 | #, fuzzy | n | ||
12954 | msgid "" | 12931 | msgid "" | ||
12955 | "<literal>drag_cancel</literal>: Emitted on the drag source when a drag has " | 12932 | "<literal>drag_cancel</literal>: Emitted on the drag source when a drag has " | ||
12956 | "failed." | 12933 | "failed." | ||
12957 | msgstr "" | 12934 | msgstr "" | ||
n | 12958 | "<literal>drag_cancel</literal>: sänds ut på dragkällan när en dragning har " | n | 12935 | "<literal>drag_cancel</literal>: Sänds ut på dragkällan när en dragning har " |
12959 | "misslyckats." | 12936 | "misslyckats." | ||
12960 | 12937 | ||||
12961 | #. (itstool) path: section/para | 12938 | #. (itstool) path: section/para | ||
12962 | #: C/index-in.docbook:5407 | 12939 | #: C/index-in.docbook:5407 | ||
12963 | msgid "" | 12940 | msgid "" | ||
12986 | "<literal>motion</literal>: Tillhandahåller koordinater. Ska returnera " | 12963 | "<literal>motion</literal>: Tillhandahåller koordinater. Ska returnera " | ||
12987 | "föredragen <type>Gdk::DragAction</type>." | 12964 | "föredragen <type>Gdk::DragAction</type>." | ||
12988 | 12965 | ||||
12989 | #. (itstool) path: listitem/para | 12966 | #. (itstool) path: listitem/para | ||
12990 | #: C/index-in.docbook:5426 | 12967 | #: C/index-in.docbook:5426 | ||
n | 12991 | #, fuzzy | n | ||
12992 | msgid "" | 12968 | msgid "" | ||
12993 | "<literal>leave</literal>: Emitted on the drop site when the pointer leaves " | 12969 | "<literal>leave</literal>: Emitted on the drop site when the pointer leaves " | ||
12994 | "the widget." | 12970 | "the widget." | ||
12995 | msgstr "" | 12971 | msgstr "" | ||
12996 | "<literal>leave</literal>: Sänds ut på släpplatsen när pekaren lämnar " | 12972 | "<literal>leave</literal>: Sänds ut på släpplatsen när pekaren lämnar " | ||
13008 | "denna <classname>Gdk::Drop</classname> för att indikera vilka åtgärder som " | 12984 | "denna <classname>Gdk::Drop</classname> för att indikera vilka åtgärder som " | ||
13009 | "kommer accepteras." | 12985 | "kommer accepteras." | ||
13010 | 12986 | ||||
13011 | #. (itstool) path: listitem/para | 12987 | #. (itstool) path: listitem/para | ||
13012 | #: C/index-in.docbook:5431 | 12988 | #: C/index-in.docbook:5431 | ||
n | 13013 | #, fuzzy | n | ||
13014 | msgid "" | 12989 | msgid "" | ||
13015 | "<literal>drop</literal>: Provides the data being dropped and coordinates. " | 12990 | "<literal>drop</literal>: Provides the data being dropped and coordinates. " | ||
13016 | "Shall return a <type>bool</type> indicating whether the drop was accepted." | 12991 | "Shall return a <type>bool</type> indicating whether the drop was accepted." | ||
13017 | msgstr "" | 12992 | msgstr "" | ||
13018 | "<literal>drop</literal>: Tillhandahåller de data som släpps och koordinater. " | 12993 | "<literal>drop</literal>: Tillhandahåller de data som släpps och koordinater. " | ||
13053 | msgid "<methodname>Gtk::DropTarget::signal_drop()</methodname>" | 13028 | msgid "<methodname>Gtk::DropTarget::signal_drop()</methodname>" | ||
13054 | msgstr "<methodname>Gtk::DropTarget::signal_drop()</methodname>" | 13029 | msgstr "<methodname>Gtk::DropTarget::signal_drop()</methodname>" | ||
13055 | 13030 | ||||
13056 | #. (itstool) path: section/para | 13031 | #. (itstool) path: section/para | ||
13057 | #: C/index-in.docbook:5435 | 13032 | #: C/index-in.docbook:5435 | ||
n | 13058 | #, fuzzy | n | ||
13059 | msgid "" | 13033 | msgid "" | ||
13060 | "The following signals call only one signal handler when emitted. When you " | 13034 | "The following signals call only one signal handler when emitted. When you " | ||
13061 | "connect a handler to such a signal, your signal handler must be called " | 13035 | "connect a handler to such a signal, your signal handler must be called " | ||
13062 | "before (instead of) the default handler, otherwise it won't be called. Set " | 13036 | "before (instead of) the default handler, otherwise it won't be called. Set " | ||
13063 | "the <literal>after</literal> parameter in <methodname>connect()</methodname> " | 13037 | "the <literal>after</literal> parameter in <methodname>connect()</methodname> " | ||
13064 | "to <literal>false</literal>. <_:itemizedlist-1/>" | 13038 | "to <literal>false</literal>. <_:itemizedlist-1/>" | ||
13065 | msgstr "" | 13039 | msgstr "" | ||
13066 | "Följande signaler anropar endast en signalhanterare när de sänds ut. När du " | 13040 | "Följande signaler anropar endast en signalhanterare när de sänds ut. När du " | ||
13067 | "ansluter en hanterare till en sådan signal måste din signalhanterare anropas " | 13041 | "ansluter en hanterare till en sådan signal måste din signalhanterare anropas " | ||
n | 13068 | "för (i stället för) standardhanteraren, annars kommer den inte anropas. " | n | 13042 | "före (i stället för) standardhanteraren, annars kommer den inte anropas. " |
13069 | "Ställ in parametern <literal>after</literal> i <methodname>connect()</" | 13043 | "Ställ in parametern <literal>after</literal> i <methodname>connect()</" | ||
13070 | "methodname> till <literal>false</literal>. <_:itemizedlist-1/>" | 13044 | "methodname> till <literal>false</literal>. <_:itemizedlist-1/>" | ||
13071 | 13045 | ||||
13072 | #. (itstool) path: section/para | 13046 | #. (itstool) path: section/para | ||
13073 | #: C/index-in.docbook:5454 | 13047 | #: C/index-in.docbook:5454 | ||
13114 | msgid "The Clipboard" | 13088 | msgid "The Clipboard" | ||
13115 | msgstr "Urklipp" | 13089 | msgstr "Urklipp" | ||
13116 | 13090 | ||||
13117 | #. (itstool) path: chapter/para | 13091 | #. (itstool) path: chapter/para | ||
13118 | #: C/index-in.docbook:5476 | 13092 | #: C/index-in.docbook:5476 | ||
n | 13119 | #, fuzzy | n | ||
13120 | msgid "" | 13093 | msgid "" | ||
13121 | "Simple text copy-paste functionality is provided for free by widgets such as " | 13094 | "Simple text copy-paste functionality is provided for free by widgets such as " | ||
13122 | "<classname>Gtk::Entry</classname> and <classname>Gtk::TextView</classname>, " | 13095 | "<classname>Gtk::Entry</classname> and <classname>Gtk::TextView</classname>, " | ||
13123 | "but you might need special code to deal with your own data formats. For " | 13096 | "but you might need special code to deal with your own data formats. For " | ||
13124 | "instance, a drawing program would need special code to allow copy and paste " | 13097 | "instance, a drawing program would need special code to allow copy and paste " | ||
13125 | "within a view, or between documents." | 13098 | "within a view, or between documents." | ||
13126 | msgstr "" | 13099 | msgstr "" | ||
n | 13127 | "Enkel kopiera/klistra in-funktionalitet tillhandahålls på köpet av " | n | 13100 | "Enkel kopiera/klistra in-funktionalitet för text tillhandahålls på köpet av " |
13128 | "komponenter som <classname>Gtk::Entry</classname> och <classname>Gtk::" | 13101 | "komponenter som <classname>Gtk::Entry</classname> och <classname>Gtk::" | ||
n | 13129 | "TextView</classname>, men du kanb behöva specialkod för att hantera dina " | n | 13102 | "TextView</classname>, men du kan behöva specialkod för att hantera dina egna " |
13130 | "egna dataformat. Exempelvis skulle ett ritprogram behöva specialkod för att " | 13103 | "dataformat. Exempelvis skulle ett ritprogram behöva specialkod för att " | ||
13131 | "tillåta kopiering och inklistring i en vy, eller mellan dokument." | 13104 | "tillåta kopiering och inklistring i en vy, eller mellan dokument." | ||
13132 | 13105 | ||||
13133 | #. (itstool) path: chapter/para | 13106 | #. (itstool) path: chapter/para | ||
13134 | #: C/index-in.docbook:5482 | 13107 | #: C/index-in.docbook:5482 | ||
13135 | #, fuzzy | 13108 | #, fuzzy | ||
13655 | "att komma åt vald <classname>Gtk::PaperSize</classname>, <literal>Gtk::" | 13628 | "att komma åt vald <classname>Gtk::PaperSize</classname>, <literal>Gtk::" | ||
13656 | "PageOrientation</literal> och skrivarspecifika marginaler." | 13629 | "PageOrientation</literal> och skrivarspecifika marginaler." | ||
13657 | 13630 | ||||
13658 | #. (itstool) path: section/para | 13631 | #. (itstool) path: section/para | ||
13659 | #: C/index-in.docbook:5748 | 13632 | #: C/index-in.docbook:5748 | ||
n | 13660 | #, fuzzy | n | ||
13661 | msgid "" | 13633 | msgid "" | ||
13662 | "You should save the chosen <classname>Gtk::PageSetup</classname> so you can " | 13634 | "You should save the chosen <classname>Gtk::PageSetup</classname> so you can " | ||
13663 | "use it again if the page setup dialog is shown again." | 13635 | "use it again if the page setup dialog is shown again." | ||
13664 | msgstr "" | 13636 | msgstr "" | ||
13665 | "Du bör spara vald <classname>Gtk::PageSetup</classname> så du kan använda " | 13637 | "Du bör spara vald <classname>Gtk::PageSetup</classname> så du kan använda " | ||
13795 | "need to implement signal handlers for the <literal>done</literal> and " | 13767 | "need to implement signal handlers for the <literal>done</literal> and " | ||
13796 | "<literal>status_changed</literal> signals:" | 13768 | "<literal>status_changed</literal> signals:" | ||
13797 | msgstr "" | 13769 | msgstr "" | ||
13798 | "<methodname>run()</methodname> kan returnera <literal>PrintOperation::" | 13770 | "<methodname>run()</methodname> kan returnera <literal>PrintOperation::" | ||
13799 | "Result::IN_PROGRESS</literal>. För att övervaka status och hantera " | 13771 | "Result::IN_PROGRESS</literal>. För att övervaka status och hantera " | ||
n | 13800 | "resultatet eller fel behöver du implementera signalhandterare för signalerna " | n | 13772 | "resultatet eller fel behöver du implementera signalhanterare för signalerna " |
13801 | "<literal>done</literal> och <literal>status_changed</literal>:" | 13773 | "<literal>done</literal> och <literal>status_changed</literal>:" | ||
13802 | 13774 | ||||
13803 | #. (itstool) path: section/programlisting | 13775 | #. (itstool) path: section/programlisting | ||
13804 | #: C/index-in.docbook:5816 | 13776 | #: C/index-in.docbook:5816 | ||
13805 | #, fuzzy, no-wrap | 13777 | #, fuzzy, no-wrap | ||
13820 | " *this, &ExampleWindow::on_printoperation_done), op));\n" | 13792 | " *this, &ExampleWindow::on_printoperation_done), op));\n" | ||
13821 | "// kör op\n" | 13793 | "// kör op\n" | ||
13822 | 13794 | ||||
13823 | #. (itstool) path: section/para | 13795 | #. (itstool) path: section/para | ||
13824 | #: C/index-in.docbook:5824 | 13796 | #: C/index-in.docbook:5824 | ||
n | 13825 | #, fuzzy | n | ||
13826 | msgid "" | 13797 | msgid "" | ||
13827 | "Second, check for an error and connect to the <literal>status_changed</" | 13798 | "Second, check for an error and connect to the <literal>status_changed</" | ||
13828 | "literal> signal. For instance:" | 13799 | "literal> signal. For instance:" | ||
13829 | msgstr "" | 13800 | msgstr "" | ||
n | 13830 | "Kontrollera sedan för ett fel och anslut till signalen " | n | 13801 | "Kontrollera sedan för fel och anslut till signalen <literal>status_changed</" |
13831 | "<literal>status_changed</literal>. Till exempel:" | 13802 | "literal>. Till exempel:" | ||
13832 | 13803 | ||||
13833 | #. (itstool) path: section/programlisting | 13804 | #. (itstool) path: section/programlisting | ||
13834 | #: C/index-in.docbook:5826 | 13805 | #: C/index-in.docbook:5826 | ||
13835 | #, fuzzy, no-wrap | 13806 | #, fuzzy, no-wrap | ||
n | n | 13807 | #| msgid "" | ||
13808 | #| "\n" | ||||
13809 | #| "void ExampleWindow::on_printoperation_done(Gtk::PrintOperation::Result resul | ||||
> | t,\n" | ||||
13810 | #| " const Glib::RefPtr<PrintOperation>& op)\n" | ||||
13811 | #| "{\n" | ||||
13812 | #| " if (result == Gtk::PrintOperation::Result::ERROR)\n" | ||||
13813 | #| " //notify user\n" | ||||
13814 | #| " else if (result == Gtk::PrintOperation::Result::APPLY)\n" | ||||
13815 | #| " //Update PrintSettings with the ones used in this PrintOperation\n" | ||||
13816 | #| "\n" | ||||
13817 | #| " if (! op->is_finished())\n" | ||||
13818 | #| " op->signal_status_changed().connect(sigc::bind(sigc::mem_fun(\n" | ||||
13819 | #| " *this, &ExampleWindow::on_printoperation_status_changed), op));\n" | ||||
13820 | #| "}\n" | ||||
13836 | msgid "" | 13821 | msgid "" | ||
13837 | "<code>void ExampleWindow::on_printoperation_done(Gtk::PrintOperation::Result re | 13822 | "<code>void ExampleWindow::on_printoperation_done(Gtk::PrintOperation::Result re | ||
> | sult,\n" | > | sult,\n" | ||
13838 | " const Glib::RefPtr<PrintOperation>& op)\n" | 13823 | " const Glib::RefPtr<PrintOperation>& op)\n" | ||
13839 | "{\n" | 13824 | "{\n" | ||
13840 | " if (result == Gtk::PrintOperation::Result::ERROR)\n" | 13825 | " if (result == Gtk::PrintOperation::Result::ERROR)\n" | ||
14576 | "list of recently used files or other files. <classname>FileChooserWidget</" | 14561 | "list of recently used files or other files. <classname>FileChooserWidget</" | ||
14577 | "classname> is the basic building block for <classname>FileChooserDialog</" | 14562 | "classname> is the basic building block for <classname>FileChooserDialog</" | ||
14578 | "classname>, but you can embed it into your user interface if you want to." | 14563 | "classname>, but you can embed it into your user interface if you want to." | ||
14579 | msgstr "" | 14564 | msgstr "" | ||
14580 | "<classname>FileChooserWidget</classname> är ett enkelt gränssnitt för att " | 14565 | "<classname>FileChooserWidget</classname> är ett enkelt gränssnitt för att " | ||
n | 14581 | "visa en lista med senast använda filereller andra filer. " | n | 14566 | "visa en lista med senast använda filer eller andra filer. " |
14582 | "<classname>FileChooserWidget</classname> är grundblocket för " | 14567 | "<classname>FileChooserWidget</classname> är grundblocket för " | ||
14583 | "<classname>FileChooserDialog</classname>, men du kan bädda in den i ditt " | 14568 | "<classname>FileChooserDialog</classname>, men du kan bädda in den i ditt " | ||
14584 | "användargränssnitt om du vill." | 14569 | "användargränssnitt om du vill." | ||
14585 | 14570 | ||||
14586 | #. (itstool) path: note/para | 14571 | #. (itstool) path: note/para | ||
14600 | msgstr "Enkelt FileChooserDialog-exempel" | 14585 | msgstr "Enkelt FileChooserDialog-exempel" | ||
14601 | 14586 | ||||
14602 | #. (itstool) path: section/para | 14587 | #. (itstool) path: section/para | ||
14603 | #: C/index-in.docbook:6193 | 14588 | #: C/index-in.docbook:6193 | ||
14604 | #, fuzzy | 14589 | #, fuzzy | ||
n | n | 14590 | #| msgid "" | ||
14591 | #| "Shown below is a simple example of how to use the " | ||||
14592 | #| "<classname>FileChooserDialog</classname> class in a program. This simple " | ||||
14593 | #| "program has a menubar with a <guimenuitem>File Chooser Dialog</" | ||||
14594 | #| "guimenuitem> menu item. When you select this menu item, a dialog pops up " | ||||
14595 | #| "showing a list of files. If you select <guimenuitem>Recent</guimenuitem> " | ||||
14596 | #| "in the sidebar, the list of recently used files is shown." | ||||
14605 | msgid "" | 14597 | msgid "" | ||
14606 | "Shown below is a simple example of how to use the <classname>FileDialog</" | 14598 | "Shown below is a simple example of how to use the <classname>FileDialog</" | ||
14607 | "classname> class in a program. This simple program has a menubar with a " | 14599 | "classname> class in a program. This simple program has a menubar with a " | ||
14608 | "<guimenuitem>File Dialog</guimenuitem> menu item. When you select this menu " | 14600 | "<guimenuitem>File Dialog</guimenuitem> menu item. When you select this menu " | ||
14609 | "item, a dialog pops up showing a list of files. If you select " | 14601 | "item, a dialog pops up showing a list of files. If you select " | ||
14613 | "Nedan visas ett enkelt exempel på hur du använder " | 14605 | "Nedan visas ett enkelt exempel på hur du använder " | ||
14614 | "<classname>FileChooserDialog</classname>-klassen i ett program. Detta enkla " | 14606 | "<classname>FileChooserDialog</classname>-klassen i ett program. Detta enkla " | ||
14615 | "program har en menyrad med ett menyobjekt <guimenuitem>File Chooser Dialog</" | 14607 | "program har en menyrad med ett menyobjekt <guimenuitem>File Chooser Dialog</" | ||
14616 | "guimenuitem>. När du väljer detta menyobjekt poppar en dialogruta upp som " | 14608 | "guimenuitem>. När du väljer detta menyobjekt poppar en dialogruta upp som " | ||
14617 | "visar en fillista. Om du väljer <guimenuitem>Recent</guimenuitem> i " | 14609 | "visar en fillista. Om du väljer <guimenuitem>Recent</guimenuitem> i " | ||
n | 14618 | "sidopenelen visas listan över senast använda filer." | n | 14610 | "sidopanelen visas listan över senast använda filer." |
14619 | 14611 | ||||
14620 | #. (itstool) path: note/para | 14612 | #. (itstool) path: note/para | ||
14621 | #: C/index-in.docbook:6203 | 14613 | #: C/index-in.docbook:6203 | ||
14622 | #, fuzzy | 14614 | #, fuzzy | ||
14623 | msgid "" | 14615 | msgid "" | ||
14995 | "underordnade, etiketten med tangentbordsfokus. I målfasen går händelsen " | 14987 | "underordnade, etiketten med tangentbordsfokus. I målfasen går händelsen " | ||
14996 | "endast till komponenten med tangentbordsfokus (etiketten). I bubbelfasen går " | 14988 | "endast till komponenten med tangentbordsfokus (etiketten). I bubbelfasen går " | ||
14997 | "händelsen först till komponenten med tangentbordsfokus (etiketten), sedan " | 14989 | "händelsen först till komponenten med tangentbordsfokus (etiketten), sedan " | ||
14998 | "till dess överordnade (boxen). sedan till boxens överordnade (fönstret). Om " | 14990 | "till dess överordnade (boxen). sedan till boxens överordnade (fönstret). Om " | ||
14999 | "händelsen sprids hela vägen till etiketten och sedan upp till fönstret utan " | 14991 | "händelsen sprids hela vägen till etiketten och sedan upp till fönstret utan " | ||
n | 15000 | "att stopaas kommer texten du skriver dyka upp i den <classname>Label</" | n | 14992 | "att stoppas kommer texten du skriver dyka upp i den <classname>Label</" |
15001 | "classname> som är ovanför den <classname>Label</classname> du skriver i." | 14993 | "classname> som är ovanför den <classname>Label</classname> du skriver i." | ||
15002 | 14994 | ||||
15003 | #. (itstool) path: figure/title | 14995 | #. (itstool) path: figure/title | ||
15004 | #: C/index-in.docbook:6376 | 14996 | #: C/index-in.docbook:6376 | ||
15005 | #, fuzzy | 14997 | #, fuzzy | ||
15712 | "make_managed()</function> (se nedan). Detta är inte strikt nödvändigt då " | 15704 | "make_managed()</function> (se nedan). Detta är inte strikt nödvändigt då " | ||
15713 | "operatorerna <literal>new</literal> och <literal>delete</literal> också kan " | 15705 | "operatorerna <literal>new</literal> och <literal>delete</literal> också kan " | ||
15714 | "användas, men modern C++-stil avråder från dessa till förmån för säkrare " | 15706 | "användas, men modern C++-stil avråder från dessa till förmån för säkrare " | ||
15715 | "minneshanteringsmodeller, så det är bättre att skapa komponenter med " | 15707 | "minneshanteringsmodeller, så det är bättre att skapa komponenter med " | ||
15716 | "<function>Gtk::make_managed()</function> och låta deras överordnade förstöra " | 15708 | "<function>Gtk::make_managed()</function> och låta deras överordnade förstöra " | ||
n | 15717 | "dem äna tt manuellt utföra dynamisk allokering. <_:programlisting-1/> Här " | n | 15709 | "dem än att manuellt utföra dynamisk allokering. <_:programlisting-1/> Här " |
15718 | "tar programmeraren bort <varname>pButton</varname> för att förhindra en " | 15710 | "tar programmeraren bort <varname>pButton</varname> för att förhindra en " | ||
15719 | "minnesläcka." | 15711 | "minnesläcka." | ||
15720 | 15712 | ||||
15721 | #. (itstool) path: section/programlisting | 15713 | #. (itstool) path: section/programlisting | ||
15722 | #: C/index-in.docbook:6699 | 15714 | #: C/index-in.docbook:6699 | ||
15835 | "överordnade behållare ska vara ansvarig för att förstöra den. Vidare avråder " | 15827 | "överordnade behållare ska vara ansvarig för att förstöra den. Vidare avråder " | ||
15836 | "modern C++-stil från användning av <literal>new</literal>-operatorn, vilken " | 15828 | "modern C++-stil från användning av <literal>new</literal>-operatorn, vilken " | ||
15837 | "krävdes då en nyss skapad komponent skickades till <function>manage()</" | 15829 | "krävdes då en nyss skapad komponent skickades till <function>manage()</" | ||
15838 | "function>. <application>gtkmm</application> har därför lagt till " | 15830 | "function>. <application>gtkmm</application> har därför lagt till " | ||
15839 | "<function>make_managed()</function> som kombinerar skapande och markerande " | 15831 | "<function>make_managed()</function> som kombinerar skapande och markerande " | ||
n | 15840 | "med <function>manage()</function> till ett enda steg. Detta undvikar att du " | n | 15832 | "med <function>manage()</function> till ett enda steg. Detta undviker att du " |
15841 | "behöver skriva <literal>new</literal>, vilket avrådes från i modern C++-" | 15833 | "behöver skriva <literal>new</literal>, vilket avrådes från i modern C++-" | ||
15842 | "stil, och mer tydligt uttrycker avsikten att skapa en hanterad komponent." | 15834 | "stil, och mer tydligt uttrycker avsikten att skapa en hanterad komponent." | ||
15843 | 15835 | ||||
15844 | #. (itstool) path: section/programlisting | 15836 | #. (itstool) path: section/programlisting | ||
15845 | #: C/index-in.docbook:6751 | 15837 | #: C/index-in.docbook:6751 | ||
15950 | msgid "" | 15942 | msgid "" | ||
15951 | "<code>auto pixbuf = Gdk::Pixbuf::create_from_file(filename);\n" | 15943 | "<code>auto pixbuf = Gdk::Pixbuf::create_from_file(filename);\n" | ||
15952 | "</code>" | 15944 | "</code>" | ||
15953 | msgstr "" | 15945 | msgstr "" | ||
15954 | "\n" | 15946 | "\n" | ||
n | 15955 | "auto pixbuf = Gdk::Pixbuf::create_from_file(filnamm);\n" | n | 15947 | "auto pixbuf = Gdk::Pixbuf::create_from_file(filnamn);\n" |
15956 | 15948 | ||||
15957 | #. (itstool) path: section/para | 15949 | #. (itstool) path: section/para | ||
15958 | #: C/index-in.docbook:6802 | 15950 | #: C/index-in.docbook:6802 | ||
15959 | #, fuzzy | 15951 | #, fuzzy | ||
15960 | msgid "" | 15952 | msgid "" | ||
16071 | msgid "Nicolai M. Josuttis, \"The C++ Standard Library\" - section 4.2" | 16063 | msgid "Nicolai M. Josuttis, \"The C++ Standard Library\" - section 4.2" | ||
16072 | msgstr "Nicolai M. Josuttis, ”The C++ Standard Library” - avsnitt 4.2" | 16064 | msgstr "Nicolai M. Josuttis, ”The C++ Standard Library” - avsnitt 4.2" | ||
16073 | 16065 | ||||
16074 | #. (itstool) path: section/para | 16066 | #. (itstool) path: section/para | ||
16075 | #: C/index-in.docbook:6830 | 16067 | #: C/index-in.docbook:6830 | ||
n | 16076 | #, fuzzy | n | ||
16077 | msgid "" | 16068 | msgid "" | ||
16078 | "If you wish to learn more about smartpointers, you might look in these " | 16069 | "If you wish to learn more about smartpointers, you might look in these " | ||
16079 | "books: <_:itemizedlist-1/>" | 16070 | "books: <_:itemizedlist-1/>" | ||
16080 | msgstr "" | 16071 | msgstr "" | ||
16081 | "Om du vill lära dig mer om smartpekare kan du titta i dessa böcker: <_:" | 16072 | "Om du vill lära dig mer om smartpekare kan du titta i dessa böcker: <_:" | ||
16855 | "<literal>LINGUAS</literal> innehåller en alfabetiskt sorterad lista med " | 16846 | "<literal>LINGUAS</literal> innehåller en alfabetiskt sorterad lista med " | ||
16856 | "koder som identifierar språken som ditt program översatts till " | 16847 | "koder som identifierar språken som ditt program översatts till " | ||
16857 | "(kommentarsrader startar med <literal>#</literal> och ignoreras). Varje " | 16848 | "(kommentarsrader startar med <literal>#</literal> och ignoreras). Varje " | ||
16858 | "språkkod som listas i <literal>LINGUAS</literal>-filen måste ha en " | 16849 | "språkkod som listas i <literal>LINGUAS</literal>-filen måste ha en " | ||
16859 | "motsvarande <literal>.po</literal>-fil. Så om ditt program har tyska och " | 16850 | "motsvarande <literal>.po</literal>-fil. Så om ditt program har tyska och " | ||
n | 16860 | "japanska översättnmingar så skulle din <literal>LINGUAS</literal>-fil se ut " | n | 16851 | "japanska översättningar så skulle din <literal>LINGUAS</literal>-fil se ut " |
16861 | "så här:" | 16852 | "så här:" | ||
16862 | 16853 | ||||
16863 | #. (itstool) path: section/programlisting | 16854 | #. (itstool) path: section/programlisting | ||
16864 | #: C/index-in.docbook:7179 | 16855 | #: C/index-in.docbook:7179 | ||
16865 | #, fuzzy, no-wrap | 16856 | #, fuzzy, no-wrap | ||
17089 | #| "code such as <_:programlisting-1/>" | 17080 | #| "code such as <_:programlisting-1/>" | ||
17090 | msgid "" | 17081 | msgid "" | ||
17091 | "Depending on the types of files that contain translatable strings, add code " | 17082 | "Depending on the types of files that contain translatable strings, add code " | ||
17092 | "such as" | 17083 | "such as" | ||
17093 | msgstr "" | 17084 | msgstr "" | ||
n | 17094 | "Beroende på typerna av filer som innehåller översättningsbara strängar " | n | 17085 | "Beroende på typerna av filer som innehåller översättbara strängar lägger du " |
17095 | "lägger du till kod som <_:programlisting-1/>" | 17086 | "till kod som <_:programlisting-1/>" | ||
17096 | 17087 | ||||
17097 | #. (itstool) path: listitem/programlisting | 17088 | #. (itstool) path: listitem/programlisting | ||
17098 | #: C/index-in.docbook:7282 | 17089 | #: C/index-in.docbook:7282 | ||
17099 | #, fuzzy, no-wrap | 17090 | #, fuzzy, no-wrap | ||
17100 | msgid "" | 17091 | msgid "" | ||
17151 | "String literals should be typed in the source code in English, but they " | 17142 | "String literals should be typed in the source code in English, but they " | ||
17152 | "should be surrounded by a call to the <function>gettext()</function> " | 17143 | "should be surrounded by a call to the <function>gettext()</function> " | ||
17153 | "function. These strings will be extracted for translation and the " | 17144 | "function. These strings will be extracted for translation and the " | ||
17154 | "translations may be used at runtime instead of the original English strings." | 17145 | "translations may be used at runtime instead of the original English strings." | ||
17155 | msgstr "" | 17146 | msgstr "" | ||
n | 17156 | "Stränglitterarel bör typas i källkoden på engelska, men de bör omgärdas av " | n | 17147 | "Stränglitterarer bör typas i källkoden på engelska, men de bör omgärdas av " |
17157 | "ett anrop till <function>gettext()</function>-funktionen. Dessa strängar " | 17148 | "ett anrop till <function>gettext()</function>-funktionen. Dessa strängar " | ||
17158 | "kommer extraheras för översättning och översättningarna kan användas vid " | 17149 | "kommer extraheras för översättning och översättningarna kan användas vid " | ||
17159 | "körning i stället för de ursprungliga engelska strängarna." | 17150 | "körning i stället för de ursprungliga engelska strängarna." | ||
17160 | 17151 | ||||
17161 | #. (itstool) path: section/para | 17152 | #. (itstool) path: section/para | ||
17824 | "underkatalogen <filename>po/</filename> (<command>intltool-update -m</" | 17815 | "underkatalogen <filename>po/</filename> (<command>intltool-update -m</" | ||
17825 | "command> kan hjälpa dig med detta) så att översättarna alltid kommer åt " | 17816 | "command> kan hjälpa dig med detta) så att översättarna alltid kommer åt " | ||
17826 | "uppdaterade <filename>mittprogram.pot</filename>-filer, och fryser helt " | 17817 | "uppdaterade <filename>mittprogram.pot</filename>-filer, och fryser helt " | ||
17827 | "enkelt strängarna åtminstone några dagar innan du släpper en ny utgåva, och " | 17818 | "enkelt strängarna åtminstone några dagar innan du släpper en ny utgåva, och " | ||
17828 | "meddelar det på gnome-i18n. Beroende på antalet strängar ditt program " | 17819 | "meddelar det på gnome-i18n. Beroende på antalet strängar ditt program " | ||
n | 17829 | "innehåller och på hur populärt det är komer sedan översättningarna börja " | n | 17820 | "innehåller och på hur populärt det är kommer sedan översättningarna börja " |
17830 | "rassla in som <filename>språknamn.po</filename>-filer." | 17821 | "rassla in som <filename>språknamn.po</filename>-filer." | ||
17831 | 17822 | ||||
17832 | #. (itstool) path: section/para | 17823 | #. (itstool) path: section/para | ||
17833 | #: C/index-in.docbook:7621 | 17824 | #: C/index-in.docbook:7621 | ||
17834 | msgid "" | 17825 | msgid "" | ||
18719 | msgstr "" | 18710 | msgstr "" | ||
18720 | "Ett <classname>Glib::Dispatcher</classname>-objekt kan sändas ut av " | 18711 | "Ett <classname>Glib::Dispatcher</classname>-objekt kan sändas ut av " | ||
18721 | "mottagartråden såväl som av en arbetartråd, även om detta ska göras inom " | 18712 | "mottagartråden såväl som av en arbetartråd, även om detta ska göras inom " | ||
18722 | "rimliga gränser. På unix-liknande system delar <classname>Glib::Dispatcher</" | 18713 | "rimliga gränser. På unix-liknande system delar <classname>Glib::Dispatcher</" | ||
18723 | "classname>-objekt ett gemensamt rör, vilket i alla fall i teorin skulle " | 18714 | "classname>-objekt ett gemensamt rör, vilket i alla fall i teorin skulle " | ||
n | 18724 | "kunna bli fullt på ett system under världig tung belastning som kör ett " | n | 18715 | "kunna bli fullt på ett system under väldigt tung belastning som kör ett " |
18725 | "program med ett väldigt stort antal <classname>Dispatcher</classname>-objekt " | 18716 | "program med ett väldigt stort antal <classname>Dispatcher</classname>-objekt " | ||
18726 | "som används. Om röret skulle fyllas innan mottagartrådens huvudslinga har " | 18717 | "som används. Om röret skulle fyllas innan mottagartrådens huvudslinga har " | ||
18727 | "haft en chans att läsa från det för att tömma det, och mottagartråden " | 18718 | "haft en chans att läsa från det för att tömma det, och mottagartråden " | ||
18728 | "försöker att sända ut och skriva till det när det är i det tillståndet, så " | 18719 | "försöker att sända ut och skriva till det när det är i det tillståndet, så " | ||
18729 | "skulle mottagartråden blockera på skrivningen, vilket ger ett dödläge. Där " | 18720 | "skulle mottagartråden blockera på skrivningen, vilket ger ett dödläge. Där " | ||
18830 | "each other, and generates <filename>build.ninja</filename> or an equivalent " | 18821 | "each other, and generates <filename>build.ninja</filename> or an equivalent " | ||
18831 | "file so the files can be compiled in the correct order. <application>Meson</" | 18822 | "file so the files can be compiled in the correct order. <application>Meson</" | ||
18832 | "application> permits automatic configuration of software installation, " | 18823 | "application> permits automatic configuration of software installation, " | ||
18833 | "handling a large number of system quirks to increase portability." | 18824 | "handling a large number of system quirks to increase portability." | ||
18834 | msgstr "" | 18825 | msgstr "" | ||
n | 18835 | "Använd<application>Meson</application>! Det är din vän :) Det undersäker C- " | n | 18826 | "Använd<application>Meson</application>! Det är din vän :) Det undersöker C- " |
18836 | "och C++-filer, avgör hur de beror på varandra, och genererar <filename>build." | 18827 | "och C++-filer, avgör hur de beror på varandra, och genererar <filename>build." | ||
18837 | "ninja</filename> eller en motsvarande fil så att filerna kan kompileras i " | 18828 | "ninja</filename> eller en motsvarande fil så att filerna kan kompileras i " | ||
n | 18838 | "riktig ordning. <application>Meson</application> tillåter automatisk " | n | 18829 | "rätt ordning. <application>Meson</application> tillåter automatisk " |
18839 | "konfiguration av programvaruinstallation, och hanterar ett stort antal " | 18830 | "konfiguration av programvaruinstallation, och hanterar ett stort antal " | ||
18840 | "systemabrovinkar för att öka portabilitet." | 18831 | "systemabrovinkar för att öka portabilitet." | ||
18841 | 18832 | ||||
18842 | #. (itstool) path: chapter/para | 18833 | #. (itstool) path: chapter/para | ||
18843 | #: C/index-in.docbook:8115 | 18834 | #: C/index-in.docbook:8115 | ||
19305 | #, fuzzy | 19296 | #, fuzzy | ||
19306 | msgid "" | 19297 | msgid "" | ||
19307 | "Our simple ui file gives the window a title, and puts a <classname>Gtk::" | 19298 | "Our simple ui file gives the window a title, and puts a <classname>Gtk::" | ||
19308 | "Stack</classname> widget as the main content." | 19299 | "Stack</classname> widget as the main content." | ||
19309 | msgstr "" | 19300 | msgstr "" | ||
n | 19310 | "Vår enkla ui-fil ger fönstret en tilel och sätter en <classname>Gtk::Stack</" | n | 19301 | "Vår enkla ui-fil ger fönstret en titel och sätter en <classname>Gtk::Stack</" |
19311 | "classname>-komponent som huvudinnehållet." | 19302 | "classname>-komponent som huvudinnehållet." | ||
19312 | 19303 | ||||
19313 | #. (itstool) path: section/para | 19304 | #. (itstool) path: section/para | ||
19314 | #: C/index-in.docbook:8334 | 19305 | #: C/index-in.docbook:8334 | ||
19315 | #, fuzzy | 19306 | #, fuzzy | ||
19632 | "module.html\">GNOME module</link>." | 19623 | "module.html\">GNOME module</link>." | ||
19633 | msgstr "" | 19624 | msgstr "" | ||
19634 | "Innan vi kan använda detta schema i vårt program behöver vi kompilera det " | 19625 | "Innan vi kan använda detta schema i vårt program behöver vi kompilera det " | ||
19635 | "till den binärform som <classname>Gio::Settings</classname> förväntar sig. " | 19626 | "till den binärform som <classname>Gio::Settings</classname> förväntar sig. " | ||
19636 | "GIO tillhandahåller makron för att göra detta i autotools-baserade projekt. " | 19627 | "GIO tillhandahåller makron för att göra detta i autotools-baserade projekt. " | ||
n | 19637 | "Se beskrivningne av <link xlink:href=\"https://docs.gtk.org/gio/class." | n | 19628 | "Se beskrivningen av <link xlink:href=\"https://docs.gtk.org/gio/class." |
19638 | "Settings.html\">GSettings</link>. Meson tillhandahåller funktionen " | 19629 | "Settings.html\">GSettings</link>. Meson tillhandahåller funktionen " | ||
19639 | "<function>compile_schemas()</function> i <link xlink:href=\"https://" | 19630 | "<function>compile_schemas()</function> i <link xlink:href=\"https://" | ||
19640 | "mesonbuild.com/Gnome-module.html\">GNOME-modulen</link>." | 19631 | "mesonbuild.com/Gnome-module.html\">GNOME-modulen</link>." | ||
19641 | 19632 | ||||
19642 | #. (itstool) path: section/para | 19633 | #. (itstool) path: section/para | ||
20294 | "program, och kopior av detta dokument (med ditt bidrag) måste kunna spridas " | 20285 | "program, och kopior av detta dokument (med ditt bidrag) måste kunna spridas " | ||
20295 | "fritt." | 20286 | "fritt." | ||
20296 | 20287 | ||||
20297 | #. (itstool) path: appendix/title | 20288 | #. (itstool) path: appendix/title | ||
20298 | #: C/index-in.docbook:8775 | 20289 | #: C/index-in.docbook:8775 | ||
n | 20299 | #, fuzzy | n | ||
20300 | msgid "The RefPtr smartpointer" | 20290 | msgid "The RefPtr smartpointer" | ||
20301 | msgstr "RefPtr-smartpekaren" | 20291 | msgstr "RefPtr-smartpekaren" | ||
20302 | 20292 | ||||
20303 | #. (itstool) path: appendix/para | 20293 | #. (itstool) path: appendix/para | ||
20304 | #: C/index-in.docbook:8777 | 20294 | #: C/index-in.docbook:8777 | ||
20365 | "<link xlink:href=\"http://developer.gnome.org/glibmm/unstable/" | 20355 | "<link xlink:href=\"http://developer.gnome.org/glibmm/unstable/" | ||
20366 | "classGlib_1_1RefPtr.html\">Referens</link>" | 20356 | "classGlib_1_1RefPtr.html\">Referens</link>" | ||
20367 | 20357 | ||||
20368 | #. (itstool) path: appendix/para | 20358 | #. (itstool) path: appendix/para | ||
20369 | #: C/index-in.docbook:8804 | 20359 | #: C/index-in.docbook:8804 | ||
n | 20370 | #, fuzzy | n | ||
20371 | msgid "" | 20360 | msgid "" | ||
20372 | "A smartpointer acts much like a normal pointer. Here are a few examples." | 20361 | "A smartpointer acts much like a normal pointer. Here are a few examples." | ||
20373 | msgstr "" | 20362 | msgstr "" | ||
20374 | "En smartpekare agerar i stort sett som en vanlig pekare. Här är några " | 20363 | "En smartpekare agerar i stort sett som en vanlig pekare. Här är några " | ||
20375 | "exempel." | 20364 | "exempel." | ||
20803 | "generates a slot for a member method of a particular instance." | 20792 | "generates a slot for a member method of a particular instance." | ||
20804 | msgstr "" | 20793 | msgstr "" | ||
20805 | "<function>sigc::ptr_fun()</function> genererar en <classname>sigc::slot</" | 20794 | "<function>sigc::ptr_fun()</function> genererar en <classname>sigc::slot</" | ||
20806 | "classname>. Ett fack är ett objekt som ser ut och känns som en funktion, men " | 20795 | "classname>. Ett fack är ett objekt som ser ut och känns som en funktion, men " | ||
20807 | "faktiskt är ett objekt. Dessa är också kända som funktionsobjekt, eller " | 20796 | "faktiskt är ett objekt. Dessa är också kända som funktionsobjekt, eller " | ||
n | 20808 | "funktorer. <function>sigc::ptr_fun()</function> genererar ett fack flr en " | n | 20797 | "funktorer. <function>sigc::ptr_fun()</function> genererar ett fack för en " |
20809 | "fristående funktion eller statisk metod. <function>sigc::mem_fun()</" | 20798 | "fristående funktion eller statisk metod. <function>sigc::mem_fun()</" | ||
20810 | "function> genererar ett fack för en medlemsmetod för en specifik instans." | 20799 | "function> genererar ett fack för en medlemsmetod för en specifik instans." | ||
20811 | 20800 | ||||
20812 | #. (itstool) path: section/para | 20801 | #. (itstool) path: section/para | ||
20813 | #: C/index-in.docbook:9003 | 20802 | #: C/index-in.docbook:9003 | ||
21240 | "Om du använder en signalhanterare för att fånga samma signal från flera " | 21229 | "Om du använder en signalhanterare för att fånga samma signal från flera " | ||
21241 | "komponenter kan du vilja att den signalhanteraren erhåller lite extra " | 21230 | "komponenter kan du vilja att den signalhanteraren erhåller lite extra " | ||
21242 | "information. Till exempel kan du vilja veta vilken knapp som klickades på. " | 21231 | "information. Till exempel kan du vilja veta vilken knapp som klickades på. " | ||
21243 | "Du kan göra detta med <function>sigc::bind()</function>. Här är lite kod " | 21232 | "Du kan göra detta med <function>sigc::bind()</function>. Här är lite kod " | ||
21244 | "från <link linkend=\"sec-helloworld2\">helloworld2</link>-exemplet. <_:" | 21233 | "från <link linkend=\"sec-helloworld2\">helloworld2</link>-exemplet. <_:" | ||
n | 21245 | "programlisting-1/> Detta sägare att vi vill att signalen ska skicka ett " | n | 21234 | "programlisting-1/> Detta säger att vi vill att signalen ska skicka ett extra " |
21246 | "extra <classname>Glib::ustring</classname>-argument till signalhanteraren, " | 21235 | "<classname>Glib::ustring</classname>-argument till signalhanteraren, och att " | ||
21247 | "och att värdet på det argumentet ska vara ”button 1”. Vi kommer givetvis " | 21236 | "värdet på det argumentet ska vara ”button 1”. Vi kommer givetvis behöva " | ||
21248 | "behöva lägga till det extra argumentet till deklarationen för vår " | 21237 | "lägga till det extra argumentet till deklarationen för vår signalhanterare: " | ||
21249 | "signalhanterare: <_:programlisting-2/> En vanlig ”clicked”-signalhanterare " | 21238 | "<_:programlisting-2/> En vanlig ”clicked”-signalhanterare skulle förstås " | ||
21250 | "skulle förstås inte ha några argument." | 21239 | "inte ha några argument." | ||
21251 | 21240 | ||||
21252 | #. (itstool) path: section/programlisting | 21241 | #. (itstool) path: section/programlisting | ||
21253 | #: C/index-in.docbook:9206 | 21242 | #: C/index-in.docbook:9206 | ||
21254 | #, fuzzy, no-wrap | 21243 | #, fuzzy, no-wrap | ||
21255 | msgid "" | 21244 | msgid "" | ||
21774 | "<application>gdb</application> commands." | 21763 | "<application>gdb</application> commands." | ||
21775 | msgstr "" | 21764 | msgstr "" | ||
21776 | "Om det finns många fångade undantag innan det intressanta ofångade så kan " | 21765 | "Om det finns många fångade undantag innan det intressanta ofångade så kan " | ||
21777 | "denna metod vara långrandig. Den kan automatiseras med följande " | 21766 | "denna metod vara långrandig. Den kan automatiseras med följande " | ||
21778 | "<application>gdb</application>-kommandon. <_:programlisting-1/> Dessa " | 21767 | "<application>gdb</application>-kommandon. <_:programlisting-1/> Dessa " | ||
n | 21779 | "kommandin kommer skriva ut ett bakåtspår från varje <code>throw</code> och " | n | 21768 | "kommandon kommer skriva ut ett bakåtspår från varje <code>throw</code> och " |
21780 | "fortsätta. Bakåtspåret från den sista (eller möjligen den näst sista) " | 21769 | "fortsätta. Bakåtspåret från den sista (eller möjligen den näst sista) " | ||
21781 | "<code>throw</code> innan programmet stoppar är den som är intressant." | 21770 | "<code>throw</code> innan programmet stoppar är den som är intressant." | ||
21782 | 21771 | ||||
21783 | #. (itstool) path: section/programlisting | 21772 | #. (itstool) path: section/programlisting | ||
21784 | #: C/index-in.docbook:9429 | 21773 | #: C/index-in.docbook:9429 | ||
21811 | "<code>throw</code> before the program stops, is the interesting one." | 21800 | "<code>throw</code> before the program stops, is the interesting one." | ||
21812 | msgstr "" | 21801 | msgstr "" | ||
21813 | "Om det finns många fångade undantag innan det intressanta ofångade så kan " | 21802 | "Om det finns många fångade undantag innan det intressanta ofångade så kan " | ||
21814 | "denna metod vara långrandig. Den kan automatiseras med följande " | 21803 | "denna metod vara långrandig. Den kan automatiseras med följande " | ||
21815 | "<application>gdb</application>-kommandon. <_:programlisting-1/> Dessa " | 21804 | "<application>gdb</application>-kommandon. <_:programlisting-1/> Dessa " | ||
n | 21816 | "kommandin kommer skriva ut ett bakåtspår från varje <code>throw</code> och " | n | 21805 | "kommandon kommer skriva ut ett bakåtspår från varje <code>throw</code> och " |
21817 | "fortsätta. Bakåtspåret från den sista (eller möjligen den näst sista) " | 21806 | "fortsätta. Bakåtspåret från den sista (eller möjligen den näst sista) " | ||
21818 | "<code>throw</code> innan programmet stoppar är den som är intressant." | 21807 | "<code>throw</code> innan programmet stoppar är den som är intressant." | ||
21819 | 21808 | ||||
21820 | #. (itstool) path: appendix/title | 21809 | #. (itstool) path: appendix/title | ||
21821 | #: C/index-in.docbook:9446 | 21810 | #: C/index-in.docbook:9446 | ||
21852 | "application>-signalsystemet, men för nya, icke-GTK-signaler kan du skapa " | 21841 | "application>-signalsystemet, men för nya, icke-GTK-signaler kan du skapa " | ||
21853 | "rena C++-signaler med mallen <classname>sigc::signal<></classname>." | 21842 | "rena C++-signaler med mallen <classname>sigc::signal<></classname>." | ||
21854 | 21843 | ||||
21855 | #. (itstool) path: appendix/para | 21844 | #. (itstool) path: appendix/para | ||
21856 | #: C/index-in.docbook:9461 | 21845 | #: C/index-in.docbook:9461 | ||
n | 21857 | #, fuzzy | n | ||
21858 | msgid "" | 21846 | msgid "" | ||
21859 | "For instance, to create a signal that sends 2 parameters, a <type>bool</" | 21847 | "For instance, to create a signal that sends 2 parameters, a <type>bool</" | ||
21860 | "type> and an <type>int</type>, just declare a <classname>sigc::signal</" | 21848 | "type> and an <type>int</type>, just declare a <classname>sigc::signal</" | ||
21861 | "classname>, like so:" | 21849 | "classname>, like so:" | ||
21862 | msgstr "" | 21850 | msgstr "" | ||
21863 | "För att exempelvis skapa en signal som skickar 2 parametrar, en <type>bool</" | 21851 | "För att exempelvis skapa en signal som skickar 2 parametrar, en <type>bool</" | ||
n | 21864 | "type> och en <type>int</type>, deklarererar du bara en <classname>sigc::" | n | 21852 | "type> och en <type>int</type>, deklarerar du bara en <classname>sigc::" |
21865 | "signal</classname>, så här:" | 21853 | "signal</classname>, så här:" | ||
21866 | 21854 | ||||
21867 | #. (itstool) path: appendix/programlisting | 21855 | #. (itstool) path: appendix/programlisting | ||
21868 | #: C/index-in.docbook:9466 | 21856 | #: C/index-in.docbook:9466 | ||
21869 | #, fuzzy, no-wrap | 21857 | #, fuzzy, no-wrap | ||
22516 | "hitta de nya biblioteken. Turligt nog erbjuder <application>jhbuild</" | 22504 | "hitta de nya biblioteken. Turligt nog erbjuder <application>jhbuild</" | ||
22517 | "application> en lätt lösning på detta problem. Att exekvera kommandot " | 22505 | "application> en lätt lösning på detta problem. Att exekvera kommandot " | ||
22518 | "<command>jhbuild shell</command> kommer starta ett nytt skal med alla " | 22506 | "<command>jhbuild shell</command> kommer starta ett nytt skal med alla " | ||
22519 | "miljövariabler rätt inställda. Om du nu konfigurerar om och bygger ditt " | 22507 | "miljövariabler rätt inställda. Om du nu konfigurerar om och bygger ditt " | ||
22520 | "projekt som du brukar göra, så ska det helt enkelt länka mot de nyss " | 22508 | "projekt som du brukar göra, så ska det helt enkelt länka mot de nyss " | ||
n | 22521 | "installrade biblioteken. För att returnera till din tidigare miljö stänger " | n | 22509 | "installerade biblioteken. För att returnera till din tidigare miljö stänger " |
22522 | "du helt enkelt <application>jhbuild</application>-skalet." | 22510 | "du helt enkelt <application>jhbuild</application>-skalet." | ||
22523 | 22511 | ||||
22524 | #. (itstool) path: section/para | 22512 | #. (itstool) path: section/para | ||
22525 | #: C/index-in.docbook:9747 | 22513 | #: C/index-in.docbook:9747 | ||
22526 | #, fuzzy | 22514 | #, fuzzy | ||
22596 | "av verktyg som <command>gmmproc</command> och <filename>generate_wrap_init." | 22584 | "av verktyg som <command>gmmproc</command> och <filename>generate_wrap_init." | ||
22597 | "pl</filename> som är inkluderade i <application>glibmm</application>. I " | 22585 | "pl</filename> som är inkluderade i <application>glibmm</application>. I " | ||
22598 | "teorin skulle du kunna skriva dina egna byggfiler för att lämpligt använda " | 22586 | "teorin skulle du kunna skriva dina egna byggfiler för att lämpligt använda " | ||
22599 | "dessa, men ett mycket bättre alternativ är att använda bygginfrastrukturen " | 22587 | "dessa, men ett mycket bättre alternativ är att använda bygginfrastrukturen " | ||
22600 | "som tillhandahålls av modulen <application>mm-common</application>. För att " | 22588 | "som tillhandahålls av modulen <application>mm-common</application>. För att " | ||
n | 22601 | "komma igånh hjälper det mycket att välja en befintlig bindningsmodul som ett " | n | 22589 | "komma igång hjälper det mycket att välja en befintlig bindningsmodul som ett " |
22602 | "exempel att titta på." | 22590 | "exempel att titta på." | ||
22603 | 22591 | ||||
22604 | #. (itstool) path: section/para | 22592 | #. (itstool) path: section/para | ||
22605 | #: C/index-in.docbook:9786 | 22593 | #: C/index-in.docbook:9786 | ||
22606 | #, fuzzy | 22594 | #, fuzzy | ||
23104 | "glibmm:s <filename>tools/defs_gen</filename>-katalog. Till exempel," | 23092 | "glibmm:s <filename>tools/defs_gen</filename>-katalog. Till exempel," | ||
23105 | 23093 | ||||
23106 | #. (itstool) path: section/programlisting | 23094 | #. (itstool) path: section/programlisting | ||
23107 | #: C/index-in.docbook:9968 | 23095 | #: C/index-in.docbook:9968 | ||
23108 | #, fuzzy, no-wrap | 23096 | #, fuzzy, no-wrap | ||
n | n | 23097 | #| msgid "" | ||
23098 | #| "\n" | ||||
23099 | #| "$ ./h2def.py /usr/include/gtk-4.0/gtk/*.h > gtk_methods.defs\n" | ||||
23109 | msgid "" | 23100 | msgid "" | ||
23110 | "<code>$ ./h2def.py /usr/include/gtk-4.0/gtk/*.h > gtk_methods.defs\n" | 23101 | "<code>$ ./h2def.py /usr/include/gtk-4.0/gtk/*.h > gtk_methods.defs\n" | ||
23111 | "</code>" | 23102 | "</code>" | ||
23112 | msgstr "" | 23103 | msgstr "" | ||
23113 | "\n" | 23104 | "\n" | ||
23134 | "filename>-katalog. Till exempel," | 23125 | "filename>-katalog. Till exempel," | ||
23135 | 23126 | ||||
23136 | #. (itstool) path: section/programlisting | 23127 | #. (itstool) path: section/programlisting | ||
23137 | #: C/index-in.docbook:9979 | 23128 | #: C/index-in.docbook:9979 | ||
23138 | #, fuzzy, no-wrap | 23129 | #, fuzzy, no-wrap | ||
n | n | 23130 | #| msgid "" | ||
23131 | #| "\n" | ||||
23132 | #| "$ ./enumextract.py /usr/include/gtk-4.0/gtk/*.h > gtk_enums.defs\n" | ||||
23139 | msgid "" | 23133 | msgid "" | ||
23140 | "<code>$ ./enumextract.py /usr/include/gtk-4.0/gtk/*.h > gtk_enums.defs\n" | 23134 | "<code>$ ./enumextract.py /usr/include/gtk-4.0/gtk/*.h > gtk_enums.defs\n" | ||
23141 | "</code>" | 23135 | "</code>" | ||
23142 | msgstr "" | 23136 | msgstr "" | ||
23143 | "\n" | 23137 | "\n" | ||
23164 | "extra_defs_gen/</filename>. Till exempel" | 23158 | "extra_defs_gen/</filename>. Till exempel" | ||
23165 | 23159 | ||||
23166 | #. (itstool) path: section/programlisting | 23160 | #. (itstool) path: section/programlisting | ||
23167 | #: C/index-in.docbook:9991 | 23161 | #: C/index-in.docbook:9991 | ||
23168 | #, fuzzy, no-wrap | 23162 | #, fuzzy, no-wrap | ||
n | n | 23163 | #| msgid "" | ||
23164 | #| "\n" | ||||
23165 | #| "$ cd tools/extra_defs_gen\n" | ||||
23166 | #| "$ ./generate_extra_defs > gtk_signals.defs\n" | ||||
23169 | msgid "" | 23167 | msgid "" | ||
23170 | "<code>$ cd tools/extra_defs_gen\n" | 23168 | "<code>$ cd tools/extra_defs_gen\n" | ||
23171 | "$ ./generate_extra_defs > gtk_signals.defs\n" | 23169 | "$ ./generate_extra_defs > gtk_signals.defs\n" | ||
23172 | "</code>" | 23170 | "</code>" | ||
23173 | msgstr "" | 23171 | msgstr "" | ||
23190 | msgstr "" | 23188 | msgstr "" | ||
23191 | "Du måste redigera källkoden för ditt eget <filename>generate_extra_defs</" | 23189 | "Du måste redigera källkoden för ditt eget <filename>generate_extra_defs</" | ||
23192 | "filename>-verktyg för att generera <filename>.defs</filename>-filen för " | 23190 | "filename>-verktyg för att generera <filename>.defs</filename>-filen för " | ||
23193 | "GObject C-typerna som du vill omsluta. I skelettkällkodsträdet har källfilen " | 23191 | "GObject C-typerna som du vill omsluta. I skelettkällkodsträdet har källfilen " | ||
23194 | "namnet <filename>tools/extra_defs_gen/generate_defs_skeleton.cc</filename>. " | 23192 | "namnet <filename>tools/extra_defs_gen/generate_defs_skeleton.cc</filename>. " | ||
n | 23195 | "Om så inte redan gjorts ska filens namn bytas, så att basenamnet för din nya " | n | 23193 | "Om så inte redan gjorts ska filens namn bytas, så att basnamnet för din nya " |
23196 | "bindning ersätter platshållaren <varname>skeleton</varname>. Filen " | 23194 | "bindning ersätter platshållaren <varname>skeleton</varname>. Filen " | ||
23197 | "<filename>tools/extra_defs_gen/meson.build</filename> ska också nämna det " | 23195 | "<filename>tools/extra_defs_gen/meson.build</filename> ska också nämna det " | ||
23198 | "nya källfilnamnet." | 23196 | "nya källfilnamnet." | ||
23199 | 23197 | ||||
23200 | #. (itstool) path: section/para | 23198 | #. (itstool) path: section/para | ||
23208 | "exempel kan din <function>main()</function>-funktion se ut så här:" | 23206 | "exempel kan din <function>main()</function>-funktion se ut så här:" | ||
23209 | 23207 | ||||
23210 | #. (itstool) path: section/programlisting | 23208 | #. (itstool) path: section/programlisting | ||
23211 | #: C/index-in.docbook:10004 | 23209 | #: C/index-in.docbook:10004 | ||
23212 | #, fuzzy, no-wrap | 23210 | #, fuzzy, no-wrap | ||
n | n | 23211 | #| msgid "" | ||
23212 | #| "\n" | ||||
23213 | #| "#include <glibmm_generate_extra_defs/generate_extra_defs.h>\n" | ||||
23214 | #| "#include <libsomething.h>\n" | ||||
23215 | #| "#include <iostream>\n" | ||||
23216 | #| "\n" | ||||
23217 | #| "int main(int, char**)\n" | ||||
23218 | #| "{\n" | ||||
23219 | #| " something_init();\n" | ||||
23220 | #| "\n" | ||||
23221 | #| " std::cout << get_defs(SOME_TYPE_WIDGET)\n" | ||||
23222 | #| " << get_defs(SOME_TYPE_STUFF);\n" | ||||
23223 | #| " return 0;\n" | ||||
23224 | #| "}\n" | ||||
23213 | msgid "" | 23225 | msgid "" | ||
23214 | "<code>#include <glibmm_generate_extra_defs/generate_extra_defs.h>\n" | 23226 | "<code>#include <glibmm_generate_extra_defs/generate_extra_defs.h>\n" | ||
23215 | "#include <libsomething.h>\n" | 23227 | "#include <libsomething.h>\n" | ||
23216 | "#include <iostream>\n" | 23228 | "#include <iostream>\n" | ||
23217 | "\n" | 23229 | "\n" | ||
23714 | "<varname>gobject_</varname>, typedefs, the <function>gobj()</function> " | 23726 | "<varname>gobject_</varname>, typedefs, the <function>gobj()</function> " | ||
23715 | "accessors, type registration, and the <function>Glib::wrap()</function> " | 23727 | "accessors, type registration, and the <function>Glib::wrap()</function> " | ||
23716 | "method, among other things." | 23728 | "method, among other things." | ||
23717 | msgstr "" | 23729 | msgstr "" | ||
23718 | "Klassmakrot deklarerar själva klassen och dess relation med den " | 23730 | "Klassmakrot deklarerar själva klassen och dess relation med den " | ||
n | 23719 | "inderliggande C-typen. Det genererar några interna konstruktorer, " | n | 23731 | "underliggande C-typen. Det genererar några interna konstruktorer, " |
23720 | "medlemmarnas <varname>gobject_</varname>, typedef, <function>gobj()</" | 23732 | "medlemmarnas <varname>gobject_</varname>, typedef, <function>gobj()</" | ||
23721 | "function>-åtkommarna, typregistrering och metoden <function>Glib::wrap()</" | 23733 | "function>-åtkommarna, typregistrering och metoden <function>Glib::wrap()</" | ||
23722 | "function> med mera." | 23734 | "function> med mera." | ||
23723 | 23735 | ||||
23724 | #. (itstool) path: section/para | 23736 | #. (itstool) path: section/para | ||
23797 | msgid "_CLASS_GTKOBJECT" | 23809 | msgid "_CLASS_GTKOBJECT" | ||
23798 | msgstr "_CLASS_GTKOBJECT" | 23810 | msgstr "_CLASS_GTKOBJECT" | ||
23799 | 23811 | ||||
23800 | #. (itstool) path: section/para | 23812 | #. (itstool) path: section/para | ||
23801 | #: C/index-in.docbook:10218 | 23813 | #: C/index-in.docbook:10218 | ||
n | 23802 | #, fuzzy | n | ||
23803 | msgid "" | 23814 | msgid "" | ||
23804 | "This macro declares a wrapper for a type whose wrapper is derived from " | 23815 | "This macro declares a wrapper for a type whose wrapper is derived from " | ||
23805 | "<classname>Gtk::Object</classname>, such as a widget or dialog." | 23816 | "<classname>Gtk::Object</classname>, such as a widget or dialog." | ||
23806 | msgstr "" | 23817 | msgstr "" | ||
23807 | "Detta makro deklarerar ett omslag för en typ vars omslag härleds från " | 23818 | "Detta makro deklarerar ett omslag för en typ vars omslag härleds från " | ||
23808 | "<classname>Gtk::Object</classname>, som en komponent eller dialogruta." | 23819 | "<classname>Gtk::Object</classname>, som en komponent eller dialogruta." | ||
23809 | 23820 | ||||
23810 | #. (itstool) path: section/para | 23821 | #. (itstool) path: section/para | ||
23811 | #: C/index-in.docbook:10220 | 23822 | #: C/index-in.docbook:10220 | ||
23812 | #, fuzzy | 23823 | #, fuzzy | ||
n | n | 23824 | #| msgid "" | ||
23825 | #| "<function>_CLASS_GTKOBJECT( C++ class, C class, C casting macro, C++ base " | ||||
23826 | #| "class, C base class )</function>" | ||||
23813 | msgid "" | 23827 | msgid "" | ||
23814 | "<function>_CLASS_GTKOBJECT( C++ class, C class, C casting macro, C++ base " | 23828 | "<function>_CLASS_GTKOBJECT( C++ class, C class, C casting macro, C++ base " | ||
23815 | "class, C base class, real C class, real C base class, declaration prefix )</" | 23829 | "class, C base class, real C class, real C base class, declaration prefix )</" | ||
23816 | "function>" | 23830 | "function>" | ||
23817 | msgstr "" | 23831 | msgstr "" | ||
23848 | "wrapping a GTK Widget, because <classname>Gtk::Widget</classname> derives " | 23862 | "wrapping a GTK Widget, because <classname>Gtk::Widget</classname> derives " | ||
23849 | "from <classname>Gtk::Object</classname>." | 23863 | "from <classname>Gtk::Object</classname>." | ||
23850 | msgstr "" | 23864 | msgstr "" | ||
23851 | "Du kommer typiskt använda detta makro när klassen redan härleds från " | 23865 | "Du kommer typiskt använda detta makro när klassen redan härleds från " | ||
23852 | "<classname>Gtk::Object</classname>. Du kommer exempelvis använda det när du " | 23866 | "<classname>Gtk::Object</classname>. Du kommer exempelvis använda det när du " | ||
n | 23853 | "omsluter en GTK-komponentent, för <classname>Gtk::Widget</classname> härleds " | n | 23867 | "omsluter en GTK-komponent, för <classname>Gtk::Widget</classname> härleds " |
23854 | "från <classname>Gtk::Object</classname>." | 23868 | "från <classname>Gtk::Object</classname>." | ||
23855 | 23869 | ||||
23856 | #. (itstool) path: section/para | 23870 | #. (itstool) path: section/para | ||
23857 | #: C/index-in.docbook:10230 | 23871 | #: C/index-in.docbook:10230 | ||
23858 | #, fuzzy | 23872 | #, fuzzy | ||
23973 | "functions. The new, copy and free functions will be used to instantiate the " | 23987 | "functions. The new, copy and free functions will be used to instantiate the " | ||
23974 | "default constructor, copy constructor and destructor." | 23988 | "default constructor, copy constructor and destructor." | ||
23975 | msgstr "" | 23989 | msgstr "" | ||
23976 | "Detta makro deklarerar ett omslag för en ogenomskinlig struct som har copy- " | 23990 | "Detta makro deklarerar ett omslag för en ogenomskinlig struct som har copy- " | ||
23977 | "och free-funktioner. New-, copy- och free-funktionerna kommer användas för " | 23991 | "och free-funktioner. New-, copy- och free-funktionerna kommer användas för " | ||
n | 23978 | "att instansiera standardkonstruktorn, konstructor och destruktor för copy." | n | 23992 | "att instansiera standardkonstruktorn, konstruktor och destruktor för copy." |
23979 | 23993 | ||||
23980 | #. (itstool) path: section/para | 23994 | #. (itstool) path: section/para | ||
23981 | #: C/index-in.docbook:10271 | 23995 | #: C/index-in.docbook:10271 | ||
23982 | #, fuzzy | 23996 | #, fuzzy | ||
23983 | msgid "" | 23997 | msgid "" | ||
24265 | "constructor with the same argument types. It takes a <phrase " | 24279 | "constructor with the same argument types. It takes a <phrase " | ||
24266 | "role=\"nowrap\">C++</phrase> constructor signature, and a C function name." | 24280 | "role=\"nowrap\">C++</phrase> constructor signature, and a C function name." | ||
24267 | msgstr "" | 24281 | msgstr "" | ||
24268 | "Detta makro skapar en konstruktor med argument, motsvarande en " | 24282 | "Detta makro skapar en konstruktor med argument, motsvarande en " | ||
24269 | "<function>*_new()</function>-funktion i C. Den kommer inte faktiskt anropa " | 24283 | "<function>*_new()</function>-funktion i C. Den kommer inte faktiskt anropa " | ||
n | 24270 | "<function>*_new()</function>-funktionen, utan kommer helt skapa en " | n | 24284 | "<function>*_new()</function>-funktionen, utan kommer helt enkelt skapa en " |
24271 | "motsvarande konstruktor med samma argumenttyper. Den tar en C++-" | 24285 | "motsvarande konstruktor med samma argumenttyper. Den tar en C++-" | ||
24272 | "konstruktorsignatur och ett C-funktionsnamn." | 24286 | "konstruktorsignatur och ett C-funktionsnamn." | ||
24273 | 24287 | ||||
24274 | #. (itstool) path: varlistentry/term | 24288 | #. (itstool) path: varlistentry/term | ||
24275 | #: C/index-in.docbook:10376 C/index-in.docbook:10887 | 24289 | #: C/index-in.docbook:10376 C/index-in.docbook:10887 | ||
24287 | "Detta säger till <command>gmmproc</command> att <function>*_new()</function> " | 24301 | "Detta säger till <command>gmmproc</command> att <function>*_new()</function> " | ||
24288 | "i C har en slutgiltig <type>GError**</type>-parameter som ska ignoreras." | 24302 | "i C har en slutgiltig <type>GError**</type>-parameter som ska ignoreras." | ||
24289 | 24303 | ||||
24290 | #. (itstool) path: section/para | 24304 | #. (itstool) path: section/para | ||
24291 | #: C/index-in.docbook:10373 | 24305 | #: C/index-in.docbook:10373 | ||
n | 24292 | #, fuzzy | n | ||
24293 | msgid "It also takes an optional extra argument: <_:variablelist-1/>" | 24306 | msgid "It also takes an optional extra argument: <_:variablelist-1/>" | ||
n | 24294 | msgstr "Den tar också ett valfritt extra argument: <_:variablelist-1/>" | n | 24307 | msgstr "Det tar också ett valfritt extra argument: <_:variablelist-1/>" |
24295 | 24308 | ||||
24296 | #. (itstool) path: section/title | 24309 | #. (itstool) path: section/title | ||
24297 | #: C/index-in.docbook:10387 | 24310 | #: C/index-in.docbook:10387 | ||
24298 | msgid "Hand-coding constructors" | 24311 | msgid "Hand-coding constructors" | ||
24299 | msgstr "Koda konstruktorer för hand" | 24312 | msgstr "Koda konstruktorer för hand" | ||
24311 | "property names and values. For instance, from <filename>button.ccg</" | 24324 | "property names and values. For instance, from <filename>button.ccg</" | ||
24312 | "filename>:" | 24325 | "filename>:" | ||
24313 | msgstr "" | 24326 | msgstr "" | ||
24314 | "När en konstruktor måste skrivas delvis för hand eftersom, exempelvis, " | 24327 | "När en konstruktor måste skrivas delvis för hand eftersom, exempelvis, " | ||
24315 | "<function>*_new()</function>-funktionens parametrar i C inte direkt " | 24328 | "<function>*_new()</function>-funktionens parametrar i C inte direkt " | ||
n | 24316 | "motsvarar objektegenskaper, eller flr att because the <function>*_new()</" | n | 24329 | "motsvarar objektegenskaper, eller för att <function>*_new()</function>-" |
24317 | "function>-funktionen i C gör mer än att anropa <function>g_object_new()</" | 24330 | "funktionen i C gör mer än att anropa <function>g_object_new()</function>, så " | ||
24318 | "function>, så kan makrot <function>_CONSTRUCT()</function> användas i .ccg-" | 24331 | "kan makrot <function>_CONSTRUCT()</function> användas i .ccg-filen för att " | ||
24319 | "filen för att spara lite arbete. Makrot <function>_CONSTRUCT</function> tar " | 24332 | "spara lite arbete. Makrot <function>_CONSTRUCT</function> tar en serie " | ||
24320 | "en serie egenskapsnamn och värden. Till exempel, från <filename>button.ccg</" | 24333 | "egenskapsnamn och värden. Till exempel, från <filename>button.ccg</filename>:" | ||
24321 | "filename>:" | ||||
24322 | 24334 | ||||
24323 | #. (itstool) path: section/programlisting | 24335 | #. (itstool) path: section/programlisting | ||
24324 | #: C/index-in.docbook:10397 | 24336 | #: C/index-in.docbook:10397 | ||
24325 | #, fuzzy, no-wrap | 24337 | #, fuzzy, no-wrap | ||
24326 | msgid "" | 24338 | msgid "" | ||
24336 | " _CONSTRUCT(\"label\", label.c_str(), \"use_underline\", gboolean(mnemonic))\n | 24348 | " _CONSTRUCT(\"label\", label.c_str(), \"use_underline\", gboolean(mnemonic))\n | ||
> | " | > | " | ||
24337 | "{}\n" | 24349 | "{}\n" | ||
24338 | 24350 | ||||
24339 | #. (itstool) path: section/title | 24351 | #. (itstool) path: section/title | ||
24340 | #: C/index-in.docbook:10407 | 24352 | #: C/index-in.docbook:10407 | ||
n | 24341 | #, fuzzy | n | ||
24342 | msgid "Macros that suppress generation of some code" | 24353 | msgid "Macros that suppress generation of some code" | ||
n | 24343 | msgstr "Makron som åsidosätter generering av viss kod" | n | 24354 | msgstr "Makron som undertrycker generering av viss kod" |
24344 | 24355 | ||||
24345 | #. (itstool) path: section/para | 24356 | #. (itstool) path: section/para | ||
24346 | #: C/index-in.docbook:10409 | 24357 | #: C/index-in.docbook:10409 | ||
n | 24347 | #, fuzzy | n | ||
24348 | msgid "" | 24358 | msgid "" | ||
24349 | "Some macros suppress the generation of some code when they are used after a " | 24359 | "Some macros suppress the generation of some code when they are used after a " | ||
24350 | "<function>_CLASS_*</function> macro. Some suppress the definition in the " | 24360 | "<function>_CLASS_*</function> macro. Some suppress the definition in the " | ||
24351 | "generated .cc file, others suppress both the declaration in the .h file and " | 24361 | "generated .cc file, others suppress both the declaration in the .h file and " | ||
24352 | "the definition in the .cc file." | 24362 | "the definition in the .cc file." | ||
24353 | msgstr "" | 24363 | msgstr "" | ||
n | 24354 | "Några makron åsidosätter genererandet av viss kod när de används efter ett " | n | 24364 | "Några makron undertrycker genererandet av viss kod när de används efter ett " |
24355 | "<function>_CLASS_*</function>-makro. Vissa åsidosätter definitionen i den " | 24365 | "<function>_CLASS_*</function>-makro. Vissa undertrycker definitionen i den " | ||
24356 | "genererade .cc-filen, andra åsidosätter både deklarationen i .h-filen och " | 24366 | "genererade .cc-filen, andra undertrycker både deklarationen i .h-filen och " | ||
24357 | "definitionen i .cc-filen." | 24367 | "definitionen i .cc-filen." | ||
24358 | 24368 | ||||
24359 | #. (itstool) path: section/title | 24369 | #. (itstool) path: section/title | ||
24360 | #: C/index-in.docbook:10416 | 24370 | #: C/index-in.docbook:10416 | ||
24361 | msgid "_CUSTOM_DEFAULT_CTOR" | 24371 | msgid "_CUSTOM_DEFAULT_CTOR" | ||
24362 | msgstr "_CUSTOM_DEFAULT_CTOR" | 24372 | msgstr "_CUSTOM_DEFAULT_CTOR" | ||
24363 | 24373 | ||||
24364 | #. (itstool) path: section/para | 24374 | #. (itstool) path: section/para | ||
24365 | #: C/index-in.docbook:10418 | 24375 | #: C/index-in.docbook:10418 | ||
n | 24366 | #, fuzzy | n | ||
24367 | msgid "" | 24376 | msgid "" | ||
24368 | "Suppresses declaration and definition of default constructor in " | 24377 | "Suppresses declaration and definition of default constructor in " | ||
24369 | "<function>_CLASS_BOXEDTYPE</function>, <function>_CLASS_BOXEDTYPE_STATIC</" | 24378 | "<function>_CLASS_BOXEDTYPE</function>, <function>_CLASS_BOXEDTYPE_STATIC</" | ||
24370 | "function> and <function>_CLASS_OPAQUE_COPYABLE</function>." | 24379 | "function> and <function>_CLASS_OPAQUE_COPYABLE</function>." | ||
24371 | msgstr "" | 24380 | msgstr "" | ||
n | 24372 | "Åsidosätter deklaration och definition av standardkonstruktor i " | n | 24381 | "Undertrycker deklaration och definition av standardkonstruktorn i " |
24373 | "<function>_CLASS_BOXEDTYPE</function>, <function>_CLASS_BOXEDTYPE_STATIC</" | 24382 | "<function>_CLASS_BOXEDTYPE</function>, <function>_CLASS_BOXEDTYPE_STATIC</" | ||
24374 | "function> och <function>_CLASS_OPAQUE_COPYABLE</function>." | 24383 | "function> och <function>_CLASS_OPAQUE_COPYABLE</function>." | ||
24375 | 24384 | ||||
24376 | #. (itstool) path: section/title | 24385 | #. (itstool) path: section/title | ||
24377 | #: C/index-in.docbook:10425 | 24386 | #: C/index-in.docbook:10425 | ||
24384 | msgid "" | 24393 | msgid "" | ||
24385 | "Suppresses declaration and definition of the constructor that takes a " | 24394 | "Suppresses declaration and definition of the constructor that takes a " | ||
24386 | "pointer to the wrapped C object in <function>_CLASS_BOXEDTYPE</function> and " | 24395 | "pointer to the wrapped C object in <function>_CLASS_BOXEDTYPE</function> and " | ||
24387 | "<function>_CLASS_BOXEDTYPE_STATIC</function>." | 24396 | "<function>_CLASS_BOXEDTYPE_STATIC</function>." | ||
24388 | msgstr "" | 24397 | msgstr "" | ||
n | 24389 | "Åsidosätter deklaration och definition av konstruktorn som tar en pekare " | n | 24398 | "Undertrycker deklaration och definition av konstruktorn som tar en pekare " |
24390 | "till det omslutna C-objektet i <function>_CLASS_BOXEDTYPE</function> och " | 24399 | "till det omslutna C-objektet i <function>_CLASS_BOXEDTYPE</function> och " | ||
24391 | "<function>_CLASS_BOXEDTYPE_STATIC</function>." | 24400 | "<function>_CLASS_BOXEDTYPE_STATIC</function>." | ||
24392 | 24401 | ||||
24393 | #. (itstool) path: section/para | 24402 | #. (itstool) path: section/para | ||
24394 | #: C/index-in.docbook:10431 | 24403 | #: C/index-in.docbook:10431 | ||
24396 | msgid "" | 24405 | msgid "" | ||
24397 | "Suppresses definition of the constructor that takes a pointer to the wrapped " | 24406 | "Suppresses definition of the constructor that takes a pointer to the wrapped " | ||
24398 | "C object in <function>_CLASS_INTERFACE</function> and " | 24407 | "C object in <function>_CLASS_INTERFACE</function> and " | ||
24399 | "<function>_CLASS_OPAQUE_COPYABLE</function>." | 24408 | "<function>_CLASS_OPAQUE_COPYABLE</function>." | ||
24400 | msgstr "" | 24409 | msgstr "" | ||
n | 24401 | "Åsidosätter definition av konstruktorn som tar en pekare till det omslutna C-" | n | 24410 | "Undertrycker definition av konstruktorn som tar en pekare till det omslutna " |
24402 | "objektet i <function>_CLASS_INTERFACE</function> och " | 24411 | "C-objektet i <function>_CLASS_INTERFACE</function> och " | ||
24403 | "<function>_CLASS_OPAQUE_COPYABLE</function>." | 24412 | "<function>_CLASS_OPAQUE_COPYABLE</function>." | ||
24404 | 24413 | ||||
24405 | #. (itstool) path: section/para | 24414 | #. (itstool) path: section/para | ||
24406 | #: C/index-in.docbook:10435 | 24415 | #: C/index-in.docbook:10435 | ||
24407 | #, fuzzy | 24416 | #, fuzzy | ||
24409 | "Suppresses definition of the constructor that takes a pointer to the wrapped " | 24418 | "Suppresses definition of the constructor that takes a pointer to the wrapped " | ||
24410 | "C object and the constructor that takes construct_params in " | 24419 | "C object and the constructor that takes construct_params in " | ||
24411 | "<function>_CLASS_GOBJECT</function> and <function>_CLASS_GTKOBJECT</" | 24420 | "<function>_CLASS_GOBJECT</function> and <function>_CLASS_GTKOBJECT</" | ||
24412 | "function>." | 24421 | "function>." | ||
24413 | msgstr "" | 24422 | msgstr "" | ||
n | 24414 | "Åsidosätter definition av konstruktorn som tar en pekare till det omslutna C-" | n | 24423 | "Undertrycker definition av konstruktorn som tar en pekare till det omslutna " |
24415 | "objektet och konstruktorn som tar construct_params i " | 24424 | "C-objektet och konstruktorn som tar construct_params i " | ||
24416 | "<function>_CLASS_GOBJECT</function> och <function>_CLASS_GTKOBJECT</" | 24425 | "<function>_CLASS_GOBJECT</function> och <function>_CLASS_GTKOBJECT</" | ||
24417 | "function>." | 24426 | "function>." | ||
24418 | 24427 | ||||
24419 | #. (itstool) path: section/title | 24428 | #. (itstool) path: section/title | ||
24420 | #: C/index-in.docbook:10442 | 24429 | #: C/index-in.docbook:10442 | ||
24421 | msgid "_CUSTOM_DTOR" | 24430 | msgid "_CUSTOM_DTOR" | ||
24422 | msgstr "_CUSTOM_DTOR" | 24431 | msgstr "_CUSTOM_DTOR" | ||
24423 | 24432 | ||||
24424 | #. (itstool) path: section/para | 24433 | #. (itstool) path: section/para | ||
24425 | #: C/index-in.docbook:10444 | 24434 | #: C/index-in.docbook:10444 | ||
n | 24426 | #, fuzzy | n | ||
24427 | msgid "" | 24435 | msgid "" | ||
24428 | "Suppresses definition of destructor in <function>_CLASS_GOBJECT</function> " | 24436 | "Suppresses definition of destructor in <function>_CLASS_GOBJECT</function> " | ||
24429 | "and <function>_CLASS_GTKOBJECT</function>." | 24437 | "and <function>_CLASS_GTKOBJECT</function>." | ||
24430 | msgstr "" | 24438 | msgstr "" | ||
n | 24431 | "Åsidosätter definition av destruktorn i <function>_CLASS_GOBJECT</function> " | n | 24439 | "Undertrycker definition av destruktorn i <function>_CLASS_GOBJECT</function> " |
24432 | "and <function>_CLASS_GTKOBJECT</function>." | 24440 | "and <function>_CLASS_GTKOBJECT</function>." | ||
24433 | 24441 | ||||
24434 | #. (itstool) path: section/title | 24442 | #. (itstool) path: section/title | ||
24435 | #: C/index-in.docbook:10450 | 24443 | #: C/index-in.docbook:10450 | ||
24436 | msgid "_CUSTOM_MOVE_OPERATIONS" | 24444 | msgid "_CUSTOM_MOVE_OPERATIONS" | ||
24442 | msgid "" | 24450 | msgid "" | ||
24443 | "Suppresses declaration and definition of move constructor and move " | 24451 | "Suppresses declaration and definition of move constructor and move " | ||
24444 | "assignment operator in <function>_CLASS_GOBJECT</function> and " | 24452 | "assignment operator in <function>_CLASS_GOBJECT</function> and " | ||
24445 | "<function>_CLASS_GTKOBJECT</function>." | 24453 | "<function>_CLASS_GTKOBJECT</function>." | ||
24446 | msgstr "" | 24454 | msgstr "" | ||
n | 24447 | "Åsidosätter deklaration och definition av move-konstruktor och move-" | n | 24455 | "Undertrycker deklaration och definition av move-konstruktor och move-" |
24448 | "tilldelningsoperator i <function>_CLASS_GOBJECT</function> och " | 24456 | "tilldelningsoperator i <function>_CLASS_GOBJECT</function> och " | ||
24449 | "<function>_CLASS_GTKOBJECT</function>." | 24457 | "<function>_CLASS_GTKOBJECT</function>." | ||
24450 | 24458 | ||||
24451 | #. (itstool) path: section/para | 24459 | #. (itstool) path: section/para | ||
24452 | #: C/index-in.docbook:10456 | 24460 | #: C/index-in.docbook:10456 | ||
24488 | msgid "_CUSTOM_WRAP_NEW" | 24496 | msgid "_CUSTOM_WRAP_NEW" | ||
24489 | msgstr "_CUSTOM_WRAP_NEW" | 24497 | msgstr "_CUSTOM_WRAP_NEW" | ||
24490 | 24498 | ||||
24491 | #. (itstool) path: section/para | 24499 | #. (itstool) path: section/para | ||
24492 | #: C/index-in.docbook:10474 | 24500 | #: C/index-in.docbook:10474 | ||
n | 24493 | #, fuzzy | n | ||
24494 | msgid "" | 24501 | msgid "" | ||
24495 | "Suppresses definition of <function>Glib::wrap_new()</function> function in " | 24502 | "Suppresses definition of <function>Glib::wrap_new()</function> function in " | ||
24496 | "<function>_CLASS_GOBJECT</function>." | 24503 | "<function>_CLASS_GOBJECT</function>." | ||
24497 | msgstr "" | 24504 | msgstr "" | ||
n | 24498 | "Åsidosätter definition av <function>Glib::wrap_new()</function>-funktionen i " | n | 24505 | "Undertrycker definition av <function>Glib::wrap_new()</function>-funktionen " |
24499 | "<function>_CLASS_GOBJECT</function>." | 24506 | "i <function>_CLASS_GOBJECT</function>." | ||
24500 | 24507 | ||||
24501 | #. (itstool) path: section/title | 24508 | #. (itstool) path: section/title | ||
24502 | #: C/index-in.docbook:10480 | 24509 | #: C/index-in.docbook:10480 | ||
24503 | msgid "_CUSTOM_WRAP_FUNCTION" | 24510 | msgid "_CUSTOM_WRAP_FUNCTION" | ||
24504 | msgstr "_CUSTOM_WRAP_FUNCTION" | 24511 | msgstr "_CUSTOM_WRAP_FUNCTION" | ||
24505 | 24512 | ||||
24506 | #. (itstool) path: section/para | 24513 | #. (itstool) path: section/para | ||
24507 | #: C/index-in.docbook:10482 | 24514 | #: C/index-in.docbook:10482 | ||
n | 24508 | #, fuzzy | n | ||
24509 | msgid "" | 24515 | msgid "" | ||
24510 | "Suppresses definition of <function>Glib::wrap()</function> function in " | 24516 | "Suppresses definition of <function>Glib::wrap()</function> function in " | ||
24511 | "<function>_CLASS_GOBJECT</function> and <function>_CLASS_GTKOBJECT</" | 24517 | "<function>_CLASS_GOBJECT</function> and <function>_CLASS_GTKOBJECT</" | ||
24512 | "function>." | 24518 | "function>." | ||
24513 | msgstr "" | 24519 | msgstr "" | ||
n | 24514 | "Åsidosätter definition av <function>Glib::wrap()</function>-funktionen i " | n | 24520 | "Undertrycker definition av <function>Glib::wrap()</function>-funktionen i " |
24515 | "<function>_CLASS_GOBJECT</function> och <function>_CLASS_GTKOBJECT</" | 24521 | "<function>_CLASS_GOBJECT</function> och <function>_CLASS_GTKOBJECT</" | ||
24516 | "function>." | 24522 | "function>." | ||
24517 | 24523 | ||||
24518 | #. (itstool) path: section/title | 24524 | #. (itstool) path: section/title | ||
24519 | #: C/index-in.docbook:10488 | 24525 | #: C/index-in.docbook:10488 | ||
24520 | msgid "_NO_WRAP_FUNCTION" | 24526 | msgid "_NO_WRAP_FUNCTION" | ||
24521 | msgstr "_NO_WRAP_FUNCTION" | 24527 | msgstr "_NO_WRAP_FUNCTION" | ||
24522 | 24528 | ||||
24523 | #. (itstool) path: section/para | 24529 | #. (itstool) path: section/para | ||
24524 | #: C/index-in.docbook:10490 | 24530 | #: C/index-in.docbook:10490 | ||
n | 24525 | #, fuzzy | n | ||
24526 | msgid "" | 24531 | msgid "" | ||
24527 | "Suppresses declaration and definition of <function>Glib::wrap()</function> " | 24532 | "Suppresses declaration and definition of <function>Glib::wrap()</function> " | ||
24528 | "function in <function>_CLASS_GOBJECT</function>, <function>_CLASS_BOXEDTYPE</" | 24533 | "function in <function>_CLASS_GOBJECT</function>, <function>_CLASS_BOXEDTYPE</" | ||
24529 | "function>, <function>_CLASS_BOXEDTYPE_STATIC</function>, " | 24534 | "function>, <function>_CLASS_BOXEDTYPE_STATIC</function>, " | ||
24530 | "<function>_CLASS_OPAQUE_COPYABLE</function>, <function>_CLASS_INTERFACE</" | 24535 | "<function>_CLASS_OPAQUE_COPYABLE</function>, <function>_CLASS_INTERFACE</" | ||
24531 | "function> and <function>_CLASS_GTKOBJECT</function>." | 24536 | "function> and <function>_CLASS_GTKOBJECT</function>." | ||
24532 | msgstr "" | 24537 | msgstr "" | ||
n | 24533 | "Åsidosätter deklaration och definition av <function>Glib::wrap()</function>-" | n | 24538 | "Undertrycker deklaration och definition av <function>Glib::wrap()</function>-" |
24534 | "funktionen i <function>_CLASS_GOBJECT</function>, " | 24539 | "funktionen i <function>_CLASS_GOBJECT</function>, " | ||
24535 | "<function>_CLASS_BOXEDTYPE</function>, <function>_CLASS_BOXEDTYPE_STATIC</" | 24540 | "<function>_CLASS_BOXEDTYPE</function>, <function>_CLASS_BOXEDTYPE_STATIC</" | ||
24536 | "function>, <function>_CLASS_OPAQUE_COPYABLE</function>, " | 24541 | "function>, <function>_CLASS_OPAQUE_COPYABLE</function>, " | ||
24537 | "<function>_CLASS_INTERFACE</function> och <function>_CLASS_GTKOBJECT</" | 24542 | "<function>_CLASS_INTERFACE</function> och <function>_CLASS_GTKOBJECT</" | ||
24538 | "function>." | 24543 | "function>." | ||
24612 | "Gör en extra <function>reference()</function> på returvärdet ifall C-" | 24617 | "Gör en extra <function>reference()</function> på returvärdet ifall C-" | ||
24613 | "funktionen inte tillhandahåller en referens." | 24618 | "funktionen inte tillhandahåller en referens." | ||
24614 | 24619 | ||||
24615 | #. (itstool) path: varlistentry/term | 24620 | #. (itstool) path: varlistentry/term | ||
24616 | #: C/index-in.docbook:10526 C/index-in.docbook:10656 | 24621 | #: C/index-in.docbook:10526 C/index-in.docbook:10656 | ||
n | 24617 | #, fuzzy | n | ||
24618 | msgid "errthrow [\"<exceptions>\"]" | 24622 | msgid "errthrow [\"<exceptions>\"]" | ||
24619 | msgstr "errthrow [\"<undantag>\"]" | 24623 | msgstr "errthrow [\"<undantag>\"]" | ||
24620 | 24624 | ||||
24621 | #. (itstool) path: listitem/para | 24625 | #. (itstool) path: listitem/para | ||
24622 | #: C/index-in.docbook:10528 | 24626 | #: C/index-in.docbook:10528 | ||
24639 | "Hello\\, world, Glib::ConvertError\"</code>" | 24643 | "Hello\\, world, Glib::ConvertError\"</code>" | ||
24640 | 24644 | ||||
24641 | #. (itstool) path: varlistentry/term | 24645 | #. (itstool) path: varlistentry/term | ||
24642 | #: C/index-in.docbook:10539 C/index-in.docbook:10762 C/index-in.docbook:10828 | 24646 | #: C/index-in.docbook:10539 C/index-in.docbook:10762 C/index-in.docbook:10828 | ||
24643 | #: C/index-in.docbook:11074 | 24647 | #: C/index-in.docbook:11074 | ||
n | 24644 | #, fuzzy | n | ||
24645 | msgid "deprecated [\"<text>\"]" | 24648 | msgid "deprecated [\"<text>\"]" | ||
24646 | msgstr "deprecated [\"<text>\"]" | 24649 | msgstr "deprecated [\"<text>\"]" | ||
24647 | 24650 | ||||
24648 | #. (itstool) path: listitem/para | 24651 | #. (itstool) path: listitem/para | ||
24649 | #: C/index-in.docbook:10541 C/index-in.docbook:10764 C/index-in.docbook:10830 | 24652 | #: C/index-in.docbook:10541 C/index-in.docbook:10764 C/index-in.docbook:10830 | ||
24650 | #: C/index-in.docbook:11076 | 24653 | #: C/index-in.docbook:11076 | ||
n | 24651 | #, fuzzy | n | ||
24652 | msgid "" | 24654 | msgid "" | ||
24653 | "Puts the generated code in #ifdef blocks. Text about the deprecation can be " | 24655 | "Puts the generated code in #ifdef blocks. Text about the deprecation can be " | ||
24654 | "specified as an optional parameter." | 24656 | "specified as an optional parameter." | ||
24655 | msgstr "" | 24657 | msgstr "" | ||
24656 | "Stoppar den genererade koden i #ifdef-block. Text om föråldringen kan anges " | 24658 | "Stoppar den genererade koden i #ifdef-block. Text om föråldringen kan anges " | ||
24657 | "som en valfri parameter." | 24659 | "som en valfri parameter." | ||
24658 | 24660 | ||||
24659 | #. (itstool) path: varlistentry/term | 24661 | #. (itstool) path: varlistentry/term | ||
24660 | #: C/index-in.docbook:10547 | 24662 | #: C/index-in.docbook:10547 | ||
n | 24661 | #, fuzzy | n | ||
24662 | msgid "ignore_deprecations" | 24663 | msgid "ignore_deprecations" | ||
24663 | msgstr "ignore_deprecations" | 24664 | msgstr "ignore_deprecations" | ||
24664 | 24665 | ||||
24665 | #. (itstool) path: listitem/para | 24666 | #. (itstool) path: listitem/para | ||
24666 | #: C/index-in.docbook:10549 | 24667 | #: C/index-in.docbook:10549 | ||
n | 24667 | #, fuzzy | n | ||
24668 | msgid "" | 24668 | msgid "" | ||
24669 | "Puts the generated code in the .cc file in a " | 24669 | "Puts the generated code in the .cc file in a " | ||
24670 | "G_GNUC_BEGIN_IGNORE_DEPRECATIONS / G_GNUC_END_IGNORE_DEPRECATIONS block. " | 24670 | "G_GNUC_BEGIN_IGNORE_DEPRECATIONS / G_GNUC_END_IGNORE_DEPRECATIONS block. " | ||
24671 | "(Only in glibmm >= 2.70.1)" | 24671 | "(Only in glibmm >= 2.70.1)" | ||
24672 | msgstr "" | 24672 | msgstr "" | ||
24674 | "G_GNUC_BEGIN_IGNORE_DEPRECATIONS / G_GNUC_END_IGNORE_DEPRECATIONS-block. " | 24674 | "G_GNUC_BEGIN_IGNORE_DEPRECATIONS / G_GNUC_END_IGNORE_DEPRECATIONS-block. " | ||
24675 | "(Endast i glibmm >= 2.70.1)" | 24675 | "(Endast i glibmm >= 2.70.1)" | ||
24676 | 24676 | ||||
24677 | #. (itstool) path: varlistentry/term | 24677 | #. (itstool) path: varlistentry/term | ||
24678 | #: C/index-in.docbook:10555 | 24678 | #: C/index-in.docbook:10555 | ||
n | 24679 | #, fuzzy | n | ||
24680 | msgid "constversion" | 24679 | msgid "constversion" | ||
24681 | msgstr "constversion" | 24680 | msgstr "constversion" | ||
24682 | 24681 | ||||
24683 | #. (itstool) path: listitem/para | 24682 | #. (itstool) path: listitem/para | ||
24684 | #: C/index-in.docbook:10557 | 24683 | #: C/index-in.docbook:10557 | ||
24708 | "@newin-kommandot som genererats från C-dokumentationen." | 24707 | "@newin-kommandot som genererats från C-dokumentationen." | ||
24709 | 24708 | ||||
24710 | #. (itstool) path: varlistentry/term | 24709 | #. (itstool) path: varlistentry/term | ||
24711 | #: C/index-in.docbook:10569 C/index-in.docbook:10776 C/index-in.docbook:10909 | 24710 | #: C/index-in.docbook:10569 C/index-in.docbook:10776 C/index-in.docbook:10909 | ||
24712 | #: C/index-in.docbook:10996 | 24711 | #: C/index-in.docbook:10996 | ||
n | 24713 | #, fuzzy | n | ||
24714 | msgid "ifdef <identifier>" | 24712 | msgid "ifdef <identifier>" | ||
24715 | msgstr "ifdef <identifierare>" | 24713 | msgstr "ifdef <identifierare>" | ||
24716 | 24714 | ||||
24717 | #. (itstool) path: listitem/para | 24715 | #. (itstool) path: listitem/para | ||
24718 | #: C/index-in.docbook:10571 C/index-in.docbook:10778 C/index-in.docbook:10911 | 24716 | #: C/index-in.docbook:10571 C/index-in.docbook:10778 C/index-in.docbook:10911 | ||
24758 | "function that the method wraps." | 24756 | "function that the method wraps." | ||
24759 | msgstr "" | 24757 | msgstr "" | ||
24760 | "Används tillsammans med alternativet <literal>slot_name</literal> för att " | 24758 | "Används tillsammans med alternativet <literal>slot_name</literal> för att " | ||
24761 | "ange namnet på limåteranropsfunktionen som hanterar extrahering av facket " | 24759 | "ange namnet på limåteranropsfunktionen som hanterar extrahering av facket " | ||
24762 | "och sedan anropar det. Adressen för detta återanrop skickas också till C-" | 24760 | "och sedan anropar det. Adressen för detta återanrop skickas också till C-" | ||
n | 24763 | "funktioen som metoden omsluter." | n | 24761 | "funktionen som metoden omsluter." |
24764 | 24762 | ||||
24765 | #. (itstool) path: varlistentry/term | 24763 | #. (itstool) path: varlistentry/term | ||
24766 | #: C/index-in.docbook:10597 C/index-in.docbook:10937 | 24764 | #: C/index-in.docbook:10597 C/index-in.docbook:10937 | ||
24767 | msgid "no_slot_copy" | 24765 | msgid "no_slot_copy" | ||
24768 | msgstr "no_slot_copy" | 24766 | msgstr "no_slot_copy" | ||
24846 | "ownership (none, shallow or deep) for the m4 conversion rule, which you " | 24844 | "ownership (none, shallow or deep) for the m4 conversion rule, which you " | ||
24847 | "should probably put directly into the .hg file because the ownership depends " | 24845 | "should probably put directly into the .hg file because the ownership depends " | ||
24848 | "on the function rather than the type. For instance:" | 24846 | "on the function rather than the type. For instance:" | ||
24849 | msgstr "" | 24847 | msgstr "" | ||
24850 | "Omsluta <classname>GList*</classname>- och <classname>GSList*</classname>-" | 24848 | "Omsluta <classname>GList*</classname>- och <classname>GSList*</classname>-" | ||
n | 24851 | "returtype: Du måste upptäcka huruvida anroparen ska frigöra listan och " | n | 24849 | "returtyper: Du måste upptäcka huruvida anroparen ska frigöra listan och " |
24852 | "huruvida den ska släppa objekten i listan, igen genom att läsa " | 24850 | "huruvida den ska släppa objekten i listan, igen genom att läsa " | ||
24853 | "dokumentationen för C-funktionen. Med denna information kan du välja " | 24851 | "dokumentationen för C-funktionen. Med denna information kan du välja " | ||
24854 | "ägarskapet (none, shallow eller deep) för m4-konverteringsregeln, vilket du " | 24852 | "ägarskapet (none, shallow eller deep) för m4-konverteringsregeln, vilket du " | ||
24855 | "troligen ska stoppa direkt i .hg-filen för ägarskapet beror på funktionen " | 24853 | "troligen ska stoppa direkt i .hg-filen för ägarskapet beror på funktionen " | ||
24856 | "snarare än typen. Till exempel: <_:programlisting-1/>" | 24854 | "snarare än typen. Till exempel: <_:programlisting-1/>" | ||
24857 | 24855 | ||||
24858 | #. (itstool) path: listitem/programlisting | 24856 | #. (itstool) path: listitem/programlisting | ||
24859 | #: C/index-in.docbook:10637 | 24857 | #: C/index-in.docbook:10637 | ||
24860 | #, fuzzy, no-wrap | 24858 | #, fuzzy, no-wrap | ||
n | n | 24859 | #| msgid "#m4 _CONVERSION(`GSList*',`std::vector<Widget*>',`Glib::SListHan | ||
> | dler<Widget*>::slist_to_vector($3, Glib::OWNERSHIP_SHALLOW)')" | ||||
24861 | msgid "<code>#m4 _CONVERSION(`GSList*',`std::vector<Widget*>',`Glib::SList | 24860 | msgid "<code>#m4 _CONVERSION(`GSList*',`std::vector<Widget*>',`Glib::SList | ||
> | Handler<Widget*>::slist_to_vector($3, Glib::OWNERSHIP_SHALLOW)')</code>" | > | Handler<Widget*>::slist_to_vector($3, Glib::OWNERSHIP_SHALLOW)')</code>" | ||
24862 | msgstr "#m4 _CONVERSION(`GSList*',`std::vector<Widget*>',`Glib::SListHandl | 24861 | msgstr "#m4 _CONVERSION(`GSList*',`std::vector<Widget*>',`Glib::SListHandl | ||
> | er<Widget*>::slist_to_vector($3, Glib::OWNERSHIP_SHALLOW)')" | > | er<Widget*>::slist_to_vector($3, Glib::OWNERSHIP_SHALLOW)')" | ||
24863 | 24862 | ||||
24864 | #. (itstool) path: section/para | 24863 | #. (itstool) path: section/para | ||
24865 | #: C/index-in.docbook:10608 | 24864 | #: C/index-in.docbook:10608 | ||
24950 | "wrapped C function returns a value, but the corresponding <phrase " | 24949 | "wrapped C function returns a value, but the corresponding <phrase " | ||
24951 | "role=\"nowrap\">C++</phrase> method returns <type>void</type>." | 24950 | "role=\"nowrap\">C++</phrase> method returns <type>void</type>." | ||
24952 | msgstr "" | 24951 | msgstr "" | ||
24953 | "Inkludera inte ett @return-Doxygenkommando i dokumentationen. Användbart om " | 24952 | "Inkludera inte ett @return-Doxygenkommando i dokumentationen. Användbart om " | ||
24954 | "den omslutna C-funktionen returnerar ett värde, men den motsvarande C++-" | 24953 | "den omslutna C-funktionen returnerar ett värde, men den motsvarande C++-" | ||
n | 24955 | "metoden returerar <type>void</type>." | n | 24954 | "metoden returnerar <type>void</type>." |
24956 | 24955 | ||||
24957 | #. (itstool) path: section/title | 24956 | #. (itstool) path: section/title | ||
24958 | #: C/index-in.docbook:10688 | 24957 | #: C/index-in.docbook:10688 | ||
24959 | msgid "_IGNORE, _IGNORE_SIGNAL, _IGNORE_PROPERTY" | 24958 | msgid "_IGNORE, _IGNORE_SIGNAL, _IGNORE_PROPERTY" | ||
24960 | msgstr "_IGNORE, _IGNORE_SIGNAL, _IGNORE_PROPERTY" | 24959 | msgstr "_IGNORE, _IGNORE_SIGNAL, _IGNORE_PROPERTY" | ||
25048 | msgstr "Till exempel, från <filename>button.hg</filename>:" | 25047 | msgstr "Till exempel, från <filename>button.hg</filename>:" | ||
25049 | 25048 | ||||
25050 | #. (itstool) path: section/programlisting | 25049 | #. (itstool) path: section/programlisting | ||
25051 | #: C/index-in.docbook:10719 | 25050 | #: C/index-in.docbook:10719 | ||
25052 | #, fuzzy, no-wrap | 25051 | #, fuzzy, no-wrap | ||
n | n | 25052 | #| msgid "" | ||
25053 | #| "\n" | ||||
25054 | #| "_WRAP_SIGNAL(void clicked(),\"clicked\")\n" | ||||
25053 | msgid "" | 25055 | msgid "" | ||
25054 | "<code>_WRAP_SIGNAL(void clicked(),\"clicked\")\n" | 25056 | "<code>_WRAP_SIGNAL(void clicked(),\"clicked\")\n" | ||
25055 | "</code>" | 25057 | "</code>" | ||
25056 | msgstr "" | 25058 | msgstr "" | ||
25057 | "\n" | 25059 | "\n" | ||
25073 | msgid "no_default_handler" | 25075 | msgid "no_default_handler" | ||
25074 | msgstr "no_default_handler" | 25076 | msgstr "no_default_handler" | ||
25075 | 25077 | ||||
25076 | #. (itstool) path: listitem/para | 25078 | #. (itstool) path: listitem/para | ||
25077 | #: C/index-in.docbook:10729 | 25079 | #: C/index-in.docbook:10729 | ||
n | 25078 | #, fuzzy | n | ||
25079 | msgid "" | 25080 | msgid "" | ||
25080 | "Do not generate an <function>on_something()</function> virtual method to " | 25081 | "Do not generate an <function>on_something()</function> virtual method to " | ||
25081 | "allow easy overriding of the default signal handler. Use this when adding a " | 25082 | "allow easy overriding of the default signal handler. Use this when adding a " | ||
25082 | "signal with a default signal handler would break the ABI by increasing the " | 25083 | "signal with a default signal handler would break the ABI by increasing the " | ||
25083 | "size of the class's virtual function table, and when adding a signal without " | 25084 | "size of the class's virtual function table, and when adding a signal without " | ||
25084 | "a public C default handler." | 25085 | "a public C default handler." | ||
25085 | msgstr "" | 25086 | msgstr "" | ||
25086 | "Generera inte en virtuell metod <function>on_something()</function> för att " | 25087 | "Generera inte en virtuell metod <function>on_something()</function> för att " | ||
25087 | "tillåta enkel åsidosättning av standardsignalhanteraren. Använd detta när " | 25088 | "tillåta enkel åsidosättning av standardsignalhanteraren. Använd detta när " | ||
n | 25088 | "tillägg av en signal med en standardsignalhanterare skulle bryta ABI genom " | n | 25089 | "tillägg av en signal med en standardsignalhanterare skulle bryta ABI:t genom " |
25089 | "att öka storleken på klassens virtuella funktionstabell, och vid tillägg av " | 25090 | "att öka storleken på klassens virtuella funktionstabell, och vid tillägg av " | ||
25090 | "en signal utan en öppen C-standardhanterare." | 25091 | "en signal utan en öppen C-standardhanterare." | ||
25091 | 25092 | ||||
25092 | #. (itstool) path: varlistentry/term | 25093 | #. (itstool) path: varlistentry/term | ||
25093 | #: C/index-in.docbook:10738 | 25094 | #: C/index-in.docbook:10738 | ||
25134 | "virtuella metoden <function>on_something()</function>, ifall C-funktionen " | 25135 | "virtuella metoden <function>on_something()</function>, ifall C-funktionen " | ||
25135 | "inte tillhandahåller en referens." | 25136 | "inte tillhandahåller en referens." | ||
25136 | 25137 | ||||
25137 | #. (itstool) path: varlistentry/term | 25138 | #. (itstool) path: varlistentry/term | ||
25138 | #: C/index-in.docbook:10782 C/index-in.docbook:10963 | 25139 | #: C/index-in.docbook:10782 C/index-in.docbook:10963 | ||
n | 25139 | #, fuzzy | n | ||
25140 | msgid "exception_handler <method_name>" | 25140 | msgid "exception_handler <method_name>" | ||
25141 | msgstr "exception_handler <metodnamn>" | 25141 | msgstr "exception_handler <metodnamn>" | ||
25142 | 25142 | ||||
25143 | #. (itstool) path: listitem/para | 25143 | #. (itstool) path: listitem/para | ||
25144 | #: C/index-in.docbook:10784 C/index-in.docbook:10965 | 25144 | #: C/index-in.docbook:10784 C/index-in.docbook:10965 | ||
25152 | "standard. Undantag kan kastas igen av användardefinierade hanteraren och " | 25152 | "standard. Undantag kan kastas igen av användardefinierade hanteraren och " | ||
25153 | "kommer fångas av standardhanteraren." | 25153 | "kommer fångas av standardhanteraren." | ||
25154 | 25154 | ||||
25155 | #. (itstool) path: varlistentry/term | 25155 | #. (itstool) path: varlistentry/term | ||
25156 | #: C/index-in.docbook:10790 | 25156 | #: C/index-in.docbook:10790 | ||
n | 25157 | #, fuzzy | n | ||
25158 | msgid "detail_name <parameter_name>" | 25157 | msgid "detail_name <parameter_name>" | ||
25159 | msgstr "detail_name <parameternamn>" | 25158 | msgstr "detail_name <parameternamn>" | ||
25160 | 25159 | ||||
25161 | #. (itstool) path: listitem/para | 25160 | #. (itstool) path: listitem/para | ||
25162 | #: C/index-in.docbook:10792 | 25161 | #: C/index-in.docbook:10792 | ||
25222 | msgstr "<function>_WRAP_PROPERTY(C-egenskapsnamn, C++-typ)</function>" | 25221 | msgstr "<function>_WRAP_PROPERTY(C-egenskapsnamn, C++-typ)</function>" | ||
25223 | 25222 | ||||
25224 | #. (itstool) path: section/programlisting | 25223 | #. (itstool) path: section/programlisting | ||
25225 | #: C/index-in.docbook:10823 | 25224 | #: C/index-in.docbook:10823 | ||
25226 | #, fuzzy, no-wrap | 25225 | #, fuzzy, no-wrap | ||
n | n | 25226 | #| msgid "" | ||
25227 | #| "\n" | ||||
25228 | #| "_WRAP_PROPERTY(\"label\", Glib::ustring)\n" | ||||
25227 | msgid "" | 25229 | msgid "" | ||
25228 | "<code>_WRAP_PROPERTY(\"label\", Glib::ustring)\n" | 25230 | "<code>_WRAP_PROPERTY(\"label\", Glib::ustring)\n" | ||
25229 | "</code>" | 25231 | "</code>" | ||
25230 | msgstr "" | 25232 | msgstr "" | ||
25231 | "\n" | 25233 | "\n" | ||
25338 | #, fuzzy | 25340 | #, fuzzy | ||
25339 | msgid "" | 25341 | msgid "" | ||
25340 | "Use the last GError** parameter of the C virtual function (if there is one) " | 25342 | "Use the last GError** parameter of the C virtual function (if there is one) " | ||
25341 | "to throw an exception." | 25343 | "to throw an exception." | ||
25342 | msgstr "" | 25344 | msgstr "" | ||
n | 25343 | "Använd den sista GError**-parametern i den virtuella C-fukntionen (om det " | n | 25345 | "Använd den sista GError**-parametern i den virtuella C-funktionen (om det " |
25344 | "finns någon) för att kasta ett undantag." | 25346 | "finns någon) för att kasta ett undantag." | ||
25345 | 25347 | ||||
25346 | #. (itstool) path: varlistentry/term | 25348 | #. (itstool) path: varlistentry/term | ||
25347 | #: C/index-in.docbook:10894 | 25349 | #: C/index-in.docbook:10894 | ||
25348 | msgid "custom_vfunc" | 25350 | msgid "custom_vfunc" | ||
25693 | "the same syntax as <function>_WRAP_ENUM()</function> and also processes the " | 25695 | "the same syntax as <function>_WRAP_ENUM()</function> and also processes the " | ||
25694 | "same options (though NO_GTYPE, gtype_func <function_name> and " | 25696 | "same options (though NO_GTYPE, gtype_func <function_name> and " | ||
25695 | "CONV_TO_INT are ignored because they make no difference when just generating " | 25697 | "CONV_TO_INT are ignored because they make no difference when just generating " | ||
25696 | "the enum's documentation)." | 25698 | "the enum's documentation)." | ||
25697 | msgstr "" | 25699 | msgstr "" | ||
n | 25698 | "Detta makro genererar bara ett Doxygen-documentationsblock för uppräkningen. " | n | 25700 | "Detta makro genererar bara ett Doxygen-dokumentationsblock för uppräkningen. " |
25699 | "Detta är användbart för uppräkningar som inte kan omslutas med " | 25701 | "Detta är användbart för uppräkningar som inte kan omslutas med " | ||
25700 | "<function>_WRAP_ENUM()</function> för att de är komplext definierade (kanske " | 25702 | "<function>_WRAP_ENUM()</function> för att de är komplext definierade (kanske " | ||
25701 | "med C-makron) men att det fortfarande är önskvärt att inkludera den " | 25703 | "med C-makron) men att det fortfarande är önskvärt att inkludera den " | ||
25702 | "genererade uppräkningsdokumentationen. Det används med samma syntax som " | 25704 | "genererade uppräkningsdokumentationen. Det används med samma syntax som " | ||
25703 | "<function>_WRAP_ENUM()</function> och bearbetar även samma alternativ (även " | 25705 | "<function>_WRAP_ENUM()</function> och bearbetar även samma alternativ (även " | ||
25844 | "hg</filename>:" | 25846 | "hg</filename>:" | ||
25845 | 25847 | ||||
25846 | #. (itstool) path: section/programlisting | 25848 | #. (itstool) path: section/programlisting | ||
25847 | #: C/index-in.docbook:11146 | 25849 | #: C/index-in.docbook:11146 | ||
25848 | #, fuzzy, no-wrap | 25850 | #, fuzzy, no-wrap | ||
n | n | 25851 | #| msgid "" | ||
25852 | #| "\n" | ||||
25853 | #| "// _MEMBER_GET_PTR(engine_lang, lang_engine, EngineLang*, PangoEngineLang*)\ | ||||
> | n" | ||||
25854 | #| "// It's just a comment. It's difficult to find a real-world example.\n" | ||||
25849 | msgid "" | 25855 | msgid "" | ||
25850 | "<code>// _MEMBER_GET_PTR(engine_lang, lang_engine, EngineLang*, PangoEngineLang | 25856 | "<code>// _MEMBER_GET_PTR(engine_lang, lang_engine, EngineLang*, PangoEngineLang | ||
> | *)\n" | > | *)\n" | ||
25851 | "// It's just a comment. It's difficult to find a real-world example.\n" | 25857 | "// It's just a comment. It's difficult to find a real-world example.\n" | ||
25852 | "</code>" | 25858 | "</code>" | ||
25853 | msgstr "" | 25859 | msgstr "" | ||
25892 | msgstr "Till exempel, i Pangomm, <filename>layoutline.hg</filename>:" | 25898 | msgstr "Till exempel, i Pangomm, <filename>layoutline.hg</filename>:" | ||
25893 | 25899 | ||||
25894 | #. (itstool) path: section/programlisting | 25900 | #. (itstool) path: section/programlisting | ||
25895 | #: C/index-in.docbook:11161 | 25901 | #: C/index-in.docbook:11161 | ||
25896 | #, fuzzy, no-wrap | 25902 | #, fuzzy, no-wrap | ||
n | n | 25903 | #| msgid "" | ||
25904 | #| "\n" | ||||
25905 | #| "_MEMBER_GET_GOBJECT(layout, layout, Pango::Layout, PangoLayout*)\n" | ||||
25897 | msgid "" | 25906 | msgid "" | ||
25898 | "<code>_MEMBER_GET_GOBJECT(layout, layout, Pango::Layout, PangoLayout*)\n" | 25907 | "<code>_MEMBER_GET_GOBJECT(layout, layout, Pango::Layout, PangoLayout*)\n" | ||
25899 | "</code>" | 25908 | "</code>" | ||
25900 | msgstr "" | 25909 | msgstr "" | ||
25901 | "\n" | 25910 | "\n" | ||
25902 | "_MEMBER_GET_GOBJECT(layout, layout, Pango::Layout, PangoLayout*)\n" | 25911 | "_MEMBER_GET_GOBJECT(layout, layout, Pango::Layout, PangoLayout*)\n" | ||
25903 | 25912 | ||||
25904 | #. (itstool) path: section/title | 25913 | #. (itstool) path: section/title | ||
25905 | #: C/index-in.docbook:11168 | 25914 | #: C/index-in.docbook:11168 | ||
n | 25906 | #, fuzzy | n | ||
25907 | msgid "gmmproc Parameter Processing" | 25915 | msgid "gmmproc Parameter Processing" | ||
25908 | msgstr "Parameterbearbetning med gmmproc" | 25916 | msgstr "Parameterbearbetning med gmmproc" | ||
25909 | 25917 | ||||
25910 | #. (itstool) path: section/para | 25918 | #. (itstool) path: section/para | ||
25911 | #: C/index-in.docbook:11169 | 25919 | #: C/index-in.docbook:11169 | ||
25921 | "<function>_WRAP_METHOD()</function>, <function>_WRAP_CTOR()</function> och " | 25929 | "<function>_WRAP_METHOD()</function>, <function>_WRAP_CTOR()</function> och " | ||
25922 | "<function>_WRAP_CREATE()</function>) på ett antal sätt:" | 25930 | "<function>_WRAP_CREATE()</function>) på ett antal sätt:" | ||
25923 | 25931 | ||||
25924 | #. (itstool) path: section/title | 25932 | #. (itstool) path: section/title | ||
25925 | #: C/index-in.docbook:11176 | 25933 | #: C/index-in.docbook:11176 | ||
n | 25926 | #, fuzzy | n | ||
25927 | msgid "Parameter Reordering" | 25934 | msgid "Parameter Reordering" | ||
25928 | msgstr "Ändra ordning på parametrar" | 25935 | msgstr "Ändra ordning på parametrar" | ||
25929 | 25936 | ||||
25930 | #. (itstool) path: section/para | 25937 | #. (itstool) path: section/para | ||
25931 | #: C/index-in.docbook:11178 | 25938 | #: C/index-in.docbook:11178 | ||
26020 | "parameternamn oavsett vad C-API:ts parameternamn är. Det är hur verktyget är " | 26027 | "parameternamn oavsett vad C-API:ts parameternamn är. Det är hur verktyget är " | ||
26021 | "skrivet för tillfället." | 26028 | "skrivet för tillfället." | ||
26022 | 26029 | ||||
26023 | #. (itstool) path: section/title | 26030 | #. (itstool) path: section/title | ||
26024 | #: C/index-in.docbook:11217 | 26031 | #: C/index-in.docbook:11217 | ||
n | 26025 | #, fuzzy | n | ||
26026 | msgid "Optional Parameter Processing" | 26032 | msgid "Optional Parameter Processing" | ||
26027 | msgstr "Valfri parameterbearbetning" | 26033 | msgstr "Valfri parameterbearbetning" | ||
26028 | 26034 | ||||
26029 | #. (itstool) path: section/para | 26035 | #. (itstool) path: section/para | ||
26030 | #: C/index-in.docbook:11219 | 26036 | #: C/index-in.docbook:11219 | ||
26332 | "både ett C-parameternamn och <literal>NULL</literal> separerar du dem med " | 26338 | "både ett C-parameternamn och <literal>NULL</literal> separerar du dem med " | ||
26333 | "ett blanksteg: <literal>{c_param_name NULL}</literal>." | 26339 | "ett blanksteg: <literal>{c_param_name NULL}</literal>." | ||
26334 | 26340 | ||||
26335 | #. (itstool) path: section/title | 26341 | #. (itstool) path: section/title | ||
26336 | #: C/index-in.docbook:11338 | 26342 | #: C/index-in.docbook:11338 | ||
n | 26337 | #, fuzzy | n | ||
26338 | msgid "Basic Types" | 26343 | msgid "Basic Types" | ||
26339 | msgstr "Grundläggande typer" | 26344 | msgstr "Grundläggande typer" | ||
26340 | 26345 | ||||
26341 | #. (itstool) path: section/para | 26346 | #. (itstool) path: section/para | ||
26342 | #: C/index-in.docbook:11339 | 26347 | #: C/index-in.docbook:11339 | ||
26343 | #, fuzzy | 26348 | #, fuzzy | ||
n | n | 26349 | #| msgid "" | ||
26350 | #| "Some of the basic types that are used in C APIs have better alternatives " | ||||
26351 | #| "in C++. For example, there's no need for a <type>gboolean</type> type " | ||||
26352 | #| "since C++ has <type>bool</type>. The following list shows some commonly-" | ||||
26353 | #| "used types in C APIs and what you might convert them to in a C++ wrapper " | ||||
26354 | #| "library." | ||||
26344 | msgid "" | 26355 | msgid "" | ||
26345 | "Some of the basic types that are used in C APIs have better alternatives in " | 26356 | "Some of the basic types that are used in C APIs have better alternatives in " | ||
26346 | "<phrase role=\"nowrap\">C++</phrase>. For example, there's no need for a " | 26357 | "<phrase role=\"nowrap\">C++</phrase>. For example, there's no need for a " | ||
26347 | "<type>gboolean</type> type since <phrase role=\"nowrap\">C++</phrase> has " | 26358 | "<type>gboolean</type> type since <phrase role=\"nowrap\">C++</phrase> has " | ||
26348 | "<type>bool</type>. The following list shows some commonly-used types in C " | 26359 | "<type>bool</type>. The following list shows some commonly-used types in C " | ||
26460 | "and <application>gtkmm</application>) and call your generated " | 26471 | "and <application>gtkmm</application>) and call your generated " | ||
26461 | "<function>wrap_init()</function> function. For instance:" | 26472 | "<function>wrap_init()</function> function. For instance:" | ||
26462 | msgstr "" | 26473 | msgstr "" | ||
26463 | "Ditt bibliotek måste initieras innan det kan användas för att registrera de " | 26474 | "Ditt bibliotek måste initieras innan det kan användas för att registrera de " | ||
26464 | "nya typer som det gör tillgängligt. C-biblioteket som du omsluter kan också " | 26475 | "nya typer som det gör tillgängligt. C-biblioteket som du omsluter kan också " | ||
n | 26465 | "ha sin egen initieringsfuunktion som du ska anropa. Du kan göra detta i en " | n | 26476 | "ha sin egen initieringsfunktion som du ska anropa. Du kan göra detta i en " |
26466 | "<function>init()</function>-funktion som du kan placera i handkodade " | 26477 | "<function>init()</function>-funktion som du kan placera i handkodade " | ||
26467 | "<filename>init.h</filename>- och <filename>init.cc</filename>-filer. Denna " | 26478 | "<filename>init.h</filename>- och <filename>init.cc</filename>-filer. Denna " | ||
26468 | "funktion ska initiera dina beroenden (som C funktionen and " | 26479 | "funktion ska initiera dina beroenden (som C funktionen and " | ||
26469 | "<application>gtkmm</application>) och anropa din genererade " | 26480 | "<application>gtkmm</application>) och anropa din genererade " | ||
26470 | "<function>wrap_init()</function>-funktion. Till exempel:" | 26481 | "<function>wrap_init()</function>-funktion. Till exempel:" | ||
26765 | msgstr "Dokumentation" | 26776 | msgstr "Dokumentation" | ||
26766 | 26777 | ||||
26767 | #. (itstool) path: section/para | 26778 | #. (itstool) path: section/para | ||
26768 | #: C/index-in.docbook:11478 | 26779 | #: C/index-in.docbook:11478 | ||
26769 | #, fuzzy | 26780 | #, fuzzy | ||
n | n | 26781 | #| msgid "" | ||
26782 | #| "In general, gtkmm-style projects use Doxygen, which reads specially " | ||||
26783 | #| "formatted C++ comments and generates HTML documentation. You may write " | ||||
26784 | #| "these doxygen comments directly in the header files." | ||||
26770 | msgid "" | 26785 | msgid "" | ||
26771 | "In general, gtkmm-style projects use Doxygen, which reads specially " | 26786 | "In general, gtkmm-style projects use Doxygen, which reads specially " | ||
26772 | "formatted <phrase role=\"nowrap\">C++</phrase> comments and generates HTML " | 26787 | "formatted <phrase role=\"nowrap\">C++</phrase> comments and generates HTML " | ||
26773 | "documentation. You may write these doxygen comments directly in the header " | 26788 | "documentation. You may write these doxygen comments directly in the header " | ||
26774 | "files." | 26789 | "files." | ||
27674 | #~ "och <classname>Gtk::CssProvider</classname>. Med metoderna i " | 27689 | #~ "och <classname>Gtk::CssProvider</classname>. Med metoderna i " | ||
27675 | #~ "<classname>Gtk::StyleContext</classname> kan du läsa värden för din " | 27690 | #~ "<classname>Gtk::StyleContext</classname> kan du läsa värden för din " | ||
27676 | #~ "komponents stilinformation. CSS-filer beskrivs i dokumentationen för " | 27691 | #~ "komponents stilinformation. CSS-filer beskrivs i dokumentationen för " | ||
27677 | #~ "<application>GTK</application>. Följande exempel visar enkel användning " | 27692 | #~ "<application>GTK</application>. Följande exempel visar enkel användning " | ||
27678 | #~ "av <methodname>Gtk::StyleContext::get_padding()</methodname>." | 27693 | #~ "av <methodname>Gtk::StyleContext::get_padding()</methodname>." | ||
n | 27679 | n | |||
27680 | #~ msgid "An preference dialog" | ||||
27681 | #~ msgstr "En inställningsdialog" | ||||
27682 | 27694 | ||||
27683 | #~ msgid "For instance, from <filename>adjustment.hg</filename>:" | 27695 | #~ msgid "For instance, from <filename>adjustment.hg</filename>:" | ||
27684 | #~ msgstr "Till exempel, från <filename>adjustment.hg</filename>:" | 27696 | #~ msgstr "Till exempel, från <filename>adjustment.hg</filename>:" | ||
27685 | 27697 | ||||
27686 | #~ msgid "For example, from <filename>iochannel.hg</filename> in glibmm:" | 27698 | #~ msgid "For example, from <filename>iochannel.hg</filename> in glibmm:" | ||
27785 | #~ "Om exempelvis <function>gtk_widget_get_request_mode()</function> " | 27797 | #~ "Om exempelvis <function>gtk_widget_get_request_mode()</function> " | ||
27786 | #~ "deklareras enligt följande: <_:programlisting-1/> och det är önskvärt att " | 27798 | #~ "deklareras enligt följande: <_:programlisting-1/> och det är önskvärt att " | ||
27787 | #~ "låta C++-metoden ställa in en utdataparameter i stället för att returnera " | 27799 | #~ "låta C++-metoden ställa in en utdataparameter i stället för att returnera " | ||
27788 | #~ "ett <type>SizeRequestMode</type>, så kan något i stil med följande " | 27800 | #~ "ett <type>SizeRequestMode</type>, så kan något i stil med följande " | ||
27789 | #~ "användas: <_:programlisting-2/> <literal>{OUT}</literal> som läggs till " | 27801 | #~ "användas: <_:programlisting-2/> <literal>{OUT}</literal> som läggs till " | ||
n | 27790 | #~ "namnet på utdataparameterna <parameter>mode</parameter> säger till " | n | 27802 | #~ "namnet på utdataparametern <parameter>mode</parameter> säger till " |
27791 | #~ "<command>gmmproc</command> att placera C-funktionens returvärde i den " | 27803 | #~ "<command>gmmproc</command> att placera C-funktionens returvärde i den " | ||
27792 | #~ "utdataparametern. I detta fall kommer dock ett nödvändigt " | 27804 | #~ "utdataparametern. I detta fall kommer dock ett nödvändigt " | ||
27793 | #~ "initieringsmakro som det följande också behöva anges: <_:programlisting-3/" | 27805 | #~ "initieringsmakro som det följande också behöva anges: <_:programlisting-3/" | ||
27794 | #~ "> Vilket också skulle kunna skrivas som: <_:programlisting-4/>" | 27806 | #~ "> Vilket också skulle kunna skrivas som: <_:programlisting-4/>" | ||
27795 | 27807 | ||||
27827 | #~ "This compiler error might look like this: <_:programlisting-1/> or this: " | 27839 | #~ "This compiler error might look like this: <_:programlisting-1/> or this: " | ||
27828 | #~ "<_:programlisting-2/>" | 27840 | #~ "<_:programlisting-2/>" | ||
27829 | #~ msgstr "" | 27841 | #~ msgstr "" | ||
27830 | #~ "Detta kompilatorfel kan se ut så här: <_:programlisting-1/> eller så här: " | 27842 | #~ "Detta kompilatorfel kan se ut så här: <_:programlisting-1/> eller så här: " | ||
27831 | #~ "<_:programlisting-2/>" | 27843 | #~ "<_:programlisting-2/>" | ||
t | t | 27844 | |||
27845 | #~ msgid "An preference dialog" | ||||
27846 | #~ msgstr "En inställningsdialog" |
Note: both files are merged with latest POT file.