Commit Graph

113 Commits

Author SHA1 Message Date
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
c81b292c91 Krazy fix: QTabBar => KTabBar 2012-04-04 02:21:04 +08:00
Jekyll Wu
ee26801157 Refactor the code for setting up the layout of the tabbed ViewContainer
The refactor is simple and stupid. The important thing is reducing
duplicated logic
2012-04-02 19:47:49 +08:00
Jekyll Wu
22ac363c2d More constness 2012-03-21 01:56:05 +08: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
663e342aa8 Krazy fix: add the missing KUIT context marker 2012-03-18 22:57:32 +08:00
Jekyll Wu
5ebbba6efb Rename for clarity and consitency 2012-03-16 20:21:39 +08:00
Jekyll Wu
3bf91d969e Remove unused #include 2012-03-16 01:36:50 +08:00
Jekyll Wu
b379b9e155 Simple refactor of method TabbedViewContainer::openTabContextMenu() 2012-03-12 17:49:38 +08:00
Jekyll Wu
ef9599d792 Add separator between 'Raname' and 'Close' in the context menu of tabbar 2012-03-12 16:29:32 +08:00
Kurt Hindenburg
c272fb2c15 Remove krazy lines 2012-03-08 23:16:44 -05:00
Jekyll Wu
f4fb943132 Most of time we only need <KLocalizedString> instead of <KLocale> 2012-03-07 06:48:26 +08:00
Jekyll Wu
1db211ef0c Add tooltip for the quick buttons on the tabbar
Well, maybe this is more helpful than annoying for Konsole users.
2012-02-21 20:05:23 +08:00
Jekyll Wu
c6826ebdc3 Forward declaration 2012-02-20 20:11:25 +08:00
Jekyll Wu
f42fd4721b Clean up unneeded #includes 2012-02-20 19:41:38 +08:00
Jekyll Wu
bd4a77ed0b Move codes setting basic property of tabbar into its constructor 2012-02-20 04:39:32 +08:00
Jekyll Wu
bebb3ad895 Remove unneeded interal class TabbedViewContainerLayout
That internal class was used to workaround the problem that
QBoxLayout::insertItem() is a protected method. Since the current codo
does not use that method any more, no need to keep and use that internal
class anymore. Just use QVboxLayout directly.
2012-02-20 02:57:40 +08:00
Jekyll Wu
1f796f8358 Remove/Comment out currently unused #includes 2012-02-19 06:08:43 +08:00
Jekyll Wu
a93a2670bf Add missing "#include <KIcon>" 2012-02-19 06:03:43 +08:00
Jekyll Wu
af325e2942 Add missing icon for the 'Rename Tab...' action in context menu 2012-02-11 17:56:15 +08:00
Jekyll Wu
6b6a5944f6 Prefer foreach(...) over while(...) for simplicity and readability 2012-01-22 10:21:45 +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
f8ed7666c3 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:40:38 -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
e9e729074b Remove unnecessary '#include <QtGUI/QLineEdit' 2011-11-14 03:42:09 +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
8c6e41c607 Refactor the visibility change of new & close buttons into an separate method. 2011-09-27 09:59:42 +08:00
Jekyll Wu
8217a32718 Re-organize the code within the TabbedViewContainer constructor.
No functionality change. Just make it more readable.
2011-09-27 09:10:49 +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
ca7beebb0e KTabWidget is not used by konsole yet. 2011-09-06 08:23:16 +08:00
Jekyll Wu
de61d40c63 Include Qt headers in the form of "#include <Module/Class>" 2011-09-06 06:42:42 +08:00
Jekyll Wu
d11be81bf3 adjust indentation. 2011-08-14 20:10:28 +08:00
Jekyll Wu
ff1de927c2 class ProfileListWidget is not used anymore for a long time. 2011-08-10 05:27:27 +08:00
Montel Laurent
b91f50015d Normalize signals/slots 2011-07-30 14:10:56 +02:00
Kurt Hindenburg
f3c529af6d Only enable the tab popup menu 'Detach Tab' for > 1 tabs.
Currently you can Detach Tab if that tab is the only one;  that
makes no sense and has no use.
2011-07-09 22:30:29 -04: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
467fb1edcb Restore 'Close Tab' on the tab context menu and the close tabbar button.
These 2 options were disabled due to they messed up the menu texts
after the fix for bko 185466.
The close method via dbus has been disabled as it causes menu issues.

Most of patch to fix 'Close Tab' by Albert Astals Cid aacid@kde.org
BUG: 267896
CCBUG: 185466
FIXED-IN: 4.6.3
2011-04-05 11:39:48 -04:00
Kurt Hindenburg
dd9b08331f Fix a krazy issue with double-quotes. 2011-04-03 22:54:44 -04:00
Kurt Hindenburg
1d657aed8f Replace & with && for tab title.
If the tab title has & it will replace it by the shortcut symbol (_).

BUG: 267851
FIXED-IN: 4.6.2
2011-03-07 00:10:40 -05:00
Kurt Hindenburg
8641ba4268 Move the 3 Search Bar options into their own popup menu.
Opening the search bar causes the terminal width to be increased due
to the length of the three Search Bar options text.
Ideally, this should be redone using .ui file (consider looking at the
KHTMLFindBar code in kdelibs).  The Search Bar in general needs some
rework.

BUG: 211550
FIXED-IN: 4.7
2011-03-03 12:31:09 -05:00
Kurt Hindenburg
b59a51f2c9 Disable tab close methods until the issue of menu being trashed can be resolved.
CCBUG: 185466

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1217498
2011-01-27 15:26:13 +00:00
Kurt Hindenburg
6441f929a5 Recommit patch as this wasn't causing the crashes.
BUG: 240037

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1198147
2010-11-17 15:33:09 +00:00
Kurt Hindenburg
1236ba56d4 Remove previous commit as it cause a lot of crashes for apps using
Konsole Part.

CCBUG: 240037

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1194920
2010-11-10 05:19:30 +00:00
Kurt Hindenburg
f834ba132d When closing a tab, select the previously focused tab.
BUG: 240037
FIXED-IN: 4.6

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1186295
2010-10-15 17:42:49 +00:00
Kurt Hindenburg
4a4866c2ca Add tooltips for tab titles
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1186266
2010-10-15 15:23:44 +00:00
Kurt Hindenburg
49fd3291a7 Use stylesheet min/max width to handle tab width
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1172362
2010-09-07 04:17:12 +00:00