#include <previewwindow.h>
Public Slots | |
void | updatePreview () |
Public Member Functions | |
PreviewWindow (QWidget *parent=0) | |
~PreviewWindow () | |
void | setWindowFlags (Qt::WindowFlags flags) |
void | lsofPopulate (std::string lsof_pid) |
Private Attributes | |
QTextEdit * | textEdit |
QPushButton * | closeButton |
QVBoxLayout * | layout |
PreviewWindow::PreviewWindow | ( | QWidget * | parent = 0 |
) |
The constructor is to initialize a preview window by placing a text-editor and close-button widgets in it.
PreviewWindow::~PreviewWindow | ( | ) |
void PreviewWindow::lsofPopulate | ( | std::string | lsof_pid | ) |
This function executes the lsof command and populates the result in an output file.
void PreviewWindow::setWindowFlags | ( | Qt::WindowFlags | flags | ) |
void PreviewWindow::updatePreview | ( | ) | [slot] |
This function sets the visibility options of the preview window. It fills the text-editor widget with contents of the file created in the lsofPopulate() function.
QPushButton* PreviewWindow::closeButton [private] |
QVBoxLayout* PreviewWindow::layout [private] |
QTextEdit* PreviewWindow::textEdit [private] |