Ejemplo n.º 1
0
bool QIconView::qt_emit( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: selectionChanged(); break;
    case 1: selectionChanged((QIconViewItem*)static_QUType_ptr.get(_o+1)); break;
    case 2: currentChanged((QIconViewItem*)static_QUType_ptr.get(_o+1)); break;
    case 3: clicked((QIconViewItem*)static_QUType_ptr.get(_o+1)); break;
    case 4: clicked((QIconViewItem*)static_QUType_ptr.get(_o+1),(const QPoint&)*((const QPoint*)static_QUType_ptr.get(_o+2))); break;
    case 5: pressed((QIconViewItem*)static_QUType_ptr.get(_o+1)); break;
    case 6: pressed((QIconViewItem*)static_QUType_ptr.get(_o+1),(const QPoint&)*((const QPoint*)static_QUType_ptr.get(_o+2))); break;
    case 7: doubleClicked((QIconViewItem*)static_QUType_ptr.get(_o+1)); break;
    case 8: returnPressed((QIconViewItem*)static_QUType_ptr.get(_o+1)); break;
    case 9: rightButtonClicked((QIconViewItem*)static_QUType_ptr.get(_o+1),(const QPoint&)*((const QPoint*)static_QUType_ptr.get(_o+2))); break;
    case 10: rightButtonPressed((QIconViewItem*)static_QUType_ptr.get(_o+1),(const QPoint&)*((const QPoint*)static_QUType_ptr.get(_o+2))); break;
    case 11: mouseButtonPressed((int)static_QUType_int.get(_o+1),(QIconViewItem*)static_QUType_ptr.get(_o+2),(const QPoint&)*((const QPoint*)static_QUType_ptr.get(_o+3))); break;
    case 12: mouseButtonClicked((int)static_QUType_int.get(_o+1),(QIconViewItem*)static_QUType_ptr.get(_o+2),(const QPoint&)*((const QPoint*)static_QUType_ptr.get(_o+3))); break;
    case 13: contextMenuRequested((QIconViewItem*)static_QUType_ptr.get(_o+1),(const QPoint&)*((const QPoint*)static_QUType_ptr.get(_o+2))); break;
    case 14: dropped((QDropEvent*)static_QUType_ptr.get(_o+1),(const QValueList<QIconDragItem>&)*((const QValueList<QIconDragItem>*)static_QUType_ptr.get(_o+2))); break;
    case 15: moved(); break;
    case 16: onItem((QIconViewItem*)static_QUType_ptr.get(_o+1)); break;
    case 17: onViewport(); break;
    case 18: itemRenamed((QIconViewItem*)static_QUType_ptr.get(_o+1),(const QString&)static_QUType_QString.get(_o+2)); break;
    case 19: itemRenamed((QIconViewItem*)static_QUType_ptr.get(_o+1)); break;
    default:
	return QScrollView::qt_emit(_id,_o);
    }
    return TRUE;
}
Ejemplo n.º 2
0
bool LapsusPanelButton::eventFilter( QObject* obj, QEvent* e )
{
    if (e->type() == QEvent::MouseButtonPress)
    {
        QMouseEvent *qme = static_cast<QMouseEvent*>(e);

        if (qme->button() == Qt::RightButton)
        {
            emit rightButtonPressed();
            return true;
        }

        if (!_isValid || !_hasDBus)
            return true;

        if (qme->button() == Qt::LeftButton && _vals.size() > 0)
        {
            QStringList::Iterator it = _vals.find(_curVal);
            QString nVal;

            if (it != _vals.end()) ++it;

            if (it == _vals.end())
                nVal = *(_vals.begin());
            else
                nVal = *it;

            _dbus->setFeature(_featureId, nVal);
        }
    }

    return QWidget::eventFilter(obj,e);
}
Ejemplo n.º 3
0
void pTabBar::mousePressEvent( QMouseEvent* event )
{
    // reset drag position
    dragStartPosition = QPoint();
    
    // get tab under cursor
    int i = tabAt( event->pos() );
    
    // if tab
    if ( i != -1 )
    {
        // emit left button pressed
        if ( event->button() == Qt::LeftButton )
            emit leftButtonPressed( i, event->globalPos() );
        
        // emit mid button pressed
        if ( event->button() == Qt::MidButton )
            emit midButtonPressed( i, event->globalPos() );
        
        // emit right button pressed and drag position
        if ( event->button() == Qt::RightButton )
        {
            emit rightButtonPressed( i, event->globalPos() );
            dragStartPosition = event->pos();
        }
    }
    
    // default event
    QTabBar::mousePressEvent( event );
}
Ejemplo n.º 4
0
QWidget *CentralWidget::createCmdWidget()
{
    joystick = new JoystickButton;

    connect(joystick, SIGNAL(upButtonPressed()), this,
        SLOT(slotCarDirectCmd()));
    connect(joystick, SIGNAL(upButtonReleased()), this,
        SLOT(slotCarStopCmd()));
    connect(joystick, SIGNAL(downButtonPressed()), this,
        SLOT(slotCarReverseCmd()));
    connect(joystick, SIGNAL(downButtonReleased()), this,
        SLOT(slotCarStopCmd()));
    connect(joystick, SIGNAL(rightButtonPressed()), this,
        SLOT(slotCarRightCmd()));
    connect(joystick, SIGNAL(rightButtonReleased()), this,
        SLOT(slotCarStopCmd()));
    connect(joystick, SIGNAL(leftButtonPressed()), this,
        SLOT(slotCarLeftCmd()));
    connect(joystick, SIGNAL(leftButtonReleased()), this,
        SLOT(slotCarStopCmd()));
    connect(joystick, SIGNAL(centerButtonPressed()), this,
        SLOT(slotCarStopCmd()));

    return joystick;
}
Ejemplo n.º 5
0
void LapsusPanelDefault::mousePressEvent( QMouseEvent *e )
{
	if (e->button() == RightButton)
	{
		e->accept();
		emit rightButtonPressed();
	}
}
Ejemplo n.º 6
0
void ClickableImage::mousePressEvent(QMouseEvent *eve )
{
	if ( eve->button() == Qt::LeftButton )
    	emit leftButtonPressed(this);
	else if ( eve->button() == Qt::RightButton )
		emit rightButtonPressed(this);
	else if ( eve->button() == Qt::MidButton )
		emit middleButtonPressed(this);	
}
Ejemplo n.º 7
0
void EventEditorTreeWidget::mousePressEvent (QMouseEvent *e)
{
	if (e->button() == Qt::RightButton)
	{
		QTreeWidgetItem *i=itemAt(e->pos());
		if (i) emit rightButtonPressed(i,QCursor::pos());
	}
	QTreeWidget::mousePressEvent(e);
}
Ejemplo n.º 8
0
void KviRegisteredUsersListView::mousePressEvent (QMouseEvent *e)
{
	if (e->button() == Qt::RightButton)
	{
		QTreeWidgetItem *i= itemAt(e->pos());
		if (i) emit rightButtonPressed(i,QCursor::pos());
	}
	QTreeWidget::mousePressEvent(e);
}
Ejemplo n.º 9
0
void LogViewListView::mousePressEvent(QMouseEvent * pEvent)
{
	if(pEvent->button() == Qt::RightButton)
	{
		QTreeWidgetItem * pItem = itemAt(pEvent->pos());
		if(pItem)
			emit rightButtonPressed(pItem,QCursor::pos());
	}
	QTreeWidget::mousePressEvent(pEvent);
}
Ejemplo n.º 10
0
void UrlDialogTreeWidget::mousePressEvent (QMouseEvent *e)
{
	if (e->button() == Qt::RightButton)
	{
		QTreeWidgetItem *i= itemAt(e->pos());
		if (i) emit rightButtonPressed(i,QCursor::pos());
		else emit contextMenuRequested(QCursor::pos());
	}
	QTreeWidget::mousePressEvent(e);
}
Ejemplo n.º 11
0
void FileTransferWidget::mousePressEvent (QMouseEvent *e)
{
	if (e->button() == Qt::RightButton)
	{
		// we have 3 items: the one on the first column is the real one (has a transfer() member)
		// others are just fakes
		QTableWidgetItem *clicked = itemAt(e->pos());
		if(clicked)
		{
			FileTransferItem *i = (FileTransferItem*) item(clicked->row(),0);
			if (i) emit rightButtonPressed(i, QCursor::pos());
		}
	}
	QTableWidget::mousePressEvent(e);
}
Ejemplo n.º 12
0
void KFLogTreeWidget::mousePressEvent( QMouseEvent* event )
{
  if( event->button() == Qt::RightButton )
    {
      // Emit a signal, when the right button was pressed.
      QTreeWidgetItem *item = itemAt( event->pos() );
      emit rightButtonPressed( item, event->pos() );
      return;
    }

  if( event->button() == Qt::MidButton )
    {
      // Create a menu for switch on/off of tree view columns.
      createShowColMenu();
      showColMenu->exec( QCursor::pos() );
      return;
    }

  // Call base class mouse event handler.
  QTreeWidget::mousePressEvent( event );
}
Ejemplo n.º 13
0
/*
 * constructor
 */
Tile::Tile( int row, int column, QGridLayout *grid ) {
        this->x = row;
        this->y = column;
        this->button = new MineButton();
        this->button->setMaximumWidth( Mines::buttonSize );
        this->button->setMaximumHeight( Mines::buttonSize );
        this->button->setMinimumWidth( Mines::buttonSize );
        this->button->setMinimumHeight( Mines::buttonSize );
        this->button->setCheckable( true );
        this->button->setStyleSheet( "MineButton:checked{ border: none; }" );
        this->button->connect( this->button, SIGNAL(leftClicked()), this, SLOT(buttonPressed()));
        this->button->connect( this->button, SIGNAL(rightClicked()), this, SLOT(rightButtonPressed()));
        this->grid = grid;
        this->grid->addWidget( this->button, column, row, 1, 1 );
        this->visited = false;
        this->flagged = false;

        QFont font = this->button->font();
        font.setPointSize( 18 );
        this->button->setFont( font );
}
Ejemplo n.º 14
0
MyMessageBox::MyMessageBox(QWidget *_widget,QString _title, QString _content):
    MyMessagePanel(_widget),Title(_title),Content(_content)
{
    QRect rect  = _widget->rect();
    this->setGeometry(rect.width()/4,rect.height()/4,rect.width()/2,rect.height()/3);

    titleLabel = new QLabel(Title,this);
    contentLabel = new QLabel(Content,this);

    leftButton = new QPushButton("Retry",this);
    rightButton = new QPushButton("Next",this);

    Initialize();

    connect(leftButton,SIGNAL(clicked(bool)),this,SLOT(leftButtonClicked()));
    connect(rightButton,SIGNAL(clicked(bool)),this,SLOT(rightButtonClicked()));
    connect(leftButton,SIGNAL(pressed()),this,SLOT(leftButtonPressed()));
    connect(rightButton,SIGNAL(pressed()),this,SLOT(rightButtonPressed()));
    connect(leftButton,SIGNAL(released()),this,SLOT(leftButtonReleased()));
    connect(rightButton,SIGNAL(released()),this,SLOT(rightButtonReleased()));

}
Ejemplo n.º 15
0
void BoardWidget::mousePressEvent( QMouseEvent* pEvent )
{
    int pos = positionOf( pEvent->x(), pEvent->y() );
    int f = fieldOf(pos);

    if (pEvent->button() == Qt::RightButton) {
	emit rightButtonPressed(f, pEvent->globalPos());
	return;
    }

    if (!gettingMove && !editMode) {
	return;
    }
    mbDown = true;


    if (editMode) {
	editColor = (pEvent->button() == Qt::MidButton) ?
			Board::color2 : Board::color1;
	int newColor = (pEvent->button() == Qt::MidButton) ?
			   Board::color2bright : Board::color1bright;

	if (field[f] == Board::free) {
	    field[f] = newColor;
	}
	else if (field[f] == Board::color1) {
	    if (editColor == Board::color1) {
		editColor = Board::free;
		newColor = Board::color1bright;
	    }
	    field[f] = newColor;
	}
	else if (field[f] == Board::color2) {
	    if (editColor == Board::color2) {
		editColor = Board::free;
		newColor = Board::color2bright;
	    }
	    field[f] = newColor;
	}
	else {
	    editColor = Board::out;
	}

	oldPos = pos;

	if (renderMode) updatePieces();
	update();

	return;
    }

    startValid = isValidStart(pos, (pEvent->button() == Qt::MidButton));
    //qDebug() << "Start pos " << pos << " is valid: " << startValid;
    //  actMove.print();

    if (!startValid) return;
    startPos = oldPos = pos;

    showStart(actMove,1);
    startShown = true;

    QString tmp;
    actValue = - board.calcEvaluation();
    tmp = tr("Board value: %1").arg(actValue);
    emit updateSpy(tmp);
}
Ejemplo n.º 16
0
void moveMouse() {
	// gesture analysis
	
	barycBufferX[barycBufferIndex] = barycX;
	barycBufferY[barycBufferIndex] = barycY;
	barycBufferZ[barycBufferIndex] = barycZ;
	barycBufferIndex = (barycBufferIndex + 1) % HAND_POS_BUFFER_SIZE;

	
	
	if (isOpenHand) {
		
		int prevBarycBufferIndex = (barycBufferIndex > 0) ? barycBufferIndex-1 : HAND_POS_BUFFER_SIZE-1;
		
		int countX = -round((barycBufferX[barycBufferIndex] - barycBufferX[prevBarycBufferIndex]) * 600);
		int countY = round((barycBufferY[barycBufferIndex] - barycBufferY[prevBarycBufferIndex]) * 600);
		
		verticalScroll(countX, countY);
		
		printf("Scrolling > countX: %d\n", countX);
		return;
	}
	
	
	double meanBarycX = 0;
	double meanBarycY = 0;
	double meanBarycZ = 0;
	
	int i;
	for (i=0; i<HAND_POS_BUFFER_SIZE; i++) {
		meanBarycX += barycBufferX[i] / HAND_POS_BUFFER_SIZE;
		meanBarycY += barycBufferY[i] / HAND_POS_BUFFER_SIZE;
		meanBarycZ += barycBufferZ[i] / HAND_POS_BUFFER_SIZE;
	}
	
	
	mousePosX = round(-meanBarycX * 1280 + 640);
	mousePosY = round(meanBarycY * 1280 + 400);
	

	if (leftButtonState == MOUSE_CLICK_UP && normVecY < -0.45) {
		leftButtonPressed(mousePosX, mousePosY);
		leftButtonState = MOUSE_CLICK_DOWN;
		printf("Mouse click left down\n");
		
	}
	else if (leftButtonState == MOUSE_CLICK_DOWN && normVecY >= -0.45 ) {
		leftButtonReleased(mousePosX, mousePosY);
		leftButtonState = MOUSE_CLICK_UP;
		printf("Mouse click left up\n");
	}
	else if (rightButtonState == MOUSE_CLICK_UP && normVecX < -0.5) {
		rightButtonPressed(mousePosX, mousePosY);
		rightButtonState = MOUSE_CLICK_DOWN;
		printf("Mouse click right down\n");	
	}
	else if (rightButtonState == MOUSE_CLICK_DOWN && normVecX >= -0.5 ) {
		rightButtonReleased(mousePosX, mousePosY);
		rightButtonState = MOUSE_CLICK_UP;	
		printf("Mouse click right up\n");
	}	
	else {
		moveCursor(mousePosX, mousePosY);
	}

	
}
Ejemplo n.º 17
0
LapsusPanelMain::LapsusPanelMain(KConfig* cfg, QWidget *parent,
			Qt::Orientation orientation):
	QWidget( parent ), _osd(cfg, this), _cfg(cfg),
	_orientation( orientation )
{
	_osd.enableDBus();
	
	_layout = new FlowLayout(this, _orientation);
	_layout->setSpacing(4);

	setBackgroundMode(X11ParentRelative);

	_actions = new KActionCollection( this );

	loadConfig();

	int added = 0;

	// TODO - cleanup following mess ;)

	for ( QStringList::ConstIterator it = _panelEntries.begin();
		it != _panelEntries.end(); ++it )
	{
		LapsusPanelWidget *widget = LapsusFeatureManager::newPanelWidget(
			_cfg, *it, _orientation, this);
		
		if (widget)
		{
			++added;

			_layout->add(widget);

			connect(widget, SIGNAL(rightButtonPressed()),
				this, SLOT(showContextMenu()));

			widget->show();
		}
	}

	for ( QStringList::ConstIterator it = _menuEntries.begin();
		it != _menuEntries.end(); ++it )
	{
		QString str = *it;
		bool addedOK = false;
		
		if (!( KToggleAction* )_actions->action(str))
		{
			addedOK = LapsusFeatureManager::newActionButton(_cfg, str, _actions);
		}
	}

	if (added < 1)
	{
		LapsusPanelWidget *widget = new LapsusPanelDefault(
						_orientation, this);

		connect(widget, SIGNAL(rightButtonPressed()),
			this, SLOT(showContextMenu()));

		_layout->add(widget);

		widget->show();
	}
}
int Q3ListBox::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Q3ScrollView::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: highlighted((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 1: selected((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 2: highlighted((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 3: selected((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 4: highlighted((*reinterpret_cast< Q3ListBoxItem*(*)>(_a[1]))); break;
        case 5: selected((*reinterpret_cast< Q3ListBoxItem*(*)>(_a[1]))); break;
        case 6: selectionChanged(); break;
        case 7: selectionChanged((*reinterpret_cast< Q3ListBoxItem*(*)>(_a[1]))); break;
        case 8: currentChanged((*reinterpret_cast< Q3ListBoxItem*(*)>(_a[1]))); break;
        case 9: clicked((*reinterpret_cast< Q3ListBoxItem*(*)>(_a[1]))); break;
        case 10: clicked((*reinterpret_cast< Q3ListBoxItem*(*)>(_a[1])),(*reinterpret_cast< const QPoint(*)>(_a[2]))); break;
        case 11: pressed((*reinterpret_cast< Q3ListBoxItem*(*)>(_a[1]))); break;
        case 12: pressed((*reinterpret_cast< Q3ListBoxItem*(*)>(_a[1])),(*reinterpret_cast< const QPoint(*)>(_a[2]))); break;
        case 13: doubleClicked((*reinterpret_cast< Q3ListBoxItem*(*)>(_a[1]))); break;
        case 14: returnPressed((*reinterpret_cast< Q3ListBoxItem*(*)>(_a[1]))); break;
        case 15: rightButtonClicked((*reinterpret_cast< Q3ListBoxItem*(*)>(_a[1])),(*reinterpret_cast< const QPoint(*)>(_a[2]))); break;
        case 16: rightButtonPressed((*reinterpret_cast< Q3ListBoxItem*(*)>(_a[1])),(*reinterpret_cast< const QPoint(*)>(_a[2]))); break;
        case 17: mouseButtonPressed((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< Q3ListBoxItem*(*)>(_a[2])),(*reinterpret_cast< const QPoint(*)>(_a[3]))); break;
        case 18: mouseButtonClicked((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< Q3ListBoxItem*(*)>(_a[2])),(*reinterpret_cast< const QPoint(*)>(_a[3]))); break;
        case 19: contextMenuRequested((*reinterpret_cast< Q3ListBoxItem*(*)>(_a[1])),(*reinterpret_cast< const QPoint(*)>(_a[2]))); break;
        case 20: onItem((*reinterpret_cast< Q3ListBoxItem*(*)>(_a[1]))); break;
        case 21: onViewport(); break;
        case 22: clear(); break;
        case 23: ensureCurrentVisible(); break;
        case 24: clearSelection(); break;
        case 25: selectAll((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 26: invertSelection(); break;
        case 27: clearInputString(); break;
        case 28: refreshSlot(); break;
        case 29: doAutoScroll(); break;
        case 30: adjustItems(); break;
        }
        _id -= 31;
    }
#ifndef QT_NO_PROPERTIES
      else if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< uint*>(_v) = count(); break;
        case 1: *reinterpret_cast< int*>(_v) = numItemsVisible(); break;
        case 2: *reinterpret_cast< int*>(_v) = currentItem(); break;
        case 3: *reinterpret_cast< QString*>(_v) = currentText(); break;
        case 4: *reinterpret_cast< int*>(_v) = topItem(); break;
        case 5: *reinterpret_cast< SelectionMode*>(_v) = selectionMode(); break;
        case 6: *reinterpret_cast< bool*>(_v) = isMultiSelection(); break;
        case 7: *reinterpret_cast< LayoutMode*>(_v) = columnMode(); break;
        case 8: *reinterpret_cast< LayoutMode*>(_v) = rowMode(); break;
        case 9: *reinterpret_cast< int*>(_v) = numColumns(); break;
        case 10: *reinterpret_cast< int*>(_v) = numRows(); break;
        case 11: *reinterpret_cast< bool*>(_v) = variableWidth(); break;
        case 12: *reinterpret_cast< bool*>(_v) = variableHeight(); break;
        }
        _id -= 13;
    } else if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 2: setCurrentItem(*reinterpret_cast< int*>(_v)); break;
        case 4: setTopItem(*reinterpret_cast< int*>(_v)); break;
        case 5: setSelectionMode(*reinterpret_cast< SelectionMode*>(_v)); break;
        case 6: setMultiSelection(*reinterpret_cast< bool*>(_v)); break;
        case 7: setColumnMode(*reinterpret_cast< LayoutMode*>(_v)); break;
        case 8: setRowMode(*reinterpret_cast< LayoutMode*>(_v)); break;
        case 11: setVariableWidth(*reinterpret_cast< bool*>(_v)); break;
        case 12: setVariableHeight(*reinterpret_cast< bool*>(_v)); break;
        }
        _id -= 13;
    } else if (_c == QMetaObject::ResetProperty) {
        _id -= 13;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 13;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 13;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 13;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 13;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 13;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}
int Q3IconView::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Q3ScrollView::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: selectionChanged(); break;
        case 1: selectionChanged((*reinterpret_cast< Q3IconViewItem*(*)>(_a[1]))); break;
        case 2: currentChanged((*reinterpret_cast< Q3IconViewItem*(*)>(_a[1]))); break;
        case 3: clicked((*reinterpret_cast< Q3IconViewItem*(*)>(_a[1]))); break;
        case 4: clicked((*reinterpret_cast< Q3IconViewItem*(*)>(_a[1])),(*reinterpret_cast< const QPoint(*)>(_a[2]))); break;
        case 5: pressed((*reinterpret_cast< Q3IconViewItem*(*)>(_a[1]))); break;
        case 6: pressed((*reinterpret_cast< Q3IconViewItem*(*)>(_a[1])),(*reinterpret_cast< const QPoint(*)>(_a[2]))); break;
        case 7: doubleClicked((*reinterpret_cast< Q3IconViewItem*(*)>(_a[1]))); break;
        case 8: returnPressed((*reinterpret_cast< Q3IconViewItem*(*)>(_a[1]))); break;
        case 9: rightButtonClicked((*reinterpret_cast< Q3IconViewItem*(*)>(_a[1])),(*reinterpret_cast< const QPoint(*)>(_a[2]))); break;
        case 10: rightButtonPressed((*reinterpret_cast< Q3IconViewItem*(*)>(_a[1])),(*reinterpret_cast< const QPoint(*)>(_a[2]))); break;
        case 11: mouseButtonPressed((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< Q3IconViewItem*(*)>(_a[2])),(*reinterpret_cast< const QPoint(*)>(_a[3]))); break;
        case 12: mouseButtonClicked((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< Q3IconViewItem*(*)>(_a[2])),(*reinterpret_cast< const QPoint(*)>(_a[3]))); break;
        case 13: contextMenuRequested((*reinterpret_cast< Q3IconViewItem*(*)>(_a[1])),(*reinterpret_cast< const QPoint(*)>(_a[2]))); break;
        case 14: dropped((*reinterpret_cast< QDropEvent*(*)>(_a[1])),(*reinterpret_cast< const Q3ValueList<Q3IconDragItem>(*)>(_a[2]))); break;
        case 15: moved(); break;
        case 16: onItem((*reinterpret_cast< Q3IconViewItem*(*)>(_a[1]))); break;
        case 17: onViewport(); break;
        case 18: itemRenamed((*reinterpret_cast< Q3IconViewItem*(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 19: itemRenamed((*reinterpret_cast< Q3IconViewItem*(*)>(_a[1]))); break;
        case 20: arrangeItemsInGrid((*reinterpret_cast< const QSize(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 21: arrangeItemsInGrid((*reinterpret_cast< const QSize(*)>(_a[1]))); break;
        case 22: arrangeItemsInGrid((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 23: arrangeItemsInGrid(); break;
        case 24: setContentsPos((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 25: updateContents(); break;
        case 26: doAutoScroll(); break;
        case 27: adjustItems(); break;
        case 28: slotUpdate(); break;
        case 29: movedContents((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        }
        _id -= 30;
    }
#ifndef QT_NO_PROPERTIES
      else if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< bool*>(_v) = sorting(); break;
        case 1: *reinterpret_cast< bool*>(_v) = sortDirection(); break;
        case 2: *reinterpret_cast< SelectionMode*>(_v) = selectionMode(); break;
        case 3: *reinterpret_cast< int*>(_v) = gridX(); break;
        case 4: *reinterpret_cast< int*>(_v) = gridY(); break;
        case 5: *reinterpret_cast< int*>(_v) = spacing(); break;
        case 6: *reinterpret_cast< ItemTextPos*>(_v) = itemTextPos(); break;
        case 7: *reinterpret_cast< QBrush*>(_v) = itemTextBackground(); break;
        case 8: *reinterpret_cast< Arrangement*>(_v) = arrangement(); break;
        case 9: *reinterpret_cast< ResizeMode*>(_v) = resizeMode(); break;
        case 10: *reinterpret_cast< int*>(_v) = maxItemWidth(); break;
        case 11: *reinterpret_cast< int*>(_v) = maxItemTextLength(); break;
        case 12: *reinterpret_cast< bool*>(_v) = autoArrange(); break;
        case 13: *reinterpret_cast< bool*>(_v) = itemsMovable(); break;
        case 14: *reinterpret_cast< bool*>(_v) = wordWrapIconText(); break;
        case 15: *reinterpret_cast< bool*>(_v) = showToolTips(); break;
        case 16: *reinterpret_cast< uint*>(_v) = count(); break;
        }
        _id -= 17;
    } else if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 2: setSelectionMode(*reinterpret_cast< SelectionMode*>(_v)); break;
        case 3: setGridX(*reinterpret_cast< int*>(_v)); break;
        case 4: setGridY(*reinterpret_cast< int*>(_v)); break;
        case 5: setSpacing(*reinterpret_cast< int*>(_v)); break;
        case 6: setItemTextPos(*reinterpret_cast< ItemTextPos*>(_v)); break;
        case 7: setItemTextBackground(*reinterpret_cast< QBrush*>(_v)); break;
        case 8: setArrangement(*reinterpret_cast< Arrangement*>(_v)); break;
        case 9: setResizeMode(*reinterpret_cast< ResizeMode*>(_v)); break;
        case 10: setMaxItemWidth(*reinterpret_cast< int*>(_v)); break;
        case 11: setMaxItemTextLength(*reinterpret_cast< int*>(_v)); break;
        case 12: setAutoArrange(*reinterpret_cast< bool*>(_v)); break;
        case 13: setItemsMovable(*reinterpret_cast< bool*>(_v)); break;
        case 14: setWordWrapIconText(*reinterpret_cast< bool*>(_v)); break;
        case 15: setShowToolTips(*reinterpret_cast< bool*>(_v)); break;
        }
        _id -= 17;
    } else if (_c == QMetaObject::ResetProperty) {
        _id -= 17;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 17;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 17;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 17;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 17;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 17;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}