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)));
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:67
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
void setShortcutEditorVisible(bool visible)
Specifies whether the shortcut editor should be show.
Definition: ManageProfilesDialog.cpp:441
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:252
QSet< Profile::Ptr > findFavorites()
Returns the set of the user's favorite profiles.
Definition: ProfileManager.cpp:436
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:337
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
friend class ShortcutItemDelegate
Definition: ManageProfilesDialog.h:55
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
(QString) The untranslated name of this profile.
Definition: Profile.h:85
EditProfileDialog * profileDialogPointer()
Definition: SessionController.cpp:794
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
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:3201
virtual QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: ManageProfilesDialog.cpp:521
A composite profile which allows a group of profiles to be treated as one.
Definition: Profile.h:598
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
QKeySequence shortcut(Profile::Ptr profile) const
Returns the shortcut associated with a particular profile.
Definition: ProfileManager.cpp:622
const Profile::Ptr lookupProfile() const
Definition: EditProfileDialog.cpp:197
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
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
A widget which displays output from a terminal emulation and sends input keypresses and mouse activit...
Definition: TerminalDisplay.h:63
FavoriteItemDelegate(QObject *parent=0)
Definition: ManageProfilesDialog.cpp:456
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
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.