PreviewWindow Class Reference

#include <previewwindow.h>

List of all members.

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


Detailed Description

This class defines a preview window that pops up when a row of the table in the main window is double clicked.


Constructor & Destructor Documentation

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 (  ) 


Member Function Documentation

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.


Member Data Documentation

QPushButton* PreviewWindow::closeButton [private]

QVBoxLayout* PreviewWindow::layout [private]

QTextEdit* PreviewWindow::textEdit [private]


The documentation for this class was generated from the following files:
Generated on Sat Apr 17 16:28:54 2010 for ProcessViewer by  doxygen 1.4.7