mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-02-07 05:31:24 +00:00
Some cleanups, fullscreen option also in context menu now.
This commit is contained in:
parent
115171e969
commit
475f6bde37
@ -18,7 +18,7 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
import QtQuick 2.1
|
import QtQuick 2.2
|
||||||
import QtQuick.Dialogs 1.1
|
import QtQuick.Dialogs 1.1
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
import QtQuick 2.1
|
import QtQuick 2.2
|
||||||
import QtQuick.Controls 1.1
|
import QtQuick.Controls 1.1
|
||||||
import QtQuick.Layouts 1.1
|
import QtQuick.Layouts 1.1
|
||||||
|
|
||||||
|
@ -18,13 +18,13 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
import QtQuick 2.1
|
import QtQuick 2.2
|
||||||
import QtQuick.Controls 1.0
|
import QtQuick.Controls 1.1
|
||||||
import QtQuick.Window 2.1
|
import QtQuick.Window 2.1
|
||||||
import QtQuick.Layouts 1.0
|
import QtQuick.Layouts 1.1
|
||||||
import QtQuick.Dialogs 1.1
|
import QtQuick.Dialogs 1.1
|
||||||
|
|
||||||
ApplicationWindow {
|
Window {
|
||||||
id: settings_window
|
id: settings_window
|
||||||
title: qsTr("Settings")
|
title: qsTr("Settings")
|
||||||
width: 640
|
width: 640
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
import QtQuick 2.0
|
import QtQuick 2.2
|
||||||
import QtGraphicalEffects 1.0
|
import QtGraphicalEffects 1.0
|
||||||
|
|
||||||
ShaderEffect {
|
ShaderEffect {
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
import QtQuick 2.1
|
import QtQuick 2.2
|
||||||
|
|
||||||
Item{
|
Item{
|
||||||
property bool fullscreen: false
|
property bool fullscreen: false
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
import QtQuick 2.1
|
import QtQuick 2.2
|
||||||
import QtQuick.Controls 1.1
|
import QtQuick.Controls 1.1
|
||||||
import QtQuick.Layouts 1.1
|
import QtQuick.Layouts 1.1
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import QtQuick 2.0
|
import QtQuick 2.2
|
||||||
|
|
||||||
Rectangle{
|
Rectangle{
|
||||||
property size terminalSize
|
property size terminalSize
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
import QtQuick 2.1
|
import QtQuick 2.2
|
||||||
import QtQuick.LocalStorage 2.0
|
import QtQuick.LocalStorage 2.0
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
@ -18,9 +18,9 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
import QtQuick 2.0
|
import QtQuick 2.2
|
||||||
import QtGraphicalEffects 1.0
|
import QtGraphicalEffects 1.0
|
||||||
import QtQuick.Controls 1.0
|
import QtQuick.Controls 1.1
|
||||||
|
|
||||||
import org.kde.konsole 0.1
|
import org.kde.konsole 0.1
|
||||||
|
|
||||||
@ -97,6 +97,8 @@ Item{
|
|||||||
id: contextmenu
|
id: contextmenu
|
||||||
MenuItem{action: copyAction}
|
MenuItem{action: copyAction}
|
||||||
MenuItem{action: pasteAction}
|
MenuItem{action: pasteAction}
|
||||||
|
MenuSeparator{}
|
||||||
|
MenuItem{action: fullscreenAction}
|
||||||
}
|
}
|
||||||
MouseArea{
|
MouseArea{
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import QtQuick 2.1
|
import QtQuick 2.2
|
||||||
import "utils"
|
import "utils"
|
||||||
import QtGraphicalEffects 1.0
|
|
||||||
|
|
||||||
TerminalFrame{
|
TerminalFrame{
|
||||||
id: frame
|
id: frame
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import QtQuick 2.0
|
import QtQuick 2.2
|
||||||
import "utils"
|
import "utils"
|
||||||
|
|
||||||
TerminalFrame{
|
TerminalFrame{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import QtQuick 2.0
|
import QtQuick 2.2
|
||||||
import "utils"
|
import "utils"
|
||||||
|
|
||||||
TerminalFrame{
|
TerminalFrame{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import QtQuick 2.1
|
import QtQuick 2.2
|
||||||
|
|
||||||
ShaderEffect{
|
ShaderEffect{
|
||||||
property variant source: framesource
|
property variant source: framesource
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import QtQuick 2.1
|
import QtQuick 2.2
|
||||||
|
|
||||||
ShaderEffect{
|
ShaderEffect{
|
||||||
property variant source: framesource
|
property variant source: framesource
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import QtQuick 2.1
|
import QtQuick 2.2
|
||||||
|
|
||||||
Item{
|
Item{
|
||||||
id: framecontainer
|
id: framecontainer
|
||||||
|
21
app/main.qml
21
app/main.qml
@ -18,9 +18,9 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
import QtQuick 2.1
|
import QtQuick 2.2
|
||||||
import QtQuick.Window 2.0
|
import QtQuick.Window 2.1
|
||||||
import QtQuick.Controls 1.0
|
import QtQuick.Controls 1.1
|
||||||
import QtGraphicalEffects 1.0
|
import QtGraphicalEffects 1.0
|
||||||
|
|
||||||
import org.kde.konsole 0.1
|
import org.kde.konsole 0.1
|
||||||
@ -39,6 +39,8 @@ ApplicationWindow{
|
|||||||
text: qsTr("&Fullscreen")
|
text: qsTr("&Fullscreen")
|
||||||
shortcut: "Alt+F11"
|
shortcut: "Alt+F11"
|
||||||
onTriggered: shadersettings.fullscreen = !shadersettings.fullscreen;
|
onTriggered: shadersettings.fullscreen = !shadersettings.fullscreen;
|
||||||
|
checkable: true
|
||||||
|
checked: shadersettings.fullscreen
|
||||||
}
|
}
|
||||||
Action {
|
Action {
|
||||||
id: quitAction
|
id: quitAction
|
||||||
@ -49,7 +51,7 @@ ApplicationWindow{
|
|||||||
Action{
|
Action{
|
||||||
id: showsettingsAction
|
id: showsettingsAction
|
||||||
text: qsTr("&Settings")
|
text: qsTr("&Settings")
|
||||||
onTriggered: settingswindowloader.active = true;
|
onTriggered: settingswindow.show();
|
||||||
}
|
}
|
||||||
Action{
|
Action{
|
||||||
id: copyAction
|
id: copyAction
|
||||||
@ -168,13 +170,8 @@ ApplicationWindow{
|
|||||||
terminal.loadKTerminal();
|
terminal.loadKTerminal();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loader{
|
SettingsWindow{
|
||||||
id: settingswindowloader
|
id: settingswindow
|
||||||
active: false
|
visible: false
|
||||||
sourceComponent: SettingsWindow{
|
|
||||||
id: settingswindow
|
|
||||||
visible: true
|
|
||||||
onClosing: settingswindowloader.active = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user