Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
mainwindow.cpp File Reference

(1a9cdded421829d1e7c8d326e11a87af8e8fad43)

#include "mainwindow.h"
#include "batchtranslationdialog.h"
#include "errorsview.h"
#include "finddialog.h"
#include "formpreviewview.h"
#include "globals.h"
#include "messageeditor.h"
#include "messagemodel.h"
#include "phrasebookbox.h"
#include "phrasemodel.h"
#include "phraseview.h"
#include "printout.h"
#include "sourcecodeview.h"
#include "statistics.h"
#include "translatedialog.h"
#include "translationsettingsdialog.h"
#include <QAction>
#include <QApplication>
#include <QBitmap>
#include <QCloseEvent>
#include <QDebug>
#include <QDockWidget>
#include <QFile>
#include <QFileDialog>
#include <QFileInfo>
#include <QHeaderView>
#include <QInputDialog>
#include <QItemDelegate>
#include <QLabel>
#include <QLayout>
#include <QLibraryInfo>
#include <QMenu>
#include <QMenuBar>
#include <QMessageBox>
#include <QMimeData>
#include <QProcess>
#include <QRegularExpression>
#include <QScreen>
#include <QShortcut>
#include <QSettings>
#include <QSortFilterProxyModel>
#include <QStackedWidget>
#include <QStatusBar>
#include <QTextStream>
#include <QToolBar>
#include <QUrl>
#include <QWhatsThis>
#include <ctype.h>
+ Include dependency graph for mainwindow.cpp:

Go to the source code of this file.

Classes

class  ContextItemDelegate
 
class  SortedMessagesModel
 
class  SortedContextsModel
 
class  FocusWatcher
 
struct  OpenedFile
 

Enumerations

enum  Ending {
  End_None , End_FullStop , End_Interrobang , End_Colon ,
  End_Ellipsis , End_None , End_FullStop , End_Interrobang ,
  End_Colon , End_Ellipsis
}
 
enum  Ending {
  End_None , End_FullStop , End_Interrobang , End_Colon ,
  End_Ellipsis , End_None , End_FullStop , End_Interrobang ,
  End_Colon , End_Ellipsis
}
 

Functions

static bool hasFormPreview (const QString &fileName)
 
static QString leadingWhitespace (const QString &str)
 
static QString trailingWhitespace (const QString &str)
 
static Ending ending (QString str, QLocale::Language lang)
 
static const QVariantpxObsolete ()
 
static QString fileFilters (bool allFirst)
 
static bool haveMnemonic (const QString &str)
 

Variables

static QT_BEGIN_NAMESPACE const int MessageMS = 2500
 

Enumeration Type Documentation

◆ Ending [1/2]

enum Ending
Enumerator
End_None 
End_FullStop 
End_Interrobang 
End_Colon 
End_Ellipsis 
End_None 
End_FullStop 
End_Interrobang 
End_Colon 
End_Ellipsis 

Definition at line 70 of file mainwindow.cpp.

◆ Ending [2/2]

enum Ending
Enumerator
End_None 
End_FullStop 
End_Interrobang 
End_Colon 
End_Ellipsis 
End_None 
End_FullStop 
End_Interrobang 
End_Colon 
End_Ellipsis 

Definition at line 70 of file mainwindow.cpp.

Function Documentation

◆ ending()

static Ending ending ( QString str,
QLocale::Language lang )
static

Definition at line 106 of file mainwindow.cpp.

References End_Colon, End_Ellipsis, End_FullStop, End_Interrobang, and End_None.

◆ fileFilters()

static QString fileFilters ( bool allFirst)
static

Definition at line 734 of file mainwindow.cpp.

◆ hasFormPreview()

static bool hasFormPreview ( const QString & fileName)
static

Definition at line 78 of file mainwindow.cpp.

◆ haveMnemonic()

static bool haveMnemonic ( const QString & str)
static

Definition at line 2459 of file mainwindow.cpp.

◆ leadingWhitespace()

static QString leadingWhitespace ( const QString & str)
static

Definition at line 84 of file mainwindow.cpp.

◆ pxObsolete()

static const QVariant & pxObsolete ( )
static

Definition at line 176 of file mainwindow.cpp.

◆ trailingWhitespace()

static QString trailingWhitespace ( const QString & str)
static

Definition at line 95 of file mainwindow.cpp.

Variable Documentation

◆ MessageMS

static QT_BEGIN_NAMESPACE const int MessageMS = 2500
static

Definition at line 68 of file mainwindow.cpp.