Files
sqlitebrowser/src/ColumnDisplayFormatDialog.h
mgrojo 31e499d9fa Retain display formats (#1202)
The Colum Display Format Dialog recognizes now the current format in the
combo instead of falling back to Custom.

The display format items have been reorganized in groups with separators
in between. This is because the strict alphabetical order looses sense in
the translations.
2017-11-02 23:02:55 +01:00

32 lines
616 B
C++

#ifndef COLUMNDISPLAYFORMATDIALOG_H
#define COLUMNDISPLAYFORMATDIALOG_H
#include <QDialog>
#include <QString>
#include <QMap>
namespace Ui {
class ColumnDisplayFormatDialog;
}
class ColumnDisplayFormatDialog : public QDialog
{
Q_OBJECT
public:
explicit ColumnDisplayFormatDialog(const QString& colname, QString current_format, QWidget* parent = nullptr);
~ColumnDisplayFormatDialog();
QString selectedDisplayFormat() const;
private slots:
void updateSqlCode();
private:
Ui::ColumnDisplayFormatDialog* ui;
QString column_name;
QMap<QString, QString> formatFunctions;
};
#endif