33 #include <QMessageBox>
34 #include <QFileDialog>
41 class GatelibraryManager;
82 bool mReadOnly =
false;
91 void toggleSearchbar();
92 void handleEditAction();
93 void handleDeleteAction();
94 void handleCurrentSelectionChanged(
QModelIndex prevIndex);
96 void handleUnsavedChanges();
107 void activate(
bool readOnly =
false);
155 std::filesystem::path mPath;
void setDeleteIconStyle(const QString &s)
void setGateLibraryPath(std::filesystem::path p)
void triggerEditType(QModelIndex index)
QString searchActiveIconStyle
void handleContextMenuRequested(const QPoint &pos)
void triggerCurrentSelectionChanged(QModelIndex index, QModelIndex prevIndex)
void handleSaveAsAction()
void triggerDoubleClicked(QModelIndex index)
void setSearchActiveIconStyle(const QString &s)
void toggleReadOnlyMode(bool readOnly)
void setDeleteIconPath(const QString &s)
GatelibraryContentWidget(GatelibraryTableModel *model, QWidget *parent=nullptr)
void setEditTypeIconPath(const QString &s)
void setSearchIconStyle(const QString &s)
void triggerDeleteType(QModelIndex index)
void setDisabledIconStyle(const QString &s)
void setEnabledIconStyle(const QString &s)
void activate(bool readOnly=false)
void setAddTypeIconPath(const QString &s)
void toggleSelection(bool selected)
void setGateLibrary(GateLibrary *gl)
QString disabledIconStyle
void setSearchIconPath(const QString &s)
A model to display loaded gatelibraries.
A proxy model to filter the ContextTableModel by a given string.
A QFrame with a QLineEdit that can be used to input a substring to search for.
QObject * parent() const const