65 for (
unsigned int i = 0 ; i <
plugins().size(); ++i ) {
66 if (
plugins()[i].plugin == sender() ) {
74 for (
unsigned int i = 0 ; i <
plugins().size(); ++i ) {
75 if (
plugins()[i].name ==
"Scripting" ) {
84 for (
unsigned int i = 0 ; i <
toolbars_.size(); ++i ) {
85 if (
toolbars_[i]->windowTitle() == _toolbar->windowTitle() ) {
86 emit
log(
LOGERR,tr(
"slotAddToolbar: Toolbar already added to system: ") + _toolbar->windowTitle() );
92 _toolbar->setObjectName( _toolbar->windowTitle() );
98 addToolBar( _toolbar );
102 plugins()[id].toolbars.push_back( std::pair< QString,QToolBar* >( _toolbar->windowTitle() , _toolbar) );
105 if ( !
viewModes_[0]->visibleToolbars.contains( _toolbar->windowTitle() ) ){
106 viewModes_[0]->visibleToolbars << _toolbar->windowTitle();
114 for (
unsigned int i = 0 ; i <
toolbars_.size(); ++i ) {
116 if (
toolbars_[i]->windowTitle() == _name ) {
125 emit
log(
LOGERR,tr(
"getToolBar: Toolbar \"%1\" not found.").arg(_name) );
129 for (
unsigned int i = 0 ; i <
toolbars_.size(); ++i ) {
131 if (
toolbars_[i]->windowTitle() == _toolbar->windowTitle() ) {
132 std::cerr <<
"Todo : erase Toolbar from list" << std::endl;
133 removeToolBar( _toolbar );
139 emit
log(
LOGERR,tr(
"Remove Toolbar: Toolbar not found.") );
std::vector< QToolBar *> toolbars_
Called by Plugins to add a Toolbar.
std::vector< PluginInfo > & plugins()
Convenient way to access plugin list.
void log(Logtype _type, QString _message)
Logg with OUT,WARN or ERR as type.
void slotAddToolbar(QToolBar *_toolbar)
Called by Plugins to add a Toolbar.
void slotRemoveToolbar(QToolBar *_toolbar)
Called by Plugins to remove a Toolbar.
QSize defaultIconSize_
Show logger in splitter or not.
QVector< ViewMode * > & viewModes_
List of currently available viewModes.
QSize defaultIconSize()
Show logger in splitter or not.
void getToolBar(QString _name, QToolBar *&_toolbar)
Called by Plugins to get access to specific Toolbars by name.