Commit Graph

153 Commits

Author SHA1 Message Date
Jekyll Wu
3191cd00b4 Ensure the dbus method profileList() will list all profiles 2012-01-16 13:17:01 +08:00
Jekyll Wu
c6bb999066 Less explict call of session->run() 2012-01-15 22:34:56 +08:00
Jekyll Wu
3d8da1f878 Make 'foreach(...)' more readable 2012-01-14 22:54:56 +08:00
Kurt Hindenburg
1baa56feda White space changes - astyle and Qt normalize don't like each other.
Use 'git diff -w --ignore-all-space' to see non-whitespace changes.
2011-12-25 13:13:55 -05:00
Kurt Hindenburg
59db5e74d2 Apply astyle-kdelibs
Over the years, the coding style is all over the place.

Use 'git diff -w --ignore-all-space' to see non-whitespace changes.
2011-12-24 11:41:55 -05:00
Kurt Hindenburg
bc087ae51b Remove unused KDebug includes 2011-12-18 00:01:32 -05:00
Jekyll Wu
b95f9443a0 Trivial change on #include 2011-11-16 13:31:24 +08:00
Jekyll Wu
ba3e2b4448 Use the bracket form for including konsoleadaptor.h
I'm not sure which form is the right one, but at least it should be
consistent.
2011-11-15 02:19:43 +08:00
Jekyll Wu
125e2c7bd2 Declare pointer and reference in a consistent way
Most code use the "const QString& text" form, instead of the "const
QString &text" form. So change the minority to be consistent with
the majority.
2011-11-06 06:13:28 +08:00
Jekyll Wu
cf92cece2b Remove leading white spaces in blank lines to make them really empty 2011-11-05 07:29:21 +08:00
Jekyll Wu
3432eaf388 Move code around and adjust whitespace 2011-11-03 18:04:13 +08:00
Jekyll Wu
e825a8e0b6 Prefer forward declaration when it is enough 2011-11-01 13:41:54 +08:00
Jekyll Wu
b485852440 use NotifyBell by default 2011-10-20 10:41:44 +08:00
Jekyll Wu
20572f6f48 Rename 'info' to 'profile' 2011-10-13 16:51:52 +08:00
Jekyll Wu
0c0bce4b55 Remove the duplicated comparison: _navigationMethod != NoNavigation 2011-10-13 16:41:40 +08:00
Jekyll Wu
15b1c1c812 Simplify the code for setting up shortcuts 2011-10-13 16:12:34 +08:00
Jekyll Wu
bed5144bab Disable 'expand/shrink-active-view' actions explicitly at first
This makes them consistent with other multiViewOnlyActions.
2011-10-13 15:41:57 +08:00
Jekyll Wu
89e7e20436 update containers only when there is only one session. 2011-10-10 19:31:17 +08:00
Jekyll Wu
da1bbbdb46 Minor change on comment and indentation. 2011-10-10 17:36:35 +08:00
Jekyll Wu
dcd042270f Remove duplicated and hardcoded callings.
Such settings about TerminalDisplay should go into applyProfileToView(),
and refers the profile for right value(if possible).
2011-10-10 17:28:40 +08:00
Jekyll Wu
b83b0c5419 Fix the inconsisten name/value between two scrollback emums.
TODO: it does not feel good to have two essentially the same enums
in two different places.
2011-10-10 17:25:41 +08:00
Jekyll Wu
2d7a67cc88 Remove memeber _terminalSizeStartup and related methods/calls.
That member was meant to control whether showing size hint on startup,
while it is actually only used to avoid showing size hint on startup.
That job can be done by a static variable within showResizeNotification()
2011-10-10 16:45:19 +08:00
Jekyll Wu
9ea9d62785 Reimplement the feature of "show/hide the size widget after resising"
This is a follow up of commit b40a006d which closees BUG 169054.
It turns out the old code already has most parts of similar logic.
So remove duplicated logic in the code.
2011-10-10 16:23:22 +08:00
Jekyll Wu
714ec30c32 Rename for consistency and clarity 2011-10-10 14:35:30 +08:00
Jekyll Wu
593186603b Make dbus method newSession(profile,directory) works as expected
BUG:222233
FIXED-IN: 4.8
2011-10-08 18:00:33 +08:00
Kurt Hindenburg
3fc7f9c147 Add some i18nc KUIT context. 2011-10-04 13:46:53 -09:00
Jekyll Wu
e3a09c9c4d Close session reliably when the session process doesn't die with SIGHUP.
BUG:241709
BUG:251566
CCBUG:254600
FIXED-IN: 4.8
REVIEW:102239
2011-10-03 12:40:04 +08:00
Jekyll Wu
59963d8b7e Change the type of TripleClickMode property from bool to enum.
Its correspoding UI in the EditProfileDialog is changed from
checkbox to combobox.

REVIEW:102742
2011-09-30 23:14:52 +08:00
Jekyll Wu
53f155d07e Delete unnecessary "#include <assert.h>". 2011-09-27 23:12:46 +08:00
Jekyll Wu
acd37f7a73 Allow users to control where the newly created tab should be placed.
CCBUG:276872
REVIEW:102685
2011-09-27 06:45:05 +08:00
Kurt Hindenburg
dfd4c14c79 Add action to jump to last tab.
Allows user to select a shortcut to jump to the far right tab.  There
is no default shortcut.

Patch by Francesco Cecconi <francesco.cecconi@gmail.com>
REVIEW: 102687
BUG: 279166
FIXED-IN: 4.8
2011-09-24 10:58:33 -04:00
Jekyll Wu
272ac9850e Include KDE headers consistently in the from of "#include <KSomething>" .
However, some KDE headers are still only available in the form of
"#include <ksomething.h>"

krun.h              ==>     KRun
kicon.h             ==>     KIcon
kdebug.h            ==>     KDebug
kshell.h            ==>     KShell
kdialog.h           ==>     KDialog
kconfig.h           ==>     KConfig
klocale.h           ==>     KLocale
kglobal.h           ==>     KGlobal
kcolorutils.h       ==>     KColorUtils
kconfiggroup.h      ==>     KConfigGroup
kdesktopfile.h      ==>     KDesktopFile
kcolorscheme.h      ==>     KColorScheme
kstandarddirs.h     ==>     KStandardDirs
ktemporaryfile.h    ==>     KTemporaryFile
klocalizedstring.h  ==>     KLocalizedString
2011-09-23 05:04:46 +08:00
Jekyll Wu
50a38c2fcb small changes with #include . 2011-09-06 08:17:41 +08:00
Jekyll Wu
f5772ab06b Enable copy action only when some text are selected.
FEATURE: 203768
FIXED-IN: 4.8
2011-08-27 01:59:18 +08:00
Jekyll Wu
0ddf722e08 Disable clear & reset actions when the secondary screen is in use.
BUG:204741
FIXED-IN: 4.8
2011-08-27 00:14:09 +08:00
Jekyll Wu
67e2181fe7 Do not set alternative shortcut for switching to prev/next tab.
It is generally a good idea to pass more keyboard actions into terminal
process, instead of intercepting them. Anyway, Uses can still define the
alternative shortcuts themselfes if they want.

BUG: 188941
FIXED-IN: 4.8
2011-08-26 16:26:15 +08:00
Jekyll Wu
fff43b2ca7 Apply the changed profile only when it is used by current view.
This fixes the regressio caused by commit e8fa53 .
2011-08-16 16:07:55 +08:00
Jekyll Wu
3ea8344c4e Fix compilation error introduced in commit 4d77f7. 2011-08-15 14:24:55 +08:00
Jekyll Wu
4d77f7a3f1 New tab will be placed to the right of the current tab.
This is a improved version, which also works well with split view.
2011-08-15 10:53:24 +08:00
Jekyll Wu
60fdf0f993 Revert "New tabs will be placed to the right of the current tab."
This is a temporary revert. Previous commit did not take split view
into account and puts new tab in weird order when used in split view.

A improved version will be commit shortly after.

This reverts commit 676df0c26e.
2011-08-15 10:44:12 +08:00
Jekyll Wu
81001aff31 call applyProfileToContainer() within createContainer().
This reduces duplication and make the code more consistent.
2011-08-15 09:25:22 +08:00
Jekyll Wu
f4b188658d Newly created container should also show new & close button.
BUG: 207213
REVIEW: 102324
2011-08-15 08:55:01 +08:00
Jekyll Wu
e8fa531709 Split ViewManager::applyProfile() into two methods.
The original method is splitted into applyProfileToView() which applies
view-specific settings to TerminalDisplay, and applyProfileToContainer()
which applies container-specific settings to ViewContainer.

This comes as preparation for fixing bug #207213.

REVIEW: 102321
2011-08-15 08:53:08 +08:00
Jekyll Wu
bfa0d696ad move some code into ViewManager::createContainer(). 2011-08-14 11:30:25 +08:00
Kurt Hindenburg
087f67e4fc Allow an image to be set as the background in the terminal.
Restore the KDE3 option to have a background image in each session.

Patch by Alexandre Becoulet <diaxen@free.fr>
BUG: 157882
FIXED-IN: 4.8
2011-08-07 18:44:16 -04:00
Kurt Hindenburg
b40a006db8 Add a checkbox to hide the size widget upon resizing window.
Re-add the KDE 3 option to show/hide the size widget when the window is
changed.

Patch is years old from Chali Ahmul M.P.U <chali.ahmul@atlas.cz>
FEATURE: 169054
FIXED-IN: 4.8
2011-07-31 20:56:16 -04:00
Kurt Hindenburg
676df0c26e New tabs will be placed to the right of the current tab.
Currently new tabs are placed at the end which is not very convenient.

Patch by Jekyll Wu <adaptee@gmail.com>
FEATURE: 276872
FIXED-IN: 4.8
2011-07-30 22:17:12 -04:00
Montel Laurent
b91f50015d Normalize signals/slots 2011-07-30 14:10:56 +02:00
Kurt Hindenburg
e8145abc84 Allow all the tab widths to be the exact title length.
This toggles between the current calculations of the tab width and just
using the full title for the tab width.
This is a dbus method which will have to do unless I can get a GUI
in before the freeze.
2011-04-23 21:18:52 -04:00
Kurt Hindenburg
48cdd11371 Add profile option to disable underlining links.
Add a configuration item that allows disabling of the underlined links
on mouse hover. The option is profile specific and defaults to the previous
behaviour where links are underlined on hover.

Patch by Amand Tihon <amand.tihon@alrj.com>

BUG: 174261
FIXED-IN: 4.7
CCMAIL: amand.tihon@alrj.com
2011-04-16 13:39:42 -04:00