• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

Konsole

  • sources
  • kde-4.12
  • applications
  • konsole
  • src
Profile.cpp
Go to the documentation of this file.
1 /*
2  This source file is part of Konsole, a terminal emulator.
3 
4  Copyright 2006-2008 by Robert Knight <robertknight@gmail.com>
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  02110-1301 USA.
20 */
21 
22 // Own
23 #include "Profile.h"
24 
25 // Qt
26 #include <QtCore/QTextCodec>
27 
28 // KDE
29 #include <KGlobalSettings>
30 #include <KLocalizedString>
31 
32 // Konsole
33 #include "Enumeration.h"
34 
35 using namespace Konsole;
36 
37 // mappings between property enum values and names
38 //
39 // multiple names are defined for some property values,
40 // in these cases, the "proper" string name comes first,
41 // as that is used when reading/writing profiles from/to disk
42 //
43 // the other names are usually shorter versions for convenience
44 // when parsing konsoleprofile commands
45 static const char GENERAL_GROUP[] = "General";
46 static const char KEYBOARD_GROUP[] = "Keyboard";
47 static const char APPEARANCE_GROUP[] = "Appearance";
48 static const char SCROLLING_GROUP[] = "Scrolling";
49 static const char TERMINAL_GROUP[] = "Terminal Features";
50 static const char CURSOR_GROUP[] = "Cursor Options";
51 static const char INTERACTION_GROUP[] = "Interaction Options";
52 static const char ENCODING_GROUP[] = "Encoding Options";
53 
54 const Profile::PropertyInfo Profile::DefaultPropertyNames[] = {
55  // General
56  { Path , "Path" , 0 , QVariant::String }
57  , { Name , "Name" , GENERAL_GROUP , QVariant::String }
58  , { UntranslatedName, "UntranslatedName" , 0 , QVariant::String }
59  , { Icon , "Icon" , GENERAL_GROUP , QVariant::String }
60  , { Command , "Command" , 0 , QVariant::String }
61  , { Arguments , "Arguments" , 0 , QVariant::StringList }
62  , { MenuIndex, "MenuIndex" , 0, QVariant::String }
63  , { Environment , "Environment" , GENERAL_GROUP , QVariant::StringList }
64  , { Directory , "Directory" , GENERAL_GROUP , QVariant::String }
65  , { LocalTabTitleFormat , "LocalTabTitleFormat" , GENERAL_GROUP , QVariant::String }
66  , { LocalTabTitleFormat , "tabtitle" , 0 , QVariant::String }
67  , { RemoteTabTitleFormat , "RemoteTabTitleFormat" , GENERAL_GROUP , QVariant::String }
68  , { ShowTerminalSizeHint , "ShowTerminalSizeHint" , GENERAL_GROUP , QVariant::Bool }
69  , { SaveGeometryOnExit , "SaveGeometryOnExit" , GENERAL_GROUP , QVariant::Bool }
70  , { StartInCurrentSessionDir , "StartInCurrentSessionDir" , GENERAL_GROUP , QVariant::Bool }
71  , { SilenceSeconds, "SilenceSeconds" , GENERAL_GROUP , QVariant::Int }
72  , { TerminalColumns, "TerminalColumns" , GENERAL_GROUP , QVariant::Int }
73  , { TerminalRows, "TerminalRows" , GENERAL_GROUP , QVariant::Int }
74 
75  // Appearance
76  , { Font , "Font" , APPEARANCE_GROUP , QVariant::Font }
77  , { ColorScheme , "ColorScheme" , APPEARANCE_GROUP , QVariant::String }
78  , { ColorScheme , "colors" , 0 , QVariant::String }
79  , { AntiAliasFonts, "AntiAliasFonts" , APPEARANCE_GROUP , QVariant::Bool }
80  , { BoldIntense, "BoldIntense", APPEARANCE_GROUP, QVariant::Bool }
81  , { LineSpacing , "LineSpacing" , APPEARANCE_GROUP , QVariant::Int }
82 
83  // Keyboard
84  , { KeyBindings , "KeyBindings" , KEYBOARD_GROUP , QVariant::String }
85 
86  // Scrolling
87  , { HistoryMode , "HistoryMode" , SCROLLING_GROUP , QVariant::Int }
88  , { HistorySize , "HistorySize" , SCROLLING_GROUP , QVariant::Int }
89  , { ScrollBarPosition , "ScrollBarPosition" , SCROLLING_GROUP , QVariant::Int }
90  , { ScrollFullPage , "ScrollFullPage" , SCROLLING_GROUP , QVariant::Bool }
91 
92  // Terminal Features
93  , { BlinkingTextEnabled , "BlinkingTextEnabled" , TERMINAL_GROUP , QVariant::Bool }
94  , { FlowControlEnabled , "FlowControlEnabled" , TERMINAL_GROUP , QVariant::Bool }
95  , { BidiRenderingEnabled , "BidiRenderingEnabled" , TERMINAL_GROUP , QVariant::Bool }
96  , { BlinkingCursorEnabled , "BlinkingCursorEnabled" , TERMINAL_GROUP , QVariant::Bool }
97  , { BellMode , "BellMode" , TERMINAL_GROUP , QVariant::Int }
98 
99  // Cursor
100  , { UseCustomCursorColor , "UseCustomCursorColor" , CURSOR_GROUP , QVariant::Bool}
101  , { CursorShape , "CursorShape" , CURSOR_GROUP , QVariant::Int}
102  , { CustomCursorColor , "CustomCursorColor" , CURSOR_GROUP , QVariant::Color }
103 
104  // Interaction
105  , { WordCharacters , "WordCharacters" , INTERACTION_GROUP , QVariant::String }
106  , { TripleClickMode , "TripleClickMode" , INTERACTION_GROUP , QVariant::Int }
107  , { UnderlineLinksEnabled , "UnderlineLinksEnabled" , INTERACTION_GROUP , QVariant::Bool }
108  , { OpenLinksByDirectClickEnabled , "OpenLinksByDirectClickEnabled" , INTERACTION_GROUP , QVariant::Bool }
109  , { CtrlRequiredForDrag, "CtrlRequiredForDrag" , INTERACTION_GROUP , QVariant::Bool }
110  , { AutoCopySelectedText , "AutoCopySelectedText" , INTERACTION_GROUP , QVariant::Bool }
111  , { TrimTrailingSpacesInSelectedText , "TrimTrailingSpacesInSelectedText" , INTERACTION_GROUP , QVariant::Bool }
112  , { PasteFromSelectionEnabled , "PasteFromSelectionEnabled" , INTERACTION_GROUP , QVariant::Bool }
113  , { PasteFromClipboardEnabled , "PasteFromClipboardEnabled" , INTERACTION_GROUP , QVariant::Bool }
114  , { MiddleClickPasteMode, "MiddleClickPasteMode" , INTERACTION_GROUP , QVariant::Int }
115  , { MouseWheelZoomEnabled, "MouseWheelZoomEnabled", INTERACTION_GROUP, QVariant::Bool }
116 
117  // Encoding
118  , { DefaultEncoding , "DefaultEncoding" , ENCODING_GROUP , QVariant::String }
119 
120  , { (Property)0 , 0 , 0, QVariant::Invalid }
121 };
122 
123 QHash<QString, Profile::PropertyInfo> Profile::PropertyInfoByName;
124 QHash<Profile::Property, Profile::PropertyInfo> Profile::PropertyInfoByProperty;
125 
126 void Profile::fillTableWithDefaultNames()
127 {
128  static bool filledDefaults = false;
129 
130  if (filledDefaults)
131  return;
132 
133  const PropertyInfo* iter = DefaultPropertyNames;
134  while (iter->name != 0) {
135  registerProperty(*iter);
136  iter++;
137  }
138 
139  filledDefaults = true;
140 }
141 
142 FallbackProfile::FallbackProfile()
143  : Profile()
144 {
145  // Fallback settings
146  setProperty(Name, i18n("Shell"));
147  setProperty(UntranslatedName, "Shell");
148  // magic path for the fallback profile which is not a valid
149  // non-directory file name
150  setProperty(Path, "FALLBACK/");
151  setProperty(Command, qgetenv("SHELL"));
152  setProperty(Arguments, QStringList() << qgetenv("SHELL"));
153  setProperty(Icon, "utilities-terminal");
154  setProperty(Environment, QStringList() << "TERM=xterm");
155  setProperty(LocalTabTitleFormat, "%d : %n");
156  setProperty(RemoteTabTitleFormat, "(%u) %H");
157  setProperty(ShowTerminalSizeHint, true);
158  setProperty(SaveGeometryOnExit, true);
159  setProperty(StartInCurrentSessionDir, true);
160  setProperty(MenuIndex, "0");
161  setProperty(SilenceSeconds, 10);
162  setProperty(TerminalColumns, 80);
163  setProperty(TerminalRows, 40);
164  setProperty(MouseWheelZoomEnabled, true);
165 
166  setProperty(KeyBindings, "default");
167  setProperty(ColorScheme, "Linux"); //use DarkPastels when is start support blue ncurses UI properly
168  setProperty(Font, KGlobalSettings::fixedFont());
169 
170  setProperty(HistoryMode, Enum::FixedSizeHistory);
171  setProperty(HistorySize, 1000);
172  setProperty(ScrollBarPosition, Enum::ScrollBarRight);
173  setProperty(ScrollFullPage, false);
174 
175  setProperty(FlowControlEnabled, true);
176  setProperty(BlinkingTextEnabled, true);
177  setProperty(UnderlineLinksEnabled, true);
178  setProperty(OpenLinksByDirectClickEnabled, false);
179  setProperty(CtrlRequiredForDrag, true);
180  setProperty(AutoCopySelectedText, false);
181  setProperty(TrimTrailingSpacesInSelectedText, false);
182  setProperty(PasteFromSelectionEnabled, true);
183  setProperty(PasteFromClipboardEnabled, false);
184  setProperty(MiddleClickPasteMode, Enum::PasteFromX11Selection);
185  setProperty(TripleClickMode, Enum::SelectWholeLine);
186 
187  setProperty(BlinkingCursorEnabled, false);
188  setProperty(BidiRenderingEnabled, true);
189  setProperty(LineSpacing, 0);
190  setProperty(CursorShape, Enum::BlockCursor);
191  setProperty(UseCustomCursorColor, false);
192  setProperty(CustomCursorColor, Qt::black);
193  setProperty(BellMode, Enum::NotifyBell);
194 
195  setProperty(DefaultEncoding, QString(QTextCodec::codecForLocale()->name()));
196  setProperty(AntiAliasFonts, true);
197  setProperty(BoldIntense, true);
198 
199  // default taken from KDE 3
200  setProperty(WordCharacters, ":@-./_~?&=%+#");
201 
202  // Fallback should not be shown in menus
203  setHidden(true);
204 }
205 Profile::Profile(Profile::Ptr parent)
206  : _parent(parent)
207  , _hidden(false)
208 {
209 }
210 void Profile::clone(Profile::Ptr profile, bool differentOnly)
211 {
212  const PropertyInfo* properties = DefaultPropertyNames;
213  while (properties->name != 0) {
214  Property current = properties->property;
215  QVariant otherValue = profile->property<QVariant>(current);
216  switch (current) {
217  case Name:
218  case Path:
219  break;
220  default:
221  if (!differentOnly ||
222  property<QVariant>(current) != otherValue) {
223  setProperty(current, otherValue);
224  }
225  }
226  properties++;
227  }
228 }
229 Profile::~Profile()
230 {
231 }
232 bool Profile::isHidden() const
233 {
234  return _hidden;
235 }
236 void Profile::setHidden(bool hidden)
237 {
238  _hidden = hidden;
239 }
240 
241 void Profile::setParent(Profile::Ptr parent)
242 {
243  _parent = parent;
244 }
245 const Profile::Ptr Profile::parent() const
246 {
247  return _parent;
248 }
249 
250 bool Profile::isEmpty() const
251 {
252  return _propertyValues.isEmpty();
253 }
254 QHash<Profile::Property, QVariant> Profile::setProperties() const
255 {
256  return _propertyValues;
257 }
258 void Profile::setProperty(Property property , const QVariant& value)
259 {
260  _propertyValues.insert(property, value);
261 }
262 bool Profile::isPropertySet(Property property) const
263 {
264  return _propertyValues.contains(property);
265 }
266 
267 Profile::Property Profile::lookupByName(const QString& name)
268 {
269  // insert default names into table the first time this is called
270  fillTableWithDefaultNames();
271 
272  return PropertyInfoByName[name.toLower()].property;
273 }
274 
275 void Profile::registerProperty(const PropertyInfo& info)
276 {
277  PropertyInfoByName.insert(QString(info.name).toLower(), info);
278 
279  // only allow one property -> name map
280  // (multiple name -> property mappings are allowed though)
281  if (!PropertyInfoByProperty.contains(info.property))
282  PropertyInfoByProperty.insert(info.property, info);
283 }
284 
285 int Profile::menuIndexAsInt() const
286 {
287  bool ok;
288  int index = menuIndex().toInt(&ok, 10);
289  if (ok)
290  return index;
291  else
292  return 0;
293 }
294 
295 const QStringList Profile::propertiesInfoList() const
296 {
297  QStringList info;
298  const PropertyInfo* iter = DefaultPropertyNames;
299  while (iter->name != 0) {
300  info << QString(iter->name) + " : " + QString(QVariant(iter->type).typeName());
301  iter++;
302  }
303 
304  return info;
305 }
306 
307 QHash<Profile::Property, QVariant> ProfileCommandParser::parse(const QString& input)
308 {
309  QHash<Profile::Property, QVariant> changes;
310 
311  // regular expression to parse profile change requests.
312  //
313  // format: property=value;property=value ...
314  //
315  // where 'property' is a word consisting only of characters from A-Z
316  // where 'value' is any sequence of characters other than a semi-colon
317  //
318  static QRegExp regExp("([a-zA-Z]+)=([^;]+)");
319 
320  int offset = 0;
321  while (regExp.indexIn(input, offset) != -1) {
322  if (regExp.capturedTexts().count() == 3) {
323  Profile::Property property = Profile::lookupByName(
324  regExp.capturedTexts()[1]);
325  const QString value = regExp.capturedTexts()[2];
326  changes.insert(property, value);
327  }
328 
329  offset = input.indexOf(';', offset) + 1;
330  if (offset == 0)
331  break;
332  }
333 
334  return changes;
335 }
336 
337 void ProfileGroup::updateValues()
338 {
339  const PropertyInfo* properties = Profile::DefaultPropertyNames;
340  while (properties->name != 0) {
341  // the profile group does not store a value for some properties
342  // (eg. name, path) if even they are equal between profiles -
343  //
344  // the exception is when the group has only one profile in which
345  // case it behaves like a standard Profile
346  if (_profiles.count() > 1 &&
347  !canInheritProperty(properties->property)) {
348  properties++;
349  continue;
350  }
351 
352  QVariant value;
353  for (int i = 0; i < _profiles.count(); i++) {
354  QVariant profileValue = _profiles[i]->property<QVariant>(properties->property);
355  if (value.isNull())
356  value = profileValue;
357  else if (value != profileValue) {
358  value = QVariant();
359  break;
360  }
361  }
362  Profile::setProperty(properties->property, value);
363  properties++;
364  }
365 }
366 void ProfileGroup::setProperty(Property property, const QVariant& value)
367 {
368  if (_profiles.count() > 1 && !canInheritProperty(property))
369  return;
370 
371  Profile::setProperty(property, value);
372  foreach(Profile::Ptr profile, _profiles) {
373  profile->setProperty(property, value);
374  }
375 }
376 
Konsole::Profile::setParent
void setParent(Ptr parent)
Changes the parent profile.
Definition: Profile.cpp:241
Konsole::Profile::HistoryMode
(HistoryModeEnum) Specifies the storage type used for keeping the output produced by terminal session...
Definition: Profile.h:141
Konsole::Profile::DefaultEncoding
(String) Default text codec
Definition: Profile.h:225
Konsole::Profile::AntiAliasFonts
(bool) Whether fonts should be aliased or not
Definition: Profile.h:227
Konsole::Profile::ShowTerminalSizeHint
(bool) Specifies whether show hint for terminal size after resizing the application window...
Definition: Profile.h:120
APPEARANCE_GROUP
static const char APPEARANCE_GROUP[]
Definition: Profile.cpp:47
GENERAL_GROUP
static const char GENERAL_GROUP[]
Definition: Profile.cpp:45
Konsole::Profile::FlowControlEnabled
(bool) Specifies whether the flow control keys (typically Ctrl+S, Ctrl+Q) have any effect...
Definition: Profile.h:169
Konsole::Profile::CustomCursorColor
(QColor) The color used by terminal displays to draw the cursor.
Definition: Profile.h:191
CURSOR_GROUP
static const char CURSOR_GROUP[]
Definition: Profile.cpp:50
TERMINAL_GROUP
static const char TERMINAL_GROUP[]
Definition: Profile.cpp:49
Konsole::Profile::RemoteTabTitleFormat
(QString) The format used for tab titles when the session is running a remote command (eg...
Definition: Profile.h:116
Konsole::Profile::TrimTrailingSpacesInSelectedText
(bool) If true, trailing spaces are trimmed in selected text
Definition: Profile.h:213
Konsole::Profile::~Profile
virtual ~Profile()
Definition: Profile.cpp:229
Konsole::Profile::MenuIndex
Index of profile in the File Menu WARNING: this is currently an internal field, which is expected to ...
Definition: Profile.h:252
Konsole::Profile::isHidden
bool isHidden() const
Returns true if this is a 'hidden' profile which should not be displayed in menus or saved to disk...
Definition: Profile.cpp:232
Konsole::Profile::KeyBindings
(QString) The name of the key bindings.
Definition: Profile.h:135
Konsole::Profile::setHidden
void setHidden(bool hidden)
Specifies whether this is a hidden profile.
Definition: Profile.cpp:236
Konsole::Enum::PasteFromX11Selection
Paste from X11 Selection.
Definition: Enumeration.h:102
Konsole::Profile::WordCharacters
(QString) A string consisting of the characters used to delimit words when selecting text in the term...
Definition: Profile.h:195
Konsole::Enum::SelectWholeLine
Select the whole line underneath the cursor.
Definition: Enumeration.h:94
Konsole::Profile::SilenceSeconds
(int) Specifies the threshold of detected silence in seconds.
Definition: Profile.h:236
Konsole::Profile::MiddleClickPasteMode
(MiddleClickPasteModeEnum) Specifies the source from which mouse middle click pastes data...
Definition: Profile.h:223
Konsole::ProfileGroup::updateValues
void updateValues()
Updates the property values in this ProfileGroup to match those from the group's profiles() ...
Definition: Profile.cpp:337
Konsole::Profile::Font
(QFont) The font to use in terminal displays using this profile.
Definition: Profile.h:126
Konsole::Profile
Represents a terminal set-up which can be used to set the initial state of new terminal sessions or a...
Definition: Profile.h:60
Konsole::Profile::clone
void clone(Ptr profile, bool differentOnly=true)
Copies all properties except Name and Path from the specified profile into this profile.
Definition: Profile.cpp:210
Konsole::Profile::Property
Property
This enum describes the available properties which a Profile may consist of.
Definition: Profile.h:77
Konsole::Profile::PasteFromClipboardEnabled
(bool) If true, middle mouse button pastes from Clipboard
Definition: Profile.h:217
Konsole::Profile::BlinkingTextEnabled
(bool) Specifies whether text in terminal displays is allowed to blink.
Definition: Profile.h:165
Konsole::Profile::PasteFromSelectionEnabled
(bool) If true, middle mouse button pastes from X Selection
Definition: Profile.h:215
Konsole::Enum::BlockCursor
Use a solid rectangular block to draw the cursor.
Definition: Enumeration.h:82
Konsole::Profile::Command
(QString) The command to execute ( excluding arguments ) when creating a new terminal session using t...
Definition: Profile.h:93
Konsole::Profile::UseCustomCursorColor
(bool) If true, terminal displays use a fixed color to draw the cursor, specified by the CustomCursor...
Definition: Profile.h:181
Konsole::Profile::UntranslatedName
(QString) The untranslated name of this profile.
Definition: Profile.h:85
Konsole::Enum::NotifyBell
trigger system notification.
Definition: Enumeration.h:116
Konsole::Profile::BlinkingCursorEnabled
(bool) Specifies whether the cursor blinks ( in a manner similar to text editing applications ) ...
Definition: Profile.h:176
Konsole::Profile::AutoCopySelectedText
(bool) If true, automatically copy selected text into the clipboard
Definition: Profile.h:211
Konsole::Profile::StartInCurrentSessionDir
(bool) Whether new sessions should be started in the same directory as the currently active session...
Definition: Profile.h:234
INTERACTION_GROUP
static const char INTERACTION_GROUP[]
Definition: Profile.cpp:51
Konsole::Profile::UnderlineLinksEnabled
(bool) If true, text that matches a link or an email address is underlined when hovered by the mouse ...
Definition: Profile.h:205
Konsole::Profile::BoldIntense
(bool) Whether character with intense colors should be rendered in bold font or just in bright color...
Definition: Profile.h:230
SCROLLING_GROUP
static const char SCROLLING_GROUP[]
Definition: Profile.cpp:48
Konsole::Profile::ScrollFullPage
(bool) Specifies whether the PageUp/Down will scroll the full height or half height.
Definition: Profile.h:157
KEYBOARD_GROUP
static const char KEYBOARD_GROUP[]
Definition: Profile.cpp:46
Konsole::Profile::Profile
Profile(Ptr parent=Ptr())
Constructs a new profile.
Definition: Profile.cpp:205
Konsole::Profile::LineSpacing
(int) Specifies the pixels between the terminal lines.
Definition: Profile.h:172
Konsole::Profile::Arguments
(QStringList) The arguments which are passed to the program specified by the Command property when cr...
Definition: Profile.h:98
Konsole::Profile::Icon
(QString) The name of the icon associated with this profile.
Definition: Profile.h:89
Konsole::Profile::BellMode
(BellModeEnum) Specifies the behavior of bell.
Definition: Profile.h:241
Konsole::Profile::TripleClickMode
(TripleClickModeEnum) Specifies which part of current line should be selected with triple click actio...
Definition: Profile.h:201
Enumeration.h
Konsole::Profile::lookupByName
static Property lookupByName(const QString &name)
Returns the element from the Property enum associated with the specified name.
Definition: Profile.cpp:267
Konsole::Profile::name
QString name() const
Convenience method for property(Profile::Name)
Definition: Profile.h:344
Konsole::Profile::BidiRenderingEnabled
(bool) Specifies whether the terminal will enable Bidirectional text display
Definition: Profile.h:161
Konsole::Profile::isPropertySet
virtual bool isPropertySet(Property property) const
Returns true if the specified property has been set in this Profile instance.
Definition: Profile.cpp:262
Konsole::ProfileCommandParser::parse
QHash< Profile::Property, QVariant > parse(const QString &input)
Parses an input string consisting of property names and assigned values and returns a table of proper...
Definition: Profile.cpp:307
Konsole::Profile::Ptr
KSharedPtr< Profile > Ptr
Definition: Profile.h:67
Konsole::Profile::menuIndexAsInt
int menuIndexAsInt() const
Definition: Profile.cpp:285
Konsole::Profile::setProperties
virtual QHash< Property, QVariant > setProperties() const
Returns a map of the properties set in this Profile instance.
Definition: Profile.cpp:254
Konsole::Profile::HistorySize
(int) Specifies the number of lines of output to remember in terminal sessions using this profile...
Definition: Profile.h:147
Konsole::Profile::CursorShape
(CursorShapeEnum) The shape used by terminal displays to represent the cursor.
Definition: Profile.h:187
Konsole::Profile::isEmpty
bool isEmpty() const
Returns true if no properties have been set in this Profile instance.
Definition: Profile.cpp:250
Konsole::Profile::parent
const Ptr parent() const
Returns the parent profile.
Definition: Profile.cpp:245
Konsole::Profile::ScrollBarPosition
(ScrollBarPositionEnum) Specifies the position of the scroll bar in terminal displays using this prof...
Definition: Profile.h:153
ENCODING_GROUP
static const char ENCODING_GROUP[]
Definition: Profile.cpp:52
Konsole::Profile::TerminalColumns
(int) Specifies the preferred columns.
Definition: Profile.h:243
Konsole::FallbackProfile::FallbackProfile
FallbackProfile()
Definition: Profile.cpp:142
Konsole::Profile::SaveGeometryOnExit
(bool) Specifies whether the geometry information is saved when window is closed. ...
Definition: Profile.h:124
Konsole::Enum::FixedSizeHistory
A fixed number of lines of output are remembered.
Definition: Enumeration.h:46
Konsole::Profile::MouseWheelZoomEnabled
(bool) If true, mouse wheel scroll with Ctrl key pressed increases/decreases the terminal font size...
Definition: Profile.h:256
Konsole::Enum::ScrollBarRight
Show the scroll-bar on the right of the terminal display.
Definition: Enumeration.h:62
Konsole::Profile::propertiesInfoList
const QStringList propertiesInfoList() const
Return a list of all properties names and their type (for use with -p option).
Definition: Profile.cpp:295
Konsole::Profile::Path
(QString) Path to the profile's configuration file on-disk.
Definition: Profile.h:79
Konsole::Profile::LocalTabTitleFormat
(QString) The format used for tab titles when running normal commands.
Definition: Profile.h:112
Konsole::Profile::menuIndex
QString menuIndex() const
Convenience method for property(Profile::MenuIndex)
Definition: Profile.h:499
Konsole::Profile::TerminalRows
(int) Specifies the preferred rows.
Definition: Profile.h:245
Konsole::Profile::OpenLinksByDirectClickEnabled
(bool) If true, links can be opened by direct mouse click.
Definition: Profile.h:207
Konsole::Profile::setProperty
virtual void setProperty(Property property, const QVariant &value)
Sets the value of the specified property to value.
Definition: Profile.cpp:258
Konsole::Profile::Name
(QString) The descriptive name of this profile.
Definition: Profile.h:81
Profile.h
Konsole::ColorScheme
Represents a color scheme for a terminal display.
Definition: ColorScheme.h:72
Konsole::ProfileGroup::setProperty
void setProperty(Property property, const QVariant &value)
Sets the value of property in each of the group's profiles to value.
Definition: Profile.cpp:366
Konsole::Profile::CtrlRequiredForDrag
(bool) If true, control key must be pressed to click and drag selected text.
Definition: Profile.h:209
Konsole::Profile::Environment
(QStringList) Additional environment variables (in the form of NAME=VALUE pairs) which are passed to ...
Definition: Profile.h:104
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:24 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Konsole

Skip menu "Konsole"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Applications
  •   Libraries
  •     libkonq
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal