74 for (
unsigned int i = 0 ; i <
plugins_.size(); ++i ) {
75 if (
plugins_[i].plugin == sender() ) {
83 for (
unsigned int i = 0 ; i <
plugins_.size(); ++i ) {
84 if (
plugins_[i].name ==
"Scripting" ) {
93 for (
unsigned int i = 0 ; i <
toolbars_.size(); ++i ) {
94 if (
toolbars_[i]->windowTitle() == _toolbar->windowTitle() ) {
95 emit
log(
LOGERR,tr(
"slotAddToolbar: Toolbar already added to system: ") + _toolbar->windowTitle() );
101 _toolbar->setObjectName( _toolbar->windowTitle() );
107 addToolBar( _toolbar );
111 plugins_[id].toolbars.push_back( std::pair< QString,QToolBar* >( _toolbar->windowTitle() , _toolbar) );
114 if ( !
viewModes_[0]->visibleToolbars.contains( _toolbar->windowTitle() ) ){
115 viewModes_[0]->visibleToolbars << _toolbar->windowTitle();
123 for (
unsigned int i = 0 ; i <
toolbars_.size(); ++i ) {
125 if (
toolbars_[i]->windowTitle() == _name ) {
134 emit
log(
LOGERR,tr(
"getToolBar: Toolbar \"%1\" not found.").arg(_name) );
138 for (
unsigned int i = 0 ; i <
toolbars_.size(); ++i ) {
140 if (
toolbars_[i]->windowTitle() == _toolbar->windowTitle() ) {
141 std::cerr <<
"Todo : erase Toolbar from list" << std::endl;
142 removeToolBar( _toolbar );
148 emit
log(
LOGERR,tr(
"Remove Toolbar: Toolbar not found.") );
QSize defaultIconSize()
Show logger in splitter or not.
void slotAddToolbar(QToolBar *_toolbar)
Called by Plugins to add a Toolbar.
std::vector< PluginInfo > plugins_
List of all loaded plugins_.
void log(Logtype _type, QString _message)
Logg with OUT,WARN or ERR as type.
void slotRemoveToolbar(QToolBar *_toolbar)
Called by Plugins to remove a Toolbar.
std::vector< QToolBar * > toolbars_
Called by Plugins to add a Toolbar.
void getToolBar(QString _name, QToolBar *&_toolbar)
Called by Plugins to get access to specific Toolbars by name.
QVector< ViewMode * > & viewModes_
List of currently available viewModes.
QSize defaultIconSize_
Show logger in splitter or not.