kleopatra
mainwindow.cpp
Go to the documentation of this file.
52 MainWindow::MainWindow( QWidget* parent, Qt::WindowFlags flags ) : QMainWindow( parent, flags ), m_config( 0 ), m_selectedEntry( 0 )
85 QMessageBox::critical( this, i18n( "Setup Error" ), i18n( "KGpgConf could not execute gpgconf.exe.\n\nError: %1\nError Code: %2", e.message(), e.errorCode() ) );
90 QMessageBox::critical( this, i18n( "Parsing Error" ), i18n( "An error occurred while reading the current configuration.\n\nError: %1", e.message() ) );
95 QMessageBox::critical( this, i18n( "Error" ), i18n( "An error occurred while reading the current configuration.\n\nError: %1", e.message() ) );
118 m_ui.readOnlyBox->setCheckState( ( entry && entry->mutability() == ConfigEntry::NoChange ) ? Qt::Checked : Qt::Unchecked );
136 entry->setMutability( item->checkState( ReadOnlyColumn ) == Qt::Checked ? ConfigEntry::NoChange : ConfigEntry::UnspecifiedMutability );
139 m_ui.readOnlyBox->setCheckState( entry->mutability() == ConfigEntry::NoChange ? Qt::Checked : Qt::Unchecked );
155 m_selectedEntry->setMutability( state == Qt::Checked ? ConfigEntry::NoChange: ConfigEntry::UnspecifiedMutability );
194 entryItem->setCheckState( ReadOnlyColumn, entry->mutability() == ConfigEntry::NoChange ? Qt::Checked : Qt::Unchecked );
212 QMessageBox::warning( this, i18n( "Write Error" ), i18n( "Could not open file %1 for writing. You might not have the permission to write to that file.", fileName ) );
231 QMessageBox::critical( this, i18n( "Write Error" ), i18n( "Error while writing to file %1.", fileName ) );
237 saveToFile( QFileDialog::getSaveFileName( this, i18n( "Save As"), QString(), QLatin1String("*.conf") ) );
ConfigComponent * component(const QString &name) const
Definition: configuration.cpp:133
Qt::CheckState checkState(int column) const
bool remove()
bool rename(const QString &newName)
void setValueFromUiString(const QString &str)
Definition: configuration.cpp:473
void setUseBuiltInDefault(bool useDefault)
Definition: configuration.cpp:319
virtual void setData(int column, int role, const QVariant &value)
void resize(int w, int h)
ConfigGroup * group(const QString &name) const
Definition: configuration.cpp:180
Definition: configwriter.h:40
const char * name() const
void setEnabled(bool)
int count(const T &value) const
Definition: configuration.h:64
bool isEmpty() const
bool isEmpty() const
Definition: exception.h:61
void setCentralWidget(QWidget *widget)
T & first()
Definition: commands/command.h:46
Definition: configuration.h:94
void addChild(QTreeWidgetItem *child)
Definition: configreader.h:42
void setShortcut(const QKeySequence &shortcut)
Definition: exception.h:38
void setCheckState(int column, Qt::CheckState state)
void setMutability(Mutability mutability)
Definition: configuration.cpp:301
QWidget(QWidget *parent, QFlags< Qt::WindowType > f)
void setText(int column, const QString &text)
QString getSaveFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedFilter, QFlags< QFileDialog::Option > options)
StandardButton critical(QWidget *parent, const QString &title, const QString &text, QFlags< QMessageBox::StandardButton > buttons, StandardButton defaultButton)
Definition: configuration.h:129
StandardButton warning(QWidget *parent, const QString &title, const QString &text, QFlags< QMessageBox::StandardButton > buttons, StandardButton defaultButton)
typedef WindowFlags
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Definition: configuration.h:123
MainWindow(QWidget *parent=0, Qt::WindowFlags flags=0)
Definition: mainwindow.cpp:52
Definition: exception.h:49
singleShot
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.