Compare commits
44 Commits
Author | SHA1 | Date |
---|---|---|
Kolan Sh | bb985a96e0 | |
Kolan Sh | 6553736aab | |
Kolan Sh | 3b362ef7f9 | |
Kolan Sh | 9aca644b7c | |
Kolan Sh | f798be983a | |
Kolan Sh | 35d8b59df4 | |
Kolan Sh | 6efa22c4c8 | |
Kolan Sh | 5a872acd87 | |
Kolan Sh | 7f11e70f32 | |
Kolan Sh | 2763b3ef30 | |
Kolan Sh | 755a69fd9e | |
Kolan Sh | c36a3be5cd | |
Kolan Sh | 514c36efd4 | |
Kolan Sh | c0a61031a9 | |
Kolan Sh | 0d3aa990aa | |
Kolan Sh | 086006a0fe | |
Kolan Sh | 0fce33dfc6 | |
Kolan Sh | 601b2eb303 | |
Kolan Sh | b0b4b986cd | |
Kolan Sh | 41b1dcac0e | |
Kolan Sh | 0e3639fdfd | |
Kolan Sh | d6a149e040 | |
Kolan Sh | 8f3ccf2d6e | |
Kolan Sh | 2096c19f2b | |
Kolan Sh | e9522144f2 | |
Kolan Sh | e8578fb018 | |
Kolan Sh | fea1168533 | |
Kolan Sh | e252150ef1 | |
Kolan Sh | 38ef905dde | |
Kolan Sh | a31cdc4647 | |
Kolan Sh | d0a531d093 | |
Kolan Sh | a18b5f05bd | |
Kolan Sh | dd665bd61b | |
Kolan Sh | fea6cd4404 | |
Kolan Sh | 64624a96b0 | |
Kolan Sh | 112daf68d0 | |
Kolan Sh | 941cf093bb | |
Kolan Sh | 8b99f682e2 | |
Kolan Sh | ba18b09413 | |
Kolan Sh | 40e3471008 | |
Kolan Sh | f4551e8516 | |
Kolan Sh | 32644badfe | |
Kolan Sh | c672a22287 | |
Kolan Sh | 9834dc1c2a |
|
@ -6,8 +6,8 @@ SET (PROJECT_LOWERCASE_NAME "laview-desktop")
|
||||||
SET (PROJECT_DESCRIPTION "LAview Desktop Application.")
|
SET (PROJECT_DESCRIPTION "LAview Desktop Application.")
|
||||||
|
|
||||||
SET (MAJOR 1)
|
SET (MAJOR 1)
|
||||||
SET (MINOR 0)
|
SET (MINOR 1)
|
||||||
SET (PATCH 0)
|
SET (PATCH 5)
|
||||||
|
|
||||||
LIST (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/backbone)
|
LIST (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/backbone)
|
||||||
|
|
||||||
|
|
|
@ -1,22 +1,10 @@
|
||||||
<schemalist>
|
<schemalist>
|
||||||
<schema id="ws.backbone.lavew.desktop-@MAJOR@" path="/ws/backbone/laview/desktop-@MAJOR@/" gettext-domain="laview-desktop-@MAJOR@">
|
<schema id="ws.backbone.laview.desktop-@MAJOR@" path="/ws/backbone/laview/desktop-@MAJOR@/" gettext-domain="laview-desktop-@MAJOR@">
|
||||||
|
|
||||||
<key name="greeting" type="s">
|
<key name="pdf-save-path" type="s">
|
||||||
<default l10n="messages">"Hello, earthlings"</default>
|
<default>""</default>
|
||||||
<summary>A greeting</summary>
|
<summary>Directory to save pdf files (last selected path).</summary>
|
||||||
<description>Greeting of the invading martians</description>
|
<description>It is too lazy to select a directory each time...</description>
|
||||||
</key>
|
|
||||||
|
|
||||||
<key name="bottles-of-beer" type="i">
|
|
||||||
<default>99</default>
|
|
||||||
<summary>Bottles of beer</summary>
|
|
||||||
<description>Number of bottles of beer on the wall</description>
|
|
||||||
</key>
|
|
||||||
|
|
||||||
<key name="lighting" type="b">
|
|
||||||
<default>false</default>
|
|
||||||
<summary>Is the light switched on?</summary>
|
|
||||||
<description>State of an imaginary light switch.</description>
|
|
||||||
</key>
|
</key>
|
||||||
|
|
||||||
</schema>
|
</schema>
|
||||||
|
|
|
@ -7,7 +7,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: laview-desktop\n"
|
"Project-Id-Version: laview-desktop\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2015-12-27 19:03+0300\n"
|
"POT-Creation-Date: 2016-02-14 15:22+0300\n"
|
||||||
"PO-Revision-Date: 2015-10-24 20:19+0300\n"
|
"PO-Revision-Date: 2015-10-24 20:19+0300\n"
|
||||||
"Last-Translator: <backbone@backbone.ws>\n"
|
"Last-Translator: <backbone@backbone.ws>\n"
|
||||||
"Language-Team: German\n"
|
"Language-Team: German\n"
|
||||||
|
@ -18,59 +18,76 @@ msgstr ""
|
||||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
|
|
||||||
#: config/ws.backbone.laview.desktop.gschema.xml.h:1
|
#: config/ws.backbone.laview.desktop.gschema.xml.h:1
|
||||||
msgid "\"Hello, earthlings\""
|
msgid "Directory to save pdf files (last selected path)."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: config/ws.backbone.laview.desktop.gschema.xml.h:2
|
#: config/ws.backbone.laview.desktop.gschema.xml.h:2
|
||||||
msgid "A greeting"
|
msgid "It is too lazy to select a directory each time..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: config/ws.backbone.laview.desktop.gschema.xml.h:3
|
#: src/MainWindow.vala:64
|
||||||
msgid "Greeting of the invading martians"
|
msgid "We're ready, Commander! Select or create a template. :-)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: config/ws.backbone.laview.desktop.gschema.xml.h:4
|
#: src/MainWindow.vala:82 src/MainWindow.vala:125 src/MainWindow.vala:199
|
||||||
msgid "Bottles of beer"
|
#: src/MainWindow.vala:217 src/MainWindow.vala:255 src/MainWindow.vala:321
|
||||||
|
msgid "Error"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: config/ws.backbone.laview.desktop.gschema.xml.h:5
|
#: src/MainWindow.vala:90
|
||||||
msgid "Number of bottles of beer on the wall"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: config/ws.backbone.laview.desktop.gschema.xml.h:6
|
|
||||||
msgid "Is the light switched on?"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: config/ws.backbone.laview.desktop.gschema.xml.h:7
|
|
||||||
msgid "State of an imaginary light switch."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/MainWindow.vala:84
|
|
||||||
msgid "Select templates"
|
msgid "Select templates"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/MainWindow.vala:86
|
#: src/MainWindow.vala:92 src/MainWindow.vala:281
|
||||||
msgid "_Cancel"
|
msgid "_Cancel"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/MainWindow.vala:87
|
#: src/MainWindow.vala:93
|
||||||
msgid "_Open"
|
msgid "_Open"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/main.vala:33
|
#: src/MainWindow.vala:171
|
||||||
msgid "Show the application's version"
|
msgid "After composing all objects print the document."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/main.vala:52
|
#: src/MainWindow.vala:261
|
||||||
msgid "[FILE]"
|
msgid "Document analized, select an object and set it's properties."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/main.vala:64
|
#: src/MainWindow.vala:266
|
||||||
|
msgid "Press 'Properties' button to compose the object."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/MainWindow.vala:275
|
||||||
|
msgid "Prepare the document first! >;-]"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/MainWindow.vala:279
|
||||||
|
msgid "Select destination"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/MainWindow.vala:282
|
||||||
|
msgid "_Save"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/MainWindow.vala:314
|
||||||
|
msgid "bytes of"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/MainWindow.vala:315
|
||||||
|
msgid "bytes copied/saved"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/MainWindow.vala:318
|
||||||
|
msgid "Save/Copy operation complete! :-)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/main.vala:64 src/main.vala:83
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Error: %s\n"
|
msgid "Error: %s\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/main.vala:65
|
#: src/main.vala:84
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Run '%s --help' to see a full list of available command line options.\n"
|
msgid "Run '%s --help' to see a full list of available command line options.\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -112,85 +129,81 @@ msgid "Common"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:10
|
#: ui/glade/laview-desktop.glade.h:10
|
||||||
msgid "Protocol Plugins"
|
msgid "Object plugins"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:11
|
#: ui/glade/laview-desktop.glade.h:11
|
||||||
msgid "Protocol plugins"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:12
|
|
||||||
msgid "Data Plugins"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:13
|
|
||||||
msgid "Data plugins"
|
msgid "Data plugins"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:14
|
#: ui/glade/laview-desktop.glade.h:12
|
||||||
msgid "LAview Desktop"
|
msgid "LAview Desktop"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:15
|
#: ui/glade/laview-desktop.glade.h:13
|
||||||
msgid "_Template"
|
msgid "_Template"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:16
|
#: ui/glade/laview-desktop.glade.h:14
|
||||||
msgid "_Document"
|
msgid "_Document"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:17
|
#: ui/glade/laview-desktop.glade.h:15
|
||||||
msgid "_Application"
|
msgid "_Application"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:18
|
#: ui/glade/laview-desktop.glade.h:16
|
||||||
msgid "_Help"
|
msgid "_Help"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:19
|
#: ui/glade/laview-desktop.glade.h:17
|
||||||
msgid "Create a new template"
|
msgid "Create a new template"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:20
|
#: ui/glade/laview-desktop.glade.h:18
|
||||||
msgid "Open a template"
|
msgid "Open a template"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:21
|
#: ui/glade/laview-desktop.glade.h:19
|
||||||
msgid "Change selected template"
|
msgid "Change selected template"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:22
|
#: ui/glade/laview-desktop.glade.h:20
|
||||||
msgid "Delete selected template"
|
msgid "Delete selected template"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:23
|
#: ui/glade/laview-desktop.glade.h:21
|
||||||
msgid "Document object preparing"
|
msgid "Document object preparing"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:24
|
#: ui/glade/laview-desktop.glade.h:22
|
||||||
msgid "View and print the document"
|
msgid "View and print the document"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:25
|
#: ui/glade/laview-desktop.glade.h:23
|
||||||
msgid "Edit the result document"
|
msgid "Edit the result document"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:26
|
#: ui/glade/laview-desktop.glade.h:24
|
||||||
|
msgid "Save the document as..."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ui/glade/laview-desktop.glade.h:25
|
||||||
msgid "Application preferences"
|
msgid "Application preferences"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:27
|
#: ui/glade/laview-desktop.glade.h:26
|
||||||
msgid "Help and reference"
|
msgid "Help and reference"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:28
|
#: ui/glade/laview-desktop.glade.h:27
|
||||||
msgid "Close the application"
|
msgid "Close the application"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:29
|
#: ui/glade/laview-desktop.glade.h:28
|
||||||
msgid "Templates"
|
msgid "Templates"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:30
|
#: ui/glade/laview-desktop.glade.h:29
|
||||||
msgid "Document Objects"
|
msgid "Document Objects"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: laview-desktop\n"
|
"Project-Id-Version: laview-desktop\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2015-12-27 19:04+0300\n"
|
"POT-Creation-Date: 2016-02-14 15:22+0300\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
@ -18,59 +18,76 @@ msgstr ""
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
|
||||||
#: config/ws.backbone.laview.desktop.gschema.xml.h:1
|
#: config/ws.backbone.laview.desktop.gschema.xml.h:1
|
||||||
msgid "\"Hello, earthlings\""
|
msgid "Directory to save pdf files (last selected path)."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: config/ws.backbone.laview.desktop.gschema.xml.h:2
|
#: config/ws.backbone.laview.desktop.gschema.xml.h:2
|
||||||
msgid "A greeting"
|
msgid "It is too lazy to select a directory each time..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: config/ws.backbone.laview.desktop.gschema.xml.h:3
|
#: src/MainWindow.vala:64
|
||||||
msgid "Greeting of the invading martians"
|
msgid "We're ready, Commander! Select or create a template. :-)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: config/ws.backbone.laview.desktop.gschema.xml.h:4
|
#: src/MainWindow.vala:82 src/MainWindow.vala:125 src/MainWindow.vala:199
|
||||||
msgid "Bottles of beer"
|
#: src/MainWindow.vala:217 src/MainWindow.vala:255 src/MainWindow.vala:321
|
||||||
|
msgid "Error"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: config/ws.backbone.laview.desktop.gschema.xml.h:5
|
#: src/MainWindow.vala:90
|
||||||
msgid "Number of bottles of beer on the wall"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: config/ws.backbone.laview.desktop.gschema.xml.h:6
|
|
||||||
msgid "Is the light switched on?"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: config/ws.backbone.laview.desktop.gschema.xml.h:7
|
|
||||||
msgid "State of an imaginary light switch."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/MainWindow.vala:84
|
|
||||||
msgid "Select templates"
|
msgid "Select templates"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/MainWindow.vala:86
|
#: src/MainWindow.vala:92 src/MainWindow.vala:281
|
||||||
msgid "_Cancel"
|
msgid "_Cancel"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/MainWindow.vala:87
|
#: src/MainWindow.vala:93
|
||||||
msgid "_Open"
|
msgid "_Open"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/main.vala:33
|
#: src/MainWindow.vala:171
|
||||||
msgid "Show the application's version"
|
msgid "After composing all objects print the document."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/main.vala:52
|
#: src/MainWindow.vala:261
|
||||||
msgid "[FILE]"
|
msgid "Document analized, select an object and set it's properties."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/main.vala:64
|
#: src/MainWindow.vala:266
|
||||||
|
msgid "Press 'Properties' button to compose the object."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/MainWindow.vala:275
|
||||||
|
msgid "Prepare the document first! >;-]"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/MainWindow.vala:279
|
||||||
|
msgid "Select destination"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/MainWindow.vala:282
|
||||||
|
msgid "_Save"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/MainWindow.vala:314
|
||||||
|
msgid "bytes of"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/MainWindow.vala:315
|
||||||
|
msgid "bytes copied/saved"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/MainWindow.vala:318
|
||||||
|
msgid "Save/Copy operation complete! :-)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/main.vala:64 src/main.vala:83
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Error: %s\n"
|
msgid "Error: %s\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/main.vala:65
|
#: src/main.vala:84
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Run '%s --help' to see a full list of available command line options.\n"
|
msgid "Run '%s --help' to see a full list of available command line options.\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -112,85 +129,81 @@ msgid "Common"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:10
|
#: ui/glade/laview-desktop.glade.h:10
|
||||||
msgid "Protocol Plugins"
|
msgid "Object plugins"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:11
|
#: ui/glade/laview-desktop.glade.h:11
|
||||||
msgid "Protocol plugins"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:12
|
|
||||||
msgid "Data Plugins"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:13
|
|
||||||
msgid "Data plugins"
|
msgid "Data plugins"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:14
|
#: ui/glade/laview-desktop.glade.h:12
|
||||||
msgid "LAview Desktop"
|
msgid "LAview Desktop"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:15
|
#: ui/glade/laview-desktop.glade.h:13
|
||||||
msgid "_Template"
|
msgid "_Template"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:16
|
#: ui/glade/laview-desktop.glade.h:14
|
||||||
msgid "_Document"
|
msgid "_Document"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:17
|
#: ui/glade/laview-desktop.glade.h:15
|
||||||
msgid "_Application"
|
msgid "_Application"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:18
|
#: ui/glade/laview-desktop.glade.h:16
|
||||||
msgid "_Help"
|
msgid "_Help"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:19
|
#: ui/glade/laview-desktop.glade.h:17
|
||||||
msgid "Create a new template"
|
msgid "Create a new template"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:20
|
#: ui/glade/laview-desktop.glade.h:18
|
||||||
msgid "Open a template"
|
msgid "Open a template"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:21
|
#: ui/glade/laview-desktop.glade.h:19
|
||||||
msgid "Change selected template"
|
msgid "Change selected template"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:22
|
#: ui/glade/laview-desktop.glade.h:20
|
||||||
msgid "Delete selected template"
|
msgid "Delete selected template"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:23
|
#: ui/glade/laview-desktop.glade.h:21
|
||||||
msgid "Document object preparing"
|
msgid "Document object preparing"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:24
|
#: ui/glade/laview-desktop.glade.h:22
|
||||||
msgid "View and print the document"
|
msgid "View and print the document"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:25
|
#: ui/glade/laview-desktop.glade.h:23
|
||||||
msgid "Edit the result document"
|
msgid "Edit the result document"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:26
|
#: ui/glade/laview-desktop.glade.h:24
|
||||||
|
msgid "Save the document as..."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ui/glade/laview-desktop.glade.h:25
|
||||||
msgid "Application preferences"
|
msgid "Application preferences"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:27
|
#: ui/glade/laview-desktop.glade.h:26
|
||||||
msgid "Help and reference"
|
msgid "Help and reference"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:28
|
#: ui/glade/laview-desktop.glade.h:27
|
||||||
msgid "Close the application"
|
msgid "Close the application"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:29
|
#: ui/glade/laview-desktop.glade.h:28
|
||||||
msgid "Templates"
|
msgid "Templates"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:30
|
#: ui/glade/laview-desktop.glade.h:29
|
||||||
msgid "Document Objects"
|
msgid "Document Objects"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
|
@ -7,7 +7,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: laview-desktop\n"
|
"Project-Id-Version: laview-desktop\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2015-12-27 19:03+0300\n"
|
"POT-Creation-Date: 2016-02-14 15:22+0300\n"
|
||||||
"PO-Revision-Date: 2015-10-24 20:19+0300\n"
|
"PO-Revision-Date: 2015-10-24 20:19+0300\n"
|
||||||
"Last-Translator: <backbone@backbone.ws>\n"
|
"Last-Translator: <backbone@backbone.ws>\n"
|
||||||
"Language-Team: Russian\n"
|
"Language-Team: Russian\n"
|
||||||
|
@ -19,59 +19,76 @@ msgstr ""
|
||||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||||
|
|
||||||
#: config/ws.backbone.laview.desktop.gschema.xml.h:1
|
#: config/ws.backbone.laview.desktop.gschema.xml.h:1
|
||||||
msgid "\"Hello, earthlings\""
|
msgid "Directory to save pdf files (last selected path)."
|
||||||
msgstr "\"Привет, земляне\""
|
msgstr "Директория для сохранения pdf файлов (последний выбранный путь)."
|
||||||
|
|
||||||
#: config/ws.backbone.laview.desktop.gschema.xml.h:2
|
#: config/ws.backbone.laview.desktop.gschema.xml.h:2
|
||||||
msgid "A greeting"
|
msgid "It is too lazy to select a directory each time..."
|
||||||
msgstr "Приветствие"
|
msgstr "Слишком лениво выбирать каждый раз директорию для сохранения..."
|
||||||
|
|
||||||
#: config/ws.backbone.laview.desktop.gschema.xml.h:3
|
#: src/MainWindow.vala:64
|
||||||
msgid "Greeting of the invading martians"
|
msgid "We're ready, Commander! Select or create a template. :-)"
|
||||||
msgstr "Приветствие вторгнувшихся марсиан"
|
msgstr "Мы готовы, Командир! Выберите или создайте шаблон. :-)"
|
||||||
|
|
||||||
#: config/ws.backbone.laview.desktop.gschema.xml.h:4
|
#: src/MainWindow.vala:82 src/MainWindow.vala:125 src/MainWindow.vala:199
|
||||||
msgid "Bottles of beer"
|
#: src/MainWindow.vala:217 src/MainWindow.vala:255 src/MainWindow.vala:321
|
||||||
msgstr "Бутылки пива"
|
msgid "Error"
|
||||||
|
msgstr "Ошибка"
|
||||||
|
|
||||||
#: config/ws.backbone.laview.desktop.gschema.xml.h:5
|
#: src/MainWindow.vala:90
|
||||||
msgid "Number of bottles of beer on the wall"
|
|
||||||
msgstr "Число бутылок пива на стене"
|
|
||||||
|
|
||||||
#: config/ws.backbone.laview.desktop.gschema.xml.h:6
|
|
||||||
msgid "Is the light switched on?"
|
|
||||||
msgstr "Включен ли свет?"
|
|
||||||
|
|
||||||
#: config/ws.backbone.laview.desktop.gschema.xml.h:7
|
|
||||||
msgid "State of an imaginary light switch."
|
|
||||||
msgstr "Состояние воображаемого выключателя света."
|
|
||||||
|
|
||||||
#: src/MainWindow.vala:84
|
|
||||||
msgid "Select templates"
|
msgid "Select templates"
|
||||||
msgstr "Выберите шаблоны"
|
msgstr "Выберите шаблоны"
|
||||||
|
|
||||||
#: src/MainWindow.vala:86
|
#: src/MainWindow.vala:92 src/MainWindow.vala:281
|
||||||
msgid "_Cancel"
|
msgid "_Cancel"
|
||||||
msgstr "_Отмена"
|
msgstr "_Отмена"
|
||||||
|
|
||||||
#: src/MainWindow.vala:87
|
#: src/MainWindow.vala:93
|
||||||
msgid "_Open"
|
msgid "_Open"
|
||||||
msgstr "_Открыть"
|
msgstr "_Открыть"
|
||||||
|
|
||||||
#: src/main.vala:33
|
#: src/MainWindow.vala:171
|
||||||
msgid "Show the application's version"
|
msgid "After composing all objects print the document."
|
||||||
msgstr "Показать версию приложения"
|
msgstr "После компоновки всех объектов напечатайте документ."
|
||||||
|
|
||||||
#: src/main.vala:52
|
#: src/MainWindow.vala:261
|
||||||
msgid "[FILE]"
|
msgid "Document analized, select an object and set it's properties."
|
||||||
msgstr "[ФАЙЛ]"
|
msgstr "Документ проанализирован, выберите объект и установите его свойства."
|
||||||
|
|
||||||
#: src/main.vala:64
|
#: src/MainWindow.vala:266
|
||||||
|
msgid "Press 'Properties' button to compose the object."
|
||||||
|
msgstr "Нажмите кнопку 'Свойства' для компоновки объекта."
|
||||||
|
|
||||||
|
#: src/MainWindow.vala:275
|
||||||
|
msgid "Prepare the document first! >;-]"
|
||||||
|
msgstr "Сначала подготовьте документ! >;-]"
|
||||||
|
|
||||||
|
#: src/MainWindow.vala:279
|
||||||
|
msgid "Select destination"
|
||||||
|
msgstr "Выберите назначение"
|
||||||
|
|
||||||
|
#: src/MainWindow.vala:282
|
||||||
|
msgid "_Save"
|
||||||
|
msgstr "_Сохранить"
|
||||||
|
|
||||||
|
#: src/MainWindow.vala:314
|
||||||
|
msgid "bytes of"
|
||||||
|
msgstr "байт из"
|
||||||
|
|
||||||
|
#: src/MainWindow.vala:315
|
||||||
|
msgid "bytes copied/saved"
|
||||||
|
msgstr "байт скопировано/сохранено"
|
||||||
|
|
||||||
|
#: src/MainWindow.vala:318
|
||||||
|
msgid "Save/Copy operation complete! :-)"
|
||||||
|
msgstr "Операция сохранения/копирования завершена! :-)"
|
||||||
|
|
||||||
|
#: src/main.vala:64 src/main.vala:83
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Error: %s\n"
|
msgid "Error: %s\n"
|
||||||
msgstr "Ошибка: %s\n"
|
msgstr "Ошибка: %s\n"
|
||||||
|
|
||||||
#: src/main.vala:65
|
#: src/main.vala:84
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Run '%s --help' to see a full list of available command line options.\n"
|
msgid "Run '%s --help' to see a full list of available command line options.\n"
|
||||||
msgstr "Запустите '%s --help', чтобы увидеть весь список доступных опций.\n"
|
msgstr "Запустите '%s --help', чтобы увидеть весь список доступных опций.\n"
|
||||||
|
@ -113,85 +130,81 @@ msgid "Common"
|
||||||
msgstr "Общие"
|
msgstr "Общие"
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:10
|
#: ui/glade/laview-desktop.glade.h:10
|
||||||
msgid "Protocol Plugins"
|
msgid "Object plugins"
|
||||||
msgstr "Плагины протоколов"
|
msgstr "Плагины объектов"
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:11
|
#: ui/glade/laview-desktop.glade.h:11
|
||||||
msgid "Protocol plugins"
|
|
||||||
msgstr "Плагины протоколов"
|
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:12
|
|
||||||
msgid "Data Plugins"
|
|
||||||
msgstr "Плагины данных"
|
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:13
|
|
||||||
msgid "Data plugins"
|
msgid "Data plugins"
|
||||||
msgstr "Плагины данных"
|
msgstr "Плагины данных"
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:14
|
#: ui/glade/laview-desktop.glade.h:12
|
||||||
msgid "LAview Desktop"
|
msgid "LAview Desktop"
|
||||||
msgstr "Рабочее окно LAview"
|
msgstr "Рабочее окно LAview"
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:15
|
#: ui/glade/laview-desktop.glade.h:13
|
||||||
msgid "_Template"
|
msgid "_Template"
|
||||||
msgstr "_Шаблон"
|
msgstr "_Шаблон"
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:16
|
#: ui/glade/laview-desktop.glade.h:14
|
||||||
msgid "_Document"
|
msgid "_Document"
|
||||||
msgstr "_Документ"
|
msgstr "_Документ"
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:17
|
#: ui/glade/laview-desktop.glade.h:15
|
||||||
msgid "_Application"
|
msgid "_Application"
|
||||||
msgstr "_Приложение"
|
msgstr "_Приложение"
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:18
|
#: ui/glade/laview-desktop.glade.h:16
|
||||||
msgid "_Help"
|
msgid "_Help"
|
||||||
msgstr "_Помощь"
|
msgstr "_Помощь"
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:19
|
#: ui/glade/laview-desktop.glade.h:17
|
||||||
msgid "Create a new template"
|
msgid "Create a new template"
|
||||||
msgstr "Создать новый шаблон"
|
msgstr "Создать новый шаблон"
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:20
|
#: ui/glade/laview-desktop.glade.h:18
|
||||||
msgid "Open a template"
|
msgid "Open a template"
|
||||||
msgstr "Открыть шаблон"
|
msgstr "Открыть шаблон"
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:21
|
#: ui/glade/laview-desktop.glade.h:19
|
||||||
msgid "Change selected template"
|
msgid "Change selected template"
|
||||||
msgstr "Изменить выбранный шаблон"
|
msgstr "Изменить выбранный шаблон"
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:22
|
#: ui/glade/laview-desktop.glade.h:20
|
||||||
msgid "Delete selected template"
|
msgid "Delete selected template"
|
||||||
msgstr "Удалить выбранный шаблон"
|
msgstr "Удалить выбранный шаблон"
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:23
|
#: ui/glade/laview-desktop.glade.h:21
|
||||||
msgid "Document object preparing"
|
msgid "Document object preparing"
|
||||||
msgstr "Подготовка объекта документа"
|
msgstr "Подготовка объекта документа"
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:24
|
#: ui/glade/laview-desktop.glade.h:22
|
||||||
msgid "View and print the document"
|
msgid "View and print the document"
|
||||||
msgstr "Просмотр и печать документа"
|
msgstr "Просмотр и печать документа"
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:25
|
#: ui/glade/laview-desktop.glade.h:23
|
||||||
msgid "Edit the result document"
|
msgid "Edit the result document"
|
||||||
msgstr "Редактировать полученный документ"
|
msgstr "Редактировать полученный документ"
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:26
|
#: ui/glade/laview-desktop.glade.h:24
|
||||||
|
msgid "Save the document as..."
|
||||||
|
msgstr "Сохранить документ как..."
|
||||||
|
|
||||||
|
#: ui/glade/laview-desktop.glade.h:25
|
||||||
msgid "Application preferences"
|
msgid "Application preferences"
|
||||||
msgstr "Параметры приложения"
|
msgstr "Параметры приложения"
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:27
|
#: ui/glade/laview-desktop.glade.h:26
|
||||||
msgid "Help and reference"
|
msgid "Help and reference"
|
||||||
msgstr "Помощь и справка"
|
msgstr "Помощь и справка"
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:28
|
#: ui/glade/laview-desktop.glade.h:27
|
||||||
msgid "Close the application"
|
msgid "Close the application"
|
||||||
msgstr "Закрыть приложение"
|
msgstr "Закрыть приложение"
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:29
|
#: ui/glade/laview-desktop.glade.h:28
|
||||||
msgid "Templates"
|
msgid "Templates"
|
||||||
msgstr "Шаблоны"
|
msgstr "Шаблоны"
|
||||||
|
|
||||||
#: ui/glade/laview-desktop.glade.h:30
|
#: ui/glade/laview-desktop.glade.h:29
|
||||||
msgid "Document Objects"
|
msgid "Document Objects"
|
||||||
msgstr "Объекты документа"
|
msgstr "Объекты документа"
|
||||||
|
|
|
@ -8,15 +8,16 @@ namespace LAview.Desktop {
|
||||||
public class AboutDialogWindow {
|
public class AboutDialogWindow {
|
||||||
AboutDialog dialog;
|
AboutDialog dialog;
|
||||||
|
|
||||||
public AboutDialogWindow (Window parent) throws Error {
|
public AboutDialogWindow (Gtk.Application application, Window parent) throws Error {
|
||||||
var builder = new Builder ();
|
var builder = new Builder ();
|
||||||
builder.add_from_file (AppDirs.ui_dir + "/laview-desktop.glade");
|
builder.add_from_file (AppDirs.ui_dir + "/laview-desktop.glade");
|
||||||
builder.connect_signals (this);
|
builder.connect_signals (this);
|
||||||
|
|
||||||
dialog = builder.get_object ("aboutdialog_window") as AboutDialog;
|
dialog = builder.get_object ("aboutdialog_window") as AboutDialog;
|
||||||
dialog.set_destroy_with_parent (true);
|
dialog.destroy_with_parent = true;
|
||||||
dialog.set_transient_for (parent);
|
dialog.transient_for = parent;
|
||||||
dialog.set_modal (true);
|
dialog.modal = true;
|
||||||
|
dialog.application = application;
|
||||||
dialog.delete_event.connect ((source) => {return true;});
|
dialog.delete_event.connect ((source) => {return true;});
|
||||||
|
|
||||||
dialog.version = @" $(Config.VERSION_MAJOR).$(Config.VERSION_MINOR).$(Config.VERSION_PATCH)";
|
dialog.version = @" $(Config.VERSION_MAJOR).$(Config.VERSION_MINOR).$(Config.VERSION_PATCH)";
|
||||||
|
|
|
@ -2,9 +2,15 @@ namespace LAview.Desktop {
|
||||||
|
|
||||||
class AppCore {
|
class AppCore {
|
||||||
public static LAview.Core.Core core;
|
public static LAview.Core.Core core;
|
||||||
|
public static AppSettings settings;
|
||||||
|
|
||||||
public static void init (string[] args) throws Error {
|
public static void init (string[] args) throws Error {
|
||||||
core = new LAview.Core.Core();
|
core = new LAview.Core.Core();
|
||||||
|
settings = new AppSettings();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void terminate () {
|
||||||
|
core = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@ SET (BinPkgModules gtk+-3.0 gee-0.8 laview-core-0)
|
||||||
SET (BinCustomVapis ${CMAKE_SOURCE_DIR}/config/Config.vapi)
|
SET (BinCustomVapis ${CMAKE_SOURCE_DIR}/config/Config.vapi)
|
||||||
INCLUDE_DIRECTORIES ("${CMAKE_BINARY_DIR}/config")
|
INCLUDE_DIRECTORIES ("${CMAKE_BINARY_DIR}/config")
|
||||||
SET (BinInstall ON)
|
SET (BinInstall ON)
|
||||||
SET (BinExtraSources "${CMAKE_SOURCE_DIR}/res/laview-desktop.rc")
|
SET (BinExtraSources "${CMAKE_SOURCE_DIR}/res/laview-desktop.rc" w32hooks.c)
|
||||||
IF (WIN32)
|
IF (WIN32)
|
||||||
SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mwindows")
|
SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mwindows")
|
||||||
SET (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--export-all-symbols")
|
SET (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--export-all-symbols")
|
||||||
|
|
|
@ -7,7 +7,7 @@ namespace LAview.Desktop {
|
||||||
*/
|
*/
|
||||||
public class MainWindow {
|
public class MainWindow {
|
||||||
|
|
||||||
Window window;
|
ApplicationWindow window;
|
||||||
PreferencesDialog pref_dialog;
|
PreferencesDialog pref_dialog;
|
||||||
AboutDialogWindow about_dialog;
|
AboutDialogWindow about_dialog;
|
||||||
SubprocessDialog subprocess_dialog;
|
SubprocessDialog subprocess_dialog;
|
||||||
|
@ -17,12 +17,12 @@ namespace LAview.Desktop {
|
||||||
TreeView treeview_templates;
|
TreeView treeview_templates;
|
||||||
TreeView treeview_objects;
|
TreeView treeview_objects;
|
||||||
|
|
||||||
public MainWindow () throws Error {
|
public MainWindow (Gtk.Application application) throws Error {
|
||||||
var builder = new Builder ();
|
var builder = new Builder ();
|
||||||
builder.add_from_file (AppDirs.ui_dir + "/laview-desktop.glade");
|
builder.add_from_file (AppDirs.ui_dir + "/laview-desktop.glade");
|
||||||
builder.connect_signals (this);
|
builder.connect_signals (this);
|
||||||
|
|
||||||
window = builder.get_object ("main_window") as Window;
|
window = builder.get_object ("main_window") as ApplicationWindow;
|
||||||
statusbar = builder.get_object ("statusbar") as Statusbar;
|
statusbar = builder.get_object ("statusbar") as Statusbar;
|
||||||
liststore_templates = builder.get_object ("liststore_templates") as Gtk.ListStore;
|
liststore_templates = builder.get_object ("liststore_templates") as Gtk.ListStore;
|
||||||
liststore_doc_objects = builder.get_object ("liststore_objects") as Gtk.ListStore;
|
liststore_doc_objects = builder.get_object ("liststore_objects") as Gtk.ListStore;
|
||||||
|
@ -31,11 +31,17 @@ namespace LAview.Desktop {
|
||||||
window.title = "LAview Desktop"
|
window.title = "LAview Desktop"
|
||||||
+ @" $(Config.VERSION_MAJOR).$(Config.VERSION_MINOR).$(Config.VERSION_PATCH)";
|
+ @" $(Config.VERSION_MAJOR).$(Config.VERSION_MINOR).$(Config.VERSION_PATCH)";
|
||||||
|
|
||||||
pref_dialog = new PreferencesDialog (window);
|
pref_dialog = new PreferencesDialog (application, window);
|
||||||
subprocess_dialog = new SubprocessDialog (window);
|
subprocess_dialog = new SubprocessDialog (application, window);
|
||||||
about_dialog = new AboutDialogWindow (window);
|
about_dialog = new AboutDialogWindow (application, window);
|
||||||
|
|
||||||
fill_liststore_templates ();
|
fill_liststore_templates ();
|
||||||
|
|
||||||
|
application.app_menu = builder.get_object ("menubar") as MenuModel;
|
||||||
|
application.menubar = builder.get_object ("main_toolbar") as MenuModel;
|
||||||
|
window.application = application;
|
||||||
|
|
||||||
|
window.destroy.connect (() => { window.application.quit (); });
|
||||||
}
|
}
|
||||||
|
|
||||||
void fill_liststore_templates () {
|
void fill_liststore_templates () {
|
||||||
|
@ -55,7 +61,7 @@ namespace LAview.Desktop {
|
||||||
|
|
||||||
public void show_all () {
|
public void show_all () {
|
||||||
window.show_all ();
|
window.show_all ();
|
||||||
statusbar_show ("We're ready, Commander! Select or create a template. :-)");
|
statusbar_show (_("We're ready, Commander! Select or create a template. :-)"));
|
||||||
}
|
}
|
||||||
|
|
||||||
[CCode (instance_pos = -1)]
|
[CCode (instance_pos = -1)]
|
||||||
|
@ -73,7 +79,7 @@ namespace LAview.Desktop {
|
||||||
subprocess.spawnv(argv);
|
subprocess.spawnv(argv);
|
||||||
} catch (Error err) {
|
} catch (Error err) {
|
||||||
var msg = new MessageDialog (window, DialogFlags.MODAL, MessageType.ERROR,
|
var msg = new MessageDialog (window, DialogFlags.MODAL, MessageType.ERROR,
|
||||||
ButtonsType.CLOSE, @"Error: $(err.message).");
|
ButtonsType.CLOSE, _("Error")+@": $(err.message).");
|
||||||
msg.response.connect ((response_id) => { msg.destroy (); } );
|
msg.response.connect ((response_id) => { msg.destroy (); } );
|
||||||
msg.show ();
|
msg.show ();
|
||||||
}
|
}
|
||||||
|
@ -86,17 +92,16 @@ namespace LAview.Desktop {
|
||||||
_("_Cancel"), ResponseType.CANCEL,
|
_("_Cancel"), ResponseType.CANCEL,
|
||||||
_("_Open"), ResponseType.ACCEPT);
|
_("_Open"), ResponseType.ACCEPT);
|
||||||
chooser.select_multiple = true;
|
chooser.select_multiple = true;
|
||||||
FileFilter filter = new FileFilter ();
|
chooser.filter = new FileFilter ();
|
||||||
chooser.set_filter (filter);
|
chooser.filter.add_mime_type ("application/x-tex");
|
||||||
filter.add_mime_type ("application/x-tex");
|
chooser.filter.add_mime_type ("application/x-latex");
|
||||||
filter.add_mime_type ("application/x-latex");
|
chooser.filter.add_mime_type ("application/x-lyx");
|
||||||
filter.add_mime_type ("application/x-lyx");
|
chooser.filter.add_pattern ("*.tex");
|
||||||
filter.add_pattern ("*.tex");
|
chooser.filter.add_pattern ("*.latex");
|
||||||
filter.add_pattern ("*.latex");
|
chooser.filter.add_pattern ("*.lyx");
|
||||||
filter.add_pattern ("*.lyx");
|
|
||||||
|
|
||||||
if (chooser.run () == ResponseType.ACCEPT) {
|
if (chooser.run () == ResponseType.ACCEPT) {
|
||||||
SList<string> paths = chooser.get_filenames ();
|
var paths = chooser.get_filenames ();
|
||||||
|
|
||||||
foreach (unowned string path in paths)
|
foreach (unowned string path in paths)
|
||||||
AppCore.core.add_template (path);
|
AppCore.core.add_template (path);
|
||||||
|
@ -117,7 +122,7 @@ namespace LAview.Desktop {
|
||||||
subprocess.spawnv(args);
|
subprocess.spawnv(args);
|
||||||
} catch (Error err) {
|
} catch (Error err) {
|
||||||
var msg = new MessageDialog (window, DialogFlags.MODAL, MessageType.ERROR,
|
var msg = new MessageDialog (window, DialogFlags.MODAL, MessageType.ERROR,
|
||||||
ButtonsType.CLOSE, @"Error: $(err.message).");
|
ButtonsType.CLOSE, _("Error")+@": $(err.message).");
|
||||||
msg.response.connect ((response_id) => { msg.destroy (); } );
|
msg.response.connect ((response_id) => { msg.destroy (); } );
|
||||||
msg.show ();
|
msg.show ();
|
||||||
}
|
}
|
||||||
|
@ -156,14 +161,24 @@ namespace LAview.Desktop {
|
||||||
return indices;
|
return indices;
|
||||||
}
|
}
|
||||||
|
|
||||||
[CCode (instance_pos = -1)]
|
void compose_object () {
|
||||||
public void action_compose_activate (Gtk.Action action) {
|
|
||||||
var t_indices = get_template_indices ();
|
var t_indices = get_template_indices ();
|
||||||
var o_indices = get_objects_indices ();
|
var o_indices = get_objects_indices ();
|
||||||
if (t_indices.length != 0 && o_indices.length != 0) {
|
if (t_indices.length != 0 && o_indices.length != 0)
|
||||||
AppCore.core.compose_object (t_indices[0], o_indices[0]);
|
AppCore.core.compose_object (t_indices[0], o_indices[0]);
|
||||||
}
|
statusbar_show (_("After composing all objects print the document."));
|
||||||
statusbar_show ("After composing all objects print the document.");
|
}
|
||||||
|
|
||||||
|
[CCode (instance_pos = -1)]
|
||||||
|
public void action_compose_activate (Gtk.Action action) {
|
||||||
|
compose_object();
|
||||||
|
}
|
||||||
|
|
||||||
|
[CCode (instance_pos = -1)]
|
||||||
|
public void objects_activated (Gtk.TreeView treeview,
|
||||||
|
Gtk.TreePath path,
|
||||||
|
Gtk.TreeViewColumn column) {
|
||||||
|
compose_object();
|
||||||
}
|
}
|
||||||
|
|
||||||
[CCode (instance_pos = -1)]
|
[CCode (instance_pos = -1)]
|
||||||
|
@ -191,7 +206,7 @@ namespace LAview.Desktop {
|
||||||
post_print);
|
post_print);
|
||||||
} catch (Error err) {
|
} catch (Error err) {
|
||||||
var msg = new MessageDialog (window, DialogFlags.MODAL, MessageType.ERROR,
|
var msg = new MessageDialog (window, DialogFlags.MODAL, MessageType.ERROR,
|
||||||
ButtonsType.CLOSE, @"Error: $(err.message).");
|
ButtonsType.CLOSE, _("Error")+@": $(err.message).");
|
||||||
msg.response.connect ((response_id) => { msg.destroy (); } );
|
msg.response.connect ((response_id) => { msg.destroy (); } );
|
||||||
msg.show ();
|
msg.show ();
|
||||||
}
|
}
|
||||||
|
@ -209,7 +224,7 @@ namespace LAview.Desktop {
|
||||||
show_uri (null, "https://redmine.backbone.ws/projects/laview/wiki", Gdk.CURRENT_TIME);
|
show_uri (null, "https://redmine.backbone.ws/projects/laview/wiki", Gdk.CURRENT_TIME);
|
||||||
} catch (Error err) {
|
} catch (Error err) {
|
||||||
var msg = new MessageDialog (window, DialogFlags.MODAL, MessageType.ERROR,
|
var msg = new MessageDialog (window, DialogFlags.MODAL, MessageType.ERROR,
|
||||||
ButtonsType.CLOSE, @"Error: $(err.message).");
|
ButtonsType.CLOSE, _("Error")+@": $(err.message).");
|
||||||
msg.response.connect ((response_id) => { msg.destroy (); } );
|
msg.response.connect ((response_id) => { msg.destroy (); } );
|
||||||
msg.show ();
|
msg.show ();
|
||||||
}
|
}
|
||||||
|
@ -237,20 +252,94 @@ namespace LAview.Desktop {
|
||||||
public void templates_cursor_changed (Gtk.TreeView treeview) {
|
public void templates_cursor_changed (Gtk.TreeView treeview) {
|
||||||
var indices = get_template_indices ();
|
var indices = get_template_indices ();
|
||||||
if (indices.length != 0) {
|
if (indices.length != 0) {
|
||||||
var doc_objects = AppCore.core.get_objects_list (indices[0]);
|
try {
|
||||||
liststore_doc_objects.clear();
|
var doc_objects = AppCore.core.get_objects_list (indices[0]);
|
||||||
Gtk.TreeIter iter = Gtk.TreeIter();
|
liststore_doc_objects.clear();
|
||||||
foreach (var t in doc_objects) {
|
Gtk.TreeIter iter = Gtk.TreeIter();
|
||||||
liststore_doc_objects.append (out iter);
|
foreach (var t in doc_objects) {
|
||||||
liststore_doc_objects.set (iter, 0, t);
|
liststore_doc_objects.append (out iter);
|
||||||
|
liststore_doc_objects.set (iter, 0, t);
|
||||||
|
}
|
||||||
|
} catch (Error err) {
|
||||||
|
var msg = new MessageDialog (window, DialogFlags.MODAL, MessageType.ERROR,
|
||||||
|
ButtonsType.CLOSE, _("Error")+@": $(err.message).");
|
||||||
|
msg.response.connect ((response_id) => { msg.destroy (); } );
|
||||||
|
msg.show ();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
statusbar_show ("Document analized, select an object and set it's properties.");
|
statusbar_show (_("Document analized, select an object and set it's properties."));
|
||||||
}
|
}
|
||||||
|
|
||||||
[CCode (instance_pos = -1)]
|
[CCode (instance_pos = -1)]
|
||||||
public void objects_cursor_changed (Gtk.TreeView treeview) {
|
public void objects_cursor_changed (Gtk.TreeView treeview) {
|
||||||
statusbar_show ("Press 'Properties' button to compose the object.");
|
statusbar_show (_("Press 'Properties' button to compose the object."));
|
||||||
|
}
|
||||||
|
|
||||||
|
[CCode (instance_pos = -1)]
|
||||||
|
public void action_saveas_activate (Gtk.Action action) {
|
||||||
|
var indices = get_template_indices ();
|
||||||
|
if (indices.length == 0) return;
|
||||||
|
var tmp_pdf = AppCore.core.get_pdf_file_path (indices[0]);
|
||||||
|
if (tmp_pdf == null || tmp_pdf == "") {
|
||||||
|
statusbar_show (_("Prepare the document first! >;-]"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
FileChooserDialog chooser = new Gtk.FileChooserDialog (_("Select destination"), window,
|
||||||
|
FileChooserAction.SAVE,
|
||||||
|
_("_Cancel"), ResponseType.CANCEL,
|
||||||
|
_("_Save"), ResponseType.ACCEPT);
|
||||||
|
chooser.select_multiple = false;
|
||||||
|
chooser.filter = new FileFilter ();
|
||||||
|
chooser.filter.add_mime_type ("application/pdf");
|
||||||
|
chooser.filter.add_pattern ("*.pdf");
|
||||||
|
|
||||||
|
// set folder
|
||||||
|
if (AppCore.settings.pdf_save_path != "")
|
||||||
|
chooser.set_current_folder (AppCore.settings.pdf_save_path);
|
||||||
|
|
||||||
|
// set current pdf file name or select an existance one
|
||||||
|
var template_name = AppCore.core.get_template_path_by_index (indices[0]);
|
||||||
|
template_name = File.new_for_path(template_name).get_basename ();
|
||||||
|
if ( template_name.down().has_suffix(".lyx")
|
||||||
|
|| template_name.down().has_suffix(".tex")
|
||||||
|
) {
|
||||||
|
var date = Time.local (time_t()).format("-%Y.%m.%d_%H-%M-%S");
|
||||||
|
template_name = template_name.splice (template_name.length-4, template_name.length, date+".pdf");
|
||||||
|
}
|
||||||
|
if (File.new_for_path(template_name).query_exists())
|
||||||
|
chooser.set_filename (template_name);
|
||||||
|
else
|
||||||
|
chooser.set_current_name (template_name);
|
||||||
|
|
||||||
|
// open dialog
|
||||||
|
var response = chooser.run ();
|
||||||
|
|
||||||
|
// process response
|
||||||
|
if (response == ResponseType.ACCEPT) {
|
||||||
|
try {
|
||||||
|
File.new_for_path (tmp_pdf).copy (chooser.get_file(), FileCopyFlags.OVERWRITE, null,
|
||||||
|
(current_num_bytes, total_num_bytes) => {
|
||||||
|
statusbar_show (@"$current_num_bytes "+_("bytes of")+
|
||||||
|
@" $total_num_bytes "+_("bytes copied/saved")+".");
|
||||||
|
});
|
||||||
|
AppCore.settings.pdf_save_path = chooser.get_file().get_parent().get_path();
|
||||||
|
statusbar_show (_("Save/Copy operation complete! :-)"));
|
||||||
|
} catch (Error err) {
|
||||||
|
var msg = new MessageDialog (chooser, DialogFlags.MODAL, MessageType.ERROR,
|
||||||
|
ButtonsType.CLOSE, _("Error")+@": $(err.message).");
|
||||||
|
msg.response.connect ((response_id) => { msg.destroy (); chooser.close (); } );
|
||||||
|
msg.show ();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
chooser.close ();
|
||||||
|
}
|
||||||
|
|
||||||
|
[CCode (instance_pos = -1)]
|
||||||
|
public void action_quit_activate (Gtk.Action action) {
|
||||||
|
window.destroy();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,50 +8,47 @@ namespace LAview.Desktop {
|
||||||
public class PreferencesDialog {
|
public class PreferencesDialog {
|
||||||
Dialog dialog;
|
Dialog dialog;
|
||||||
Gtk.ListStore liststore_data;
|
Gtk.ListStore liststore_data;
|
||||||
Gtk.ListStore liststore_protocols;
|
Gtk.ListStore liststore_objects;
|
||||||
FileChooserButton filechooserbutton_lyx;
|
FileChooserButton filechooserbutton_lyx;
|
||||||
FileChooserButton filechooserbutton_pdflatex;
|
FileChooserButton filechooserbutton_pdflatex;
|
||||||
|
|
||||||
public PreferencesDialog (Window parent) throws Error {
|
public PreferencesDialog (Gtk.Application application, Window parent) throws Error {
|
||||||
var builder = new Builder ();
|
var builder = new Builder ();
|
||||||
builder.add_from_file (AppDirs.ui_dir + "/laview-desktop.glade");
|
builder.add_from_file (AppDirs.ui_dir + "/laview-desktop.glade");
|
||||||
builder.connect_signals (this);
|
builder.connect_signals (this);
|
||||||
|
|
||||||
dialog = builder.get_object ("preferences_window") as Dialog;
|
dialog = builder.get_object ("preferences_window") as Dialog;
|
||||||
dialog.set_transient_for (parent);
|
dialog.transient_for = parent;
|
||||||
dialog.set_modal (true);
|
dialog.modal = true;
|
||||||
|
//dialog.application = application;
|
||||||
dialog.delete_event.connect ((source) => {return true;});
|
dialog.delete_event.connect ((source) => {return true;});
|
||||||
liststore_data = builder.get_object ("liststore_data") as Gtk.ListStore;
|
liststore_data = builder.get_object ("liststore_data") as Gtk.ListStore;
|
||||||
liststore_protocols = builder.get_object ("liststore_protocols") as Gtk.ListStore;
|
liststore_objects = builder.get_object ("liststore_protocol_objects") as Gtk.ListStore;
|
||||||
filechooserbutton_lyx = builder.get_object ("filechooserbutton_lyx") as FileChooserButton;
|
filechooserbutton_lyx = builder.get_object ("filechooserbutton_lyx") as FileChooserButton;
|
||||||
filechooserbutton_pdflatex = builder.get_object ("filechooserbutton_pdflatex") as FileChooserButton;
|
filechooserbutton_pdflatex = builder.get_object ("filechooserbutton_pdflatex") as FileChooserButton;
|
||||||
|
|
||||||
fill_liststore_data ();
|
fill_liststore_data ();
|
||||||
fill_liststore_protocols ();
|
fill_liststore_objects ();
|
||||||
|
|
||||||
filechooserbutton_lyx.set_filename (AppCore.core.lyx_path);
|
filechooserbutton_lyx.set_filename (AppCore.core.lyx_path);
|
||||||
filechooserbutton_pdflatex.set_filename (AppCore.core.pdflatex_path);
|
filechooserbutton_pdflatex.set_filename (AppCore.core.pdflatex_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
void fill_liststore_data () {
|
void fill_liststore_data () {
|
||||||
var data_plugins = AppCore.core.get_data_plugins ();
|
|
||||||
|
|
||||||
liststore_data.clear();
|
liststore_data.clear();
|
||||||
TreeIter iter = TreeIter();
|
TreeIter iter = TreeIter();
|
||||||
foreach (var p in data_plugins.entries) {
|
foreach (var p in AppCore.core.data_plugins.entries) {
|
||||||
liststore_data.append (out iter);
|
liststore_data.append (out iter);
|
||||||
liststore_data.set (iter, 0, p.value.get_readable_name ());
|
liststore_data.set (iter, 0, p.value.get_readable_name ());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void fill_liststore_protocols () {
|
void fill_liststore_objects () {
|
||||||
var protocol_plugins = AppCore.core.get_protocol_plugins ();
|
liststore_objects.clear();
|
||||||
|
|
||||||
liststore_protocols.clear();
|
|
||||||
TreeIter iter = TreeIter();
|
TreeIter iter = TreeIter();
|
||||||
foreach (var p in protocol_plugins.entries) {
|
foreach (var p in AppCore.core.object_plugins.entries) {
|
||||||
liststore_protocols.append (out iter);
|
liststore_objects.append (out iter);
|
||||||
liststore_protocols.set (iter, 0, p.value.get_readable_name ());
|
liststore_objects.set (iter, 0, p.value.get_readable_name ());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,5 +7,8 @@ namespace LAview.Desktop {
|
||||||
resource = Resource.load (resource_file);
|
resource = Resource.load (resource_file);
|
||||||
resource._register();
|
resource._register();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void terminate () {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,15 +1,31 @@
|
||||||
namespace LAview.Desktop {
|
namespace LAview.Desktop {
|
||||||
|
|
||||||
class AppSettings {
|
public class AppSettings {
|
||||||
//public static GLib.Settings settings;
|
Settings settings;
|
||||||
|
|
||||||
public static void init (string[] args) throws Error {
|
string _pdf_save_path;
|
||||||
|
public string pdf_save_path {
|
||||||
|
get { return _pdf_save_path; }
|
||||||
|
set {
|
||||||
|
if (settings != null) settings.set_string ("pdf-save-path", value);
|
||||||
|
_pdf_save_path = value;
|
||||||
|
}
|
||||||
|
default = "";
|
||||||
|
}
|
||||||
|
|
||||||
|
public AppSettings () throws Error {
|
||||||
SettingsSchemaSource sss = new SettingsSchemaSource.from_directory (AppDirs.settings_dir, null, false);
|
SettingsSchemaSource sss = new SettingsSchemaSource.from_directory (AppDirs.settings_dir, null, false);
|
||||||
//SettingsSchema schema = sss.lookup ("ws.backbone.laview.desktop-"+Config.VERSION_MAJOR.to_string(), false);
|
SettingsSchema schema = sss.lookup ("ws.backbone.laview.desktop-"+Config.VERSION_MAJOR.to_string(), false);
|
||||||
if (sss.lookup == null)
|
if (schema == null) {
|
||||||
throw new FileError.NOENT ("Schema ID not found");
|
stderr.printf ("ID not found.\n");
|
||||||
|
throw new IOError.NOT_FOUND ("File "+AppDirs.settings_dir+"/gschemas.compiled not found");
|
||||||
|
}
|
||||||
|
settings = new Settings.full (schema, null, null);
|
||||||
|
|
||||||
//settings = new Settings.full (schema, null, null);
|
_pdf_save_path = settings.get_string("pdf-save-path");
|
||||||
|
settings.changed["pdf-save-path"].connect (() => {
|
||||||
|
_pdf_save_path = settings.get_string("pdf-save-path");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,14 +13,15 @@ namespace LAview.Desktop {
|
||||||
|
|
||||||
public delegate void PostProcessDelegate ();
|
public delegate void PostProcessDelegate ();
|
||||||
|
|
||||||
public SubprocessDialog (Window parent) throws Error {
|
public SubprocessDialog (Gtk.Application application, Window parent) throws Error {
|
||||||
var builder = new Builder ();
|
var builder = new Builder ();
|
||||||
builder.add_from_file (AppDirs.ui_dir + "/laview-desktop.glade");
|
builder.add_from_file (AppDirs.ui_dir + "/laview-desktop.glade");
|
||||||
builder.connect_signals (this);
|
builder.connect_signals (this);
|
||||||
|
|
||||||
dialog = builder.get_object ("subprocess_dialog") as Dialog;
|
dialog = builder.get_object ("subprocess_dialog") as Dialog;
|
||||||
dialog.set_transient_for (parent);
|
dialog.transient_for = parent;
|
||||||
dialog.set_modal (true);
|
dialog.modal = true;
|
||||||
|
//dialog.application = application;
|
||||||
dialog.delete_event.connect ((source) => {return true;});
|
dialog.delete_event.connect ((source) => {return true;});
|
||||||
textview_stderrout = builder.get_object ("textview_stderrout") as TextView;
|
textview_stderrout = builder.get_object ("textview_stderrout") as TextView;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,43 +4,6 @@ namespace LAview.Desktop {
|
||||||
|
|
||||||
using Gtk;
|
using Gtk;
|
||||||
|
|
||||||
/**
|
|
||||||
* Resolve a path beginning with "~"
|
|
||||||
* Look at: https://github.com/ssokolow/gvrun/blob/master/process_runner.vala#L86
|
|
||||||
*/
|
|
||||||
#if (linux || UNIX || __unix__)
|
|
||||||
static string expand_tilde (string path) {
|
|
||||||
if (!path.has_prefix ("~")) return path; // Just pass paths through if they don't start with ~
|
|
||||||
|
|
||||||
// Split the ~user portion from the path (Use / for the path if not present)
|
|
||||||
string parts[2];
|
|
||||||
if (!(Path.DIR_SEPARATOR_S in path)) {
|
|
||||||
parts = { path.substring(1), Path.DIR_SEPARATOR_S };
|
|
||||||
} else {
|
|
||||||
string trimmed = path.substring(1);
|
|
||||||
parts = trimmed.split(Path.DIR_SEPARATOR_S, 2);
|
|
||||||
}
|
|
||||||
warn_if_fail(parts.length == 2);
|
|
||||||
|
|
||||||
// Handle both "~" and "~user" forms
|
|
||||||
string home_path;
|
|
||||||
if (parts[0] == "") {
|
|
||||||
home_path = Environment.get_variable("HOME") ?? Environment.get_home_dir();
|
|
||||||
} else {
|
|
||||||
unowned Posix.Passwd _pw = Posix.getpwnam(parts[0]);
|
|
||||||
home_path = (_pw == null) ? null : _pw.pw_dir;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Fail safely if we couldn't look up a homedir
|
|
||||||
if (home_path == null) {
|
|
||||||
warning("Could not get homedir for user: %s", parts[0].length > 0 ? parts[0] : "<current user>");
|
|
||||||
return path;
|
|
||||||
} else {
|
|
||||||
return home_path + Path.DIR_SEPARATOR_S + parts[1];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Open document.
|
* Open document.
|
||||||
* Idea borrowed from: https://github.com/ssokolow/gvrun/blob/master/process_runner.vala
|
* Idea borrowed from: https://github.com/ssokolow/gvrun/blob/master/process_runner.vala
|
||||||
|
@ -51,7 +14,7 @@ namespace LAview.Desktop {
|
||||||
foreach (var opener in OPENERS) {
|
foreach (var opener in OPENERS) {
|
||||||
if (Environment.find_program_in_path (opener) != null) {
|
if (Environment.find_program_in_path (opener) != null) {
|
||||||
try {
|
try {
|
||||||
string[] argv = { opener, expand_tilde (path) };
|
string[] argv = { opener, path };
|
||||||
Process.spawn_async(null, argv, null, SpawnFlags.SEARCH_PATH, null, null);
|
Process.spawn_async(null, argv, null, SpawnFlags.SEARCH_PATH, null, null);
|
||||||
} catch (SpawnError err) {
|
} catch (SpawnError err) {
|
||||||
var msg = new MessageDialog (parent_window, DialogFlags.MODAL, MessageType.ERROR,
|
var msg = new MessageDialog (parent_window, DialogFlags.MODAL, MessageType.ERROR,
|
||||||
|
|
|
@ -4,7 +4,7 @@ namespace LAview.Desktop {
|
||||||
|
|
||||||
using Gtk, LAview.Desktop;
|
using Gtk, LAview.Desktop;
|
||||||
|
|
||||||
namespace CommandlineOptions {
|
/*namespace CommandlineOptions {
|
||||||
// bool no_startup_progress = false;
|
// bool no_startup_progress = false;
|
||||||
// string data_dir = null;
|
// string data_dir = null;
|
||||||
bool show_version = false;
|
bool show_version = false;
|
||||||
|
@ -38,35 +38,52 @@ namespace LAview.Desktop {
|
||||||
|
|
||||||
return entries;
|
return entries;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
void main (string[] args) {
|
|
||||||
|
|
||||||
try {
|
public class LAviewDesktopApp : Gtk.Application {
|
||||||
|
|
||||||
AppDirs.init (args);
|
MainWindow main_window;
|
||||||
AppSettings.init (args);
|
|
||||||
AppCore.init (args);
|
|
||||||
Resources.init (args);
|
|
||||||
|
|
||||||
Gtk.init_with_args (ref args, _("[FILE]"), CommandlineOptions.get_options (), GETTEXT_PACKAGE);
|
public LAviewDesktopApp () {
|
||||||
|
Object(application_id: "ws.backbone.laview.desktop",
|
||||||
// Internationalization
|
flags: ApplicationFlags.FLAGS_NONE);
|
||||||
Intl.bindtextdomain (GETTEXT_PACKAGE, AppDirs.locale_dir);
|
|
||||||
Intl.bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
|
||||||
|
|
||||||
var main_window = new MainWindow ();
|
|
||||||
main_window.show_all ();
|
|
||||||
|
|
||||||
Gtk.main ();
|
|
||||||
|
|
||||||
} catch (Error e) {
|
|
||||||
stderr.printf (_("Error: %s\n"), e.message);
|
|
||||||
stderr.printf (_("Run '%s --help' to see a full list of available command line options.\n"), args[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
AppDirs.terminate();
|
~LAviewDesktopApp () {
|
||||||
|
Resources.terminate ();
|
||||||
|
AppCore.terminate ();
|
||||||
|
AppDirs.terminate ();
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
protected override void activate () {
|
||||||
|
try {
|
||||||
|
main_window = new MainWindow (this);
|
||||||
|
main_window.show_all ();
|
||||||
|
} catch (Error e) {
|
||||||
|
stderr.printf (_("Error: %s\n"), e.message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static int main (string[] args) {
|
||||||
|
try {
|
||||||
|
AppDirs.init (args);
|
||||||
|
AppCore.init (args);
|
||||||
|
Resources.init (args);
|
||||||
|
//Gtk.init_with_args (ref args, _("[FILE]"), CommandlineOptions.get_options (), GETTEXT_PACKAGE);
|
||||||
|
|
||||||
|
// Internationalization
|
||||||
|
Intl.bindtextdomain (GETTEXT_PACKAGE, AppDirs.locale_dir);
|
||||||
|
Intl.bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
||||||
|
|
||||||
|
var app = new LAviewDesktopApp ();
|
||||||
|
return app.run (args);
|
||||||
|
|
||||||
|
} catch (Error e) {
|
||||||
|
stderr.printf (_("Error: %s\n"), e.message);
|
||||||
|
stderr.printf (_("Run '%s --help' to see a full list of available command line options.\n"), args[0]);
|
||||||
|
return e.code;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
#if defined(_WIN32) || defined(_WIN64)
|
||||||
|
#include <time.h>
|
||||||
|
struct tm *localtime_r(const time_t *timep, struct tm *result)
|
||||||
|
{
|
||||||
|
localtime_s(result, timep);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
#endif
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!-- Generated with glade 3.18.3 -->
|
<!-- Generated with glade 3.19.0 -->
|
||||||
<interface domain="laview-desktop-@MAJOR@">
|
<interface domain="laview-desktop-@MAJOR@">
|
||||||
<requires lib="gtk+" version="3.16"/>
|
<requires lib="gtk+" version="3.16"/>
|
||||||
<object class="GtkAboutDialog" id="aboutdialog_window">
|
<object class="GtkAboutDialog" id="aboutdialog_window">
|
||||||
|
@ -41,59 +41,83 @@
|
||||||
<object class="GtkActionGroup" id="actiongroup_main">
|
<object class="GtkActionGroup" id="actiongroup_main">
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkAction" id="action_new">
|
<object class="GtkAction" id="action_new">
|
||||||
<property name="icon_name">drive-optical</property>
|
<property name="stock_id">gtk-new</property>
|
||||||
<property name="always_show_image">True</property>
|
<property name="always_show_image">True</property>
|
||||||
<signal name="activate" handler="laview_desktop_main_window_action_new_activate" swapped="no"/>
|
<signal name="activate" handler="laview_desktop_main_window_action_new_activate" swapped="no"/>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkAction" id="action_open">
|
<object class="GtkAction" id="action_open">
|
||||||
|
<property name="stock_id">gtk-open</property>
|
||||||
<property name="always_show_image">True</property>
|
<property name="always_show_image">True</property>
|
||||||
<signal name="activate" handler="laview_desktop_main_window_action_open_activate" swapped="no"/>
|
<signal name="activate" handler="laview_desktop_main_window_action_open_activate" swapped="no"/>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkAction" id="action_edit_template">
|
<object class="GtkAction" id="action_edit_template">
|
||||||
|
<property name="label" translatable="yes">_Template</property>
|
||||||
|
<property name="stock_id">gtk-edit</property>
|
||||||
<property name="always_show_image">True</property>
|
<property name="always_show_image">True</property>
|
||||||
<signal name="activate" handler="laview_desktop_main_window_action_edit_template_activate" swapped="no"/>
|
<signal name="activate" handler="laview_desktop_main_window_action_edit_template_activate" swapped="no"/>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkAction" id="action_delete">
|
<object class="GtkAction" id="action_delete">
|
||||||
|
<property name="stock_id">gtk-delete</property>
|
||||||
<property name="always_show_image">True</property>
|
<property name="always_show_image">True</property>
|
||||||
<signal name="activate" handler="laview_desktop_main_window_action_delete_activate" swapped="no"/>
|
<signal name="activate" handler="laview_desktop_main_window_action_delete_activate" swapped="no"/>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkAction" id="action_prepare">
|
<object class="GtkAction" id="action_prepare">
|
||||||
|
<property name="stock_id">gtk-properties</property>
|
||||||
<property name="always_show_image">True</property>
|
<property name="always_show_image">True</property>
|
||||||
<signal name="activate" handler="laview_desktop_main_window_action_compose_activate" swapped="no"/>
|
<signal name="activate" handler="laview_desktop_main_window_action_compose_activate" swapped="no"/>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkAction" id="action_print">
|
<object class="GtkAction" id="action_print">
|
||||||
|
<property name="stock_id">gtk-print</property>
|
||||||
<property name="always_show_image">True</property>
|
<property name="always_show_image">True</property>
|
||||||
<signal name="activate" handler="laview_desktop_main_window_action_print_activate" swapped="no"/>
|
<signal name="activate" handler="laview_desktop_main_window_action_print_activate" swapped="no"/>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkAction" id="action_ref">
|
<object class="GtkAction" id="action_ref">
|
||||||
|
<property name="stock_id">gtk-help</property>
|
||||||
<property name="always_show_image">True</property>
|
<property name="always_show_image">True</property>
|
||||||
<signal name="activate" handler="laview_desktop_main_window_action_ref_activate" swapped="no"/>
|
<signal name="activate" handler="laview_desktop_main_window_action_ref_activate" swapped="no"/>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkAction" id="action_preferences">
|
<object class="GtkAction" id="action_preferences">
|
||||||
|
<property name="stock_id">gtk-preferences</property>
|
||||||
<property name="always_show_image">True</property>
|
<property name="always_show_image">True</property>
|
||||||
<signal name="activate" handler="laview_desktop_main_window_action_preferences_activate" swapped="no"/>
|
<signal name="activate" handler="laview_desktop_main_window_action_preferences_activate" swapped="no"/>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkAction" id="action_edit_result">
|
<object class="GtkAction" id="action_edit_result">
|
||||||
|
<property name="label" translatable="yes">_Document</property>
|
||||||
|
<property name="stock_id">gtk-edit</property>
|
||||||
<property name="always_show_image">True</property>
|
<property name="always_show_image">True</property>
|
||||||
<signal name="activate" handler="laview_desktop_main_window_action_edit_result_activate" swapped="no"/>
|
<signal name="activate" handler="laview_desktop_main_window_action_edit_result_activate" swapped="no"/>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkAction" id="action_saveas">
|
||||||
|
<property name="stock_id">gtk-save</property>
|
||||||
|
<property name="always_show_image">True</property>
|
||||||
|
<signal name="activate" handler="laview_desktop_main_window_action_saveas_activate" swapped="no"/>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkAction" id="action_quit">
|
||||||
|
<property name="stock_id">gtk-quit</property>
|
||||||
|
<property name="always_show_image">True</property>
|
||||||
|
<signal name="activate" handler="laview_desktop_main_window_action_quit_activate" swapped="no"/>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
</object>
|
</object>
|
||||||
<object class="GtkFileFilter" id="filefilter_open">
|
<object class="GtkFileFilter" id="filefilter_open">
|
||||||
<patterns>
|
<patterns>
|
||||||
|
@ -113,7 +137,7 @@
|
||||||
<column type="gchararray"/>
|
<column type="gchararray"/>
|
||||||
</columns>
|
</columns>
|
||||||
</object>
|
</object>
|
||||||
<object class="GtkListStore" id="liststore_protocols">
|
<object class="GtkListStore" id="liststore_protocol_objects">
|
||||||
<columns>
|
<columns>
|
||||||
<!-- column-name name -->
|
<!-- column-name name -->
|
||||||
<column type="gchararray"/>
|
<column type="gchararray"/>
|
||||||
|
@ -263,16 +287,16 @@
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="shadow_type">in</property>
|
<property name="shadow_type">in</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkTreeView" id="treeview_protocols">
|
<object class="GtkTreeView" id="treeview_protocol_objects">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="model">liststore_protocols</property>
|
<property name="model">liststore_protocol_objects</property>
|
||||||
<child internal-child="selection">
|
<child internal-child="selection">
|
||||||
<object class="GtkTreeSelection" id="treeview-selection5"/>
|
<object class="GtkTreeSelection" id="treeview-selection5"/>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkTreeViewColumn" id="treeviewcolumn3">
|
<object class="GtkTreeViewColumn" id="treeviewcolumn3">
|
||||||
<property name="title" translatable="yes">Protocol Plugins</property>
|
<property name="title" translatable="yes">Object plugins</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCellRendererText" id="cellrenderertext2"/>
|
<object class="GtkCellRendererText" id="cellrenderertext2"/>
|
||||||
<attributes>
|
<attributes>
|
||||||
|
@ -299,7 +323,7 @@
|
||||||
<object class="GtkLabel" id="label2">
|
<object class="GtkLabel" id="label2">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="label" translatable="yes">Protocol plugins</property>
|
<property name="label" translatable="yes">Object plugins</property>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="position">1</property>
|
<property name="position">1</property>
|
||||||
|
@ -326,7 +350,7 @@
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkTreeViewColumn" id="treeviewcolumn4">
|
<object class="GtkTreeViewColumn" id="treeviewcolumn4">
|
||||||
<property name="title" translatable="yes">Data Plugins</property>
|
<property name="title" translatable="yes">Data plugins</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCellRendererText" id="cellrenderertext3"/>
|
<object class="GtkCellRendererText" id="cellrenderertext3"/>
|
||||||
<attributes>
|
<attributes>
|
||||||
|
@ -376,14 +400,13 @@
|
||||||
<column type="gchararray"/>
|
<column type="gchararray"/>
|
||||||
</columns>
|
</columns>
|
||||||
</object>
|
</object>
|
||||||
<object class="GtkWindow" id="main_window">
|
<object class="GtkApplicationWindow" id="main_window">
|
||||||
<property name="width_request">640</property>
|
<property name="width_request">640</property>
|
||||||
<property name="height_request">480</property>
|
<property name="height_request">480</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="margin_top">3</property>
|
<property name="margin_top">3</property>
|
||||||
<property name="border_width">4</property>
|
<property name="border_width">4</property>
|
||||||
<property name="title" translatable="yes">LAview Desktop</property>
|
<property name="title" translatable="yes">LAview Desktop</property>
|
||||||
<signal name="destroy" handler="gtk_main_quit" swapped="no"/>
|
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="main_vbox">
|
<object class="GtkBox" id="main_vbox">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
@ -414,6 +437,7 @@
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="use_stock">True</property>
|
<property name="use_stock">True</property>
|
||||||
<property name="always_show_image">True</property>
|
<property name="always_show_image">True</property>
|
||||||
|
<accelerator key="n" signal="activate" modifiers="GDK_CONTROL_MASK"/>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
|
@ -426,6 +450,7 @@
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="use_stock">True</property>
|
<property name="use_stock">True</property>
|
||||||
<property name="always_show_image">True</property>
|
<property name="always_show_image">True</property>
|
||||||
|
<accelerator key="o" signal="activate" modifiers="GDK_CONTROL_MASK"/>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
|
@ -438,6 +463,7 @@
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="use_stock">True</property>
|
<property name="use_stock">True</property>
|
||||||
<property name="always_show_image">True</property>
|
<property name="always_show_image">True</property>
|
||||||
|
<accelerator key="e" signal="activate" modifiers="GDK_CONTROL_MASK"/>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
|
@ -450,6 +476,7 @@
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="use_stock">True</property>
|
<property name="use_stock">True</property>
|
||||||
<property name="always_show_image">True</property>
|
<property name="always_show_image">True</property>
|
||||||
|
<accelerator key="Delete" signal="activate"/>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
|
@ -463,12 +490,13 @@
|
||||||
<object class="GtkImageMenuItem" id="menuitem_quit">
|
<object class="GtkImageMenuItem" id="menuitem_quit">
|
||||||
<property name="label">gtk-quit</property>
|
<property name="label">gtk-quit</property>
|
||||||
<property name="use_action_appearance">False</property>
|
<property name="use_action_appearance">False</property>
|
||||||
|
<property name="related_action">action_quit</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="use_stock">True</property>
|
<property name="use_stock">True</property>
|
||||||
<property name="always_show_image">True</property>
|
<property name="always_show_image">True</property>
|
||||||
<signal name="activate" handler="gtk_main_quit" swapped="no"/>
|
<accelerator key="q" signal="activate" modifiers="GDK_CONTROL_MASK"/>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
@ -497,6 +525,7 @@
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="use_stock">True</property>
|
<property name="use_stock">True</property>
|
||||||
<property name="always_show_image">True</property>
|
<property name="always_show_image">True</property>
|
||||||
|
<accelerator key="r" signal="activate" modifiers="GDK_CONTROL_MASK"/>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
|
@ -509,6 +538,7 @@
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="use_stock">True</property>
|
<property name="use_stock">True</property>
|
||||||
<property name="always_show_image">True</property>
|
<property name="always_show_image">True</property>
|
||||||
|
<accelerator key="p" signal="activate" modifiers="GDK_CONTROL_MASK"/>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
|
@ -523,6 +553,19 @@
|
||||||
<property name="always_show_image">True</property>
|
<property name="always_show_image">True</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImageMenuItem" id="menuitem_saveas">
|
||||||
|
<property name="label">gtk-save</property>
|
||||||
|
<property name="use_action_appearance">False</property>
|
||||||
|
<property name="related_action">action_saveas</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
|
<property name="use_stock">True</property>
|
||||||
|
<property name="always_show_image">True</property>
|
||||||
|
<accelerator key="s" signal="activate" modifiers="GDK_CONTROL_MASK"/>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
@ -575,6 +618,8 @@
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="use_stock">True</property>
|
<property name="use_stock">True</property>
|
||||||
<property name="always_show_image">True</property>
|
<property name="always_show_image">True</property>
|
||||||
|
<accelerator key="F1" signal="activate"/>
|
||||||
|
<accelerator key="h" signal="activate" modifiers="GDK_CONTROL_MASK"/>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
|
@ -607,7 +652,7 @@
|
||||||
<property name="toolbar_style">both</property>
|
<property name="toolbar_style">both</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkToolButton" id="toolbutton_new">
|
<object class="GtkToolButton" id="toolbutton_new">
|
||||||
<property name="use_action_appearance">False</property>
|
<property name="use_action_appearance">True</property>
|
||||||
<property name="related_action">action_new</property>
|
<property name="related_action">action_new</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
|
@ -622,7 +667,7 @@
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkToolButton" id="toolbutton_open">
|
<object class="GtkToolButton" id="toolbutton_open">
|
||||||
<property name="use_action_appearance">False</property>
|
<property name="use_action_appearance">True</property>
|
||||||
<property name="related_action">action_open</property>
|
<property name="related_action">action_open</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
|
@ -637,7 +682,7 @@
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkToolButton" id="toolbutton_edit_template">
|
<object class="GtkToolButton" id="toolbutton_edit_template">
|
||||||
<property name="use_action_appearance">False</property>
|
<property name="use_action_appearance">True</property>
|
||||||
<property name="related_action">action_edit_template</property>
|
<property name="related_action">action_edit_template</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
|
@ -653,7 +698,7 @@
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkToolButton" id="toolbutton_delete">
|
<object class="GtkToolButton" id="toolbutton_delete">
|
||||||
<property name="use_action_appearance">False</property>
|
<property name="use_action_appearance">True</property>
|
||||||
<property name="related_action">action_delete</property>
|
<property name="related_action">action_delete</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
|
@ -678,7 +723,7 @@
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkToolButton" id="toolbutton_prepare">
|
<object class="GtkToolButton" id="toolbutton_prepare">
|
||||||
<property name="use_action_appearance">False</property>
|
<property name="use_action_appearance">True</property>
|
||||||
<property name="related_action">action_prepare</property>
|
<property name="related_action">action_prepare</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
|
@ -693,7 +738,7 @@
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkToolButton" id="toolbutton_print">
|
<object class="GtkToolButton" id="toolbutton_print">
|
||||||
<property name="use_action_appearance">False</property>
|
<property name="use_action_appearance">True</property>
|
||||||
<property name="related_action">action_print</property>
|
<property name="related_action">action_print</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
|
@ -708,7 +753,7 @@
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkToolButton" id="toolbutton_edit_result">
|
<object class="GtkToolButton" id="toolbutton_edit_result">
|
||||||
<property name="use_action_appearance">False</property>
|
<property name="use_action_appearance">True</property>
|
||||||
<property name="related_action">action_edit_result</property>
|
<property name="related_action">action_edit_result</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
|
@ -722,6 +767,21 @@
|
||||||
<property name="homogeneous">True</property>
|
<property name="homogeneous">True</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkToolButton" id="toolbutton_saveas">
|
||||||
|
<property name="use_action_appearance">True</property>
|
||||||
|
<property name="related_action">action_saveas</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="tooltip_text" translatable="yes">Save the document as...</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
|
<property name="stock_id">gtk-save</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="homogeneous">True</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkSeparatorToolItem" id="separatortoolitem2">
|
<object class="GtkSeparatorToolItem" id="separatortoolitem2">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
@ -734,7 +794,7 @@
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkToolButton" id="toolbutton_preferences">
|
<object class="GtkToolButton" id="toolbutton_preferences">
|
||||||
<property name="use_action_appearance">False</property>
|
<property name="use_action_appearance">True</property>
|
||||||
<property name="related_action">action_preferences</property>
|
<property name="related_action">action_preferences</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
|
@ -749,7 +809,7 @@
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkToolButton" id="toolbutton_ref">
|
<object class="GtkToolButton" id="toolbutton_ref">
|
||||||
<property name="use_action_appearance">False</property>
|
<property name="use_action_appearance">True</property>
|
||||||
<property name="related_action">action_ref</property>
|
<property name="related_action">action_ref</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
|
@ -774,12 +834,13 @@
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkToolButton" id="toolbutton_quit">
|
<object class="GtkToolButton" id="toolbutton_quit">
|
||||||
|
<property name="use_action_appearance">True</property>
|
||||||
|
<property name="related_action">action_quit</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="tooltip_text" translatable="yes">Close the application</property>
|
<property name="tooltip_text" translatable="yes">Close the application</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="stock_id">gtk-quit</property>
|
<property name="stock_id">gtk-quit</property>
|
||||||
<signal name="clicked" handler="gtk_main_quit" swapped="no"/>
|
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
|
@ -949,6 +1010,7 @@
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="model">liststore_objects</property>
|
<property name="model">liststore_objects</property>
|
||||||
<signal name="cursor-changed" handler="laview_desktop_main_window_objects_cursor_changed" swapped="no"/>
|
<signal name="cursor-changed" handler="laview_desktop_main_window_objects_cursor_changed" swapped="no"/>
|
||||||
|
<signal name="row-activated" handler="laview_desktop_main_window_objects_activated" swapped="no"/>
|
||||||
<child internal-child="selection">
|
<child internal-child="selection">
|
||||||
<object class="GtkTreeSelection" id="treeview-selection_objects"/>
|
<object class="GtkTreeSelection" id="treeview-selection_objects"/>
|
||||||
</child>
|
</child>
|
||||||
|
@ -1032,6 +1094,23 @@
|
||||||
<property name="position">2</property>
|
<property name="position">2</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="button_saveas">
|
||||||
|
<property name="label">gtk-save</property>
|
||||||
|
<property name="use_action_appearance">False</property>
|
||||||
|
<property name="related_action">action_saveas</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="receives_default">True</property>
|
||||||
|
<property name="use_stock">True</property>
|
||||||
|
<property name="always_show_image">True</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">3</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
|
|
Loading…
Reference in New Issue