mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00
generic: adjust to KIntNumInput and KDoubleNumInput changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
b6624d8083
commit
3cba95c89a
52 changed files with 297 additions and 210 deletions
|
@ -86,12 +86,12 @@ PreviewsSettingsPage::PreviewsSettingsPage(QWidget* parent) :
|
||||||
QLabel* localFileSizeLabel = new QLabel(i18nc("@label", "Skip previews for local files above:"), this);
|
QLabel* localFileSizeLabel = new QLabel(i18nc("@label", "Skip previews for local files above:"), this);
|
||||||
QLabel* remoteFileSizeLabel = new QLabel(i18nc("@label", "Skip previews for remote files above:"), this);
|
QLabel* remoteFileSizeLabel = new QLabel(i18nc("@label", "Skip previews for remote files above:"), this);
|
||||||
|
|
||||||
m_localFileSizeBox = new KIntSpinBox(this);
|
m_localFileSizeBox = new KIntNumInput(this);
|
||||||
m_localFileSizeBox->setSingleStep(1);
|
m_localFileSizeBox->setSingleStep(1);
|
||||||
m_localFileSizeBox->setSuffix(QLatin1String(" MB"));
|
m_localFileSizeBox->setSuffix(QLatin1String(" MB"));
|
||||||
m_localFileSizeBox->setRange(0, 9999999); /* MB */
|
m_localFileSizeBox->setRange(0, 9999999); /* MB */
|
||||||
|
|
||||||
m_remoteFileSizeBox = new KIntSpinBox(this);
|
m_remoteFileSizeBox = new KIntNumInput(this);
|
||||||
m_remoteFileSizeBox->setSingleStep(1);
|
m_remoteFileSizeBox->setSingleStep(1);
|
||||||
m_remoteFileSizeBox->setSuffix(QLatin1String(" MB"));
|
m_remoteFileSizeBox->setSuffix(QLatin1String(" MB"));
|
||||||
m_remoteFileSizeBox->setRange(0, 9999999); /* MB */
|
m_remoteFileSizeBox->setRange(0, 9999999); /* MB */
|
||||||
|
@ -104,7 +104,7 @@ PreviewsSettingsPage::PreviewsSettingsPage(QWidget* parent) :
|
||||||
|
|
||||||
QLabel* iconAlphaLabel = new QLabel(i18nc("@label", "Icon alpha:"), this);
|
QLabel* iconAlphaLabel = new QLabel(i18nc("@label", "Icon alpha:"), this);
|
||||||
|
|
||||||
m_iconAlphaBox = new KIntSpinBox(this);
|
m_iconAlphaBox = new KIntNumInput(this);
|
||||||
m_iconAlphaBox->setSingleStep(1);
|
m_iconAlphaBox->setSingleStep(1);
|
||||||
m_iconAlphaBox->setRange(0, 255);
|
m_iconAlphaBox->setRange(0, 255);
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
#include <QListView>
|
#include <QListView>
|
||||||
#include <QModelIndex>
|
#include <QModelIndex>
|
||||||
|
|
||||||
class KIntSpinBox;
|
class KIntNumInput;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Allows the configuration of file previews.
|
* @brief Allows the configuration of file previews.
|
||||||
|
@ -62,9 +62,9 @@ private:
|
||||||
bool m_initialized;
|
bool m_initialized;
|
||||||
QListView *m_listView;
|
QListView *m_listView;
|
||||||
QStringList m_enabledPreviewPlugins;
|
QStringList m_enabledPreviewPlugins;
|
||||||
KIntSpinBox* m_localFileSizeBox;
|
KIntNumInput* m_localFileSizeBox;
|
||||||
KIntSpinBox* m_remoteFileSizeBox;
|
KIntNumInput* m_remoteFileSizeBox;
|
||||||
KIntSpinBox* m_iconAlphaBox;
|
KIntNumInput* m_iconAlphaBox;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -112,7 +112,10 @@ RenameDialog::RenameDialog(QWidget *parent, const KFileItemList& items) :
|
||||||
}
|
}
|
||||||
|
|
||||||
QLabel* infoLabel = new QLabel(i18nc("@info", "# will be replaced by ascending numbers starting with:"), page);
|
QLabel* infoLabel = new QLabel(i18nc("@info", "# will be replaced by ascending numbers starting with:"), page);
|
||||||
m_spinBox = new KIntSpinBox(0, 10000, 1, 1, page, 10);
|
m_spinBox = new KIntNumInput(page);
|
||||||
|
m_spinBox->setSingleStep(1);
|
||||||
|
m_spinBox->setRange(0, 10000);
|
||||||
|
m_spinBox->setValue(1);
|
||||||
|
|
||||||
QHBoxLayout* horizontalLayout = new QHBoxLayout(page);
|
QHBoxLayout* horizontalLayout = new QHBoxLayout(page);
|
||||||
horizontalLayout->setMargin(0);
|
horizontalLayout->setMargin(0);
|
||||||
|
|
|
@ -22,13 +22,12 @@
|
||||||
|
|
||||||
#include "dolphinprivate_export.h"
|
#include "dolphinprivate_export.h"
|
||||||
|
|
||||||
|
#include <QString>
|
||||||
#include <KDialog>
|
#include <KDialog>
|
||||||
#include <KFileItem>
|
#include <KFileItem>
|
||||||
|
|
||||||
class KLineEdit;
|
class KLineEdit;
|
||||||
class KIntSpinBox;
|
class KIntNumInput;
|
||||||
|
|
||||||
#include <QString>
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Dialog for renaming a variable number of files.
|
* @brief Dialog for renaming a variable number of files.
|
||||||
|
@ -65,7 +64,7 @@ private:
|
||||||
KLineEdit* m_lineEdit;
|
KLineEdit* m_lineEdit;
|
||||||
KFileItemList m_items;
|
KFileItemList m_items;
|
||||||
bool m_allExtensionsDifferent;
|
bool m_allExtensionsDifferent;
|
||||||
KIntSpinBox* m_spinBox;
|
KIntNumInput* m_spinBox;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -128,38 +128,39 @@
|
||||||
<property name="checked" >
|
<property name="checked" >
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" >
|
<layout class="QGridLayout" >
|
||||||
<item>
|
<item row="0" column="0" colspan="2">
|
||||||
<widget class="QCheckBox" name="filteringContextMatchOnly" >
|
<widget class="QCheckBox" name="filteringContextMatchOnly" >
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Suitable context matches only</string>
|
<string>Suitable context matches only</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item row="1" column="0" colspan="2">
|
||||||
<widget class="QCheckBox" name="filteringHideAttributes" >
|
<widget class="QCheckBox" name="filteringHideAttributes" >
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Hide completions with the following attributes:</string>
|
<string>Hide completions with the following attributes:</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item row="2" column="0" colspan="2">
|
||||||
<widget class="QListWidget" name="filteringAttributesList" />
|
<widget class="QListWidget" name="filteringAttributesList" />
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item row="3" column="0" colspan="1">>
|
||||||
<widget class="KIntNumInput" name="filteringMaximumInheritanceDepth" >
|
<widget class="QLabel" name="filteringAttributesListLabel" >
|
||||||
<property name="label" >
|
<property name="text" >
|
||||||
<string>Maximum inheritance depth:</string>
|
<string>Maximum inheritance depth:</string>
|
||||||
</property>
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="1" colspan="1">>
|
||||||
|
<widget class="KIntNumInput" name="filteringMaximumInheritanceDepth" >
|
||||||
<property name="minimum" >
|
<property name="minimum" >
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximum" >
|
<property name="maximum" >
|
||||||
<number>20</number>
|
<number>20</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="referencePoint" >
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="specialValueText" >
|
<property name="specialValueText" >
|
||||||
<string>Infinity</string>
|
<string>Infinity</string>
|
||||||
</property>
|
</property>
|
||||||
|
|
|
@ -92,7 +92,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="2">
|
<item row="1" column="2">
|
||||||
<widget class="KIntSpinBox" name="spBoxMiniMapWidth">
|
<widget class="KIntNumInput" name="spBoxMiniMapWidth">
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
<number>40</number>
|
<number>40</number>
|
||||||
</property>
|
</property>
|
||||||
|
@ -234,8 +234,8 @@
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="KIntSpinBox" name="minimalWordLength"/>
|
<widget class="KIntNumInput" name="minimalWordLength"/>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="horizontalSpacer">
|
<spacer name="horizontalSpacer">
|
||||||
|
@ -121,8 +121,8 @@
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="KIntSpinBox" name="sbWordWrap">
|
<widget class="KIntNumInput" name="sbWordWrap">
|
||||||
<property name="whatsThis">
|
<property name="whatsThis">
|
||||||
<string>If the Word Wrap option is selected this entry determines the length (in characters) at which the editor will automatically start a new line.</string>
|
<string>If the Word Wrap option is selected this entry determines the length (in characters) at which the editor will automatically start a new line.</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -114,8 +114,8 @@
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
|
|
|
@ -74,7 +74,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="3">
|
<item row="1" column="3">
|
||||||
<widget class="KIntSpinBox" name="sbIndentWidth">
|
<widget class="KIntNumInput" name="sbIndentWidth">
|
||||||
<property name="whatsThis">
|
<property name="whatsThis">
|
||||||
<string>The indentation width is the number of spaces which is used to indent a line. If the option <b>Insert spaces instead of tabulators</b> in the section <b>Editing</b> is disabled, a <b>Tab</b> character is inserted if the indentation is divisible by the tab width.</string>
|
<string>The indentation width is the number of spaces which is used to indent a line. If the option <b>Insert spaces instead of tabulators</b> in the section <b>Editing</b> is disabled, a <b>Tab</b> character is inserted if the indentation is divisible by the tab width.</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -123,7 +123,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="3">
|
<item row="0" column="3">
|
||||||
<widget class="KIntSpinBox" name="sbTabWidth">
|
<widget class="KIntNumInput" name="sbTabWidth">
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
<number>1</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
|
@ -273,8 +273,8 @@ p, li { white-space: pre-wrap; }
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
|
|
|
@ -989,7 +989,7 @@ KateGotoBar::KateGotoBar(KTextEditor::View *view, QWidget *parent)
|
||||||
|
|
||||||
QHBoxLayout *topLayout = new QHBoxLayout( centralWidget() );
|
QHBoxLayout *topLayout = new QHBoxLayout( centralWidget() );
|
||||||
topLayout->setMargin(0);
|
topLayout->setMargin(0);
|
||||||
gotoRange = new KIntSpinBox(centralWidget());
|
gotoRange = new KIntNumInput(centralWidget());
|
||||||
|
|
||||||
QLabel *label = new QLabel(i18n("&Go to line:"), centralWidget() );
|
QLabel *label = new QLabel(i18n("&Go to line:"), centralWidget() );
|
||||||
label->setBuddy(gotoRange);
|
label->setBuddy(gotoRange);
|
||||||
|
@ -1019,7 +1019,6 @@ void KateGotoBar::updateData()
|
||||||
gotoRange->adjustSize(); // ### does not respect the range :-(
|
gotoRange->adjustSize(); // ### does not respect the range :-(
|
||||||
}
|
}
|
||||||
gotoRange->setFocus(Qt::OtherFocusReason);
|
gotoRange->setFocus(Qt::OtherFocusReason);
|
||||||
gotoRange->selectAll();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void KateGotoBar::keyPressEvent(QKeyEvent* event)
|
void KateGotoBar::keyPressEvent(QKeyEvent* event)
|
||||||
|
|
|
@ -68,7 +68,6 @@ namespace KIO
|
||||||
class KComboBox;
|
class KComboBox;
|
||||||
class KTemporaryFile;
|
class KTemporaryFile;
|
||||||
class KIntNumInput;
|
class KIntNumInput;
|
||||||
class KIntSpinBox;
|
|
||||||
class KPluginSelector;
|
class KPluginSelector;
|
||||||
class KPluginInfo;
|
class KPluginInfo;
|
||||||
|
|
||||||
|
@ -127,7 +126,7 @@ class KateGotoBar : public KateViewBarWidget
|
||||||
|
|
||||||
private:
|
private:
|
||||||
KTextEditor::View *const m_view;
|
KTextEditor::View *const m_view;
|
||||||
KIntSpinBox *gotoRange;
|
KIntNumInput *gotoRange;
|
||||||
};
|
};
|
||||||
|
|
||||||
class KateDictionaryBar : public KateViewBarWidget
|
class KateDictionaryBar : public KateViewBarWidget
|
||||||
|
@ -311,7 +310,7 @@ class KateSaveConfigTab : public KateConfigPage
|
||||||
QCheckBox *cbLocalFiles, *cbRemoteFiles;
|
QCheckBox *cbLocalFiles, *cbRemoteFiles;
|
||||||
QCheckBox *replaceTabs, *removeSpaces, *allowEolDetection;
|
QCheckBox *replaceTabs, *removeSpaces, *allowEolDetection;
|
||||||
KIntNumInput *dirSearchDepth;
|
KIntNumInput *dirSearchDepth;
|
||||||
class KIntSpinBox *blockCount;
|
class KIntNumInput *blockCount;
|
||||||
class QLabel *blockCountLabel;
|
class QLabel *blockCountLabel;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="KIntSpinBox" name="sbAutoCenterCursor">
|
<widget class="KIntNumInput" name="sbAutoCenterCursor">
|
||||||
<property name="whatsThis">
|
<property name="whatsThis">
|
||||||
<string>Sets the number of lines to maintain visible above and below the cursor when possible.</string>
|
<string>Sets the number of lines to maintain visible above and below the cursor when possible.</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -152,8 +152,8 @@
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="KIntSpinBox" name="sbConfigFileSearchDepth">
|
<widget class="KIntNumInput" name="sbConfigFileSearchDepth">
|
||||||
<property name="whatsThis">
|
<property name="whatsThis">
|
||||||
<string>The editor will search the given number of folder levels upwards for a .kateconfig file and load the settings line from it.</string>
|
<string>The editor will search the given number of folder levels upwards for a .kateconfig file and load the settings line from it.</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -170,8 +170,8 @@
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="KIntSpinBox" name="sbDynamicWordWrapDepth">
|
<widget class="KIntNumInput" name="sbDynamicWordWrapDepth">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
|
@ -186,8 +186,8 @@ beginning of a file.</string>
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
|
|
|
@ -202,7 +202,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="7" column="1">
|
<item row="7" column="1">
|
||||||
<widget class="KIntSpinBox" name="sbPriority">
|
<widget class="KIntNumInput" name="sbPriority">
|
||||||
<property name="whatsThis">
|
<property name="whatsThis">
|
||||||
<string>Sets priority for this file type. If more than one file type selects the same file, the one with the highest priority will be used.</string>
|
<string>Sets priority for this file type. If more than one file type selects the same file, the one with the highest priority will be used.</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -228,8 +228,8 @@
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
|
|
|
@ -1142,7 +1142,7 @@ KatePrintLayout::KatePrintLayout( QWidget *parent)
|
||||||
|
|
||||||
QLabel *lBoxWidth = new QLabel( i18n("W&idth:"), gbBoxProps );
|
QLabel *lBoxWidth = new QLabel( i18n("W&idth:"), gbBoxProps );
|
||||||
grid->addWidget(lBoxWidth, 0, 0);
|
grid->addWidget(lBoxWidth, 0, 0);
|
||||||
sbBoxWidth = new KIntSpinBox( gbBoxProps );
|
sbBoxWidth = new KIntNumInput( gbBoxProps );
|
||||||
sbBoxWidth->setRange( 1, 100 );
|
sbBoxWidth->setRange( 1, 100 );
|
||||||
sbBoxWidth->setSingleStep( 1 );
|
sbBoxWidth->setSingleStep( 1 );
|
||||||
grid->addWidget(sbBoxWidth, 0, 1);
|
grid->addWidget(sbBoxWidth, 0, 1);
|
||||||
|
@ -1150,7 +1150,7 @@ KatePrintLayout::KatePrintLayout( QWidget *parent)
|
||||||
|
|
||||||
QLabel *lBoxMargin = new QLabel( i18n("&Margin:"), gbBoxProps );
|
QLabel *lBoxMargin = new QLabel( i18n("&Margin:"), gbBoxProps );
|
||||||
grid->addWidget(lBoxMargin, 1, 0);
|
grid->addWidget(lBoxMargin, 1, 0);
|
||||||
sbBoxMargin = new KIntSpinBox( gbBoxProps );
|
sbBoxMargin = new KIntNumInput( gbBoxProps );
|
||||||
sbBoxMargin->setRange( 0, 100 );
|
sbBoxMargin->setRange( 0, 100 );
|
||||||
sbBoxMargin->setSingleStep( 1 );
|
sbBoxMargin->setSingleStep( 1 );
|
||||||
grid->addWidget(sbBoxMargin, 1, 1);
|
grid->addWidget(sbBoxMargin, 1, 1);
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
class KateDocument;
|
class KateDocument;
|
||||||
class KColorButton;
|
class KColorButton;
|
||||||
class KLineEdit;
|
class KLineEdit;
|
||||||
class KIntSpinBox;
|
class KIntNumInput;
|
||||||
class KComboBox;
|
class KComboBox;
|
||||||
class KHBox;
|
class KHBox;
|
||||||
|
|
||||||
|
@ -153,7 +153,7 @@ class KatePrintLayout : public QWidget
|
||||||
KComboBox *cmbSchema;
|
KComboBox *cmbSchema;
|
||||||
QCheckBox *cbEnableBox, *cbDrawBackground;
|
QCheckBox *cbEnableBox, *cbDrawBackground;
|
||||||
QGroupBox *gbBoxProps;
|
QGroupBox *gbBoxProps;
|
||||||
KIntSpinBox *sbBoxWidth, *sbBoxMargin;
|
KIntNumInput *sbBoxWidth, *sbBoxMargin;
|
||||||
KColorButton* kcbtnBoxColor;
|
KColorButton* kcbtnBoxColor;
|
||||||
};
|
};
|
||||||
//END Layout
|
//END Layout
|
||||||
|
|
|
@ -266,11 +266,13 @@ KAccessConfig::KAccessConfig(QWidget *parent, const QVariantList& args)
|
||||||
vvbox->addLayout(hbox);
|
vvbox->addLayout(hbox);
|
||||||
hbox->addSpacing(24);
|
hbox->addSpacing(24);
|
||||||
|
|
||||||
|
durationLabel = new QLabel(i18n("Duration:"), grp);
|
||||||
|
hbox->addWidget(durationLabel);
|
||||||
|
|
||||||
durationSlider = new KDoubleNumInput(grp);
|
durationSlider = new KDoubleNumInput(grp);
|
||||||
durationSlider->setRange(100, 2000, 100);
|
durationSlider->setRange(100, 2000);
|
||||||
durationSlider->setExponentRatio(2);
|
durationSlider->setSingleStep(100);
|
||||||
durationSlider->setDecimals(0);
|
durationSlider->setDecimals(0);
|
||||||
durationSlider->setLabel(i18n("Duration:"));
|
|
||||||
durationSlider->setSuffix(i18n(" msec"));
|
durationSlider->setSuffix(i18n(" msec"));
|
||||||
hbox->addWidget(durationSlider);
|
hbox->addWidget(durationSlider);
|
||||||
durationSlider->setWhatsThis( i18n("Here you can customize the duration of the \"visible bell\" effect being shown.") );
|
durationSlider->setWhatsThis( i18n("Here you can customize the duration of the \"visible bell\" effect being shown.") );
|
||||||
|
@ -381,13 +383,18 @@ KAccessConfig::KAccessConfig(QWidget *parent, const QVariantList& args)
|
||||||
hbox = new QHBoxLayout();
|
hbox = new QHBoxLayout();
|
||||||
vvbox->addLayout(hbox);
|
vvbox->addLayout(hbox);
|
||||||
hbox->addSpacing(24);
|
hbox->addSpacing(24);
|
||||||
|
|
||||||
|
slowKeysLabel = new QLabel(i18n("Acceptance dela&y:"), grp);
|
||||||
|
slowKeysLabel->setAlignment(Qt::AlignVCenter|Qt::AlignLeft);
|
||||||
|
hbox->addWidget(slowKeysLabel);
|
||||||
|
|
||||||
slowKeysDelay = new KDoubleNumInput(grp);
|
slowKeysDelay = new KDoubleNumInput(grp);
|
||||||
slowKeysDelay->setRange(50, 10000, 100);
|
slowKeysDelay->setRange(50, 10000);
|
||||||
slowKeysDelay->setExponentRatio(2);
|
slowKeysDelay->setSingleStep(100);
|
||||||
slowKeysDelay->setDecimals(0);
|
slowKeysDelay->setDecimals(0);
|
||||||
slowKeysDelay->setSuffix(i18n(" msec"));
|
slowKeysDelay->setSuffix(i18n(" msec"));
|
||||||
slowKeysDelay->setLabel(i18n("Acceptance dela&y:"), Qt::AlignVCenter|Qt::AlignLeft);
|
|
||||||
hbox->addWidget(slowKeysDelay);
|
hbox->addWidget(slowKeysDelay);
|
||||||
|
slowKeysLabel->setBuddy(slowKeysDelay);
|
||||||
|
|
||||||
hbox = new QHBoxLayout();
|
hbox = new QHBoxLayout();
|
||||||
vvbox->addLayout(hbox);
|
vvbox->addLayout(hbox);
|
||||||
|
@ -421,13 +428,18 @@ KAccessConfig::KAccessConfig(QWidget *parent, const QVariantList& args)
|
||||||
hbox = new QHBoxLayout();
|
hbox = new QHBoxLayout();
|
||||||
vvbox->addLayout(hbox);
|
vvbox->addLayout(hbox);
|
||||||
hbox->addSpacing(24);
|
hbox->addSpacing(24);
|
||||||
|
|
||||||
|
bounceKeysLabel = new QLabel(i18n("D&ebounce time:"), grp);
|
||||||
|
bounceKeysLabel->setAlignment(Qt::AlignVCenter|Qt::AlignLeft);
|
||||||
|
hbox->addWidget(bounceKeysLabel);
|
||||||
|
|
||||||
bounceKeysDelay = new KDoubleNumInput(grp);
|
bounceKeysDelay = new KDoubleNumInput(grp);
|
||||||
bounceKeysDelay->setRange(100, 5000, 100);
|
bounceKeysDelay->setRange(100, 5000);
|
||||||
bounceKeysDelay->setExponentRatio(2);
|
bounceKeysDelay->setSingleStep(100);
|
||||||
bounceKeysDelay->setDecimals(0);
|
bounceKeysDelay->setDecimals(0);
|
||||||
bounceKeysDelay->setSuffix(i18n(" msec"));
|
bounceKeysDelay->setSuffix(i18n(" msec"));
|
||||||
bounceKeysDelay->setLabel(i18n("D&ebounce time:"), Qt::AlignVCenter|Qt::AlignLeft);;
|
|
||||||
hbox->addWidget(bounceKeysDelay);
|
hbox->addWidget(bounceKeysDelay);
|
||||||
|
bounceKeysLabel->setBuddy(bounceKeysDelay);
|
||||||
|
|
||||||
hbox = new QHBoxLayout();
|
hbox = new QHBoxLayout();
|
||||||
vvbox->addLayout(hbox);
|
vvbox->addLayout(hbox);
|
||||||
|
@ -484,11 +496,16 @@ KAccessConfig::KAccessConfig(QWidget *parent, const QVariantList& args)
|
||||||
hbox = new QHBoxLayout();
|
hbox = new QHBoxLayout();
|
||||||
vvbox->addLayout(hbox);
|
vvbox->addLayout(hbox);
|
||||||
hbox->addSpacing(24);
|
hbox->addSpacing(24);
|
||||||
|
timeoutLabel = new QLabel(grp);
|
||||||
|
timeoutLabel->setAlignment(Qt::AlignVCenter|Qt::AlignLeft);
|
||||||
|
timeoutLabel->setText(i18n("Timeout:"));
|
||||||
|
hbox->addWidget(timeoutLabel);
|
||||||
timeoutDelay = new KIntNumInput(grp);
|
timeoutDelay = new KIntNumInput(grp);
|
||||||
timeoutDelay->setSuffix(i18n(" min"));
|
timeoutDelay->setSuffix(i18n(" min"));
|
||||||
timeoutDelay->setRange(1, 30, 4);
|
timeoutDelay->setRange(1, 30);
|
||||||
timeoutDelay->setLabel(i18n("Timeout:"), Qt::AlignVCenter|Qt::AlignLeft);;
|
timeoutDelay->setSingleStep(4);
|
||||||
hbox->addWidget(timeoutDelay);
|
hbox->addWidget(timeoutDelay);
|
||||||
|
timeoutLabel->setBuddy(timeoutDelay);
|
||||||
|
|
||||||
grp = new QGroupBox(i18n("Notification"), features);
|
grp = new QGroupBox(i18n("Notification"), features);
|
||||||
layout = new QHBoxLayout;
|
layout = new QHBoxLayout;
|
||||||
|
@ -745,6 +762,7 @@ void KAccessConfig::checkAccess()
|
||||||
invertScreen->setEnabled(visible);
|
invertScreen->setEnabled(visible);
|
||||||
flashScreen->setEnabled(visible);
|
flashScreen->setEnabled(visible);
|
||||||
colorButton->setEnabled(visible);
|
colorButton->setEnabled(visible);
|
||||||
|
durationLabel->setEnabled(visible);
|
||||||
durationSlider->setEnabled(visible);
|
durationSlider->setEnabled(visible);
|
||||||
|
|
||||||
bool sticky = stickyKeys->isChecked();
|
bool sticky = stickyKeys->isChecked();
|
||||||
|
@ -753,15 +771,18 @@ void KAccessConfig::checkAccess()
|
||||||
stickyKeysBeep->setEnabled(sticky);
|
stickyKeysBeep->setEnabled(sticky);
|
||||||
|
|
||||||
bool slow = slowKeys->isChecked();
|
bool slow = slowKeys->isChecked();
|
||||||
|
slowKeysLabel->setEnabled(slow);
|
||||||
slowKeysDelay->setEnabled(slow);
|
slowKeysDelay->setEnabled(slow);
|
||||||
slowKeysPressBeep->setEnabled(slow);
|
slowKeysPressBeep->setEnabled(slow);
|
||||||
slowKeysAcceptBeep->setEnabled(slow);
|
slowKeysAcceptBeep->setEnabled(slow);
|
||||||
slowKeysRejectBeep->setEnabled(slow);
|
slowKeysRejectBeep->setEnabled(slow);
|
||||||
|
|
||||||
bool bounce = bounceKeys->isChecked();
|
bool bounce = bounceKeys->isChecked();
|
||||||
|
bounceKeysLabel->setEnabled(bounce);
|
||||||
bounceKeysDelay->setEnabled(bounce);
|
bounceKeysDelay->setEnabled(bounce);
|
||||||
bounceKeysRejectBeep->setEnabled(bounce);
|
bounceKeysRejectBeep->setEnabled(bounce);
|
||||||
|
|
||||||
bool useTimeout = timeout->isChecked();
|
bool useTimeout = timeout->isChecked();
|
||||||
|
timeoutLabel->setEnabled(useTimeout);
|
||||||
timeoutDelay->setEnabled(useTimeout);
|
timeoutDelay->setEnabled(useTimeout);
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,14 +12,13 @@
|
||||||
#include <kcmodule.h>
|
#include <kcmodule.h>
|
||||||
#include <knuminput.h>
|
#include <knuminput.h>
|
||||||
|
|
||||||
|
|
||||||
#include <QCheckBox>
|
#include <QCheckBox>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
#include <QRadioButton>
|
#include <QRadioButton>
|
||||||
|
|
||||||
class KColorButton;
|
class KColorButton;
|
||||||
#include <QSlider>
|
|
||||||
|
|
||||||
class KAccessConfig : public KCModule
|
class KAccessConfig : public KCModule
|
||||||
{
|
{
|
||||||
|
@ -52,6 +51,7 @@ private:
|
||||||
QLineEdit *soundEdit;
|
QLineEdit *soundEdit;
|
||||||
QPushButton *soundButton;
|
QPushButton *soundButton;
|
||||||
KColorButton *colorButton;
|
KColorButton *colorButton;
|
||||||
|
QLabel *durationLabel;
|
||||||
KDoubleNumInput *durationSlider;
|
KDoubleNumInput *durationSlider;
|
||||||
|
|
||||||
QCheckBox *stickyKeys, *stickyKeysLock, *stickyKeysAutoOff;
|
QCheckBox *stickyKeys, *stickyKeysLock, *stickyKeysAutoOff;
|
||||||
|
@ -59,12 +59,14 @@ private:
|
||||||
QPushButton *kNotifyModifiersButton;
|
QPushButton *kNotifyModifiersButton;
|
||||||
|
|
||||||
QCheckBox *slowKeys, *bounceKeys;
|
QCheckBox *slowKeys, *bounceKeys;
|
||||||
|
QLabel *slowKeysLabel, *bounceKeysLabel;
|
||||||
KDoubleNumInput *slowKeysDelay, *bounceKeysDelay;
|
KDoubleNumInput *slowKeysDelay, *bounceKeysDelay;
|
||||||
QCheckBox *slowKeysPressBeep, *slowKeysAcceptBeep;
|
QCheckBox *slowKeysPressBeep, *slowKeysAcceptBeep;
|
||||||
QCheckBox *slowKeysRejectBeep, *bounceKeysRejectBeep;
|
QCheckBox *slowKeysRejectBeep, *bounceKeysRejectBeep;
|
||||||
|
|
||||||
QCheckBox *gestures, *gestureConfirmation;
|
QCheckBox *gestures, *gestureConfirmation;
|
||||||
QCheckBox *timeout;
|
QCheckBox *timeout;
|
||||||
|
QLabel *timeoutLabel;
|
||||||
KIntNumInput *timeoutDelay;
|
KIntNumInput *timeoutDelay;
|
||||||
QCheckBox *accessxBeep, *kNotifyAccessX;
|
QCheckBox *accessxBeep, *kNotifyAccessX;
|
||||||
QPushButton *kNotifyAccessXButton;
|
QPushButton *kNotifyAccessXButton;
|
||||||
|
|
|
@ -170,12 +170,20 @@ FontAASettings::FontAASettings(QWidget *parent)
|
||||||
|
|
||||||
excludeRange=new QCheckBox(i18n("E&xclude range:"), mw);
|
excludeRange=new QCheckBox(i18n("E&xclude range:"), mw);
|
||||||
QHBoxLayout *rangeLayout = new QHBoxLayout();
|
QHBoxLayout *rangeLayout = new QHBoxLayout();
|
||||||
excludeFrom=new KDoubleNumInput(0, 72, 8.0, mw, 1, 1);
|
excludeFrom=new KDoubleNumInput(mw);
|
||||||
|
excludeFrom->setRange(0, 72);
|
||||||
|
excludeFrom->setValue(8.0);
|
||||||
|
excludeFrom->setSingleStep(1);
|
||||||
|
excludeFrom->setDecimals(1);
|
||||||
excludeFrom->setSuffix(i18n(" pt"));
|
excludeFrom->setSuffix(i18n(" pt"));
|
||||||
rangeLayout->addWidget(excludeFrom);
|
rangeLayout->addWidget(excludeFrom);
|
||||||
excludeToLabel=new QLabel(i18n(" to "), mw);
|
excludeToLabel=new QLabel(i18n(" to "), mw);
|
||||||
rangeLayout->addWidget(excludeToLabel);
|
rangeLayout->addWidget(excludeToLabel);
|
||||||
excludeTo=new KDoubleNumInput(0, 72, 15.0, mw, 1, 1);
|
excludeTo=new KDoubleNumInput(mw);
|
||||||
|
excludeTo->setRange(0, 72);
|
||||||
|
excludeTo->setValue(15.0);
|
||||||
|
excludeTo->setSingleStep(1);
|
||||||
|
excludeTo->setDecimals(1);
|
||||||
excludeTo->setSuffix(i18n(" pt"));
|
excludeTo->setSuffix(i18n(" pt"));
|
||||||
rangeLayout->addWidget(excludeTo);
|
rangeLayout->addWidget(excludeTo);
|
||||||
layout->addRow(excludeRange, rangeLayout);
|
layout->addRow(excludeRange, rangeLayout);
|
||||||
|
|
|
@ -180,6 +180,19 @@
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="slAutoSelectLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string comment="label. delay (on milliseconds) to automatically select icons">Delay</string>
|
||||||
|
</property>
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="KIntNumInput" name="slAutoSelect">
|
<widget class="KIntNumInput" name="slAutoSelect">
|
||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
|
@ -191,9 +204,6 @@
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="label">
|
|
||||||
<string comment="label. delay (on milliseconds) to automatically select icons">Delay</string>
|
|
||||||
</property>
|
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
|
|
|
@ -181,7 +181,11 @@ MouseConfig::MouseConfig(QWidget *parent, const QVariantList &args)
|
||||||
|
|
||||||
QFormLayout *lay = new QFormLayout(advancedTab);
|
QFormLayout *lay = new QFormLayout(advancedTab);
|
||||||
|
|
||||||
accel = new KDoubleNumInput(0.1, 20, 2, advancedTab, 0.1, 1);
|
accel = new KDoubleNumInput(advancedTab);
|
||||||
|
accel->setRange(0.1, 20);
|
||||||
|
accel->setValue(2);
|
||||||
|
accel->setSingleStep(0.1);
|
||||||
|
accel->setDecimals(1);
|
||||||
accel->setSuffix(i18n(" x"));
|
accel->setSuffix(i18n(" x"));
|
||||||
lay->addRow(i18n("Pointer acceleration:"), accel);
|
lay->addRow(i18n("Pointer acceleration:"), accel);
|
||||||
connect(accel, SIGNAL(valueChanged(double)), this, SLOT(changed()));
|
connect(accel, SIGNAL(valueChanged(double)), this, SLOT(changed()));
|
||||||
|
@ -198,9 +202,11 @@ MouseConfig::MouseConfig(QWidget *parent, const QVariantList &args)
|
||||||
" flying across the screen, making it hard to control.</p>");
|
" flying across the screen, making it hard to control.</p>");
|
||||||
accel->setWhatsThis( wtstr );
|
accel->setWhatsThis( wtstr );
|
||||||
|
|
||||||
thresh = new KIntNumInput(20, advancedTab);
|
thresh = new KIntNumInput(advancedTab);
|
||||||
thresh->setRange(0,20,1);
|
thresh->setRange(0,20);
|
||||||
|
thresh->setSingleStep(1);
|
||||||
thresh->setSteps(1,1);
|
thresh->setSteps(1,1);
|
||||||
|
thresh->setValue(20);
|
||||||
lay->addRow(i18n("Pointer threshold:"), thresh);
|
lay->addRow(i18n("Pointer threshold:"), thresh);
|
||||||
connect(thresh, SIGNAL(valueChanged(int)), this, SLOT(changed()));
|
connect(thresh, SIGNAL(valueChanged(int)), this, SLOT(changed()));
|
||||||
connect(thresh, SIGNAL(valueChanged(int)), this, SLOT(slotThreshChanged(int)));
|
connect(thresh, SIGNAL(valueChanged(int)), this, SLOT(slotThreshChanged(int)));
|
||||||
|
@ -219,10 +225,12 @@ MouseConfig::MouseConfig(QWidget *parent, const QVariantList &args)
|
||||||
|
|
||||||
// It would be nice if the user had a test field.
|
// It would be nice if the user had a test field.
|
||||||
// Selecting such values in milliseconds is not intuitive
|
// Selecting such values in milliseconds is not intuitive
|
||||||
doubleClickInterval = new KIntNumInput(2000, advancedTab);
|
doubleClickInterval = new KIntNumInput(advancedTab);
|
||||||
doubleClickInterval->setRange(0, 2000, 100);
|
doubleClickInterval->setRange(0, 2000);
|
||||||
|
doubleClickInterval->setSingleStep(100);
|
||||||
doubleClickInterval->setSuffix(i18n(" msec"));
|
doubleClickInterval->setSuffix(i18n(" msec"));
|
||||||
doubleClickInterval->setSteps(100, 100);
|
doubleClickInterval->setSteps(100, 100);
|
||||||
|
doubleClickInterval->setValue(2000);
|
||||||
lay->addRow(i18n("Double click interval:"), doubleClickInterval);
|
lay->addRow(i18n("Double click interval:"), doubleClickInterval);
|
||||||
connect(doubleClickInterval, SIGNAL(valueChanged(int)), this, SLOT(changed()));
|
connect(doubleClickInterval, SIGNAL(valueChanged(int)), this, SLOT(changed()));
|
||||||
|
|
||||||
|
@ -234,10 +242,12 @@ MouseConfig::MouseConfig(QWidget *parent, const QVariantList &args)
|
||||||
" separate clicks.");
|
" separate clicks.");
|
||||||
doubleClickInterval->setWhatsThis( wtstr );
|
doubleClickInterval->setWhatsThis( wtstr );
|
||||||
|
|
||||||
dragStartTime = new KIntNumInput(2000, advancedTab);
|
dragStartTime = new KIntNumInput(advancedTab);
|
||||||
dragStartTime->setRange(0, 2000, 100);
|
dragStartTime->setRange(0, 2000);
|
||||||
|
dragStartTime->setSingleStep(100);
|
||||||
dragStartTime->setSuffix(i18n(" msec"));
|
dragStartTime->setSuffix(i18n(" msec"));
|
||||||
dragStartTime->setSteps(100, 100);
|
dragStartTime->setSteps(100, 100);
|
||||||
|
dragStartTime->setValue(2000);
|
||||||
lay->addRow(i18n("Drag start time:"), dragStartTime);
|
lay->addRow(i18n("Drag start time:"), dragStartTime);
|
||||||
connect(dragStartTime, SIGNAL(valueChanged(int)), this, SLOT(changed()));
|
connect(dragStartTime, SIGNAL(valueChanged(int)), this, SLOT(changed()));
|
||||||
|
|
||||||
|
@ -246,9 +256,11 @@ MouseConfig::MouseConfig(QWidget *parent, const QVariantList &args)
|
||||||
" drag start time, a drag operation will be initiated.");
|
" drag start time, a drag operation will be initiated.");
|
||||||
dragStartTime->setWhatsThis( wtstr );
|
dragStartTime->setWhatsThis( wtstr );
|
||||||
|
|
||||||
dragStartDist = new KIntNumInput(20, advancedTab);
|
dragStartDist = new KIntNumInput(advancedTab);
|
||||||
dragStartDist->setRange(1, 20, 1);
|
dragStartDist->setRange(1, 20);
|
||||||
dragStartDist->setSteps(1,1);
|
dragStartDist->setSingleStep(1);
|
||||||
|
dragStartDist->setSteps(1, 1);
|
||||||
|
dragStartDist->setValue(20);
|
||||||
lay->addRow(i18n("Drag start distance:"), dragStartDist);
|
lay->addRow(i18n("Drag start distance:"), dragStartDist);
|
||||||
connect(dragStartDist, SIGNAL(valueChanged(int)), this, SLOT(changed()));
|
connect(dragStartDist, SIGNAL(valueChanged(int)), this, SLOT(changed()));
|
||||||
connect(dragStartDist, SIGNAL(valueChanged(int)), this, SLOT(slotDragStartDistChanged(int)));
|
connect(dragStartDist, SIGNAL(valueChanged(int)), this, SLOT(slotDragStartDistChanged(int)));
|
||||||
|
@ -259,9 +271,11 @@ MouseConfig::MouseConfig(QWidget *parent, const QVariantList &args)
|
||||||
" operation will be initiated.");
|
" operation will be initiated.");
|
||||||
dragStartDist->setWhatsThis( wtstr );
|
dragStartDist->setWhatsThis( wtstr );
|
||||||
|
|
||||||
wheelScrollLines = new KIntNumInput(3, advancedTab);
|
wheelScrollLines = new KIntNumInput(advancedTab);
|
||||||
wheelScrollLines->setRange(1, 12, 1);
|
wheelScrollLines->setRange(1, 12);
|
||||||
|
wheelScrollLines->setSingleStep(1);
|
||||||
wheelScrollLines->setSteps(1,1);
|
wheelScrollLines->setSteps(1,1);
|
||||||
|
wheelScrollLines->setValue(3);
|
||||||
lay->addRow(i18n("Mouse wheel scrolls by:"), wheelScrollLines);
|
lay->addRow(i18n("Mouse wheel scrolls by:"), wheelScrollLines);
|
||||||
connect(wheelScrollLines, SIGNAL(valueChanged(int)), this, SLOT(changed()));
|
connect(wheelScrollLines, SIGNAL(valueChanged(int)), this, SLOT(changed()));
|
||||||
connect(wheelScrollLines, SIGNAL(valueChanged(int)), SLOT(slotWheelScrollLinesChanged(int)));
|
connect(wheelScrollLines, SIGNAL(valueChanged(int)), SLOT(slotWheelScrollLinesChanged(int)));
|
||||||
|
@ -281,27 +295,32 @@ MouseConfig::MouseConfig(QWidget *parent, const QVariantList &args)
|
||||||
form->addRow(mouseKeys);
|
form->addRow(mouseKeys);
|
||||||
|
|
||||||
mk_delay = new KIntNumInput(mouse);
|
mk_delay = new KIntNumInput(mouse);
|
||||||
mk_delay->setRange(1, 1000, 50);
|
mk_delay->setRange(1, 1000);
|
||||||
|
mk_delay->setSingleStep(50);
|
||||||
mk_delay->setSuffix(i18n(" msec"));
|
mk_delay->setSuffix(i18n(" msec"));
|
||||||
form->addRow(i18n("&Acceleration delay:"), mk_delay);
|
form->addRow(i18n("&Acceleration delay:"), mk_delay);
|
||||||
|
|
||||||
mk_interval = new KIntNumInput(0, mouse);
|
mk_interval = new KIntNumInput(mouse);
|
||||||
mk_interval->setRange(1, 1000, 10);
|
mk_interval->setRange(1, 1000);
|
||||||
|
mk_interval->setSingleStep(10);
|
||||||
mk_interval->setSuffix(i18n(" msec"));
|
mk_interval->setSuffix(i18n(" msec"));
|
||||||
form->addRow(i18n("R&epeat interval:"), mk_interval);
|
form->addRow(i18n("R&epeat interval:"), mk_interval);
|
||||||
|
|
||||||
mk_time_to_max = new KIntNumInput(0, mouse);
|
mk_time_to_max = new KIntNumInput(mouse);
|
||||||
mk_time_to_max->setRange(100, 10000, 200);
|
mk_time_to_max->setRange(100, 10000);
|
||||||
|
mk_time_to_max->setSingleStep(200);
|
||||||
mk_time_to_max->setSuffix(i18n(" msec"));
|
mk_time_to_max->setSuffix(i18n(" msec"));
|
||||||
form->addRow(i18n("Acceleration &time:"), mk_time_to_max);
|
form->addRow(i18n("Acceleration &time:"), mk_time_to_max);
|
||||||
|
|
||||||
mk_max_speed = new KIntNumInput(0, mouse);
|
mk_max_speed = new KIntNumInput(mouse);
|
||||||
mk_max_speed->setRange(1, 2000, 20);
|
mk_max_speed->setRange(1, 2000);
|
||||||
|
mk_max_speed->setSingleStep(20);
|
||||||
mk_max_speed->setSuffix(i18n(" pixel/sec"));
|
mk_max_speed->setSuffix(i18n(" pixel/sec"));
|
||||||
form->addRow(i18n("Ma&ximum speed:"), mk_max_speed);
|
form->addRow(i18n("Ma&ximum speed:"), mk_max_speed);
|
||||||
|
|
||||||
mk_curve = new KIntNumInput(0, mouse);
|
mk_curve = new KIntNumInput(mouse);
|
||||||
mk_curve->setRange(-1000, 1000, 100);
|
mk_curve->setRange(-1000, 1000);
|
||||||
|
mk_curve->setSingleStep(100);
|
||||||
form->addRow(i18n("Acceleration &profile:"), mk_curve);
|
form->addRow(i18n("Acceleration &profile:"), mk_curve);
|
||||||
|
|
||||||
connect(mouseKeys, SIGNAL(clicked()), this, SLOT(checkAccess()));
|
connect(mouseKeys, SIGNAL(clicked()), this, SLOT(checkAccess()));
|
||||||
|
|
|
@ -77,7 +77,7 @@ It looks less nice but it may help if you have a very big folder you want to spr
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="KIntSpinBox" name="sbColumns">
|
<widget class="KIntNumInput" name="sbColumns">
|
||||||
<property name="whatsThis">
|
<property name="whatsThis">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
|
@ -184,11 +184,6 @@ It looks less nice but it may help if you have a very big folder you want to spr
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
|
||||||
<class>KIntSpinBox</class>
|
|
||||||
<extends>QSpinBox</extends>
|
|
||||||
<header>knuminput.h</header>
|
|
||||||
</customwidget>
|
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntNumInput</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QWidget</extends>
|
<extends>QWidget</extends>
|
||||||
|
|
|
@ -41,12 +41,12 @@ KIOPreferences::KIOPreferences(QWidget *parent, const QVariantList &)
|
||||||
mainLayout->addWidget( gb_Timeout );
|
mainLayout->addWidget( gb_Timeout );
|
||||||
|
|
||||||
QFormLayout* timeoutLayout = new QFormLayout(gb_Timeout);
|
QFormLayout* timeoutLayout = new QFormLayout(gb_Timeout);
|
||||||
sb_serverConnect = new KIntNumInput( 0, this );
|
sb_serverConnect = new KIntNumInput( this );
|
||||||
sb_serverConnect->setSuffix( ki18np( " second", " seconds" ) );
|
sb_serverConnect->setSuffix( ki18np( " second", " seconds" ) );
|
||||||
connect(sb_serverConnect, SIGNAL(valueChanged(int)), SLOT(configChanged()));
|
connect(sb_serverConnect, SIGNAL(valueChanged(int)), SLOT(configChanged()));
|
||||||
timeoutLayout->addRow(i18n("Server co&nnect:"), sb_serverConnect);
|
timeoutLayout->addRow(i18n("Server co&nnect:"), sb_serverConnect);
|
||||||
|
|
||||||
sb_serverResponse = new KIntNumInput( 0, this );
|
sb_serverResponse = new KIntNumInput( this );
|
||||||
sb_serverResponse->setSuffix( ki18np( " second", " seconds" ) );
|
sb_serverResponse->setSuffix( ki18np( " second", " seconds" ) );
|
||||||
connect(sb_serverResponse, SIGNAL(valueChanged(int)), SLOT(configChanged()));
|
connect(sb_serverResponse, SIGNAL(valueChanged(int)), SLOT(configChanged()));
|
||||||
timeoutLayout->addRow(i18n("&Server response:"), sb_serverResponse);
|
timeoutLayout->addRow(i18n("&Server response:"), sb_serverResponse);
|
||||||
|
@ -76,7 +76,7 @@ KIOPreferences::KIOPreferences(QWidget *parent, const QVariantList &)
|
||||||
mainLayout->addWidget( gb_Misc );
|
mainLayout->addWidget( gb_Misc );
|
||||||
QFormLayout* miscLayout = new QFormLayout(gb_Misc);
|
QFormLayout* miscLayout = new QFormLayout(gb_Misc);
|
||||||
|
|
||||||
sb_minimumKeepSize = new KIntNumInput( 0, this );
|
sb_minimumKeepSize = new KIntNumInput( this );
|
||||||
sb_minimumKeepSize->setSuffix( ki18np( " bytes", " bytes" ) );
|
sb_minimumKeepSize->setSuffix( ki18np( " bytes", " bytes" ) );
|
||||||
connect(sb_minimumKeepSize, SIGNAL(valueChanged(int)), SLOT(configChanged()));
|
connect(sb_minimumKeepSize, SIGNAL(valueChanged(int)), SLOT(configChanged()));
|
||||||
miscLayout->addRow(i18n( "Minimum keep size:" ), sb_minimumKeepSize);
|
miscLayout->addRow(i18n( "Minimum keep size:" ), sb_minimumKeepSize);
|
||||||
|
|
|
@ -103,7 +103,7 @@
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout">
|
<layout class="QHBoxLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="KIntSpinBox" name="SpinBox1">
|
<widget class="KIntNumInput" name="SpinBox1">
|
||||||
<property name="maximum">
|
<property name="maximum">
|
||||||
<number>999999</number>
|
<number>999999</number>
|
||||||
</property>
|
</property>
|
||||||
|
@ -161,8 +161,8 @@
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
|
|
|
@ -182,7 +182,7 @@ KfindTabWidget::KfindTabWidget(QWidget *parent)
|
||||||
fromDate->setObjectName( QLatin1String( "fromDate" ) );
|
fromDate->setObjectName( QLatin1String( "fromDate" ) );
|
||||||
toDate = new KDateCombo(pages[1] );
|
toDate = new KDateCombo(pages[1] );
|
||||||
toDate->setObjectName( QLatin1String( "toDate" ) );
|
toDate->setObjectName( QLatin1String( "toDate" ) );
|
||||||
timeBox = new KIntSpinBox( pages[1] );
|
timeBox = new KIntNumInput( pages[1] );
|
||||||
timeBox->setRange( 1, 60 );
|
timeBox->setRange( 1, 60 );
|
||||||
timeBox->setSingleStep( 1 );
|
timeBox->setSingleStep( 1 );
|
||||||
timeBox->setObjectName( QLatin1String( "timeBox" ) );
|
timeBox->setObjectName( QLatin1String( "timeBox" ) );
|
||||||
|
@ -191,7 +191,7 @@ KfindTabWidget::KfindTabWidget(QWidget *parent)
|
||||||
sizeBox->setObjectName( QLatin1String( "sizeBox" ) );
|
sizeBox->setObjectName( QLatin1String( "sizeBox" ) );
|
||||||
QLabel * sizeL =new QLabel(i18n("File &size is:"), pages[1]);
|
QLabel * sizeL =new QLabel(i18n("File &size is:"), pages[1]);
|
||||||
sizeL->setBuddy( sizeBox );
|
sizeL->setBuddy( sizeBox );
|
||||||
sizeEdit=new KIntSpinBox(pages[1] );
|
sizeEdit=new KIntNumInput(pages[1] );
|
||||||
sizeEdit->setRange( 0, INT_MAX );
|
sizeEdit->setRange( 0, INT_MAX );
|
||||||
sizeEdit->setSingleStep( 1 );
|
sizeEdit->setSingleStep( 1 );
|
||||||
sizeEdit->setObjectName( QLatin1String( "sizeEdit" ) );
|
sizeEdit->setObjectName( QLatin1String( "sizeEdit" ) );
|
||||||
|
|
|
@ -19,26 +19,25 @@
|
||||||
#ifndef KFTABDLG_H
|
#ifndef KFTABDLG_H
|
||||||
#define KFTABDLG_H
|
#define KFTABDLG_H
|
||||||
|
|
||||||
#include <QValidator> // for KDigitValidator
|
#include <QButtonGroup>
|
||||||
|
#include <QPushButton>
|
||||||
|
#include <QRadioButton>
|
||||||
|
#include <QCheckBox>
|
||||||
|
#include <QString>
|
||||||
|
#include <QDate>
|
||||||
|
#include <QRegExp>
|
||||||
|
#include <QLabel>
|
||||||
|
#include <QValidator>
|
||||||
|
|
||||||
#include <kurl.h>
|
#include <kurl.h>
|
||||||
#include <ktabwidget.h>
|
#include <ktabwidget.h>
|
||||||
#include <kmimetype.h>
|
#include <kmimetype.h>
|
||||||
|
|
||||||
class KUrlComboBox;
|
class KUrlComboBox;
|
||||||
#include <QButtonGroup>
|
|
||||||
#include <QPushButton>
|
|
||||||
#include <QRadioButton>
|
|
||||||
#include <QCheckBox>
|
|
||||||
class KLineEdit;
|
class KLineEdit;
|
||||||
#include <QString>
|
|
||||||
#include <QDate>
|
|
||||||
#include <QRegExp>
|
|
||||||
class KDialog;
|
class KDialog;
|
||||||
class KComboBox;
|
class KComboBox;
|
||||||
class KIntSpinBox;
|
class KIntNumInput;
|
||||||
#include <QLabel>
|
|
||||||
|
|
||||||
class KfDirDialog;
|
class KfDirDialog;
|
||||||
class KDateCombo;
|
class KDateCombo;
|
||||||
|
|
||||||
|
@ -118,12 +117,12 @@ private:
|
||||||
QRadioButton *rb[2];
|
QRadioButton *rb[2];
|
||||||
KDateCombo * fromDate;
|
KDateCombo * fromDate;
|
||||||
KDateCombo * toDate;
|
KDateCombo * toDate;
|
||||||
KIntSpinBox *timeBox;
|
KIntNumInput *timeBox;
|
||||||
|
|
||||||
//3rd page
|
//3rd page
|
||||||
KComboBox *sizeBox;
|
KComboBox *sizeBox;
|
||||||
KComboBox *sizeUnitBox;
|
KComboBox *sizeUnitBox;
|
||||||
KIntSpinBox *sizeEdit;
|
KIntNumInput *sizeEdit;
|
||||||
QCheckBox *caseContextCb;
|
QCheckBox *caseContextCb;
|
||||||
QCheckBox *binaryContextCb;
|
QCheckBox *binaryContextCb;
|
||||||
QCheckBox *regexpContentCb;
|
QCheckBox *regexpContentCb;
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QLayout>
|
#include <QLayout>
|
||||||
#include <QListWidget>
|
#include <QListWidget>
|
||||||
#include <QtGui/qlistwidget.h>
|
#include <QListWidget>
|
||||||
|
|
||||||
#include <kconfig.h>
|
#include <kconfig.h>
|
||||||
#include <kconfiggroup.h>
|
#include <kconfiggroup.h>
|
||||||
|
@ -38,8 +38,7 @@
|
||||||
#include <klocale.h>
|
#include <klocale.h>
|
||||||
#include <kpluginfactory.h>
|
#include <kpluginfactory.h>
|
||||||
#include <kpluginloader.h>
|
#include <kpluginloader.h>
|
||||||
#include <KIntSpinBox>
|
#include <kdebug.h>
|
||||||
#include <KDebug>
|
|
||||||
|
|
||||||
K_PLUGIN_FACTORY( KCMTrashConfigFactory, registerPlugin<TrashConfigModule>( "trash" ); )
|
K_PLUGIN_FACTORY( KCMTrashConfigFactory, registerPlugin<TrashConfigModule>( "trash" ); )
|
||||||
K_EXPORT_PLUGIN( KCMTrashConfigFactory( "kcmtrash" ) )
|
K_EXPORT_PLUGIN( KCMTrashConfigFactory( "kcmtrash" ) )
|
||||||
|
@ -250,11 +249,11 @@ void TrashConfigModule::setupGui()
|
||||||
"<p>Check this box to allow <b>automatic deletion</b> of files that are older than the value specified. "
|
"<p>Check this box to allow <b>automatic deletion</b> of files that are older than the value specified. "
|
||||||
"Leave this disabled to <b>not</b> automatically delete any items after a certain timespan</p>" ) );
|
"Leave this disabled to <b>not</b> automatically delete any items after a certain timespan</p>" ) );
|
||||||
daysLayout->addWidget( mUseTimeLimit );
|
daysLayout->addWidget( mUseTimeLimit );
|
||||||
mDays = new KIntSpinBox( this );
|
|
||||||
|
mDays = new KIntNumInput( this );
|
||||||
mDays->setRange( 1, 365 );
|
mDays->setRange( 1, 365 );
|
||||||
mDays->setSingleStep( 1 );
|
mDays->setSingleStep( 1 );
|
||||||
mDays->setSuffix( i18np(" day", " days", mDays->value()) );
|
mDays->setSuffix( ki18np(" day", " days") );
|
||||||
mDays->setWhatsThis( i18nc( "@info:whatsthis",
|
mDays->setWhatsThis( i18nc( "@info:whatsthis",
|
||||||
"<p>Set the number of days that files can remain in the trash. "
|
"<p>Set the number of days that files can remain in the trash. "
|
||||||
"Any files older than this will be automatically deleted.</p>" ) );
|
"Any files older than this will be automatically deleted.</p>" ) );
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#define KCMTRASH_H
|
#define KCMTRASH_H
|
||||||
|
|
||||||
#include <kcmodule.h>
|
#include <kcmodule.h>
|
||||||
|
#include <knuminput.h>
|
||||||
|
|
||||||
#include <QCheckBox>
|
#include <QCheckBox>
|
||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
|
@ -28,7 +29,7 @@
|
||||||
#include <QFrame>
|
#include <QFrame>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QListWidgetItem>
|
#include <QListWidgetItem>
|
||||||
class KIntSpinBox;
|
|
||||||
class TrashImpl;
|
class TrashImpl;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -57,7 +58,7 @@ class TrashConfigModule : public KCModule
|
||||||
void setupGui();
|
void setupGui();
|
||||||
|
|
||||||
QCheckBox *mUseTimeLimit;
|
QCheckBox *mUseTimeLimit;
|
||||||
KIntSpinBox *mDays;
|
KIntNumInput *mDays;
|
||||||
QCheckBox *mUseSizeLimit;
|
QCheckBox *mUseSizeLimit;
|
||||||
QWidget *mSizeWidget;
|
QWidget *mSizeWidget;
|
||||||
QDoubleSpinBox *mPercent;
|
QDoubleSpinBox *mPercent;
|
||||||
|
|
|
@ -277,7 +277,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="6" column="1">
|
<item row="6" column="1">
|
||||||
<widget class="KIntSpinBox" name="_port">
|
<widget class="KIntNumInput" name="_port">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
||||||
<horstretch>1</horstretch>
|
<horstretch>1</horstretch>
|
||||||
|
@ -374,8 +374,8 @@
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
|
|
|
@ -216,7 +216,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="KIntSpinBox" name="terminalColumnsEntry">
|
<widget class="KIntNumInput" name="terminalColumnsEntry">
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
<number>1</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
|
@ -233,7 +233,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="3">
|
<item row="0" column="3">
|
||||||
<widget class="KIntSpinBox" name="terminalRowsEntry">
|
<widget class="KIntNumInput" name="terminalRowsEntry">
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
<number>1</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
|
@ -381,7 +381,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="KIntSpinBox" name="silenceSecondsSpinner">
|
<widget class="KIntNumInput" name="silenceSecondsSpinner">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>The threshold for continuous silence to be detected by Konsole</string>
|
<string>The threshold for continuous silence to be detected by Konsole</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -1114,7 +1114,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="KIntSpinBox" name="lineSpacingSpinner">
|
<widget class="KIntNumInput" name="lineSpacingSpinner">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>The number of pixels between two lines</string>
|
<string>The number of pixels between two lines</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -1363,8 +1363,8 @@
|
||||||
<header>klineedit.h</header>
|
<header>klineedit.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="KIntSpinBox" name="historyLineSpinner">
|
<widget class="KIntNumInput" name="historyLineSpinner">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Number of lines of output to remember</string>
|
<string>Number of lines of output to remember</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -112,8 +112,8 @@
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
|
|
|
@ -361,7 +361,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="KIntSpinBox" name="_scrollBarWidth">
|
<widget class="KIntNumInput" name="_scrollBarWidth">
|
||||||
<property name="alignment">
|
<property name="alignment">
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||||
</property>
|
</property>
|
||||||
|
@ -533,8 +533,8 @@
|
||||||
<header>kcombobox.h</header>
|
<header>kcombobox.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
|
|
|
@ -89,10 +89,10 @@ namespace Oxygen
|
||||||
simulator().selectComboBoxItem( ui.kcombobox, 2 );
|
simulator().selectComboBoxItem( ui.kcombobox, 2 );
|
||||||
simulator().selectComboBoxItem( ui.kcombobox, 0 );
|
simulator().selectComboBoxItem( ui.kcombobox, 0 );
|
||||||
|
|
||||||
simulator().clearText( ui.kintspinbox );
|
simulator().clearText( ui.kintnuminput );
|
||||||
simulator().writeText( ui.kintspinbox, "10" );
|
simulator().writeText( ui.kintnuminput, "10" );
|
||||||
simulator().clearText( ui.kintspinbox );
|
simulator().clearText( ui.kintnuminput );
|
||||||
simulator().writeText( ui.kintspinbox, "0" );
|
simulator().writeText( ui.kintnuminput, "0" );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -127,7 +127,6 @@ namespace Oxygen
|
||||||
ui.klineedit->setFrame( !value );
|
ui.klineedit->setFrame( !value );
|
||||||
ui.klineedit_2->setFrame( !value );
|
ui.klineedit_2->setFrame( !value );
|
||||||
ui.kcombobox->setFrame( !value );
|
ui.kcombobox->setFrame( !value );
|
||||||
ui.kintspinbox->setFrame( !value );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//________________________________________________________________
|
//________________________________________________________________
|
||||||
|
|
|
@ -117,12 +117,12 @@
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy">
|
<property name="buddy">
|
||||||
<cstring>kintspinbox</cstring>
|
<cstring>kintnuminput</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="1">
|
<item row="3" column="1">
|
||||||
<widget class="KIntSpinBox" name="kintspinbox"/>
|
<widget class="KIntNumInput" name="kintnuminput"/>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="0" colspan="3">
|
<item row="5" column="0" colspan="3">
|
||||||
<widget class="QFrame" name="frame">
|
<widget class="QFrame" name="frame">
|
||||||
|
@ -162,8 +162,8 @@
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
|
@ -186,7 +186,7 @@
|
||||||
<tabstop>klineedit</tabstop>
|
<tabstop>klineedit</tabstop>
|
||||||
<tabstop>klineedit_2</tabstop>
|
<tabstop>klineedit_2</tabstop>
|
||||||
<tabstop>kcombobox</tabstop>
|
<tabstop>kcombobox</tabstop>
|
||||||
<tabstop>kintspinbox</tabstop>
|
<tabstop>kintnuminput</tabstop>
|
||||||
<tabstop>flatCheckBox</tabstop>
|
<tabstop>flatCheckBox</tabstop>
|
||||||
<tabstop>textedit</tabstop>
|
<tabstop>textedit</tabstop>
|
||||||
<tabstop>wrapCheckBox</tabstop>
|
<tabstop>wrapCheckBox</tabstop>
|
||||||
|
|
|
@ -95,7 +95,7 @@ HostConnector::HostConnector( QWidget *parent, const char *name )
|
||||||
label = new QLabel( i18n( "Port:" ));
|
label = new QLabel( i18n( "Port:" ));
|
||||||
groupLayout->addWidget( label, 1, 0 );
|
groupLayout->addWidget( label, 1, 0 );
|
||||||
|
|
||||||
mPort = new KIntSpinBox();
|
mPort = new KIntNumInput();
|
||||||
mPort->setRange( 1, 65535 );
|
mPort->setRange( 1, 65535 );
|
||||||
mPort->setEnabled( false );
|
mPort->setEnabled( false );
|
||||||
mPort->setValue( 3112 );
|
mPort->setValue( 3112 );
|
||||||
|
|
|
@ -23,13 +23,12 @@
|
||||||
#define KSG_HOSTCONNECTOR_H
|
#define KSG_HOSTCONNECTOR_H
|
||||||
|
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
|
#include <QRadioButton>
|
||||||
|
|
||||||
#include <kdialog.h>
|
#include <kdialog.h>
|
||||||
|
|
||||||
class KComboBox;
|
class KComboBox;
|
||||||
|
class KIntNumInput;
|
||||||
#include <QRadioButton>
|
|
||||||
class KIntSpinBox;
|
|
||||||
|
|
||||||
class HostConnector : public KDialog
|
class HostConnector : public KDialog
|
||||||
{
|
{
|
||||||
|
@ -70,7 +69,7 @@ class HostConnector : public KDialog
|
||||||
QRadioButton *mUseDaemon;
|
QRadioButton *mUseDaemon;
|
||||||
QRadioButton *mUseCustom;
|
QRadioButton *mUseCustom;
|
||||||
|
|
||||||
KIntSpinBox *mPort;
|
KIntNumInput *mPort;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -182,7 +182,8 @@ DancingBarsSettings::DancingBarsSettings( QWidget* parent, const char* name )
|
||||||
label = new QLabel( i18n( "Font size:" ), page );
|
label = new QLabel( i18n( "Font size:" ), page );
|
||||||
pageLayout->addWidget( label, 3, 0 );
|
pageLayout->addWidget( label, 3, 0 );
|
||||||
|
|
||||||
mFontSize = new KIntNumInput( 9, page );
|
mFontSize = new KIntNumInput( page );
|
||||||
|
mFontSize->setValue( 9 );
|
||||||
mFontSize->setWhatsThis( i18n( "This determines the size of the font used to print a label underneath the bars. Bars are automatically suppressed if text becomes too large, so it is advisable to use a small font size here." ) );
|
mFontSize->setWhatsThis( i18n( "This determines the size of the font used to print a label underneath the bars. Bars are automatically suppressed if text becomes too large, so it is advisable to use a small font size here." ) );
|
||||||
pageLayout->addWidget( mFontSize, 3, 1 );
|
pageLayout->addWidget( mFontSize, 3, 1 );
|
||||||
label->setBuddy( mFontSize );
|
label->setBuddy( mFontSize );
|
||||||
|
|
|
@ -126,9 +126,10 @@ FancyPlotterSettings::FancyPlotterSettings( QWidget* parent, bool locked )
|
||||||
groupBox = new QGroupBox( i18n( "Horizontal scale" ), page );
|
groupBox = new QGroupBox( i18n( "Horizontal scale" ), page );
|
||||||
QFormLayout *formLayout = new QFormLayout(groupBox);
|
QFormLayout *formLayout = new QFormLayout(groupBox);
|
||||||
|
|
||||||
mHorizontalScale = new KIntNumInput( 1, groupBox );
|
mHorizontalScale = new KIntNumInput( groupBox );
|
||||||
mHorizontalScale->setMinimum( 1 );
|
mHorizontalScale->setMinimum( 1 );
|
||||||
mHorizontalScale->setMaximum( 50 );
|
mHorizontalScale->setMaximum( 50 );
|
||||||
|
mHorizontalScale->setValue( 1 );
|
||||||
|
|
||||||
formLayout->addRow( i18n("Pixels per time period:"), mHorizontalScale );
|
formLayout->addRow( i18n("Pixels per time period:"), mHorizontalScale );
|
||||||
|
|
||||||
|
@ -155,7 +156,7 @@ FancyPlotterSettings::FancyPlotterSettings( QWidget* parent, bool locked )
|
||||||
label = new QLabel( i18n( "Distance:" ), groupBox );
|
label = new QLabel( i18n( "Distance:" ), groupBox );
|
||||||
boxLayout->addWidget( label, 0, 2 );
|
boxLayout->addWidget( label, 0, 2 );
|
||||||
|
|
||||||
mVerticalLinesDistance = new KIntNumInput( 0, groupBox );
|
mVerticalLinesDistance = new KIntNumInput( groupBox );
|
||||||
mVerticalLinesDistance->setMinimum( 10 );
|
mVerticalLinesDistance->setMinimum( 10 );
|
||||||
mVerticalLinesDistance->setMaximum( 120 );
|
mVerticalLinesDistance->setMaximum( 120 );
|
||||||
mVerticalLinesDistance->setWhatsThis( i18n( "Enter the distance between two vertical lines here." ) );
|
mVerticalLinesDistance->setWhatsThis( i18n( "Enter the distance between two vertical lines here." ) );
|
||||||
|
@ -184,9 +185,10 @@ FancyPlotterSettings::FancyPlotterSettings( QWidget* parent, bool locked )
|
||||||
label = new QLabel( i18n( "Font size:" ), groupBox );
|
label = new QLabel( i18n( "Font size:" ), groupBox );
|
||||||
boxLayout->addWidget( label, 1, 0 );
|
boxLayout->addWidget( label, 1, 0 );
|
||||||
|
|
||||||
mFontSize = new KIntNumInput( 8, groupBox );
|
mFontSize = new KIntNumInput( groupBox );
|
||||||
mFontSize->setMinimum( 1 );
|
mFontSize->setMinimum( 1 );
|
||||||
mFontSize->setMaximum( 1000 );
|
mFontSize->setMaximum( 1000 );
|
||||||
|
mFontSize->setValue( 8 );
|
||||||
boxLayout->addWidget( mFontSize, 1, 1 );
|
boxLayout->addWidget( mFontSize, 1, 1 );
|
||||||
label->setBuddy( mFontSize );
|
label->setBuddy( mFontSize );
|
||||||
|
|
||||||
|
|
|
@ -70,18 +70,20 @@ WorkSheetSettings::WorkSheetSettings( QWidget* parent, bool locked )
|
||||||
label = new QLabel( i18n( "Rows:" ), group );
|
label = new QLabel( i18n( "Rows:" ), group );
|
||||||
groupLayout->addWidget( label, ++row_num, 0 );
|
groupLayout->addWidget( label, ++row_num, 0 );
|
||||||
|
|
||||||
mRows = new KIntNumInput( 3, group );
|
mRows = new KIntNumInput( group );
|
||||||
mRows->setMaximum( 42 );
|
mRows->setMaximum( 42 );
|
||||||
mRows->setMinimum( 1 );
|
mRows->setMinimum( 1 );
|
||||||
|
mRows->setValue( 3 );
|
||||||
groupLayout->addWidget( mRows, row_num, 1 );
|
groupLayout->addWidget( mRows, row_num, 1 );
|
||||||
label->setBuddy( mRows );
|
label->setBuddy( mRows );
|
||||||
|
|
||||||
label = new QLabel( i18n( "Columns:" ), group );
|
label = new QLabel( i18n( "Columns:" ), group );
|
||||||
groupLayout->addWidget( label, ++row_num, 0 );
|
groupLayout->addWidget( label, ++row_num, 0 );
|
||||||
|
|
||||||
mColumns = new KIntNumInput( 1, group );
|
mColumns = new KIntNumInput( group );
|
||||||
mColumns->setMaximum( 42 );
|
mColumns->setMaximum( 42 );
|
||||||
mColumns->setMinimum( 1 );
|
mColumns->setMinimum( 1 );
|
||||||
|
mColumns->setValue( 1 );
|
||||||
groupLayout->addWidget( mColumns, 1, 1 );
|
groupLayout->addWidget( mColumns, 1, 1 );
|
||||||
label->setBuddy( mColumns );
|
label->setBuddy( mColumns );
|
||||||
mRows->setWhatsThis( i18n( "Enter the number of rows the sheet should have." ) );
|
mRows->setWhatsThis( i18n( "Enter the number of rows the sheet should have." ) );
|
||||||
|
@ -90,7 +92,11 @@ WorkSheetSettings::WorkSheetSettings( QWidget* parent, bool locked )
|
||||||
label = new QLabel( i18n( "Update interval:" ), group );
|
label = new QLabel( i18n( "Update interval:" ), group );
|
||||||
groupLayout->addWidget( label, ++row_num, 0 );
|
groupLayout->addWidget( label, ++row_num, 0 );
|
||||||
|
|
||||||
mInterval = new KDoubleNumInput( 0.00/*minimum*/, 1000.0/*maximum*/, 1/*default*/, group/*parent*/, 0.5/*stepsize*/, 2/*precision*/ );
|
mInterval = new KDoubleNumInput( group );
|
||||||
|
mInterval->setRange( 0.00, 1000.0);
|
||||||
|
mInterval->setSingleStep( 0.5 );
|
||||||
|
mInterval->setValue( 1.0 );
|
||||||
|
mInterval->setDecimals( 2 );
|
||||||
mInterval->setSuffix( i18n( " sec" ) );
|
mInterval->setSuffix( i18n( " sec" ) );
|
||||||
groupLayout->addWidget( mInterval, row_num, 1 );
|
groupLayout->addWidget( mInterval, row_num, 1 );
|
||||||
label->setBuddy( mInterval );
|
label->setBuddy( mInterval );
|
||||||
|
|
|
@ -72,7 +72,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="2">
|
<item row="0" column="2">
|
||||||
<widget class="KIntSpinBox" name="kcfg_Strength">
|
<widget class="KIntNumInput" name="kcfg_Strength">
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
<number>1</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
|
@ -101,8 +101,8 @@
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="KIntSpinBox" name="kcfg_Width">
|
<widget class="KIntNumInput" name="kcfg_Width">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
|
@ -63,7 +63,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="KIntSpinBox" name="kcfg_Height">
|
<widget class="KIntNumInput" name="kcfg_Height">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
|
@ -91,8 +91,8 @@
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="KIntSpinBox" name="kcfg_LineWidth">
|
<widget class="KIntNumInput" name="kcfg_LineWidth">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
|
@ -100,8 +100,8 @@
|
||||||
<header>kcolorcombo.h</header>
|
<header>kcolorcombo.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="KIntSpinBox" name="kcfg_Spacing">
|
<widget class="KIntNumInput" name="kcfg_Spacing">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
|
@ -76,7 +76,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1">
|
<item row="2" column="1">
|
||||||
<widget class="KIntSpinBox" name="kcfg_Opacity">
|
<widget class="KIntNumInput" name="kcfg_Opacity">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
|
@ -123,8 +123,8 @@
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="KIntSpinBox" name="numberSpinBox">
|
<widget class="KIntNumInput" name="numberSpinBox">
|
||||||
<property name="whatsThis">
|
<property name="whatsThis">
|
||||||
<string>Here you can set how many virtual desktops you want on your KDE desktop.</string>
|
<string>Here you can set how many virtual desktops you want on your KDE desktop.</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -76,7 +76,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="KIntSpinBox" name="rowsSpinBox">
|
<widget class="KIntNumInput" name="rowsSpinBox">
|
||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
|
@ -209,7 +209,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="KIntSpinBox" name="popupHideSpinBox">
|
<widget class="KIntNumInput" name="popupHideSpinBox">
|
||||||
<property name="suffix">
|
<property name="suffix">
|
||||||
<string> msec</string>
|
<string> msec</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -271,8 +271,8 @@
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
|
|
|
@ -199,7 +199,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1">
|
<item row="2" column="1">
|
||||||
<widget class="KIntSpinBox" name="activationDelaySpin">
|
<widget class="KIntNumInput" name="activationDelaySpin">
|
||||||
<property name="suffix">
|
<property name="suffix">
|
||||||
<string> ms</string>
|
<string> ms</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -231,7 +231,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="1">
|
<item row="3" column="1">
|
||||||
<widget class="KIntSpinBox" name="triggerCooldownSpin">
|
<widget class="KIntNumInput" name="triggerCooldownSpin">
|
||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
|
@ -287,8 +287,8 @@
|
||||||
<header>kcombobox.h</header>
|
<header>kcombobox.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
|
|
|
@ -90,14 +90,14 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="KIntSpinBox" name="shadowSize">
|
<widget class="KIntNumInput" name="shadowSize">
|
||||||
<property name="suffix">
|
<property name="suffix">
|
||||||
<string>px</string>
|
<string>px</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="KIntSpinBox" name="verticalOffset">
|
<widget class="KIntNumInput" name="verticalOffset">
|
||||||
<property name="suffix">
|
<property name="suffix">
|
||||||
<string>px</string>
|
<string>px</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -112,8 +112,8 @@
|
||||||
<header>kcolorbutton.h</header>
|
<header>kcolorbutton.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
|
|
|
@ -353,7 +353,7 @@ When this option is checked, icons will automatically snap to the nearest grid c
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="14" column="2">
|
<item row="14" column="2">
|
||||||
<widget class="KIntSpinBox" name="numLinesEdit">
|
<widget class="KIntNumInput" name="numLinesEdit">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
|
@ -464,8 +464,8 @@ When this option is checked, icons will automatically snap to the nearest grid c
|
||||||
<header>kcombobox.h</header>
|
<header>kcombobox.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QVBoxLayout>
|
#include <QGridLayout>
|
||||||
#include <QGraphicsGridLayout>
|
#include <QGraphicsGridLayout>
|
||||||
#include <Plasma/TabBar>
|
#include <Plasma/TabBar>
|
||||||
#include <Plasma/Frame>
|
#include <Plasma/Frame>
|
||||||
|
@ -964,8 +964,10 @@ MixerApplet::MixerApplet(QObject *parent, const QVariantList &args)
|
||||||
m_visualizerscale(s_visualizerscale),
|
m_visualizerscale(s_visualizerscale),
|
||||||
m_visualizericon(s_visualizericon),
|
m_visualizericon(s_visualizericon),
|
||||||
m_visualizerbox(nullptr),
|
m_visualizerbox(nullptr),
|
||||||
|
m_visualizerscalelabel(nullptr),
|
||||||
m_visualizerscalebox(nullptr),
|
m_visualizerscalebox(nullptr),
|
||||||
m_visualizerbutton(nullptr)
|
m_visualizerbutton(nullptr),
|
||||||
|
m_spacer(nullptr)
|
||||||
{
|
{
|
||||||
KGlobal::locale()->insertCatalog("plasma_applet_mixer");
|
KGlobal::locale()->insertCatalog("plasma_applet_mixer");
|
||||||
setAspectRatioMode(Plasma::AspectRatioMode::IgnoreAspectRatio);
|
setAspectRatioMode(Plasma::AspectRatioMode::IgnoreAspectRatio);
|
||||||
|
@ -991,17 +993,21 @@ void MixerApplet::init()
|
||||||
void MixerApplet::createConfigurationInterface(KConfigDialog *parent)
|
void MixerApplet::createConfigurationInterface(KConfigDialog *parent)
|
||||||
{
|
{
|
||||||
QWidget* widget = new QWidget();
|
QWidget* widget = new QWidget();
|
||||||
QVBoxLayout* widgetlayout = new QVBoxLayout(widget);
|
QGridLayout* widgetlayout = new QGridLayout(widget);
|
||||||
m_visualizerbox = new QCheckBox(widget);
|
m_visualizerbox = new QCheckBox(widget);
|
||||||
m_visualizerbox->setChecked(m_showvisualizer);
|
m_visualizerbox->setChecked(m_showvisualizer);
|
||||||
m_visualizerbox->setText(i18n("Show visualizer"));
|
m_visualizerbox->setText(i18n("Show visualizer"));
|
||||||
widgetlayout->addWidget(m_visualizerbox);
|
widgetlayout->addWidget(m_visualizerbox, 0, 0, 1, 2);
|
||||||
|
|
||||||
|
m_visualizerscalelabel = new QLabel(widget);
|
||||||
|
m_visualizerscalelabel->setText(i18n("Smooth-factor"));
|
||||||
|
widgetlayout->addWidget(m_visualizerscalelabel, 1, 0, 1, 1, Qt::AlignRight | Qt::AlignVCenter);
|
||||||
|
|
||||||
m_visualizerscalebox = new KIntNumInput(widget);
|
m_visualizerscalebox = new KIntNumInput(widget);
|
||||||
|
m_visualizerscalebox->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Minimum);
|
||||||
m_visualizerscalebox->setRange(1, 5);
|
m_visualizerscalebox->setRange(1, 5);
|
||||||
m_visualizerscalebox->setValue(m_visualizerscale);
|
m_visualizerscalebox->setValue(m_visualizerscale);
|
||||||
m_visualizerscalebox->setLabel(i18n("Smooth-factor"));
|
widgetlayout->addWidget(m_visualizerscalebox, 1, 1, 1, 1);
|
||||||
widgetlayout->addWidget(m_visualizerscalebox);
|
|
||||||
|
|
||||||
const QColor defaultvisualizercolor = kDefaultVisualizerColor();
|
const QColor defaultvisualizercolor = kDefaultVisualizerColor();
|
||||||
QColor visualizercolor = m_visualizercolor;
|
QColor visualizercolor = m_visualizercolor;
|
||||||
|
@ -1011,14 +1017,16 @@ void MixerApplet::createConfigurationInterface(KConfigDialog *parent)
|
||||||
m_visualizerbutton = new KColorButton(widget);
|
m_visualizerbutton = new KColorButton(widget);
|
||||||
m_visualizerbutton->setDefaultColor(defaultvisualizercolor);
|
m_visualizerbutton->setDefaultColor(defaultvisualizercolor);
|
||||||
m_visualizerbutton->setColor(visualizercolor);
|
m_visualizerbutton->setColor(visualizercolor);
|
||||||
widgetlayout->addWidget(m_visualizerbutton);
|
widgetlayout->addWidget(m_visualizerbutton, 2, 0, 1, 2);
|
||||||
|
|
||||||
m_visualizericonbox = new QCheckBox(widget);
|
m_visualizericonbox = new QCheckBox(widget);
|
||||||
m_visualizericonbox->setChecked(m_visualizericon);
|
m_visualizericonbox->setChecked(m_visualizericon);
|
||||||
m_visualizericonbox->setText(i18n("Show icon"));
|
m_visualizericonbox->setText(i18n("Show icon"));
|
||||||
widgetlayout->addWidget(m_visualizericonbox);
|
widgetlayout->addWidget(m_visualizericonbox, 3, 0, 1, 2);
|
||||||
|
|
||||||
|
m_spacer = new QSpacerItem(1, 1, QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||||
|
widgetlayout->addItem(m_spacer, 4, 0, 1, 2);
|
||||||
|
|
||||||
widgetlayout->addStretch();
|
|
||||||
widget->setLayout(widgetlayout);
|
widget->setLayout(widgetlayout);
|
||||||
parent->addPage(widget, i18n("Visualizer"), "player-volume");
|
parent->addPage(widget, i18n("Visualizer"), "player-volume");
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,8 @@
|
||||||
|
|
||||||
#include <QGraphicsSceneWheelEvent>
|
#include <QGraphicsSceneWheelEvent>
|
||||||
#include <QCheckBox>
|
#include <QCheckBox>
|
||||||
|
#include <QLabel>
|
||||||
|
#include <QSpacerItem>
|
||||||
#include <KIntNumInput>
|
#include <KIntNumInput>
|
||||||
#include <KConfigDialog>
|
#include <KConfigDialog>
|
||||||
#include <KColorButton>
|
#include <KColorButton>
|
||||||
|
@ -56,9 +58,11 @@ private:
|
||||||
QColor m_visualizercolor;
|
QColor m_visualizercolor;
|
||||||
bool m_visualizericon;
|
bool m_visualizericon;
|
||||||
QCheckBox* m_visualizerbox;
|
QCheckBox* m_visualizerbox;
|
||||||
|
QLabel* m_visualizerscalelabel;
|
||||||
KIntNumInput* m_visualizerscalebox;
|
KIntNumInput* m_visualizerscalebox;
|
||||||
KColorButton* m_visualizerbutton;
|
KColorButton* m_visualizerbutton;
|
||||||
QCheckBox* m_visualizericonbox;
|
QCheckBox* m_visualizericonbox;
|
||||||
|
QSpacerItem* m_spacer;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // MIXER_H
|
#endif // MIXER_H
|
||||||
|
|
|
@ -744,8 +744,10 @@ WeatherApplet::WeatherApplet(QObject *parent, const QVariantList &args)
|
||||||
m_tempunitbox(nullptr),
|
m_tempunitbox(nullptr),
|
||||||
m_locationbox(nullptr),
|
m_locationbox(nullptr),
|
||||||
m_latitude(KTimeZone::UNKNOWN),
|
m_latitude(KTimeZone::UNKNOWN),
|
||||||
|
m_latitudelabel(nullptr),
|
||||||
m_latitudeinput(nullptr),
|
m_latitudeinput(nullptr),
|
||||||
m_longitude(KTimeZone::UNKNOWN),
|
m_longitude(KTimeZone::UNKNOWN),
|
||||||
|
m_longitudelabel(nullptr),
|
||||||
m_longitudeinput(nullptr),
|
m_longitudeinput(nullptr),
|
||||||
m_spacer(nullptr)
|
m_spacer(nullptr)
|
||||||
{
|
{
|
||||||
|
@ -816,16 +818,20 @@ void WeatherApplet::createConfigurationInterface(KConfigDialog *parent)
|
||||||
m_locationbox->addItem(sortedzonesiter.key(), sortedzonesiter.value());
|
m_locationbox->addItem(sortedzonesiter.key(), sortedzonesiter.value());
|
||||||
}
|
}
|
||||||
widgetlayout->addWidget(m_locationbox, 1, 1, 1, 1);
|
widgetlayout->addWidget(m_locationbox, 1, 1, 1, 1);
|
||||||
|
m_latitudelabel = new QLabel(widget);
|
||||||
|
m_latitudelabel->setText(i18n("Latitude:"));
|
||||||
|
widgetlayout->addWidget(m_latitudelabel, 2, 0, 1, 1, Qt::AlignRight | Qt::AlignVCenter);
|
||||||
m_latitudeinput = new KDoubleNumInput(widget);
|
m_latitudeinput = new KDoubleNumInput(widget);
|
||||||
m_latitudeinput->setSliderEnabled(true);
|
m_latitudeinput->setSliderEnabled(true);
|
||||||
m_latitudeinput->setLabel(i18n("Latitude:"));
|
|
||||||
m_latitudeinput->setValue(m_latitude);
|
m_latitudeinput->setValue(m_latitude);
|
||||||
widgetlayout->addWidget(m_latitudeinput, 2, 0, 1, 2);
|
widgetlayout->addWidget(m_latitudeinput, 2, 1, 1, 1);
|
||||||
|
m_longitudelabel = new QLabel(widget);
|
||||||
|
m_longitudelabel->setText(i18n("Longitude:"));
|
||||||
|
widgetlayout->addWidget(m_longitudelabel, 3, 0, 1, 1, Qt::AlignRight | Qt::AlignVCenter);
|
||||||
m_longitudeinput = new KDoubleNumInput(widget);
|
m_longitudeinput = new KDoubleNumInput(widget);
|
||||||
m_longitudeinput->setSliderEnabled(true);
|
m_longitudeinput->setSliderEnabled(true);
|
||||||
m_longitudeinput->setLabel(i18n("Longitude:"));
|
|
||||||
m_longitudeinput->setValue(m_longitude);
|
m_longitudeinput->setValue(m_longitude);
|
||||||
widgetlayout->addWidget(m_longitudeinput, 3, 0, 1, 2);
|
widgetlayout->addWidget(m_longitudeinput, 3, 1, 1, 1);
|
||||||
m_spacer = new QSpacerItem(1, 1, QSizePolicy::Expanding, QSizePolicy::Expanding);
|
m_spacer = new QSpacerItem(1, 1, QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||||
widgetlayout->addItem(m_spacer, 4, 0, 1, 2);
|
widgetlayout->addItem(m_spacer, 4, 0, 1, 2);
|
||||||
widget->setLayout(widgetlayout);
|
widget->setLayout(widgetlayout);
|
||||||
|
@ -863,16 +869,20 @@ void WeatherApplet::slotCheckLocation()
|
||||||
{
|
{
|
||||||
const int locationindex = m_locationbox->currentIndex();
|
const int locationindex = m_locationbox->currentIndex();
|
||||||
if (locationindex == 1) {
|
if (locationindex == 1) {
|
||||||
|
m_latitudelabel->setVisible(true);
|
||||||
m_latitudeinput->setVisible(true);
|
m_latitudeinput->setVisible(true);
|
||||||
m_latitudeinput->setRange(-90.0, 90.0);
|
m_latitudeinput->setRange(-90.0, 90.0);
|
||||||
m_latitudeinput->setValue((!m_location.isEmpty() || m_latitude == KTimeZone::UNKNOWN) ? 0.0 : m_latitude);
|
m_latitudeinput->setValue((!m_location.isEmpty() || m_latitude == KTimeZone::UNKNOWN) ? 0.0 : m_latitude);
|
||||||
|
m_longitudelabel->setVisible(true);
|
||||||
m_longitudeinput->setVisible(true);
|
m_longitudeinput->setVisible(true);
|
||||||
m_longitudeinput->setRange(-180.0, 180.0);
|
m_longitudeinput->setRange(-180.0, 180.0);
|
||||||
m_longitudeinput->setValue((!m_location.isEmpty() || m_longitude == KTimeZone::UNKNOWN) ? 0.0 : m_longitude);
|
m_longitudeinput->setValue((!m_location.isEmpty() || m_longitude == KTimeZone::UNKNOWN) ? 0.0 : m_longitude);
|
||||||
} else {
|
} else {
|
||||||
|
m_latitudelabel->setVisible(false);
|
||||||
m_latitudeinput->setVisible(false);
|
m_latitudeinput->setVisible(false);
|
||||||
m_latitudeinput->setRange(KTimeZone::UNKNOWN, KTimeZone::UNKNOWN);
|
m_latitudeinput->setRange(KTimeZone::UNKNOWN, KTimeZone::UNKNOWN);
|
||||||
m_latitudeinput->setValue(KTimeZone::UNKNOWN);
|
m_latitudeinput->setValue(KTimeZone::UNKNOWN);
|
||||||
|
m_longitudelabel->setVisible(false);
|
||||||
m_longitudeinput->setVisible(false);
|
m_longitudeinput->setVisible(false);
|
||||||
m_longitudeinput->setRange(KTimeZone::UNKNOWN, KTimeZone::UNKNOWN);
|
m_longitudeinput->setRange(KTimeZone::UNKNOWN, KTimeZone::UNKNOWN);
|
||||||
m_longitudeinput->setValue(KTimeZone::UNKNOWN);
|
m_longitudeinput->setValue(KTimeZone::UNKNOWN);
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
#include <QSpacerItem>
|
#include <QSpacerItem>
|
||||||
|
#include <QLabel>
|
||||||
#include <KDoubleNumInput>
|
#include <KDoubleNumInput>
|
||||||
#include <KConfigDialog>
|
#include <KConfigDialog>
|
||||||
#include <KUnitConversion>
|
#include <KUnitConversion>
|
||||||
|
@ -53,8 +54,10 @@ private:
|
||||||
QString m_location;
|
QString m_location;
|
||||||
QComboBox* m_locationbox;
|
QComboBox* m_locationbox;
|
||||||
float m_latitude;
|
float m_latitude;
|
||||||
|
QLabel* m_latitudelabel;
|
||||||
KDoubleNumInput* m_latitudeinput;
|
KDoubleNumInput* m_latitudeinput;
|
||||||
float m_longitude;
|
float m_longitude;
|
||||||
|
QLabel* m_longitudelabel;
|
||||||
KDoubleNumInput* m_longitudeinput;
|
KDoubleNumInput* m_longitudeinput;
|
||||||
QSpacerItem* m_spacer;
|
QSpacerItem* m_spacer;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue