50 #include "rendererObjectWidget.hh"
52 #if QT_VERSION >= 0x050000
62 RendererObjectWidget::RendererObjectWidget(QWidget *parent)
69 connect(closeButton, SIGNAL(clicked()),
this, SLOT(accept()));
72 QString iconPath = OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator();
74 closeButton->setIcon( QIcon(iconPath +
"window-close.png"));
77 textBrowserLayout->addWidget(textBrowser_);
81 connect(showShadersBox,SIGNAL(clicked()),
this,SLOT(update()));
84 void RendererObjectWidget::closeEvent(QCloseEvent *event)
91 void RendererObjectWidget::showEvent ( QShowEvent * ) {
95 void RendererObjectWidget::update()
99 textBrowser_->clear();
102 textBrowser_->insertPlainText(tr(
"Current renderer: ") + renderer->
name +
"\n");
103 textBrowser_->insertPlainText(tr(
"Description: ") + renderer->
description +
"\n");
104 textBrowser_->insertPlainText(tr(
"Version: ") + renderer->
version +
"\n" );
105 textBrowser_->insertPlainText(
"\n" );
112 textBrowser_->insertPlainText(
"Unable to get renderer!");
QString description
Description of the plugin ( requested from the plugin on load)
RendererInfo * active(int _id)
Get the current active renderer.
virtual QString renderObjectsInfo(bool _outputShaderInfo)
Return a qstring of the current render objects.
QString name
Name of the plugin ( requested from the plugin on load)
unsigned int activeExaminer()
Get the id of the examiner which got the last mouse events.
QString version
Version of the plugin ( requested from the plugin on load)
RenderInterface * plugin
Pointer to the loaded plugin (Already casted when loading it)