Commit Graph

173 Commits

Author SHA1 Message Date
Kurt Hindenburg
18d5231443 Add GUI to alter profile setting handling Page Up/Down
This adds the GUI to setup the page up/down scrolling to either full
or half height.

The non-GUI code was in 3cd4d2e440

FEATURE: 280637
GUI:
2013-05-18 11:02:24 -04:00
Kurt Hindenburg
417af269e5 Add option to disable ctrl+<mouse-wheel> zooming
The built-in behavior of Ctrl+<Mouse Wheel> to zoom in/out the terminal
can not be disabled. This patch adds an option to disable this
behavior. (Default to the original behavior).

Original patch by Yichao Yu yyc1992@gmail.com
I made some changes - bugs are mine as usual
REVIEW: 107281
FIXED-IN: 4.11
GUI:
2012-12-28 09:51:34 -05:00
Kurt Hindenburg
9e25784d6d A few more c style casts -> static_casts 2012-12-24 09:55:58 -05:00
Kurt Hindenburg
eaeff78f51 Add i18n context markers for tooltips 2012-12-23 21:26:11 -05:00
Kurt Hindenburg
cdf2b2bc78 Switch from c-style casting to c++ casting via static_cast 2012-12-19 21:20:18 -05:00
Jekyll Wu
6bf21efc99 <kcodecaction.h> ==> <KCodecAction> 2012-11-17 15:01:47 +08:00
Jekyll Wu
1751840e5e Make keytab description non-editable in the keyboard tab
Note, this doesn't mean the description can't be edited. It just can't
be changed in that UI.

Thanks to Yichao Yu for the spotting and the patch.

REVIEW: 107289
2012-11-14 12:06:44 +08:00
Kurt Hindenburg
ca9dd11bf5 Allow option to trim spaces at end of line
In the ongoing issue with spaces at the end of lines, this allows for
an option to trim the spaces.  By default, it is disabled so only
people who need this will be affected.

Many thanks to David Smid <david@smidovi.eu>

CCBUG: 188528
2012-09-09 19:10:41 -04:00
Jekyll Wu
131091c983 Adjust including form for some Qt headers as preparation for Qt5
So if someone notices later some Qt header is included in the form
of "#include <Class>" instead of the more common form of "#include
<Module/Class>", do not rush changing it.

REVIEW: 105819
2012-08-14 17:32:06 +08:00
Kurt Hindenburg
52a1d835a3 Allow font size to a be double (1 digit) instead of an integer.
A previous commit make the font size an integer.  Per Christoph Feck
there are valid reasons to allow x.y font sizes.  This patch restores
that ability.

An update/fix to ebc594cdf6

CCMAIL: christoph@maxiom.de
2012-08-04 16:06:01 -04:00
Kurt Hindenburg
ebc594cdf6 Use a number input instead of a slider to pick text size
This replaces the text size slider by a number input w/ arrows. The
slider is awkard to change the size.  Instead of fixing the slider, the
input arrows seem a better choice.  The KIntNumInput has a slider that
could be enabled we want to enable it.

REVIEW: 105796
2012-08-01 08:56:17 -04:00
Francesco Cecconi
6b878d167a Fix issue where new profiles are not saved correctly
Due to new code untranslatedName, the saving of the profile was not
correct.  This patch fixes that.

BUG: 303354
REVIEW: 105648
FIXED-IN: 4.9.0
2012-07-24 19:15:39 +02:00
Jekyll Wu
248f2c3cc9 Add profile option for opening URL by direct click(off by default)
Thanks to Asko Eronen<asko.eronen@gmail.com> for the idea and patch

REVIEW: 105282
FEATURE:
DIGEST:
2012-07-15 01:41:13 +08:00
Kurt Hindenburg
57994c1d5d Provide GUI to change line spacing
This provides a profile GUI to change the line spacing  (0-5).  Due to
the Qt4.8/BIDI issues, allowing the user to  change the spacing allows
the user to fix any issues w/ the font they are using.

FEATURE: 279490
REVIEW: 105478
FIXED-IN: 4.10
2012-07-10 10:41:38 -04:00
Kurt Hindenburg
ed31a8b0aa Provde a GUI option to disable requiring CTRL to dnd text
This adds a GUI checkbox per profile to enable/disable requiring the
CTRL key to drag-n-drop text.
The default is to require the CTRL key as before.

Thanks to Scott Kitterman (kde@kitterman.com) for patch.

BUG: 165923
REVIEW: 105423
FIXED-IN: 4.10
2012-07-06 16:37:27 -04:00
Kurt Hindenburg
c9e2b4a094 escape the \ so it is displayed in the test font text 2012-05-13 12:59:16 -04:00
Kurt Hindenburg
bee9aa8f78 minor style fixes - remove empty lines start/end code blocks 2012-05-13 10:08:05 -04:00
Kurt Hindenburg
9f5877bdfc minor whitespace style changes 2012-05-13 08:51:27 -04:00
Jekyll Wu
e6ba69b36a UI string: Edit Font ==> Select Font
It feels strange and misleading to use "Edit". Clearly konsole won't
modify the listed fonts.
2012-05-08 04:27:57 +08:00
Jekyll Wu
b1b7f65146 Fix my stupid spelling error 2012-05-08 04:04:55 +08:00
Jekyll Wu
89a17cba37 Use customized caption "Select Fixed With Font" for the KFontDialog
The idea is to give users better hint that Konsole requires fixed-width font,
so only valid fixed-width fonts are listed. That should help reducing the
common question: "Why font <xyz> is not listed in konsole?"
2012-05-08 03:54:16 +08:00
Jekyll Wu
bb818010b4 Add two profile options for the copy & paste behavior of mouse
* support "automatially copy selected text into clipboard"
  * mouse middle button can be customized to paste from selectio or
    clipboard

The first feature might look like a unnecessary duplicate of the
"synchronize selection and clipboard" feature of Klipper. However, that
klipper feature is generally problematic, while doing it only in Konsole
is generally useful and harmless.

FEATURE: 183490
FIXED-IN: 4.9.0
REVIEW: 103861
DIGEST:
2012-04-25 12:55:38 +08:00
Kurt Hindenburg
ba34c4ebe2 normalize SIGNALS
It is annoying that kdelibs-style and Qt normalize conflict
2012-04-06 08:57:47 -04:00
Kurt Hindenburg
5b083640ce whitespace and style fixes
Use 'git diff -w --ignore-all-space' to see non-whitespace changes
2012-04-05 11:08:53 -04:00
Jekyll Wu
d51fe86819 QList<String> ==> QStringList 2012-04-05 04:32:02 +08:00
Jekyll Wu
193777e21a Split class SessionManager into ProfileMananger and SessionManager
REVIEW: 104425
2012-03-30 01:23:28 +08:00
Jekyll Wu
af51e0ffcb Refacotr tab format related UI components into RenameTabWidget
This make EditProfileDialog and RenameTabsDialog reuse the same
widget, instead of duplicating each other in its own code or .ui file.
RenameTabsDialog is now just a simple container of RenameTabWidget
2012-03-26 21:14:02 +08:00
Jekyll Wu
c5f0c6794d Prefer the convenient methods for accesing profile options 2012-03-21 06:08:23 +08:00
Jekyll Wu
5c28f79f0e Revert "Rename: defaultTranslator ==> fallbackTranslator"
I was stupid

This reverts commit 912e52b12a.
2012-03-21 03:41:06 +08:00
Jekyll Wu
912e52b12a Rename: defaultTranslator ==> fallbackTranslator
It is really not the default. Maybe a separate class FallbackTranslator
should be created, just like FallbackProfile.
2012-03-21 03:15:02 +08:00
Jekyll Wu
6d43f0ca77 Refacotr history size related UI components into HistorySizeWidget
This make EditProfileDialog and HistorySizeDialog reuse the same
widget, instead of duplicating each other in its own code or .ui file.
HistorySizeDialog is now just a simple container of HistorySizeWidget
2012-03-21 00:49:24 +08:00
Jekyll Wu
562ee87e51 Trivial style change 2012-03-19 18:44:06 +08:00
Jekyll Wu
33678e7ca4 Add more convenient methods for accessing profile option 2012-03-19 18:29:44 +08:00
Jekyll Wu
6511de621b Prefer using the available convenient method for profile option 2012-03-19 17:31:11 +08:00
Jekyll Wu
d1a1b11762 Merge Profile::ScrollBarPositionEnum and TerminalDisplay::ScrollBarPosition into Enum::ScrollBarPositionEnum 2012-03-19 16:08:42 +08:00
Jekyll Wu
683f2c9ec5 Merge Profile::HistoryModeEnum and HistorySizeDialog::HistoryMode into Enum::HistoryMode Enum 2012-03-19 16:07:27 +08:00
Kurt Hindenburg
e0862c603a Style fixes - separte commands - remove 2 ; - align { elses 2012-03-18 15:57:48 -04:00
Kurt Hindenburg
519e2614d6 Style fixes - remove spaces before ; and add spaces in for loops 2012-03-18 15:11:06 -04:00
Jekyll Wu
9433cc1394 Change TabTitleFormatAction(a QAction) into TabTitleFormatButton(a QPushButton)
This reduces:

   * The duplicated code for setting up that push button
   * The duplicate entries in ui files for the Text and ToolTip

Note: there are still quite some duplicate between RenameTabsDialog and
EditProfileDialog. Maybe it is good idea to create a customized widget
EditTabTitleWidget to reduce the duplicate
2012-03-18 21:59:16 +08:00
Jekyll Wu
16a470abe5 Split class KeyboardTranslatorManager into its own files 2012-03-18 15:14:10 +08:00
Jekyll Wu
25b8b5353c Trivial style change: remove extra blank lines 2012-03-17 19:53:21 +08:00
Jekyll Wu
42665e7908 Remove the per-profile option "AllowProgramsToResizeWindow"
* It never works in KDE4
  * It is never revealed to users in KDE4
  * It is better to be a global and konsole-only option; does it make
    sense for a konsolepart to resize itself?
2012-03-17 18:38:22 +08:00
Kurt Hindenburg
0134376e71 -Wshadow fixes to parameter names and variable names 2012-03-05 23:39:52 -05:00
Jekyll Wu
2f7a0965f5 Move class ColorSchemeMananger into its own file
class KDE3ColorSchemeReader is also moved since it is supposed to an
compatibility helpr of which class ColorScheme does not need to know,
and eventualy it should be removed
2012-02-29 22:31:56 +08:00
Jekyll Wu
ef62a0002b Move TerminalDisplay::HAVE_TRANSPARNCEY into its own dedicated class
TerminalDisplay.h is a big header. It is not good for several files to
include that big header only in order to use one of its static member.
2012-02-25 21:10:09 +08:00
Jekyll Wu
7412150341 Use KMessageWidget in place of the home made Konsole::WarningBox
The WarningBox.cpp is not deleted at the moment, in case using
KMessageWidget turns out to be problematic .

Note: the miminal requirement for kdelibs is increased to 4.7.0
due to using KMessageWidget.

REVIEW: 104053
2012-02-25 00:43:59 +08:00
Jekyll Wu
85433dc26a Rename: info ==> profile 2012-02-23 21:11:28 +08:00
Jekyll Wu
f42fd4721b Clean up unneeded #includes 2012-02-20 19:41:38 +08:00
Jekyll Wu
f0529c1c02 Prefer foreach(..) over iterating manually for readability 2012-02-13 21:28:48 +08:00
Jekyll Wu
6b6a5944f6 Prefer foreach(...) over while(...) for simplicity and readability 2012-01-22 10:21:45 +08:00