2023-08-24 15:50:37 +08:00
|
|
|
|
import QtQuick 2.15
|
|
|
|
|
import QtQuick.Controls 2.15
|
|
|
|
|
import QtQuick.Layouts 1.15
|
|
|
|
|
import QtQuick.Window 2.15
|
|
|
|
|
import FluentUI 1.0
|
2023-08-26 17:20:30 +08:00
|
|
|
|
import "../component"
|
2023-03-08 18:14:21 +08:00
|
|
|
|
|
2023-03-10 18:08:32 +08:00
|
|
|
|
FluScrollablePage{
|
2023-03-28 17:53:46 +08:00
|
|
|
|
|
2024-03-09 15:35:48 +08:00
|
|
|
|
title: qsTr("Expander")
|
2023-03-10 18:08:32 +08:00
|
|
|
|
|
2023-04-06 17:32:21 +08:00
|
|
|
|
FluArea{
|
|
|
|
|
Layout.fillWidth: true
|
2023-04-19 17:25:46 +08:00
|
|
|
|
height: layout_column.height+20
|
2023-04-06 17:32:21 +08:00
|
|
|
|
paddings: 10
|
2023-03-10 18:08:32 +08:00
|
|
|
|
Layout.topMargin: 20
|
2023-04-06 17:32:21 +08:00
|
|
|
|
Column{
|
|
|
|
|
id:layout_column
|
|
|
|
|
spacing: 15
|
|
|
|
|
anchors{
|
2023-04-19 17:25:46 +08:00
|
|
|
|
top:parent.top
|
2023-04-06 17:32:21 +08:00
|
|
|
|
left:parent.left
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FluExpander{
|
2024-03-09 15:35:48 +08:00
|
|
|
|
headerText: qsTr("Open a radio box")
|
2023-04-06 17:32:21 +08:00
|
|
|
|
Layout.topMargin: 20
|
|
|
|
|
Item{
|
|
|
|
|
anchors.fill: parent
|
2023-06-21 11:47:05 +08:00
|
|
|
|
FluRadioButtons{
|
2023-04-06 17:32:21 +08:00
|
|
|
|
spacing: 8
|
|
|
|
|
anchors{
|
|
|
|
|
top: parent.top
|
|
|
|
|
left: parent.left
|
|
|
|
|
topMargin: 15
|
|
|
|
|
leftMargin: 15
|
|
|
|
|
}
|
2023-06-21 11:47:05 +08:00
|
|
|
|
FluRadioButton{
|
|
|
|
|
text:"Radio Button_1"
|
|
|
|
|
}
|
|
|
|
|
FluRadioButton{
|
|
|
|
|
text:"Radio Button_2"
|
|
|
|
|
}
|
|
|
|
|
FluRadioButton{
|
|
|
|
|
text:"Radio Button_3"
|
2023-04-06 17:32:21 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2023-03-10 18:08:32 +08:00
|
|
|
|
}
|
2023-04-06 17:32:21 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FluExpander{
|
|
|
|
|
Layout.topMargin: 20
|
2024-03-09 15:35:48 +08:00
|
|
|
|
headerText: qsTr("Open a sliding text box")
|
2023-04-06 17:32:21 +08:00
|
|
|
|
Item{
|
|
|
|
|
anchors.fill: parent
|
|
|
|
|
Flickable{
|
|
|
|
|
id:scrollview
|
|
|
|
|
width: parent.width
|
|
|
|
|
height: parent.height
|
|
|
|
|
contentWidth: width
|
2023-10-15 16:29:50 +08:00
|
|
|
|
boundsBehavior: Flickable.StopAtBounds
|
2023-04-06 17:32:21 +08:00
|
|
|
|
contentHeight: text_info.height
|
|
|
|
|
ScrollBar.vertical: FluScrollBar {}
|
|
|
|
|
FluText{
|
|
|
|
|
id:text_info
|
|
|
|
|
width: scrollview.width
|
2024-03-09 15:35:48 +08:00
|
|
|
|
wrapMode: Text.WordWrap
|
2023-04-06 17:32:21 +08:00
|
|
|
|
padding: 14
|
2024-03-09 15:35:48 +08:00
|
|
|
|
text: qsTr("Permit me to observe: the late emperor was taken from us before he could finish his life`s work, the restoration of Han. Today, the empire is still divided in three, and our very survival is threatened. Yet still the officials at court and the soldiers throughout the realm remain loyal to you, your majesty. Because they remember the late emperor, all of them, and they wish to repay his kindness in service to you. This is the moment to extend your divine influence, to honour the memory of the late Emperor and strengthen the morale of your officers. It is not time to listen to bad advice, or close your ears to the suggestions of loyal men.
|
|
|
|
|
The court and the administration are as one. Both must be judged by one standard. Those who are loyal and good must get what they deserve, but so must the evil-doers who break the law. This will demonstrate the justice of your rule. There cannot be one law for the court and another for the administration.
|
|
|
|
|
Counselors and attendants like Guo Youzhi, Fei Yi, and Dong Yun are all reliable men, loyal of purpose and pure in motive. The late Emperor selected them for office so that they would serve you after his death.These are the men who should be consulted on all palace affairs. Xiang Chong has proved himself a fine general in battle, and the late Emperor believed in him. That is why the assembly has recommended him for overall command. It will keep the troops happy if he is consulted on all military matters.
|
|
|
|
|
Xiang Chong has proved himself a fine general in battle, and the late Emperor believed in him. That is why the assembly has recommended him for overall command. It will keep the troops happy if he is consulted on all military matters.
|
|
|
|
|
The emperors of the Western Han chose their courtiers wisely, and their dynasty flourished. The emperors of the Eastern Han chose poorly, and they doomed the empire to ruin. Whenever the late Emperor discussed this problem with me, he lamented the failings of Emperors Huan and Ling. Advisors like Guo Youzhi, Fei Yi, Chen Zhen, Zhang Yi, and Jiang Wan – these are all men of great integrity and devotion. I encourage you to trust them, your majesty, if the house of Han is to rise again.
|
|
|
|
|
I begin as a common man, farming in my fields in Nanyang, doing what I could to survive in an age of chaos. I never had any interest in making a name for myself as a noble. The late Emperor was not ashamed to visit my cottage and seek my advice. Grateful for his regard, I responded to his appeal and threw myself into his service. Now twenty-one years has passed, the late Emperor always appreciated my caution and, in his final days, entrusted me with his cause.
|
|
|
|
|
Since that moment, I have been tormented day and night by the fear that I might let him down. That is why I crossed the Lu river at the height of summer, and entered the wastelands beyond. Now the south has been subdued, and our forces are fully armed.I should lead our soldiers to conquer the northern heartland and attempt to remove the hateful traitors, restore the house of Han, and return it to the former capital.This the way I mean to honor my debt to the late Emperor and fulfill my duty to you. Guo Youzhi, Fei Yi, and Dong Yun are the ones who should be making policy decisions and recommendations.
|
|
|
|
|
My only desire is to be permitted to drive out the traitors and restore the Han. If I should let you down, punish my offense and report it to the spirit of the late Emperor. If those three advisors should fail in their duties, then they should be punished for their negligence.Your Majesty, consider your course of action carefully. Seek out good advice, and never forget the late Emperor. I depart now on a long expedition, and I will be forever grateful if you heed my advice. Blinded by my own tears, I know not what I write.")
|
2023-03-08 18:14:21 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-03-10 18:08:32 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2023-03-08 18:14:21 +08:00
|
|
|
|
|
2023-04-06 17:32:21 +08:00
|
|
|
|
CodeExpander{
|
|
|
|
|
Layout.fillWidth: true
|
2023-04-19 17:25:46 +08:00
|
|
|
|
Layout.topMargin: -1
|
2023-04-06 17:32:21 +08:00
|
|
|
|
code:'FluExpander{
|
2024-03-09 15:35:48 +08:00
|
|
|
|
headerText: qsTr("Open a radio box")
|
2023-04-06 17:32:21 +08:00
|
|
|
|
Item{
|
|
|
|
|
anchors.fill: parent
|
|
|
|
|
Flickable{
|
|
|
|
|
width: parent.width
|
|
|
|
|
height: parent.height
|
|
|
|
|
contentWidth: width
|
|
|
|
|
contentHeight: text_info.height
|
|
|
|
|
ScrollBar.vertical: FluScrollBar {}
|
|
|
|
|
FluText{
|
|
|
|
|
id:text_info
|
|
|
|
|
width: scrollview.width
|
2024-03-09 15:35:48 +08:00
|
|
|
|
wrapMode: Text.WordWrap
|
2023-04-06 17:32:21 +08:00
|
|
|
|
padding: 14
|
2024-03-09 15:35:48 +08:00
|
|
|
|
text: qsTr("Permit me to observe: the late emperor was taken from us before he could finish his life`s work...")
|
2023-03-08 18:14:21 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-04-06 17:32:21 +08:00
|
|
|
|
}'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2023-03-08 18:14:21 +08:00
|
|
|
|
}
|