Back to index

texmacs  1.0.7.15
Functions
QTMFileDialog.cpp File Reference
#include "QTMFileDialog.hpp"
#include <QPainter>
#include <QLineEdit>
#include <QIntValidator>
#include <QMimeData>
#include <QUrl>
#include <QDrag>
#include <QDragEnterEvent>
#include <QDragLeaveEvent>
#include <QDropEvent>
#include "file.hpp"
#include "sys_utils.hpp"
#include "qt_utilities.hpp"
#include "analyze.hpp"
#include "dictionary.hpp"
#include "image_files.hpp"

Go to the source code of this file.

Functions

static QWidget * simple_input (string s, QLineEdit *ledit, QWidget *parent=0)

Function Documentation

static QWidget* simple_input ( string  s,
QLineEdit *  ledit,
QWidget *  parent = 0 
) [static]

Definition at line 74 of file QTMFileDialog.cpp.

                                                              {
  QWidget* widget= new QWidget (parent);
  QHBoxLayout* layout= new QHBoxLayout (widget);
  layout->setContentsMargins (0, 0, 0, 0);
//  string in_lan= get_input_language ();
//  string out_lan= get_output_language ();
//  QLabel* label= new QLabel (to_qstring (tm_var_encode (translate (s, in_lan, out_lan))), parent);
  QLabel* label= new QLabel (to_qstring (qt_translate (s)), parent);
  layout->addWidget (label);
  layout->addWidget (ledit);
  widget->setLayout (layout);
  return widget;
}

Here is the call graph for this function:

Here is the caller graph for this function: