ファイルコンテンツを表示するウィジェット
More...
#include <FileViewWidget.h>
|
| FileViewWidget (QWidget *parent=nullptr) |
|
void | setTextCodec (QTextCodec *codec) |
|
void | setViewType (FileViewType type) |
|
void | setImage (const QString &mimetype, const QByteArray &ba, QString const &object_id, const QString &path) |
|
void | setText (const QList< Document::Line > *source, QMainWindow *mw, QString const &object_id, const QString &object_path) |
|
void | setText (const QByteArray &ba, QMainWindow *mw, const QString &object_id, const QString &object_path) |
|
void | setDiffMode (const TextEditorEnginePtr &editor_engine, QScrollBar *vsb, QScrollBar *hsb) |
|
int | lineHeight () const |
|
const TextEditorTheme * | theme () const |
|
void | scrollToTop () |
|
void | write (QKeyEvent *e) |
|
void | refrectScrollBar () |
|
void | move (int cur_row, int cur_col, int scr_row, int scr_col, bool auto_scroll) |
|
TextEditorView * | texteditor () |
|
const TextEditorView * | texteditor () const |
|
void | bind (QMainWindow *mw, FileDiffWidget *fdw, QScrollBar *vsb, QScrollBar *hsb, const TextEditorThemePtr &theme) |
|
void | clear () |
|
TextEditorView * | getTextEditorView () |
|
◆ X_ImageViewWidget
◆ X_TextEditorWidget
◆ FileViewWidget()
FileViewWidget::FileViewWidget |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ bind()
◆ clear()
void FileViewWidget::clear |
( |
| ) |
|
◆ getTextEditorView()
◆ lineHeight()
int FileViewWidget::lineHeight |
( |
| ) |
const |
◆ move()
void FileViewWidget::move |
( |
int |
cur_row, |
|
|
int |
cur_col, |
|
|
int |
scr_row, |
|
|
int |
scr_col, |
|
|
bool |
auto_scroll |
|
) |
| |
◆ refrectScrollBar()
void FileViewWidget::refrectScrollBar |
( |
| ) |
|
◆ scrollToTop()
void FileViewWidget::scrollToTop |
( |
| ) |
|
◆ setDiffMode()
void FileViewWidget::setDiffMode |
( |
const TextEditorEnginePtr & |
editor_engine, |
|
|
QScrollBar * |
vsb, |
|
|
QScrollBar * |
hsb |
|
) |
| |
◆ setImage()
void FileViewWidget::setImage |
( |
const QString & |
mimetype, |
|
|
const QByteArray & |
ba, |
|
|
QString const & |
object_id, |
|
|
const QString & |
path |
|
) |
| |
◆ setText() [1/2]
void FileViewWidget::setText |
( |
const QByteArray & |
ba, |
|
|
QMainWindow * |
mw, |
|
|
const QString & |
object_id, |
|
|
const QString & |
object_path |
|
) |
| |
◆ setText() [2/2]
void FileViewWidget::setText |
( |
const QList< Document::Line > * |
source, |
|
|
QMainWindow * |
mw, |
|
|
QString const & |
object_id, |
|
|
const QString & |
object_path |
|
) |
| |
◆ setTextCodec()
void FileViewWidget::setTextCodec |
( |
QTextCodec * |
codec | ) |
|
◆ setViewType()
◆ texteditor() [1/2]
◆ texteditor() [2/2]
◆ theme()
◆ write()
void FileViewWidget::write |
( |
QKeyEvent * |
e | ) |
|
◆ source_id
QString FileViewWidget::source_id |
|
private |
◆ ui_page_image
◆ ui_page_none
QWidget* FileViewWidget::ui_page_none |
|
private |
◆ ui_page_text
◆ ui_stackedWidget
QStackedWidget* FileViewWidget::ui_stackedWidget |
|
private |
◆ ui_verticalLayout
QVBoxLayout* FileViewWidget::ui_verticalLayout |
|
private |
◆ view_type
The documentation for this class was generated from the following files: