ui: redesigned graph overview and use new list layouting within overview bundles
* overview bundles imitate style of bundled node type * removed bundle for built-in types * show contents of overview bundle in vertical list layouted with new ListLayouter * nodes starting with the same letter are grouped with the letter displayed above * pressing the letter key will scroll to the group * also use this list layouting for namespace & package contents * renamed BucketGrid to BucketLayouter * moved used functions of GraphPostProcessor to GraphViewStyle and removed GraphPostProcessor fortune cookie message = Don't be afraid to take that big step
This commit is contained in:
@@ -66,7 +66,7 @@ QtGraphicsView::QtGraphicsView(QWidget* parent)
|
||||
|
||||
float QtGraphicsView::getZoomFactor() const
|
||||
{
|
||||
return m_appZoomFactor;
|
||||
return m_appZoomFactor * m_zoomFactor;
|
||||
}
|
||||
|
||||
void QtGraphicsView::setAppZoomFactor(float appZoomFactor)
|
||||
@@ -181,6 +181,12 @@ void QtGraphicsView::mouseReleaseEvent(QMouseEvent *event)
|
||||
|
||||
void QtGraphicsView::keyPressEvent(QKeyEvent* event)
|
||||
{
|
||||
if (event->key() >= Qt::Key_A && event->key() <= Qt::Key_Z)
|
||||
{
|
||||
QChar c = event->text().at(0).toUpper();
|
||||
emit characterKeyPressed(c);
|
||||
}
|
||||
|
||||
bool moved = moves();
|
||||
|
||||
switch (event->key())
|
||||
|
||||
@@ -45,6 +45,7 @@ protected:
|
||||
|
||||
signals:
|
||||
void emptySpaceClicked();
|
||||
void characterKeyPressed(QChar c);
|
||||
|
||||
private slots:
|
||||
void updateTimer();
|
||||
|
||||
Reference in New Issue
Block a user