Kurt Hindenburg
e02fea6e17
astyle fixes
...
use git diff -w --ignore-all-space to see non-space changes
14 years ago
Kurt Hindenburg
ad52474e0c
minor style changes - remove spaces
14 years ago
Kurt Hindenburg
bee9aa8f78
minor style fixes - remove empty lines start/end code blocks
14 years ago
Jekyll Wu
cc8cdd87c8
Move class SessionModelList into its own files
14 years ago
Jekyll Wu
c0cc298f48
Some small cleanup
14 years ago
Jekyll Wu
50668d65b0
Set the initial/preferred terminal size accroding to profile options
...
The old code always set the hardcoded 80x40 size.
Two profile options are added under the "General" group:
* TerminalColumns
* terminalRows
Note: Due to the way KMainWindow works, those profile options may not
work :(. Do not take this commit as something completed.
14 years ago
Kurt Hindenburg
5b083640ce
whitespace and style fixes
...
Use 'git diff -w --ignore-all-space' to see non-whitespace changes
14 years ago
Jekyll Wu
f2eed5bdb9
Cleanup #includes
14 years ago
Jekyll Wu
dc08f6dc37
Rename: ShouldApplyProperty2 ==> ShouldApplyProperty
14 years ago
Jekyll Wu
ace798d58d
Merge the code of SessioManager::updateSession() into another method
...
SessioManager::updateSession() is only used once by the other method. No
good reason to keep two methods.
14 years ago
Jekyll Wu
193777e21a
Split class SessionManager into ProfileMananger and SessionManager
...
REVIEW: 104425
14 years ago
Jekyll Wu
c5f0c6794d
Prefer the convenient methods for accesing profile options
14 years ago
Jekyll Wu
5a1851e361
Another trivial change
14 years ago
Jekyll Wu
33678e7ca4
Add more convenient methods for accessing profile option
14 years ago
Jekyll Wu
6511de621b
Prefer using the available convenient method for profile option
14 years ago
Jekyll Wu
683f2c9ec5
Merge Profile::HistoryModeEnum and HistorySizeDialog::HistoryMode into Enum::HistoryMode Enum
14 years ago
Kurt Hindenburg
e0862c603a
Style fixes - separte commands - remove 2 ; - align { elses
14 years ago
Kurt Hindenburg
519e2614d6
Style fixes - remove spaces before ; and add spaces in for loops
14 years ago
Jekyll Wu
25b8b5353c
Trivial style change: remove extra blank lines
14 years ago
Kurt Hindenburg
4dae2895bb
Separate the profile reader/writer to their own file
14 years ago
Jekyll Wu
f4fb943132
Most of time we only need <KLocalizedString> instead of <KLocale>
14 years ago
Jekyll Wu
dccfaf1b54
Remove one unneeded #include
14 years ago
Jekyll Wu
f42fd4721b
Clean up unneeded #includes
14 years ago
Jekyll Wu
9bfac3b509
Krazy2 fix for foreach(...)
...
Well, I don't think there is actually problem here for POD types.
Anyway, just change it to make krazy happy :)
14 years ago
Jekyll Wu
f0529c1c02
Prefer foreach(..) over iterating manually for readability
14 years ago
Jekyll Wu
13bdd4c611
Minor changes
14 years ago
Jekyll Wu
5044ebb263
SessionManager::loadProfile should return immediately with non-existing path
14 years ago
Kurt Hindenburg
0bd1927585
Select right profile name in saveFavorites()
...
Do not use "profile->name()" for retrieve profile name, but take it
from profile path.
When a profile name is changed (ex. test -> test2):
profile->path() (/home/xxxx/.../test.profile)
profile->name() (test2.profile)
Thanks to Francesco Cecconi (francesco.cecconi@gmail.com ) for patch
BUG: 292637
REVIEW: 103807
FIXED-IN: 4.9
14 years ago
Jekyll Wu
debfec2eb3
Add environment variable $KONSOLE_PROFILE_NAME
...
It records the name of the profile used in current tab/session.
FEATURE: 227296
FIXED-IN:4.9
14 years ago
Jekyll Wu
d33056c178
Rename: type ==> profile for more specific meaning
14 years ago
Jekyll Wu
6b6a5944f6
Prefer foreach(...) over while(...) for simplicity and readability
14 years ago
Kurt Hindenburg
8240973baf
Use relative paths in config file
...
konsolerc uses in 'Favorites Profiles' and 'Profile Shortcuts' the full
path. Changing this to relative path (if in a KDE location) allows
one user can copy then to another.
FIXED-IN: 4.9
BUG: 283102
REVIEW: 102749
14 years ago
Jekyll Wu
dcc57fce24
Split the exisint setDefaultProfile() methods into two methods
14 years ago
Jekyll Wu
81167d1084
Move the logic of ensuring all profiles are loaded into SessionManager itself.
...
The idea of delaying loading all profiles until needed is an internal
optimization, and should be hidden to the users of SessionManager.
14 years ago
Jekyll Wu
40f8bf736a
Rename for clarity: closeAll() ==> closeAllSessions()
14 years ago
Jekyll Wu
3d8da1f878
Make 'foreach(...)' more readable
14 years ago
Jekyll Wu
562e949b52
Remove the code for reading KDE3 profile.
...
See BKO 218655.
14 years ago
Kurt Hindenburg
fa187da0c6
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.
14 years ago
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.
15 years ago
Jekyll Wu
cf92cece2b
Remove leading white spaces in blank lines to make them really empty
15 years ago
Jekyll Wu
099a728206
Remove one FIXME which seems not a problem
15 years ago
Jekyll Wu
3f1e01802d
Move code around for better understanding
15 years ago
Jekyll Wu
7572e517e4
Add static declaration for some internal functions
15 years ago
Jekyll Wu
aaa01fd854
Remove unused #include for ShellCommand.h
15 years ago
Jekyll Wu
7ad55af1fc
Implement the "Seconds to detect silence" option from KDE3 konsole.
...
FEATURE: 195978
FIXED-IN:4.8
REVIEW:102823
15 years ago
Jekyll Wu
2b72a67faf
Rename appConfig to konsoleConfig for clarity.
15 years ago
Jekyll Wu
ae44eb4c4b
Save default-profile/favorites/shortcuts settings into disk ASAP.
...
Those settings are now synced into disk right after the
ManageProfilesDialog is closed.
BUG: 200987
FIXED-IN: 4.8
REVIEW:102781
15 years ago
Jekyll Wu
0be347a97c
Previous commit was meant to close BKO 251062. Typo.
15 years ago
Jekyll Wu
9b63c034a6
Always read/write the 'DefaultProfile' entry from/into 'konsolerc'.
...
That means the default profile is shared among konsole and all host
apps of konsole kpart. That is not ideal enough, but much better than
current inconsistent read/write for the 'DefaultProfile' entry.
BUG:251602
FIXED-IN: 4.8
15 years ago
Jekyll Wu
e5fabd05ba
Minor change on indentation.
15 years ago