mirror of
https://github.com/KLayout/klayout.git
synced 2026-08-30 01:39:30 +02:00
Fixed titles of file dialogs.
This commit is contained in:
@@ -93,7 +93,7 @@ FileDialog::get_open (std::string &fp, const std::string &title)
|
||||
file_name = m_dir.absolutePath ();
|
||||
}
|
||||
|
||||
QString f = QFileDialog::getOpenFileName (QApplication::activeWindow (), QObject::tr ("Load ") + (title.empty () ? m_title : tl::to_qstring (title)), file_name, m_filters, &m_sel_filter);
|
||||
QString f = QFileDialog::getOpenFileName (QApplication::activeWindow (), (title.empty () ? m_title : tl::to_qstring (title)), file_name, m_filters, &m_sel_filter);
|
||||
|
||||
if (! f.isEmpty ()) {
|
||||
fp = tl::to_string (f);
|
||||
@@ -158,7 +158,7 @@ FileDialog::get_open (std::vector<std::string> &fp, const std::string &dir, cons
|
||||
m_dir = fi.absolutePath ();
|
||||
}
|
||||
|
||||
QStringList files = QFileDialog::getOpenFileNames (QApplication::activeWindow (), QObject::tr ("Open ") + (title.empty () ? m_title : tl::to_qstring (title)), m_dir.absolutePath (), m_filters, &m_sel_filter);
|
||||
QStringList files = QFileDialog::getOpenFileNames (QApplication::activeWindow (), (title.empty () ? m_title : tl::to_qstring (title)), m_dir.absolutePath (), m_filters, &m_sel_filter);
|
||||
|
||||
if (! files.isEmpty ()) {
|
||||
fp.clear ();
|
||||
@@ -244,7 +244,7 @@ FileDialog::get_save (std::string &fp, const std::string &title)
|
||||
file_name = m_dir.absolutePath ();
|
||||
}
|
||||
|
||||
QString f = QFileDialog::getSaveFileName (QApplication::activeWindow (), QObject::tr ("Save ") + (title.empty () ? m_title : tl::to_qstring (title)), file_name, m_filters, &m_sel_filter);
|
||||
QString f = QFileDialog::getSaveFileName (QApplication::activeWindow (), (title.empty () ? m_title : tl::to_qstring (title)), file_name, m_filters, &m_sel_filter);
|
||||
|
||||
if (! f.isEmpty ()) {
|
||||
fp = tl::to_string (f);
|
||||
|
||||
@@ -919,7 +919,7 @@ LayoutViewConfigPage5::browse_clicked ()
|
||||
{
|
||||
std::string fn = tl::to_string (mp_ui->lyp_file_le->text ());
|
||||
lay::FileDialog file_dialog (this,
|
||||
tl::to_string (QObject::tr ("Layer Properties File")),
|
||||
tl::to_string (QObject::tr ("Select Layer Properties File")),
|
||||
tl::to_string (QObject::tr ("Layer properties files (*.lyp);;All files (*)")),
|
||||
"lyp");
|
||||
|
||||
|
||||
@@ -449,7 +449,7 @@ BEGIN_PROTECTED
|
||||
#endif
|
||||
|
||||
// prepare and open the file dialog
|
||||
lay::FileDialog open_dialog (this, tl::to_string (QObject::tr ("Netlist/LVS Database File")), fmts);
|
||||
lay::FileDialog open_dialog (this, tl::to_string (QObject::tr ("Load Netlist/LVS Database File")), fmts);
|
||||
if (open_dialog.get_open (m_open_filename)) {
|
||||
|
||||
tl::log << tl::to_string (QObject::tr ("Loading file: ")) << m_open_filename;
|
||||
|
||||
@@ -371,7 +371,7 @@ BEGIN_PROTECTED
|
||||
if (rdb) {
|
||||
|
||||
// prepare and open the file dialog
|
||||
lay::FileDialog save_dialog (this, tl::to_string (QObject::tr ("Marker Database File")), "KLayout RDB files (*.lyrdb)");
|
||||
lay::FileDialog save_dialog (this, tl::to_string (QObject::tr ("Save Marker Database File")), "KLayout RDB files (*.lyrdb)");
|
||||
std::string fn (rdb->filename ());
|
||||
if (save_dialog.get_save (fn)) {
|
||||
|
||||
@@ -418,7 +418,7 @@ BEGIN_PROTECTED
|
||||
}
|
||||
|
||||
// prepare and open the file dialog
|
||||
lay::FileDialog open_dialog (this, tl::to_string (QObject::tr ("Marker Database File")), fmts);
|
||||
lay::FileDialog open_dialog (this, tl::to_string (QObject::tr ("Load Marker Database File")), fmts);
|
||||
if (open_dialog.get_open (m_open_filename)) {
|
||||
|
||||
std::auto_ptr <rdb::Database> db (new rdb::Database ());
|
||||
|
||||
Reference in New Issue
Block a user