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.") );
void log(Logtype _type, QString _message)
Logg with OUT,WARN or ERR as type.