Moxkiriyaプロジェクト事前開発用の作業部屋
Revision | fc46df0a0e65db0e2592d7cf808eb68ed1a4ded7 (tree) |
---|---|
Time | 2018-08-18 17:06:09 |
Author | Harold_Andoh <andolloyd@gmai...> |
Commiter | Harold_Andoh |
[Moxkiriya7]
@@ -29,7 +29,7 @@ | ||
29 | 29 | </Menu> |
30 | 30 | <Menu mnemonicParsing="false" text="%key.Menu.Help"> |
31 | 31 | <items> |
32 | - <MenuItem mnemonicParsing="false" text="%key.MenuItem.VersionInfo" fx:id="menuItemVersionInfo" /> | |
32 | + <MenuItem mnemonicParsing="false" onAction="#onActionMenuItemAboutMoxkiriya" text="%key.MenuItem.About.Moxkiriya" fx:id="menuItemAboutMoxkiriya" /> | |
33 | 33 | </items> |
34 | 34 | </Menu> |
35 | 35 | </menus> |
@@ -26,8 +26,10 @@ import org.w3c.dom.events.EventListener; | ||
26 | 26 | import org.w3c.dom.events.EventTarget; |
27 | 27 | import org.w3c.dom.events.MouseEvent; |
28 | 28 | |
29 | +import com.wiki.standalone.moxkiriya.dialog.AboutMoxkiriyaDialog; | |
29 | 30 | import com.wiki.standalone.moxkiriya.dialog.AddCategoryDialog; |
30 | 31 | import com.wiki.standalone.moxkiriya.dialog.AlertDialog; |
32 | +import com.wiki.standalone.moxkiriya.dialog.DialogBase; | |
31 | 33 | import com.wiki.standalone.moxkiriya.dialog.EditAttachFilesDialog; |
32 | 34 | import com.wiki.standalone.moxkiriya.util.DefaultProgramExecutor; |
33 | 35 | import com.wiki.standalone.moxkiriya.util.FileIO; |
@@ -83,7 +85,7 @@ public class WikiMainWindowController implements Initializable { | ||
83 | 85 | @FXML private MenuItem menuItemNew; |
84 | 86 | @FXML private MenuItem menuItemExit; |
85 | 87 | @FXML private MenuItem menuItemDelete; |
86 | - @FXML private MenuItem menuItemVersionInfo; | |
88 | + @FXML private MenuItem menuItemAboutMoxkiriya; | |
87 | 89 | |
88 | 90 | /* |
89 | 91 | * ChoiceView controls. |
@@ -274,6 +276,16 @@ public class WikiMainWindowController implements Initializable { | ||
274 | 276 | } |
275 | 277 | |
276 | 278 | @FXML |
279 | + public void onActionMenuItemAboutMoxkiriya(ActionEvent event) { | |
280 | + try { | |
281 | + DialogBase dialog = new AboutMoxkiriyaDialog(); | |
282 | + dialog.showDialog(primaryStage_, resourceBundle_); | |
283 | + } catch (Exception e) { | |
284 | + e.printStackTrace(); | |
285 | + } | |
286 | + } | |
287 | + | |
288 | + @FXML | |
277 | 289 | public void onActionButtonSearch(ActionEvent event) { |
278 | 290 | try { |
279 | 291 | String key = webViewMenuAnchorPaneTextFieldSearchWiki.getText(); |
@@ -0,0 +1,21 @@ | ||
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | + | |
3 | +<?import java.lang.*?> | |
4 | +<?import java.util.*?> | |
5 | +<?import javafx.scene.control.*?> | |
6 | +<?import javafx.scene.layout.*?> | |
7 | +<?import javafx.scene.paint.*?> | |
8 | +<?scenebuilder-preview-i18n-resource ../resources/moxkiriya.properties?> | |
9 | + | |
10 | +<AnchorPane id="AnchorPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/2.2" fx:controller="com.wiki.standalone.moxkiriya.dialog.AboutMoxkiriyaDialogController"> | |
11 | + <children> | |
12 | + <Button fx:id="buttonOK" layoutX="250.0" layoutY="358.0" maxHeight="-Infinity" maxWidth="-Infinity" mnemonicParsing="false" onAction="#onActionButtonOK" prefHeight="30.0" prefWidth="100.0" text="%key.Button.OK" /> | |
13 | + <Label prefHeight="30.0" prefWidth="480.0" text="%key.About.Moxkiriya" AnchorPane.leftAnchor="50.0" AnchorPane.rightAnchor="50.0" AnchorPane.topAnchor="30.0" /> | |
14 | + <Label prefHeight="30.0" prefWidth="500.0" text="%key.About.Moxkiriya.Copyright" AnchorPane.leftAnchor="80.0" AnchorPane.rightAnchor="50.0" AnchorPane.topAnchor="55.0" /> | |
15 | + <Label prefHeight="30.0" prefWidth="500.0" text="%key.About.Moxkiriya.License" AnchorPane.leftAnchor="80.0" AnchorPane.rightAnchor="50.0" AnchorPane.topAnchor="80.0" /> | |
16 | + <Label maxHeight="-Infinity" maxWidth="-Infinity" prefHeight="30.0" prefWidth="480.0" text="%key.About.Moxkiriya.Other.info" AnchorPane.leftAnchor="50.0" AnchorPane.rightAnchor="50.0" AnchorPane.topAnchor="230.0" /> | |
17 | + <Label maxHeight="-Infinity" maxWidth="-Infinity" prefHeight="30.0" prefWidth="500.0" text="%key.About.Moxkiriya.Powered.Apache.Lucene" AnchorPane.leftAnchor="80.0" AnchorPane.rightAnchor="50.0" AnchorPane.topAnchor="255.0" /> | |
18 | + <Label prefHeight="30.0" prefWidth="500.0" text="%key.About.Moxkiriya.System.requirement" AnchorPane.leftAnchor="50.0" AnchorPane.rightAnchor="50.0" AnchorPane.topAnchor="130.0" /> | |
19 | + <Label prefHeight="30.0" prefWidth="500.0" text="%key.About.Moxkiriya.System.requirement.Java" AnchorPane.leftAnchor="80.0" AnchorPane.rightAnchor="50.0" AnchorPane.topAnchor="155.0" /> | |
20 | + </children> | |
21 | +</AnchorPane> |
@@ -0,0 +1,27 @@ | ||
1 | +/** | |
2 | + * Moxkiriya standalone Wiki. | |
3 | + * About Moxkiriya Dialog. | |
4 | + * | |
5 | + * @author Ryuhei Terada | |
6 | + * See the '<a href="{@docRoot}/copyright.html">Copyright</a>' | |
7 | + */ | |
8 | +package com.wiki.standalone.moxkiriya.dialog; | |
9 | + | |
10 | +/** | |
11 | + * About Moxkiriyaダイアログを表示する。 | |
12 | + */ | |
13 | +public class AboutMoxkiriyaDialog extends DialogBase { | |
14 | + | |
15 | + @Override | |
16 | + protected String getFXML() { | |
17 | + return "AboutMoxkiriyaDialog.fxml"; | |
18 | + } | |
19 | + | |
20 | + @Override | |
21 | + protected DialogController getController() throws Exception { | |
22 | + AboutMoxkiriyaDialogController controller = loader_.getController(); | |
23 | + | |
24 | + return controller; | |
25 | + } | |
26 | + | |
27 | +} |
@@ -0,0 +1,25 @@ | ||
1 | +/** | |
2 | + * Moxkiriya standalone Wiki. | |
3 | + * About Moxkiriya Dialog Controller. | |
4 | + * | |
5 | + * @author Ryuhei Terada | |
6 | + * See the '<a href="{@docRoot}/copyright.html">Copyright</a>' | |
7 | + */ | |
8 | +package com.wiki.standalone.moxkiriya.dialog; | |
9 | + | |
10 | +import javafx.event.ActionEvent; | |
11 | +import javafx.fxml.FXML; | |
12 | +import javafx.scene.Node; | |
13 | +import javafx.scene.control.Button; | |
14 | + | |
15 | +/** | |
16 | + * About Moxkiriyaダイアログのコントローラ。 | |
17 | + */ | |
18 | +public class AboutMoxkiriyaDialogController extends DialogControllerBase { | |
19 | + @FXML private Button buttonOK; | |
20 | + | |
21 | + @FXML | |
22 | + void onActionButtonOK(ActionEvent event) { | |
23 | + ((Node)event.getSource()).getScene().getWindow().hide(); | |
24 | + } | |
25 | +} |
@@ -21,7 +21,7 @@ key.Menu.Help: Help | ||
21 | 21 | key.MenuItem.New: New |
22 | 22 | key.MenuItem.Exit: Exit |
23 | 23 | key.MenuItem.Delete: Delete |
24 | -key.MenuItem.VersionInfo: Version Info. | |
24 | +key.MenuItem.About.Moxkiriya: About Moxkiriya. | |
25 | 25 | |
26 | 26 | key.TextField.Search_Wiki: Search Wiki |
27 | 27 | key.Hyperlink.Reading: Reading |
@@ -61,3 +61,12 @@ key.AddCategoryDialg.Button.Cancel:Cancel | ||
61 | 61 | key.search.result.PageTitle: Search results |
62 | 62 | key.search.result.SearchKey: Search key: |
63 | 63 | key.search.result.message.nopage: There was no pages that hit the search. |
64 | + | |
65 | +key.About.Moxkiriya: About Moxkiriya. | |
66 | +key.About.Moxkiriya.Copyright: Copyright 2018 Ryuhei Terada All rights reserved. | |
67 | +key.About.Moxkiriya.License: This software is licensed by GPL version 3.0. | |
68 | +key.About.Moxkiriya.System.requirement: System requirement. | |
69 | +key.About.Moxkiriya.System.requirement.Java: Java version 1.7.0 or later. | |
70 | +key.About.Moxkiriya.Other.info: Other infomation. | |
71 | +key.About.Moxkiriya.Powered.Apache.Lucene: This software uses Apache Lucene that licensed by Apache license version 2.0. | |
72 | + |