svn path=/trunk/KDE/kdebase/apps/konsole/; revision=709800
wilder-portage
Constantin Berzan 19 years ago
parent f93d2ea70d
commit 8da5867178
  1. 6
      src/ColorScheme.h
  2. 14
      src/Profile.h
  3. 8
      src/Pty.h
  4. 11
      src/Screen.h
  5. 24
      src/Session.h
  6. 10
      src/TerminalDisplay.h
  7. 5
      src/ViewManager.h

@ -113,9 +113,9 @@ public:
bool hasDarkBackground() const; bool hasDarkBackground() const;
/** /**
* Sets the opacity level of the display background. A value of * Sets the opacity level of the display background. @p opacity ranges
* 0 represents a completely transparent background, up to a value of 1 * between 0 (completely transparent background) and 1 (completely
* representing a completely opaque background. * opaque background).
* *
* Defaults to 1. * Defaults to 1.
* *

@ -86,7 +86,7 @@ public:
*/ */
Environment, Environment,
/** (QString) The initial working directory for sessions created using this profile. */ /** (QString) The initial working directory for sessions created using this profile. */
Directory, // QString Directory,
/** (QString) The format used for tab titles when running normal commands. */ /** (QString) The format used for tab titles when running normal commands. */
LocalTabTitleFormat, LocalTabTitleFormat,
@ -127,6 +127,7 @@ public:
ScrollBarPosition, ScrollBarPosition,
/** TODO Document me*/ /** TODO Document me*/
// FIXME - Is this a duplicate of WordCharacters?
SelectWordCharacters, SelectWordCharacters,
/** (bool) Specifies whether text in terminal displays is allowed to blink. */ /** (bool) Specifies whether text in terminal displays is allowed to blink. */
BlinkingTextEnabled, BlinkingTextEnabled,
@ -141,7 +142,7 @@ public:
/** (bool) Specifies whether the cursor blinks ( in a manner similar /** (bool) Specifies whether the cursor blinks ( in a manner similar
* to text editing applications ) * to text editing applications )
*/ */
BlinkingCursorEnabled, // bool BlinkingCursorEnabled,
/** (bool) If true, terminal displays use a fixed color to draw the cursor, /** (bool) If true, terminal displays use a fixed color to draw the cursor,
* specified by the CustomCursorColor property. Otherwise the cursor changes * specified by the CustomCursorColor property. Otherwise the cursor changes
@ -154,9 +155,11 @@ public:
* if the UseCustomCursorColor property is true. */ * if the UseCustomCursorColor property is true. */
CustomCursorColor, CustomCursorColor,
/** TODO Document me */ /** (QString) A string consisting of the characters used to delimit words when
* selecting text in the terminal display.
*/
// FIXME - Is this a duplicate of SelectWordCharacters? // FIXME - Is this a duplicate of SelectWordCharacters?
WordCharacters, // QString WordCharacters,
/** (TabBarPositionEnum) Position of the tab-bar relative to the terminal displays. */ /** (TabBarPositionEnum) Position of the tab-bar relative to the terminal displays. */
TabBarPosition, TabBarPosition,
@ -392,9 +395,8 @@ public:
* Returns true if the profile was successfully read or false otherwise. * Returns true if the profile was successfully read or false otherwise.
* *
* @param path Path to the profile to read * @param path Path to the profile to read
* @param profile TODO: Document me * @param profile Pointer to the Profile the settings will be read into
* @param parentProfile Receives the name of the parent profile specified in * @param parentProfile Receives the name of the parent profile specified in
* @p path. TODO: Document me
*/ */
virtual bool readProfile(const QString& path , Profile* profile , QString& parentProfile) = 0; virtual bool readProfile(const QString& path , Profile* profile , QString& parentProfile) = 0;
}; };

@ -125,7 +125,10 @@ Q_OBJECT
*/ */
int foregroundProcessGroup() const; int foregroundProcessGroup() const;
/** TODO: Document me */ /**
* Returns whether the buffer used to send data to the
* terminal process is full.
*/
bool bufferFull() const { return _bufferFull; } bool bufferFull() const { return _bufferFull; }
public slots: public slots:
@ -174,7 +177,8 @@ Q_OBJECT
void receivedData(const char* buffer, int length); void receivedData(const char* buffer, int length);
/** /**
* TODO: Document me * Emitted when the buffer used to send data to the terminal
* process becomes empty, i.e. all data has been sent.
*/ */
void bufferEmpty(); void bufferEmpty();

@ -222,10 +222,9 @@ public: // these are all `Screen' operations
/** /**
* Sets the start of the selection. * Sets the start of the selection.
* *
* @param cursor TODO: Document me
* @param column The column index of the first character in the selection. * @param column The column index of the first character in the selection.
* @param line The line index of the first character in the selection. * @param line The line index of the first character in the selection.
* @param columnmode TODO: Document me * @param columnmode True if the selection is in column mode.
*/ */
void setSelectionStart(const int column, const int line, const bool columnmode); void setSelectionStart(const int column, const int line, const bool columnmode);
@ -254,13 +253,7 @@ public: // these are all `Screen' operations
void setBusySelecting(bool busy) { sel_busy = busy; } void setBusySelecting(bool busy) { sel_busy = busy; }
/** /** Returns true if the character at (@p column, @p line) is part of the current selection. */
* Returns true if the character at (@p column, @p line) is part of the current selection.
*
* @param cursor TODO: Document me
* @param column TODO: Document me
* @param line TODO: Document me
*/
bool isSelected(const int column,const int line); bool isSelected(const int column,const int line);
/** /**

@ -132,11 +132,14 @@ public:
Emulation* emulation() const; Emulation* emulation() const;
/** /**
* TODO: Document me * Returns the environment of this session as a list of strings like
* VARIABLE=VALUE
*/ */
QStringList environment() const; QStringList environment() const;
/** /**
* TODO: Document me * Sets the environment for this session.
* @p environment should be a list of strings like
* VARIABLE=VALUE
*/ */
void setEnvironment(const QStringList& environment); void setEnvironment(const QStringList& environment);
@ -279,18 +282,21 @@ public:
/** Returns the name of the icon associated with this session. */ /** Returns the name of the icon associated with this session. */
QString iconName() const; QString iconName() const;
/** TODO: Document me */ /** Sets the text of the icon associated with this session. */
void setIconText(const QString& iconText); void setIconText(const QString& iconText);
/** TODO: Document me */ /** Returns the text of the icon associated with this session. */
QString iconText() const; QString iconText() const;
/** TODO: Document me */ /** Specifies whether a utmp entry should be created for the pty used by this session. */
void setAddToUtmp(bool); void setAddToUtmp(bool);
/** Sends the specified @p signal to the terminal process. */ /** Sends the specified @p signal to the terminal process. */
bool sendSignal(int signal); bool sendSignal(int signal);
/** TODO: Document me */ /**
* Specifies whether to close the session automatically when the terminal
* process terminates.
*/
void setAutoClose(bool b) { _autoClose = b; } void setAutoClose(bool b) { _autoClose = b; }
/** /**
@ -372,7 +378,11 @@ public slots:
*/ */
void close(); void close();
/** TODO: Document me */ /**
* Changes the session title or other customizable aspects of the terminal
* emulation display. For a list of what may be changed see the
* Emulation::titleChanged() signal.
*/
void setUserTitle( int, const QString &caption ); void setUserTitle( int, const QString &caption );
signals: signals:

@ -75,9 +75,15 @@ public:
const ColorEntry* colorTable() const; const ColorEntry* colorTable() const;
/** Sets the terminal color palette used by the display. */ /** Sets the terminal color palette used by the display. */
void setColorTable(const ColorEntry table[]); void setColorTable(const ColorEntry table[]);
/** TODO: Document me */ /**
* Sets the seed used to generate random colors for the display
* (in color schemes that support them).
*/
void setRandomSeed(uint seed); void setRandomSeed(uint seed);
/** TODO: Document me */ /**
* Returns the seed used to generate random colors for the display
* (in color schemes that support them).
*/
uint randomSeed() const; uint randomSeed() const;
/** Sets the opacity of the terminal display. */ /** Sets the opacity of the terminal display. */

@ -161,7 +161,10 @@ signals:
// 'multipleViews' - true if the manager has multiple containers or false otherwise // 'multipleViews' - true if the manager has multiple containers or false otherwise
void splitViewToggle(bool multipleViews); void splitViewToggle(bool multipleViews);
/** TODO: Document me. */ /**
* Emitted when menu bar visibility changes because a profile that requires so is
* activated.
*/
void setMenuBarVisible(bool); void setMenuBarVisible(bool);
private slots: private slots:

Loading…
Cancel
Save