Kurt Hindenburg
1844ae17ed
change foreach varible to a more appropiate name and avoid shadowing
9 years ago
Kurt Hindenburg
2023de8534
fix two clang warnings
...
clazy-container-anti-pattern clazy-range-loop
9 years ago
Kurt Hindenburg
e91c8d7768
Fix a few krazy/api issues
10 years ago
Kurt Hindenburg
3e8de0959a
Fix issue when edits current profile when using the builtin/fallback
...
Since we no longer ship Shell.profile, if there are no profiles and
the user edits the current profile it actually tries to change the
built-in/fallback profile. Now a new correct profile is created.
10 years ago
Kurt Hindenburg
5085c4fc45
Use QStringLiteral and QLatin1String
11 years ago
Kurt Hindenburg
8e13deabb4
Remove the last residues of Shell.profile
11 years ago
Kurt Hindenburg
f8fa47463f
Use .at(0) instead of .first() for QLists
11 years ago
Martin T. H. Sandsmark
4ec5d3092d
Fix storing of profile when no profile loaded.
...
If for some reason no profile is loaded, i. e. only the built-in
fallback default values are used, we need to create a new profile to
ensure that changes to the profile are actually persisted.
This has worked more or less by chance for most people so far, because
the default is to load the Shell.profile that is shipped with Konsole.
But if for example the konsolerc config file has an empty value for
DefaultProfile it will load the builtin fallback profile, which can't be
saved.
BUG: 342188
REVIEW: 124142
11 years ago
Montel Laurent
ffd2b2037b
Fix cmakelists.txt. Fix build after that
11 years ago
Montel Laurent
bbdc77462f
kdelibs4support--
12 years ago
Montel Laurent
0acf9a7712
Remove kdelibs4support
12 years ago
Montel Laurent
8182ac8edc
Port to QDebug
12 years ago
Michal Humpula
15d09f9161
port from KStandardDirs to QStandardPaths
...
REVIEW: 120498
12 years ago
Kurt Hindenburg
b6429eadec
port from K_GLOBAL_STATIC to Q_GLOBAL_STATIC
...
Patch by Michal Humpula michal humpula hudrydum cz
REVIEW: 120496
12 years ago
Kurt Hindenburg
1ea501da62
remove include moc from .cpp files - removes build warnings
13 years ago
Kurt Hindenburg
17de056907
English fixes to comments only
13 years ago
Kurt Hindenburg
7a2a5beb00
Correct spelling errors/word usage
...
All these are in the comments - no code changes
13 years ago
Kurt Hindenburg
983efbc5a8
Add braces around if/else for readability
13 years ago
Kurt Hindenburg
69dcbd3406
astyle fixes - spaces/{
14 years ago
Kurt Hindenburg
bee9aa8f78
minor style fixes - remove empty lines start/end code blocks
14 years ago
Jekyll Wu
c0cc298f48
Some small cleanup
14 years ago
Jekyll Wu
9c79230a75
Krazy fix: spelling error
14 years ago
Jekyll Wu
cd3804ab87
Allow each konsolepart to specify its own default profile
...
If one konsolepart does not specify that, use the default profile
specifed in stand-alone Konsole as fallback
CCMAIL: hein@kde.org
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
9348c92029
Just rename
14 years ago
Jekyll Wu
0c7db5ecdd
Make `konsole --list-profiles` return names sorted according to locale
14 years ago
Jekyll Wu
6b612d73d2
Add method "ProfileManager::availableProfileNames() const"
...
Now ViewManager::profileList() is just a simple wrapper of that method.
14 years ago
Kurt Hindenburg
2663d9c712
Allow --profile=full path to work again.
...
After 8240973baf , using full paths in
--profile didn't work. This fixes that issue.
It will save the full profile path for favorites and shortcuts if the
profile is not under the normal KDE konsole area.
CCBUG: 283102
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