forked from mercutiodesign/texmaker-3.3.3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathencodingdialog.cpp
More file actions
29 lines (25 loc) · 1.24 KB
/
encodingdialog.cpp
File metadata and controls
29 lines (25 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/***************************************************************************
* copyright : (C) 2003-2009 by Pascal Brachet *
* http://www.xm1math.net/texmaker/ *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "encodingdialog.h"
#include <QTextCodec>
EncodingDialog::EncodingDialog(QWidget *parent, const char *name)
:QDialog( parent) {
setWindowTitle("Texmaker");
setModal(true);
ui.setupUi(this);
ui.comboBoxEncoding->addItem("UTF-8");
foreach (int mib, QTextCodec::availableMibs()) {
QTextCodec *codec = QTextCodec::codecForMib(mib);
if (codec->name()!="UTF-8") ui.comboBoxEncoding->addItem(codec->name());
}
}
EncodingDialog::~EncodingDialog() {
}