Konsole
ManageProfilesDialog.cpp
Go to the documentation of this file.
60 _ui->sessionTable->setItemDelegateForColumn(FavoriteStatusColumn, new FavoriteItemDelegate(this));
62 _ui->sessionTable->setEditTriggers(_ui->sessionTable->editTriggers() | QAbstractItemView::SelectedClicked);
174 void ManageProfilesDialog::updateItemsForProfile(const Profile::Ptr profile, QList<QStandardItem*>& items) const
218 _sessionModel->setHorizontalHeaderLabels(QStringList() << i18nc("@title:column Profile label", "Name")
333 Profile::Ptr newProfile = Profile::Ptr(new Profile(ProfileManager::instance()->fallbackProfile()));
335 newProfile->setProperty(Profile::Name, i18nc("@item This will be used as part of the file name", "New Profile"));
359 if (profile->name() == terminal->sessionController()->profileDialogPointer()->lookupProfile()->name()
445 void StyledBackgroundPainter::drawBackground(QPainter* painter, const QStyleOptionViewItem& option,
448 const QStyleOptionViewItemV3* v3option = qstyleoption_cast<const QStyleOptionViewItemV3*>(&option);
460 void FavoriteItemDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const
521 QWidget* ShortcutItemDelegate::createEditor(QWidget* aParent, const QStyleOptionViewItem&, const QModelIndex& index) const
530 connect(editor, SIGNAL(keySequenceChanged(QKeySequence)), this, SLOT(editorModified(QKeySequence)));
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
static SessionManager * instance()
Returns the session manager instance.
Definition: SessionManager.cpp:69
Represents a terminal session consisting of a pseudo-teletype and a terminal emulation.
Definition: Session.h:78
Type type() const
iterator insert(const Key &key, const T &value)
void setIcon(const QIcon &icon)
ManageProfilesDialog(QWidget *parent=0)
Constructs a new profile type with the specified parent.
Definition: ManageProfilesDialog.cpp:43
Manages profiles which specify various settings for terminal sessions and their displays.
Definition: ProfileManager.h:48
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: ManageProfilesDialog.cpp:534
void setDefaultProfile(Profile::Ptr profile)
Sets the profile as the default profile for creating new sessions.
Definition: ProfileManager.cpp:415
virtual void initStyleOption(QStyleOptionViewItem *option, const QModelIndex &index) const
void clear()
QObject * sender() const
void setShortcutEditorVisible(bool visible)
Specifies whether the shortcut editor should be show.
Definition: ManageProfilesDialog.cpp:441
bool removeRow(int row, const QModelIndex &parent)
virtual void showEvent(QShowEvent *event)
Definition: ManageProfilesDialog.cpp:95
Index of profile in the File Menu WARNING: this is currently an internal field, which is expected to ...
Definition: Profile.h:248
T value() const
void setHorizontalHeaderLabels(const QStringList &labels)
T * data() const
QSet< Profile::Ptr > findFavorites()
Returns the set of the user's favorite profiles.
Definition: ProfileManager.cpp:436
const_iterator insert(const T &value)
virtual ~ManageProfilesDialog()
Definition: ManageProfilesDialog.cpp:116
void updateValues()
Updates the property values in this ProfileGroup to match those from the group's profiles() ...
Definition: Profile.cpp:335
Represents a terminal set-up which can be used to set the initial state of new terminal sessions or a...
Definition: Profile.h:60
QList< TerminalDisplay * > views() const
Returns the views connected to this session.
Definition: Session.cpp:303
QString text() const
friend class ShortcutItemDelegate
Definition: ManageProfilesDialog.h:55
virtual bool setData(const QModelIndex &index, const QVariant &value, int role)
bool bold() const
A dialog which allows the user to edit a profile.
Definition: EditProfileDialog.h:61
ShortcutItemDelegate(QObject *parent=0)
Definition: ManageProfilesDialog.cpp:492
Profile::Ptr defaultProfile() const
Returns a Profile object describing the default profile.
Definition: ProfileManager.cpp:308
void setBold(bool enable)
(QString) The untranslated name of this profile.
Definition: Profile.h:85
EditProfileDialog * profileDialogPointer()
Definition: SessionController.cpp:799
QList< Profile::Ptr > allProfiles()
Returns a list of all available profiles.
Definition: ProfileManager.cpp:296
friend class FavoriteItemDelegate
Definition: ManageProfilesDialog.h:54
static ProfileManager * instance()
Returns the profile manager instance.
Definition: ProfileManager.cpp:114
QKeySequence fromString(const QString &str, SequenceFormat format)
static void drawBackground(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index)
Definition: ManageProfilesDialog.cpp:445
bool deleteProfile(Profile::Ptr profile)
Deletes the configuration file used to store a profile.
Definition: ProfileManager.cpp:379
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: ManageProfilesDialog.cpp:460
SessionController * sessionController()
Definition: TerminalDisplay.cpp:3235
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
QModelIndexList selectedIndexes() const
QModelIndexList selectedRows(int column) const
virtual QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: ManageProfilesDialog.cpp:521
void closeEditor(QWidget *editor, QAbstractItemDelegate::EndEditHint hint)
void insertRow(int row, const QList< QStandardItem * > &items)
A composite profile which allows a group of profiles to be treated as one.
Definition: Profile.h:599
void paint(QPainter *painter, const QRect &rect, QFlags< Qt::AlignmentFlag > alignment, Mode mode, State state) const
void setFont(const QFont &font)
virtual bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index)
Definition: ManageProfilesDialog.cpp:478
void sortProfiles(QList< Profile::Ptr > &list)
Definition: ProfileManager.cpp:230
QStandardItem * item(int row, int column) const
QKeySequence shortcut(Profile::Ptr profile) const
Returns the shortcut associated with a particular profile.
Definition: ProfileManager.cpp:622
QVariant fromValue(const T &value)
bool contains(const T &value) const
const Profile::Ptr lookupProfile() const
Definition: EditProfileDialog.cpp:197
QList< QStandardItem * > takeRow(int row)
QFont font() const
virtual void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
Definition: ManageProfilesDialog.cpp:507
void setShortcut(Profile::Ptr profile, const QKeySequence &shortcut)
Associates a shortcut with a particular profile.
Definition: ProfileManager.cpp:514
void changeProfile(Profile::Ptr profile, QHash< Profile::Property, QVariant > propertyMap, bool persistent=true)
Updates a profile with the changes specified in propertyMap.
Definition: ProfileManager.cpp:330
bool remove(const T &value)
QString toString(SequenceFormat format) const
QVariant data(int role) const
QStyle * style()
virtual int rowCount(const QModelIndex &parent) const
bool isWritable() const
int column() const
int column() const
virtual void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const =0
virtual bool setData(const QModelIndex &index, const QVariant &value, int role)
void commitData(QWidget *editor)
void addProfile(Profile::Ptr type)
Registers a new type of session.
Definition: ProfileManager.cpp:369
void setFavorite(Profile::Ptr profile, bool favorite)
Specifies whether a profile should be included in the user's list of favorite profiles.
Definition: ProfileManager.cpp:442
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
A widget which displays output from a terminal emulation and sends input keypresses and mouse activit...
Definition: TerminalDisplay.h:63
QString toString() const
void appendRow(const QList< QStandardItem * > &items)
virtual QVariant data(int role) const
FavoriteItemDelegate(QObject *parent=0)
Definition: ManageProfilesDialog.cpp:456
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.