10#ifndef PROFILE_DIALOG_H
11#define PROFILE_DIALOG_H
20#include <QTreeWidgetItem>
92 Ui::ProfileDialog *pd_ui_;
93 QPushButton *ok_button_;
94 QPushButton *import_button_;
95#if defined(HAVE_MINIZIP) || defined(HAVE_MINIZIPNG)
96 QPushButton *export_button_;
97 QAction *export_selected_entry_;
98 QAction *export_children_entry_;
106 QModelIndexList exportItems(
const QModelIndexList &items,
bool withChildren)
const;
110 QPersistentModelIndex moved_;
118 void finishImport(QFileInfo fi,
int skipped,
const QStringList& importedProfiles);
129 bool restoreSelected();
135 void addProfile(
const QString &name);
138#if defined(HAVE_MINIZIP) || defined(HAVE_MINIZIPNG)
144 void exportProfiles(
bool exportAllPersonalProfiles =
false,
bool withChildren =
false);
149 void importFromZip(
const QString &targetParent = QString());
154 void importFromDirectory(
const QString &targetParent = QString());
159 void newToolButtonClicked();
164 void deleteToolButtonClicked();
169 void copyToolButtonClicked();
174 void buttonBoxAccepted();
179 void buttonBoxHelpRequested();
184 void dataChanged(
const QModelIndex &);
190 void filterChanged(
const QString &text);
195 void selectionChanged();
201 void profileContextMenu(
const QPoint &pos);
207 QModelIndexList selectedProfiles();
GeometryStateDialog(QWidget *parent, Qt::WindowFlags f=Qt::Window)
Constructs a new GeometryStateDialog with the specified parent and window flags.
Definition geometry_state_dialog.h:91
void selectProfile(QString profile=QString())
Select the profile with the given name.
Definition profile_dialog.cpp:164
virtual void keyPressEvent(QKeyEvent *event) override
Handles key press events within the dialog.
Definition profile_dialog.cpp:157
QLabel * autoSwitchLimitLabel() const
Gets the auto switch limit label UI element.
Definition profile_dialog.cpp:152
ProfileDialog(QWidget *parent=Q_NULLPTR)
Constructs a ProfileDialog.
Definition profile_dialog.cpp:48
ProfileAction
Actions that can be performed on profiles.
Definition profile_dialog.h:38
@ ShowProfiles
Definition profile_dialog.h:39
@ ImportDirProfile
Definition profile_dialog.h:42
@ ExportSingleProfileWithChildren
Definition profile_dialog.h:44
@ ImportZipProfile
Definition profile_dialog.h:41
@ ExportAllProfiles
Definition profile_dialog.h:45
@ EditCurrentProfile
Definition profile_dialog.h:46
@ DeleteCurrentProfile
Definition profile_dialog.h:47
@ ExportSingleProfile
Definition profile_dialog.h:43
@ NewProfile
Definition profile_dialog.h:40
int execAction(ProfileAction profile_action)
Executes a specific profile action.
Definition profile_dialog.cpp:173
virtual ~ProfileDialog()
Destroys the ProfileDialog.
Definition profile_dialog.cpp:147
Table model that manages the full set of configuration profiles, supporting creation,...
Definition profile_model.h:273
Sort/filter proxy model for ProfileModel, supporting filtering by profile visibility (all,...
Definition profile_model.h:207
Definition packet-epl.h:22