Browse Source

Implement shared-settings, now in Catarina

tags/v0.9.0
falkTX 13 years ago
parent
commit
7b78d66493
13 changed files with 1119 additions and 21 deletions
  1. +7
    -2
      .gitignore
  2. +4
    -1
      Makefile
  3. +0
    -5
      c++/patchcanvas/patchcanvas.cpp
  4. +33
    -8
      src/catarina.py
  5. BIN
      src/icons/48x48/canvas.png
  6. BIN
      src/icons/48x48/catarina.png
  7. BIN
      src/icons/48x48/exec.png
  8. BIN
      src/icons/48x48/jack.png
  9. BIN
      src/icons/48x48/ladish.png
  10. +5
    -0
      src/icons/icons.qrc
  11. +4
    -5
      src/patchcanvas.py
  12. +97
    -0
      src/shared_settings.py
  13. +969
    -0
      src/ui/settings_app.ui

+ 7
- 2
.gitignore View File

@@ -15,7 +15,12 @@
ui_*.py
icons_rc.py

moc_*.cpp
ui_*.h

carla-discovery-*

aeffect.h
aeffectx.h
c++/*/Makefile
c++/patchcanvas/PatchCanvas
src/carla-includes/aeffect.h
src/carla-includes/aeffectx.h

+ 4
- 1
Makefile View File

@@ -20,7 +20,7 @@ catarina: src/ui_catarina.py \

tools: \
src/ui_logs.py src/ui_render.py src/ui_xycontroller.py \
src/ui_settings_jack.py
src/ui_settings_app.py src/ui_settings_jack.py

src/ui_catarina.py: src/ui/catarina.ui
$(PYUIC) -o src/ui_catarina.py $<
@@ -58,6 +58,9 @@ src/ui_render.py: src/ui/render.ui
src/ui_xycontroller.py: src/ui/xycontroller.ui
$(PYUIC) -o src/ui_xycontroller.py $<

src/ui_settings_app.py: src/ui/settings_app.ui
$(PYUIC) -o src/ui_settings_app.py $<

src/ui_settings_jack.py: src/ui/settings_jack.ui
$(PYUIC) -o src/ui_settings_jack.py $<



+ 0
- 5
c++/patchcanvas/patchcanvas.cpp View File

@@ -216,11 +216,6 @@ void init(PatchScene* scene, Callback callback, bool debug)
canvas.initial_pos = QPointF(0, 0);
canvas.size_rect = QRectF();

canvas.group_list.clear();
canvas.port_list.clear();
canvas.connection_list.clear();
canvas.animation_list.clear();

if (!canvas.qobject) canvas.qobject = new CanvasObject();
if (!canvas.settings) canvas.settings = new QSettings(PATCHCANVAS_ORGANISATION_NAME, "PatchCanvas");



+ 33
- 8
src/catarina.py View File

@@ -28,6 +28,7 @@ import ui_catarina_addport, ui_catarina_removeport, ui_catarina_renameport
import ui_catarina_connectports, ui_catarina_disconnectports
from shared import *
from shared_canvas import *
from shared_settings import *

try:
from PyQt4.QtOpenGL import QGLWidget
@@ -534,7 +535,7 @@ class CatarinaMainW(QMainWindow, ui_catarina.Ui_CatarinaMainW):
self.setupUi(self)

self.settings = QSettings("Cadence", "Catarina")
self.loadSettings()
self.loadSettings(True)

self.act_project_new.setIcon(getIcon("document-new"))
self.act_project_open.setIcon(getIcon("document-open"))
@@ -617,7 +618,7 @@ class CatarinaMainW(QMainWindow, ui_catarina.Ui_CatarinaMainW):

setCanvasConnections(self)

#self.connect(self.act_settings_configure, SIGNAL("triggered()"), self.configureCatarina)
self.connect(self.act_settings_configure, SIGNAL("triggered()"), SLOT("slot_configureCatarina()"))

self.connect(self.act_help_about, SIGNAL("triggered()"), SLOT("slot_aboutCatarina()"))
self.connect(self.act_help_about_qt, SIGNAL("triggered()"), app, SLOT("aboutQt()"))
@@ -1156,6 +1157,29 @@ class CatarinaMainW(QMainWindow, ui_catarina.Ui_CatarinaMainW):
else:
QMessageBox.warning(self, self.tr("Warning"), self.tr("Please make some Connections first!"))

@pyqtSlot()
def slot_configureCatarina(self):
dialog = SettingsW(self, "catarina", hasGL)
dialog.hideRow(0)
dialog.hideRow(2)
dialog.hideRow(3)
dialog.setCurrentRow(1)
if (dialog.exec_()):
self.loadSettings(False)
patchcanvas.clear()

p_options = patchcanvas.options_t()
p_options.theme_name = self.m_savedSettings["Canvas/Theme"]
p_options.auto_hide_groups = self.m_savedSettings["Canvas/AutoHideGroups"]
p_options.use_bezier_lines = self.m_savedSettings["Canvas/UseBezierLines"]
p_options.antialiasing = self.m_savedSettings["Canvas/Antialiasing"]
p_options.eyecandy = self.m_savedSettings["Canvas/EyeCandy"]

patchcanvas.setOptions(p_options)
patchcanvas.init(self.scene, self.canvasCallback, DEBUG)

self.init_ports()

@pyqtSlot()
def slot_aboutCatarina(self):
QMessageBox.about(self, self.tr("About Catarina"), self.tr("<h3>Catarina</h3>"
@@ -1167,15 +1191,16 @@ class CatarinaMainW(QMainWindow, ui_catarina.Ui_CatarinaMainW):
self.settings.setValue("Geometry", self.saveGeometry())
self.settings.setValue("ShowToolbar", self.frame_toolbar.isVisible())

def loadSettings(self):
self.restoreGeometry(self.settings.value("Geometry", ""))
def loadSettings(self, geometry):
if (geometry):
self.restoreGeometry(self.settings.value("Geometry", ""))

show_toolbar = self.settings.value("ShowToolbar", True, type=bool)
self.act_settings_show_toolbar.setChecked(show_toolbar)
self.frame_toolbar.setVisible(show_toolbar)
show_toolbar = self.settings.value("ShowToolbar", True, type=bool)
self.act_settings_show_toolbar.setChecked(show_toolbar)
self.frame_toolbar.setVisible(show_toolbar)

self.m_savedSettings = {
"Canvas/Theme": self.settings.value("Canvas/Theme", patchcanvas.getThemeName(patchcanvas.getDefaultTheme), type=str),
"Canvas/Theme": self.settings.value("Canvas/Theme", patchcanvas.getDefaultThemeName(), type=str),
"Canvas/AutoHideGroups": self.settings.value("Canvas/AutoHideGroups", False, type=bool),
"Canvas/UseBezierLines": self.settings.value("Canvas/UseBezierLines", True, type=bool),
"Canvas/EyeCandy": self.settings.value("Canvas/EyeCandy", patchcanvas.EYECANDY_SMALL, type=int),


BIN
src/icons/48x48/canvas.png View File

Before After
Width: 47  |  Height: 48  |  Size: 2.6KB

BIN
src/icons/48x48/catarina.png View File

Before After
Width: 48  |  Height: 48  |  Size: 3.3KB

BIN
src/icons/48x48/exec.png View File

Before After
Width: 48  |  Height: 48  |  Size: 1.9KB

BIN
src/icons/48x48/jack.png View File

Before After
Width: 48  |  Height: 48  |  Size: 3.8KB

BIN
src/icons/48x48/ladish.png View File

Before After
Width: 48  |  Height: 48  |  Size: 3.1KB

+ 5
- 0
src/icons/icons.qrc View File

@@ -28,6 +28,11 @@
<file>16x16/zoom-original.png</file>
<file>16x16/zoom-out.png</file>

<file>48x48/catarina.png</file>
<file>48x48/canvas.png</file>
<file>48x48/exec.png</file>
<file>48x48/jack.png</file>
<file>48x48/ladish.png</file>
<file>48x48/media-record.png</file>

<file>scalable/catarina.svg</file>


+ 4
- 5
src/patchcanvas.py View File

@@ -210,6 +210,10 @@ canvas.qobject = None
canvas.settings = None
canvas.theme = None
canvas.initiated = False
canvas.group_list = []
canvas.port_list = []
canvas.connection_list = []
canvas.animation_list = []

options = options_t()
options.theme_name = getDefaultThemeName()
@@ -311,11 +315,6 @@ def init(scene, callback, debug=False):
canvas.initial_pos = QPointF(0, 0)
canvas.size_rect = QRectF()

canvas.group_list = []
canvas.port_list = []
canvas.connection_list = []
canvas.animation_list = []

if (not canvas.qobject): canvas.qobject = CanvasObject()
if (not canvas.settings): canvas.settings = QSettings(PATCHCANVAS_ORGANISATION_NAME, "PatchCanvas")



+ 97
- 0
src/shared_settings.py View File

@@ -0,0 +1,97 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

# Common/Shared code related to Settings dialog
# Copyright (C) 2012 Filipe Coelho <falktx@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# For a full copy of the GNU General Public License see the COPYING file

# Imports (Global)
from PyQt4.QtCore import pyqtSlot, SIGNAL, SLOT
from PyQt4.QtGui import QDialog, QDialogButtonBox, QIcon, QPixmap

# Imports (Custom Stuff)
import ui_settings_app
from patchcanvas_theme import *

# Define values here so we don't have to import fully patchcanvas here
CANVAS_ANTIALIASING_SMALL = 1
CANVAS_EYECANDY_SMALL = 1

# Settings Dialog
class SettingsW(QDialog, ui_settings_app.Ui_SettingsW):
def __init__(self, parent, appName, hasGL):
QDialog.__init__(self, parent)
self.setupUi(self)

self.ms_AutoHideGroups = bool(appName == "catarina")

self.settings = self.parent().settings
self.loadSettings()

if not hasGL:
self.cb_canvas_use_opengl.setChecked(False)
self.cb_canvas_use_opengl.setEnabled(False)

self.label_icon.setPixmap(QPixmap(":/48x48/%s" % (appName)))
self.lw_page.item(0, 0).setIcon(QIcon(":/48x48/%s" % (appName)))

self.connect(self.buttonBox.button(QDialogButtonBox.Reset), SIGNAL("clicked()"), SLOT("slot_resetSettings()"))
self.connect(self, SIGNAL("accepted()"), SLOT("slot_saveSettings()"))

def hideRow(self, row):
self.lw_page.hideRow(row)

def setCurrentRow(self, row):
self.lw_page.setCurrentCell(row, 0)

def loadSettings(self):
self.cb_canvas_hide_groups.setChecked(self.settings.value("Canvas/AutoHideGroups", self.ms_AutoHideGroups, type=bool))
self.cb_canvas_bezier_lines.setChecked(self.settings.value("Canvas/UseBezierLines", True, type=bool))
self.cb_canvas_eyecandy.setChecked(self.settings.value("Canvas/EyeCandy", CANVAS_EYECANDY_SMALL, type=int))
self.cb_canvas_use_opengl.setChecked(self.settings.value("Canvas/UseOpenGL", False, type=bool))
self.cb_canvas_render_aa.setCheckState(self.settings.value("Canvas/Antialiasing", CANVAS_ANTIALIASING_SMALL, type=int))
self.cb_canvas_render_text_aa.setChecked(self.settings.value("Canvas/TextAntialiasing", True, type=bool))
self.cb_canvas_render_hq_aa.setChecked(self.settings.value("Canvas/HighQualityAntialiasing", False, type=bool))

theme_name = self.settings.value("Canvas/Theme", getDefaultThemeName(), type=str)

for i in range(Theme.THEME_MAX):
this_theme_name = getThemeName(i)
self.cb_canvas_theme.addItem(this_theme_name)
if (this_theme_name == theme_name):
self.cb_canvas_theme.setCurrentIndex(i)

@pyqtSlot()
def slot_saveSettings(self):
self.settings.setValue("Canvas/Theme", self.cb_canvas_theme.currentText())
self.settings.setValue("Canvas/AutoHideGroups", self.cb_canvas_hide_groups.isChecked())
self.settings.setValue("Canvas/UseBezierLines", self.cb_canvas_bezier_lines.isChecked())
self.settings.setValue("Canvas/UseOpenGL", self.cb_canvas_use_opengl.isChecked())
self.settings.setValue("Canvas/TextAntialiasing", self.cb_canvas_render_text_aa.isChecked())
self.settings.setValue("Canvas/HighQualityAntialiasing", self.cb_canvas_render_hq_aa.isChecked())

# 0, 1, 2 match their enum variants
self.settings.setValue("Canvas/EyeCandy", self.cb_canvas_eyecandy.checkState())
self.settings.setValue("Canvas/Antialiasing", self.cb_canvas_render_aa.checkState())

@pyqtSlot()
def slot_resetSettings(self):
self.cb_canvas_theme.setCurrentIndex(0)
self.cb_canvas_hide_groups.setChecked(self.ms_AutoHideGroups)
self.cb_canvas_bezier_lines.setChecked(True)
self.cb_canvas_eyecandy.setCheckState(Qt.PartiallyChecked)
self.cb_canvas_use_opengl.setChecked(False)
self.cb_canvas_render_aa.setCheckState(Qt.PartiallyChecked)
self.cb_canvas_render_text_aa.setChecked(True)
self.cb_canvas_render_hq_aa.setChecked(False)

+ 969
- 0
src/ui/settings_app.ui View File

@@ -0,0 +1,969 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>SettingsW</class>
<widget class="QDialog" name="SettingsW">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>562</width>
<height>421</height>
</rect>
</property>
<property name="windowTitle">
<string>Settings</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QTableWidget" name="lw_page">
<property name="maximumSize">
<size>
<width>125</width>
<height>16777215</height>
</size>
</property>
<property name="editTriggers">
<set>QAbstractItemView::NoEditTriggers</set>
</property>
<property name="showDropIndicator" stdset="0">
<bool>false</bool>
</property>
<property name="dragDropOverwriteMode">
<bool>false</bool>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::SingleSelection</enum>
</property>
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
</property>
<property name="iconSize">
<size>
<width>48</width>
<height>48</height>
</size>
</property>
<property name="textElideMode">
<enum>Qt::ElideMiddle</enum>
</property>
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="cornerButtonEnabled">
<bool>false</bool>
</property>
<attribute name="horizontalHeaderVisible">
<bool>false</bool>
</attribute>
<attribute name="horizontalHeaderStretchLastSection">
<bool>true</bool>
</attribute>
<attribute name="verticalHeaderVisible">
<bool>false</bool>
</attribute>
<attribute name="verticalHeaderDefaultSectionSize">
<number>52</number>
</attribute>
<row>
<property name="text">
<string>main</string>
</property>
</row>
<row>
<property name="text">
<string>canvas</string>
</property>
</row>
<row>
<property name="text">
<string>ladish</string>
</property>
</row>
<row>
<property name="text">
<string>apps</string>
</property>
</row>
<column>
<property name="text">
<string>Widget</string>
</property>
</column>
<item row="0" column="0">
<property name="text">
<string>Main</string>
</property>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="textAlignment">
<set>AlignLeft|AlignVCenter</set>
</property>
<property name="icon">
<iconset resource="../icons/icons.qrc">
<normaloff>:/48x48/exec.png</normaloff>:/48x48/exec.png</iconset>
</property>
<property name="flags">
<set>ItemIsSelectable|ItemIsEnabled</set>
</property>
</item>
<item row="1" column="0">
<property name="text">
<string>Canvas</string>
</property>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="icon">
<iconset resource="../icons/icons.qrc">
<normaloff>:/48x48/canvas.png</normaloff>:/48x48/canvas.png</iconset>
</property>
<property name="flags">
<set>ItemIsSelectable|ItemIsEnabled</set>
</property>
</item>
<item row="2" column="0">
<property name="text">
<string>LADISH</string>
</property>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="icon">
<iconset resource="../icons/icons.qrc">
<normaloff>:/48x48/ladish.png</normaloff>:/48x48/ladish.png</iconset>
</property>
<property name="flags">
<set>ItemIsSelectable|ItemIsEnabled</set>
</property>
</item>
<item row="3" column="0">
<property name="text">
<string>Apps</string>
</property>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="icon">
<iconset resource="../icons/icons.qrc">
<normaloff>:/48x48/exec.png</normaloff>:/48x48/exec.png</iconset>
</property>
<property name="flags">
<set>ItemIsSelectable|ItemIsEnabled</set>
</property>
</item>
</widget>
</item>
<item>
<widget class="QStackedWidget" name="stackedWidget">
<property name="lineWidth">
<number>0</number>
</property>
<property name="currentIndex">
<number>1</number>
</property>
<widget class="QWidget" name="page_main">
<layout class="QVBoxLayout" name="verticalLayout_5">
<property name="margin">
<number>2</number>
</property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>&lt;b&gt;Main&lt;/b&gt;</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label_icon">
<property name="text">
<string notr="true"/>
</property>
<property name="pixmap">
<pixmap resource="../icons/icons.qrc">:/48x48/exec.png</pixmap>
</property>
<property name="alignment">
<set>Qt::AlignHCenter|Qt::AlignTop</set>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QGroupBox" name="group_main_paths">
<property name="title">
<string>Paths</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string>Default project folder:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="le_main_def_folder"/>
</item>
<item>
<widget class="QPushButton" name="b_main_def_folder_open">
<property name="maximumSize">
<size>
<width>22</width>
<height>22</height>
</size>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../icons/icons.qrc">
<normaloff>:/16x16/document-open.png</normaloff>:/16x16/document-open.png</iconset>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="group_tray">
<property name="title">
<string>System Tray</string>
</property>
<layout class="QGridLayout" name="gridLayout_5">
<item row="1" column="0">
<widget class="QCheckBox" name="cb_tray_close_to">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Close Main Window to System Tray</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QCheckBox" name="cb_tray_enable">
<property name="text">
<string>Use System Tray (App-Indicator and KDE support)</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_3">
<property name="title">
<string>Misc</string>
</property>
<layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="0">
<widget class="QLabel" name="label_8">
<property name="text">
<string>GUI Refresh interval:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="sb_gui_refresh">
<property name="suffix">
<string> ms</string>
</property>
<property name="minimum">
<number>10</number>
</property>
<property name="maximum">
<number>1000</number>
</property>
<property name="value">
<number>250</number>
</property>
</widget>
</item>
<item row="0" column="2">
<spacer name="horizontalSpacer_12">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_jack_port_alias">
<property name="text">
<string>JACK Port Aliases:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QComboBox" name="cb_jack_port_alias">
<item>
<property name="text">
<string>0 (none)</string>
</property>
</item>
<item>
<property name="text">
<string>1st alias</string>
</property>
</item>
<item>
<property name="text">
<string>2nd alias</string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<widget class="QWidget" name="page_canvas">
<layout class="QVBoxLayout" name="verticalLayout_8">
<property name="margin">
<number>2</number>
</property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_10">
<item>
<widget class="QLabel" name="label_9">
<property name="text">
<string>&lt;b&gt;Canvas&lt;/b&gt;</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_5">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label_10">
<property name="text">
<string notr="true"/>
</property>
<property name="pixmap">
<pixmap resource="../icons/icons.qrc">:/48x48/canvas.png</pixmap>
</property>
<property name="alignment">
<set>Qt::AlignHCenter|Qt::AlignTop</set>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QGroupBox" name="groupBox_4">
<property name="title">
<string>Theme</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<spacer name="horizontalSpacer_7">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="1" colspan="2">
<widget class="QLabel" name="label_11">
<property name="text">
<string>Theme:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="0" column="3">
<widget class="QComboBox" name="cb_canvas_theme"/>
</item>
<item row="0" column="4">
<spacer name="horizontalSpacer_6">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="0" colspan="2">
<spacer name="horizontalSpacer_8">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>80</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="2" colspan="3">
<widget class="QCheckBox" name="cb_canvas_bezier_lines">
<property name="text">
<string>Bezier Lines</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_7">
<property name="title">
<string>Options</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_7">
<item>
<widget class="QCheckBox" name="cb_canvas_hide_groups">
<property name="text">
<string>Auto-hide groups with no ports</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="cb_canvas_eyecandy">
<property name="text">
<string>Fancy Eye-candy</string>
</property>
<property name="tristate">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="cb_canvas_use_opengl">
<property name="text">
<string>Use OpenGL for rendering (EXPERIMENTAL)</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_5">
<property name="title">
<string>Qt Render Hints</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_9">
<item>
<widget class="QCheckBox" name="cb_canvas_render_aa">
<property name="text">
<string>Antialiasing</string>
</property>
<property name="tristate">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="cb_canvas_render_text_aa">
<property name="text">
<string>Text Antialiasing</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="cb_canvas_render_hq_aa">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>High Quality Antiliasing (OpenGL only)</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<widget class="QWidget" name="page_ladish">
<layout class="QVBoxLayout" name="verticalLayout_10">
<property name="margin">
<number>2</number>
</property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_11">
<item>
<widget class="QLabel" name="label_13">
<property name="text">
<string>&lt;b&gt;LADISH&lt;/b&gt;</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_10">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label_14">
<property name="text">
<string notr="true"/>
</property>
<property name="pixmap">
<pixmap resource="../icons/icons.qrc">:/48x48/ladish.png</pixmap>
</property>
<property name="alignment">
<set>Qt::AlignHCenter|Qt::AlignTop</set>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QGroupBox" name="groupBox_6">
<property name="title">
<string>Options</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_6">
<item>
<widget class="QCheckBox" name="cb_ladish_studio_autostart">
<property name="text">
<string>Start studio on load</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="cb_ladish_notify">
<property name="text">
<string>Send notifications</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
<widget class="QLabel" name="label_15">
<property name="text">
<string>Shell to use:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="le_ladish_shell"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_16">
<property name="text">
<string>Terminal to use:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="le_ladish_terminal"/>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<widget class="QWidget" name="page_apps">
<layout class="QVBoxLayout" name="verticalLayout_4">
<property name="margin">
<number>2</number>
</property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QLabel" name="label_4">
<property name="text">
<string>&lt;b&gt;Apps&lt;/b&gt;</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label_5">
<property name="text">
<string notr="true"/>
</property>
<property name="pixmap">
<pixmap>:/48x48/claudia.png</pixmap>
</property>
<property name="alignment">
<set>Qt::AlignHCenter|Qt::AlignTop</set>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QTabWidget" name="tw_apps">
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="tab_3">
<attribute name="title">
<string>Database</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_14">
<item>
<widget class="QRadioButton" name="rb_database_ladish">
<property name="text">
<string>LADISH</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_13">
<item>
<spacer name="horizontalSpacer_9">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>10</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label_7">
<property name="text">
<string>Use LADI's original app-daemon for the applications list. Use this method if you're not using KXStudio.</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_6">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>10</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QRadioButton" name="rb_database_kxstudio">
<property name="text">
<string>Klaudia (Hardcoded)</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_12">
<item>
<spacer name="horizontalSpacer_13">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>10</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label_12">
<property name="text">
<string>Use an hardcoded database for the application list, based on good old 'Klaudia'.
Only works on Debian or Arch based systems.</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_5">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>382</width>
<height>95</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok|QDialogButtonBox::Reset</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources>
<include location="../icons/icons.qrc"/>
<include location="../icons/icons.qrc"/>
<include location="../icons/icons.qrc"/>
</resources>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>SettingsW</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>414</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>SettingsW</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>414</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>lw_page</sender>
<signal>currentCellChanged(int,int,int,int)</signal>
<receiver>stackedWidget</receiver>
<slot>setCurrentIndex(int)</slot>
<hints>
<hint type="sourcelabel">
<x>113</x>
<y>17</y>
</hint>
<hint type="destinationlabel">
<x>170</x>
<y>27</y>
</hint>
</hints>
</connection>
<connection>
<sender>cb_canvas_use_opengl</sender>
<signal>toggled(bool)</signal>
<receiver>cb_canvas_render_hq_aa</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>237</x>
<y>36</y>
</hint>
<hint type="destinationlabel">
<x>237</x>
<y>36</y>
</hint>
</hints>
</connection>
<connection>
<sender>cb_tray_enable</sender>
<signal>toggled(bool)</signal>
<receiver>cb_tray_close_to</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>295</x>
<y>153</y>
</hint>
<hint type="destinationlabel">
<x>289</x>
<y>175</y>
</hint>
</hints>
</connection>
</connections>
</ui>

Loading…
Cancel
Save