43 #include "rendererObjectWidget.hh" 51 RendererObjectWidget::RendererObjectWidget(QWidget *parent)
58 connect(closeButton, SIGNAL(clicked()),
this, SLOT(accept()));
61 QString iconPath = OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator();
63 closeButton->setIcon( QIcon(iconPath +
"window-close.png"));
66 textBrowserLayout->addWidget(textBrowser_);
70 connect(showShadersBox,SIGNAL(clicked()),
this,SLOT(update()));
73 void RendererObjectWidget::closeEvent(QCloseEvent *event)
80 void RendererObjectWidget::showEvent ( QShowEvent * ) {
84 void RendererObjectWidget::update()
88 textBrowser_->clear();
91 textBrowser_->insertPlainText(tr(
"Current renderer: ") + renderer->
name +
"\n");
92 textBrowser_->insertPlainText(tr(
"Description: ") + renderer->
description +
"\n");
93 textBrowser_->insertPlainText(tr(
"Version: ") + renderer->
version +
"\n" );
94 textBrowser_->insertPlainText(
"\n" );
101 textBrowser_->insertPlainText(
"Unable to get renderer!");
QString name
Name of the plugin ( requested from the plugin on load)
RenderInterface * plugin
Pointer to the loaded plugin (Already casted when loading it)
QString description
Description of the plugin ( requested from the plugin on load)
RendererInfo * active(int _id)
Get the current active renderer.
unsigned int activeExaminer()
Get the id of the examiner which got the last mouse events.
virtual QString renderObjectsInfo(bool _outputShaderInfo)
Return a qstring of the current render objects.
QString version
Version of the plugin ( requested from the plugin on load)