• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Moxkiriyaプロジェクト事前開発用の作業部屋


Commit MetaInfo

Revision059f44fe67165dd01e78758d260001045553078a (tree)
Time2018-10-10 23:10:12
AuthorHarold_Andoh <andolloyd@gmai...>
CommiterHarold_Andoh

Log Message

[Moxkiriya7]

  • _party.configファイルがない場合、無反応になるバグを修正
  • 画面の配色を修正

Change Summary

Incremental Difference

--- a/src/com/wiki/standalone/moxkiriya/Main.java
+++ b/src/com/wiki/standalone/moxkiriya/Main.java
@@ -60,30 +60,32 @@ public class Main extends Application {
6060 WikiMainWindow.CloseType closeType = WikiMainWindow.CloseType.EXIT;
6161
6262 do {
63+ String AppRoot = null;
64+ String wikiroot = null;
6365 String selectedParty = loadSelectedParty();
6466
6567 if(selectedParty != null) {
66- String AppRoot = settingManager_.get(SettingManager.SETINGKEY_MOXKIRIYAROOT);
67- String wikiroot = settingManager_.get(SettingManager.SETTINGSKEY_WIKIROOT);
68-
69- if( (AppRoot == null)
70- || (wikiroot == null)) {
71- /*
72- * selectPartyを未設定の場合
73- */
74- Stage stage = new Stage(StageStyle.UNDECORATED);
75- stage.initOwner(primaryStage);
76- showConfigSettingsDialog(stage, selectedParty);
77- }
78-
68+ AppRoot = settingManager_.get(SettingManager.SETINGKEY_MOXKIRIYAROOT);
69+ wikiroot = settingManager_.get(SettingManager.SETTINGSKEY_WIKIROOT);
70+ }
71+
72+ if( (AppRoot == null)
73+ || (wikiroot == null)) {
7974 /*
80- * Show a wiki main window.
75+ * selectPartyを未設定の場合
8176 */
82- closeType = showWikiMainWindow();
83-
84- if(closeType == WikiMainWindow.CloseType.RESTART) {
85- wikiMainWindow_.closeSession();
86- }
77+ Stage stage = new Stage(StageStyle.UNDECORATED);
78+ stage.initOwner(primaryStage);
79+ showConfigSettingsDialog(stage, selectedParty);
80+ }
81+
82+ /*
83+ * Show a wiki main window.
84+ */
85+ closeType = showWikiMainWindow();
86+
87+ if(closeType == WikiMainWindow.CloseType.RESTART) {
88+ wikiMainWindow_.closeSession();
8789 }
8890 } while(closeType != WikiMainWindow.CloseType.EXIT);
8991 } catch(Exception e) {
--- a/src/com/wiki/standalone/moxkiriya/WikiMainWindow.fxml
+++ b/src/com/wiki/standalone/moxkiriya/WikiMainWindow.fxml
@@ -70,7 +70,7 @@
7070 <URL value="@application.css" />
7171 </stylesheets>
7272 </AnchorPane>
73- <Hyperlink id="hyperlinkMain" fx:id="webViewHyperlinkMain" alignment="CENTER" onMouseClicked="#onMouseClickedWebViewHyperlinkMain" prefHeight="30.0" prefWidth="100.0" style="" styleClass="webViewMainHyperlink" text="%key.Hyperlink.Main" textAlignment="CENTER" textOverrun="ELLIPSIS" AnchorPane.leftAnchor="180.0" AnchorPane.topAnchor="55.0">
73+ <Hyperlink id="hyperlinkMain" fx:id="webViewHyperlinkMain" alignment="CENTER" onMouseClicked="#onMouseClickedWebViewHyperlinkMain" prefHeight="30.0" prefWidth="100.0" style="" text="%key.Hyperlink.Main" textAlignment="CENTER" textOverrun="ELLIPSIS" AnchorPane.leftAnchor="180.0" AnchorPane.topAnchor="55.0">
7474 <stylesheets>
7575 <URL value="@application.css" />
7676 </stylesheets>
@@ -98,9 +98,9 @@
9898 <URL value="@application.css" />
9999 </stylesheets>
100100 </AnchorPane>
101- <AnchorPane id="webViewHistoryAnchorPane" fx:id="webViewAnchorPaneHistory" prefHeight="528.0" prefWidth="843.0" style="" styleClass="webViewHistoryAnchorPane" visible="false" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="180.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="80.0">
101+ <AnchorPane id="webViewHistoryAnchorPane" fx:id="webViewAnchorPaneHistory" prefHeight="528.0" prefWidth="843.0" style="" styleClass="webViewMainAnchorPane" visible="false" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="180.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="85.0">
102102 <children>
103- <AnchorPane fx:id="webViewHistoryBreadcrumbs" prefHeight="40.0" prefWidth="200.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
103+ <AnchorPane fx:id="webViewHistoryBreadcrumbs" prefHeight="35.0" prefWidth="200.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="5.0">
104104 <children>
105105 <FlowPane fx:id="webViewHistoryBreadcrumbsPane" prefHeight="40.0" prefWidth="200.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
106106 <padding>
@@ -136,11 +136,16 @@
136136 <URL value="@application.css" />
137137 </stylesheets>
138138 </AnchorPane>
139- <Hyperlink fx:id="webViewHyperlinkHistory" alignment="CENTER" maxWidth="-1.0" onMouseClicked="#onMouseClickedWebViewHyperlinkHistory" prefHeight="30.0" prefWidth="100.0" style="" styleClass="webViewHistoryHyperlink" text="%key.Hyperlink.History" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="55.0">
139+ <Hyperlink fx:id="webViewHyperlinkHistory" alignment="CENTER" maxWidth="-1.0" onMouseClicked="#onMouseClickedWebViewHyperlinkHistory" prefHeight="30.0" prefWidth="100.0" style="" text="%key.Hyperlink.History" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="55.0">
140140 <stylesheets>
141141 <URL value="@application.css" />
142142 </stylesheets>
143143 </Hyperlink>
144+ <Label prefHeight="29.999900000002526" prefWidth="594.0" styleClass="webViewGapspace" text="" AnchorPane.leftAnchor="280.0" AnchorPane.rightAnchor="100.0" AnchorPane.topAnchor="55.0">
145+ <stylesheets>
146+ <URL value="@application.css" />
147+ </stylesheets>
148+ </Label>
144149 </children>
145150 </AnchorPane>
146151 <AnchorPane fx:id="AnchorPaneContentList" maxHeight="-Infinity" maxWidth="-Infinity" prefHeight="535.0" prefWidth="590.0" visible="false" AnchorPane.bottomAnchor="70.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="50.0" AnchorPane.topAnchor="73.0">
--- a/src/com/wiki/standalone/moxkiriya/WikiMainWindowController.java
+++ b/src/com/wiki/standalone/moxkiriya/WikiMainWindowController.java
@@ -262,6 +262,8 @@ public class WikiMainWindowController implements Initializable {
262262 wikiEngine_.setPageDataMap(pageData);
263263 loadWikiContent();
264264
265+ webViewHyperlinkMain.setId("webViewMainHyperlinkActive");
266+ webViewHyperlinkHistory.setId("webViewMainHyperlinkInactive");
265267 webViewAnchorPaneMain.setVisible(true);
266268 webViewAnchorPaneHistory.setVisible(false);
267269 } catch (Exception e) {
@@ -331,6 +333,8 @@ public class WikiMainWindowController implements Initializable {
331333 }
332334 });
333335
336+ webViewHyperlinkMain.setId("webViewMainHyperlinkActive");
337+ webViewHyperlinkHistory.setId("webViewMainHyperlinkInactive");
334338 webViewAnchorPaneMain.setVisible(true);
335339 webViewAnchorPaneHistory.setVisible(false);
336340 }
@@ -500,6 +504,8 @@ public class WikiMainWindowController implements Initializable {
500504 wikiEngine_.setPageDataMap(map);
501505 loadWikiContent();
502506
507+ webViewHyperlinkMain.setId("webViewMainHyperlinkActive");
508+ webViewHyperlinkHistory.setId("webViewMainHyperlinkInactive");
503509 webViewAnchorPaneMain.setVisible(true);
504510 webViewAnchorPaneHistory.setVisible(false);
505511 }
@@ -538,6 +544,9 @@ public class WikiMainWindowController implements Initializable {
538544 AnchorPaneEdit.setVisible(false);
539545 AnchorPaneContentList.setVisible(false);
540546 AnchorPaneWebView.setVisible(true);
547+
548+ webViewHyperlinkMain.setId("webViewMainHyperlinkActive");
549+ webViewHyperlinkHistory.setId("webViewMainHyperlinkInactive");
541550 webViewAnchorPaneMain.setVisible(true);
542551 webViewAnchorPaneHistory.setVisible(false);
543552 }
@@ -601,6 +610,9 @@ public class WikiMainWindowController implements Initializable {
601610 AnchorPaneEdit.setVisible(false);
602611 AnchorPaneContentList.setVisible(false);
603612 AnchorPaneWebView.setVisible(true);
613+
614+ webViewHyperlinkMain.setId("webViewMainHyperlinkActive");
615+ webViewHyperlinkHistory.setId("webViewMainHyperlinkInactive");
604616 webViewAnchorPaneMain.setVisible(true);
605617 webViewAnchorPaneHistory.setVisible(false);
606618
@@ -628,6 +640,9 @@ public class WikiMainWindowController implements Initializable {
628640 AnchorPaneEdit.setVisible(false);
629641 AnchorPaneContentList.setVisible(false);
630642 AnchorPaneWebView.setVisible(true);
643+
644+ webViewHyperlinkMain.setId("webViewMainHyperlinkActive");
645+ webViewHyperlinkHistory.setId("webViewMainHyperlinkInactive");
631646 webViewAnchorPaneMain.setVisible(true);
632647 webViewAnchorPaneHistory.setVisible(false);
633648
@@ -643,6 +658,9 @@ public class WikiMainWindowController implements Initializable {
643658 try {
644659 wikiEngine_.refreshSession();
645660 loadWikiContent();
661+
662+ webViewHyperlinkMain.setId("webViewMainHyperlinkActive");
663+ webViewHyperlinkHistory.setId("webViewMainHyperlinkInactive");
646664 webViewAnchorPaneMain.setVisible(true);
647665 webViewAnchorPaneHistory.setVisible(false);
648666 } catch (Exception e) {
@@ -655,6 +673,9 @@ public class WikiMainWindowController implements Initializable {
655673 try {
656674 wikiEngine_.setPageDataMap(WikiEngine.MAINPAGE_TITLE);
657675 loadWikiContent();
676+
677+ webViewHyperlinkMain.setId("webViewMainHyperlinkActive");
678+ webViewHyperlinkHistory.setId("webViewMainHyperlinkInactive");
658679 webViewAnchorPaneMain.setVisible(true);
659680 webViewAnchorPaneHistory.setVisible(false);
660681 } catch (Exception e) {
@@ -673,6 +694,8 @@ public class WikiMainWindowController implements Initializable {
673694
674695 @FXML
675696 public void onMouseClickedWebViewHyperlinkMain() {
697+ webViewHyperlinkMain.setId("webViewMainHyperlinkActive");
698+ webViewHyperlinkHistory.setId("webViewMainHyperlinkInactive");
676699 webViewAnchorPaneMain.setVisible(true);
677700 webViewAnchorPaneHistory.setVisible(false);
678701 }
@@ -702,6 +725,8 @@ public class WikiMainWindowController implements Initializable {
702725 }
703726 }
704727
728+ webViewHyperlinkMain.setId("webViewMainHyperlinkInactive");
729+ webViewHyperlinkHistory.setId("webViewMainHyperlinkActive");
705730 webViewAnchorPaneMain.setVisible(false);
706731 webViewAnchorPaneHistory.setVisible(true);
707732
@@ -738,6 +763,9 @@ public class WikiMainWindowController implements Initializable {
738763 wikiEngine_.clearHistory();
739764 wikiEngine_.setPageDataMap(WikiEngine.MAINPAGE_TITLE);
740765 loadWikiContent();
766+
767+ webViewHyperlinkMain.setId("webViewMainHyperlinkActive");
768+ webViewHyperlinkHistory.setId("webViewMainHyperlinkInactive");
741769 webViewAnchorPaneMain.setVisible(true);
742770 webViewAnchorPaneHistory.setVisible(false);
743771 } catch (Exception e) {
@@ -806,6 +834,9 @@ public class WikiMainWindowController implements Initializable {
806834 */
807835 AnchorPaneWebView.setVisible(true);
808836 AnchorPaneEdit.setVisible(false);
837+
838+ webViewHyperlinkMain.setId("webViewMainHyperlinkActive");
839+ webViewHyperlinkHistory.setId("webViewMainHyperlinkInactive");
809840 webViewAnchorPaneMain.setVisible(true);
810841 webViewAnchorPaneHistory.setVisible(false);
811842 }
--- a/src/com/wiki/standalone/moxkiriya/application.css
+++ b/src/com/wiki/standalone/moxkiriya/application.css
@@ -11,19 +11,18 @@
1111 }
1212
1313 .webViewMainAnchorPane {
14- -fx-border-color:#f5f5f5;
14+ -fx-border-color:#c0c0c0;
1515 -fx-border-style:solid;
16- -fx-border-width:1px;
16+ -fx-border-width:0px 1px 1px 1px;
1717 -fx-background-color: #f5f5f5;
1818 }
1919
20-.webViewHistoryAnchorPane {
21- -fx-border-color:#dcdcdc;
20+.webViewGapspace {
21+ -fx-border-color:#c0c0c0;
2222 -fx-border-style:solid;
23- -fx-border-width:1px;
24- -fx-background-color: #dcdcdc;
23+ -fx-border-width:0px 0px 1px 0px;
24+ -fx-background-color: transparent;
2525 }
26-
2726 .webViewHistoryContentAnchorPane {
2827 -fx-border-color:#c0c0c0;
2928 -fx-border-style:solid;
@@ -36,17 +35,17 @@
3635 -fx-alignment:center;
3736 }
3837
39-.webViewMainHyperlink {
38+#webViewMainHyperlinkActive {
4039 -fx-background-color: #f5f5f5;
41- -fx-border-color: #f5f5f5;
42- -fx-border-width: 1px;
40+ -fx-border-color: #c0c0c0;
41+ -fx-border-width:1px 1px 0px 1px;
4342 -fx-border-style: solid;
4443 }
4544
46-.webViewHistoryHyperlink {
47- -fx-background-color: #dcdcdc;
48- -fx-border-color: #dcdcdc;
49- -fx-border-width: 1px;
45+#webViewMainHyperlinkInactive {
46+ -fx-background-color: #e0e0e0;
47+ -fx-border-color: #c0c0c0;
48+ -fx-border-width:1px 1px 1px 1px;
5049 -fx-border-style: solid;
5150 }
5251