2,856 changes: 2,856 additions & 0 deletions src/images/svg_icons/magnifying_glass.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 6 additions & 10 deletions src/libkstapp/datawizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,18 +228,14 @@ bool DataWizardPageVectors::isComplete() const {


void DataWizardPageVectors::remove() {
int j=0;
for (int i = 0; i < _vectorsToPlot->count(); i++) {
if (_vectorsToPlot->item(i) && _vectorsToPlot->item(i)->isSelected()) {
_vectors->addItem(_vectorsToPlot->takeItem(i));
j = i;
int j=0, i=0;
int count = _vectorsToPlot->count();
for (i = 0; i < count; ++i) {
if (_vectorsToPlot->item(i-j) && _vectorsToPlot->item(i-j)->isSelected()) {
_vectors->addItem(_vectorsToPlot->takeItem(i-j));
j += 1;
}
}
if (j>=_vectorsToPlot->count()) {
j = _vectorsToPlot->count()-1;
}
_vectorsToPlot->setFocus();
_vectorsToPlot->setCurrentRow(j);
_vectors->clearSelection();

_selectedLabel->setText(QString::number(_vectorsToPlot->count()) + i18n(" vector(s) selected"));
Expand Down
3 changes: 3 additions & 0 deletions src/libkstapp/datawizardpagevectors.ui
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@
<property name="whatsThis">
<string>Selected data: All fields in this list are plotted. To remove fields from this list, drag them to the Available data list, double click on them, or select them and use the Remove button (right arrow icon or Alt-r). The order in which fields appear in this list is the order in which they will be plotted.</string>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::ExtendedSelection</enum>
</property>
</widget>
</item>
<item row="0" column="0" colspan="2">
Expand Down
6 changes: 6 additions & 0 deletions src/libkstapp/editmultiplewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ void EditMultipleWidget::selectObjects(const QStringList &objects) {
}
}
}

void EditMultipleWidget::setHeader(const QString &header)
{
_header->setText(header);
}

}

// vim: ts=2 sw=2 et
1 change: 1 addition & 0 deletions src/libkstapp/editmultiplewidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class EditMultipleWidget : public QWidget, public Ui::EditMultipleWidget {
void addObject(QString name, QString descriptionTip);
QStringList selectedObjects() const;
void selectObjects(const QStringList &objects);
void setHeader(const QString &header);

private Q_SLOTS:
void selectAllObjects();
Expand Down
209 changes: 91 additions & 118 deletions src/libkstapp/editmultiplewidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,137 +6,110 @@
<rect>
<x>0</x>
<y>0</y>
<width>208</width>
<height>316</height>
<width>266</width>
<height>407</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle">
<string>EditMultipleWidget</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<property name="margin">
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QGroupBox" name="groupBox6">
<property name="title">
<string>Select Objects to Edit</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="textLabel1">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Filter:</string>
</property>
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>_filterEdit</cstring>
</property>
</widget>
</item>
<item row="0" column="1" colspan="2">
<widget class="QLineEdit" name="_filterEdit"/>
</item>
<item row="3" column="0" colspan="3">
<widget class="QListWidget" name="_objectList">
<property name="selectionMode">
<enum>QAbstractItemView::ExtendedSelection</enum>
</property>
</widget>
</item>
<item row="1" column="0" colspan="3">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QPushButton" name="_selectNoneBut">
<property name="text">
<string>Clear</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="_selectAllBut">
<property name="text">
<string>Select &amp;All</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<layout class="QVBoxLayout" name="_layout">
<item>
<widget class="QLabel" name="_header">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Select Objects to Edit</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="textLabel1">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Filter:</string>
</property>
<property name="wordWrap">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="_filterEdit">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>1</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QPushButton" name="_selectNoneBut">
<property name="text">
<string>Clear</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="_selectAllBut">
<property name="text">
<string>Select &amp;All</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QListWidget" name="_objectList">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>150</width>
<height>0</height>
</size>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::ExtendedSelection</enum>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<tabstops>
<tabstop>_filterEdit</tabstop>
<tabstop>_selectNoneBut</tabstop>
<tabstop>_selectAllBut</tabstop>
<tabstop>_objectList</tabstop>
</tabstops>
<resources/>
<connections>
<connection>
<sender>_selectAllBut</sender>
<signal>clicked()</signal>
<receiver>EditMultipleWidget</receiver>
<slot>selectAllObjects()</slot>
<hints>
<hint type="sourcelabel">
<x>20</x>
<y>20</y>
</hint>
<hint type="destinationlabel">
<x>20</x>
<y>20</y>
</hint>
</hints>
</connection>
<connection>
<sender>_selectNoneBut</sender>
<signal>clicked()</signal>
<receiver>_objectList</receiver>
<slot>clearSelection()</slot>
<hints>
<hint type="sourcelabel">
<x>20</x>
<y>20</y>
</hint>
<hint type="destinationlabel">
<x>136</x>
<y>142</y>
</hint>
</hints>
</connection>
<connection>
<sender>_filterEdit</sender>
<signal>textChanged(QString)</signal>
<receiver>EditMultipleWidget</receiver>
<slot>applyFilter(QString)</slot>
<hints>
<hint type="sourcelabel">
<x>20</x>
<y>20</y>
</hint>
<hint type="destinationlabel">
<x>20</x>
<y>20</y>
</hint>
</hints>
</connection>
</connections>
<connections/>
</ui>
16 changes: 14 additions & 2 deletions src/libkstapp/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ MainWindow::MainWindow() :
_applicationSettingsDialog(0),
_themeDialog(0),
_aboutDialog(0),
_viewVectorDialog(0),
_highlightPoint(false)
#if defined(__QNX__)
, _qnxToolbarsVisible(true)
Expand Down Expand Up @@ -141,6 +142,8 @@ MainWindow::~MainWindow() {
_dataManager = 0;
delete _doc;
_doc = 0;
delete _viewVectorDialog;
_viewVectorDialog = 0;
delete _scriptServer;
_scriptServer = 0;
}
Expand Down Expand Up @@ -1736,14 +1739,23 @@ void MainWindow::updateViewItems(qint64 serial) {

if (changed) {
_tabWidget->currentView()->update();
if (_viewVectorDialog) {
_viewVectorDialog->update();
}
}

QTimer::singleShot(20, UpdateManager::self(), SLOT(viewItemUpdateFinished()));
}

void MainWindow::showVectorEditor() {
ViewVectorDialog *viewVectorDialog = new ViewVectorDialog(this, _doc);
viewVectorDialog->show();
if (!_viewVectorDialog) {
_viewVectorDialog = new ViewVectorDialog(this, _doc);
}
if (_viewVectorDialog->isVisible()) {
_viewVectorDialog->raise();
_viewVectorDialog->activateWindow();
}
_viewVectorDialog->show();
}


Expand Down
2 changes: 2 additions & 0 deletions src/libkstapp/mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class AboutDialog;
class TabWidget;
class View;
class ScriptServer;
class ViewVectorDialog;


class MainWindow : public QMainWindow
Expand Down Expand Up @@ -208,6 +209,7 @@ class MainWindow : public QMainWindow
ApplicationSettingsDialog *_applicationSettingsDialog;
ThemeDialog *_themeDialog;
AboutDialog* _aboutDialog;
ViewVectorDialog* _viewVectorDialog;

QPointer<QProgressBar> _progressBar;
QLabel *_messageLabel;
Expand Down
76 changes: 52 additions & 24 deletions src/libkstapp/vectormodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,42 +15,69 @@
#include <assert.h>

#include <QFont>
#include <QMenu>

namespace Kst {

VectorModel::VectorModel(Vector *v)
: QAbstractTableModel (), _vector(v) {
assert(v);
VectorModel::VectorModel()
: QAbstractTableModel (), _rows(0) {
}


VectorModel::~VectorModel() {
}

bool VectorModel::addVector(VectorPtr v)
{
assert(v);
if (!_vectorList.contains(v)) {
beginInsertColumns(QModelIndex(), columnCount(), columnCount());
_vectorList.append(v);
endInsertColumns();
reset();
_rows = rowCount();
return true;
}
return false;
}

bool VectorModel::removeVector(int order)
{
beginRemoveColumns(QModelIndex(), order, order);
_vectorList.removeAt(order);
endRemoveColumns();
return true;
}


int VectorModel::columnCount(const QModelIndex&) const {
return 2;
return _vectorList.length();
}


int VectorModel::rowCount(const QModelIndex&) const {
return _vector ? _vector->length() : 0;
int length = 0;
for(int i=0;i<_vectorList.length();i++) {
length = qMax(length, _vectorList.at(i)->length());
}
return length;
}


QVariant VectorModel::data(const QModelIndex& index, int role) const {
if (index.isValid() && _vector) {
if (index.isValid() && !_vectorList.isEmpty()) {
switch (role) {
case Qt::DisplayRole:
if (index.column() == 0) {
return QVariant(index.row());
} else if (index.column() == 1) {
return QVariant(_vector->value(index.row()));
// If vector is shorter display nothing
if (index.row() >= _vectorList.at(index.column())->length()) {
return QVariant();
} else {
return QVariant(_vectorList.at(index.column())->value(index.row()));
}
break;
case Qt::FontRole:
{
if (_vector->editable()) {
if (_vectorList.at(index.column())->editable()) {
QFont f;
f.setBold(true);
return QVariant(f);
Expand All @@ -71,27 +98,22 @@ QModelIndex VectorModel::parent(const QModelIndex&) const {


QVariant VectorModel::headerData(int section, Qt::Orientation orientation, int role) const {
if (!_vector || role != Qt::DisplayRole || orientation == Qt::Vertical || section > 1) {
if (_vectorList.isEmpty() || role != Qt::DisplayRole || orientation == Qt::Vertical) {
return QAbstractItemModel::headerData(section, orientation, role);
}
if (section == 0) {
return QVariant("Index");
} else if(section == 1) {
return QVariant(_vector->Name());
}
return QVariant();
return QVariant(_vectorList.at(section)->Name());
}


Qt::ItemFlags VectorModel::flags(const QModelIndex& index) const {
Qt::ItemFlags f = QAbstractItemModel::flags(index);
if (!_vector || !index.isValid()) {
if (!_vectorList.isEmpty() || !index.isValid()) {
return f;
}

if (_vector->editable() && index.row() >= 0 && index.row() < _vector->length()) {
f |= Qt::ItemIsEditable;
}
// if (_vector->editable() && index.row() >= 0 && index.row() < _vector->length()) {
// f |= Qt::ItemIsEditable;
// }

return f;
}
Expand All @@ -102,7 +124,7 @@ bool VectorModel::setData(const QModelIndex& index, const QVariant& value, int r
return QAbstractItemModel::setData(index, value, role);
}

if (!_vector || !index.isValid() || !_vector->editable() || index.row() < 0 || index.row() >= _vector->length()) {
if (!_vectorList.isEmpty() || !index.isValid() || !_vectorList.at(index.column())->editable() || index.row() < 0 || index.row() >= rowCount()) {
return false;
}

Expand All @@ -113,11 +135,17 @@ bool VectorModel::setData(const QModelIndex& index, const QVariant& value, int r
}

qDebug() << "UGLY!! Add setData API to KstVector!";
double *d = const_cast<double*>(_vector->value());
double *d = const_cast<double*>(_vectorList.at(index.column())->value());
d[index.row()] = v;
return true;
}

void VectorModel::resetIfChanged() {
if (_rows!=rowCount()) {
reset();
_rows = rowCount();
}
}

}

Expand Down
9 changes: 6 additions & 3 deletions src/libkstapp/vectormodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,22 @@ namespace Kst {
class VectorModel : public QAbstractTableModel
{
public:
VectorModel(Vector *v);
VectorModel();
~VectorModel();

bool addVector(VectorPtr v);
bool removeVector(int order);
int columnCount(const QModelIndex& parent = QModelIndex()) const;
int rowCount(const QModelIndex& parent = QModelIndex()) const;
QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
QModelIndex parent(const QModelIndex& index) const;
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
Qt::ItemFlags flags(const QModelIndex& index) const;
bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole);

void resetIfChanged();
private:
QPointer<Vector> _vector;
VectorList _vectorList;
int _rows;
};

}
Expand Down
120 changes: 103 additions & 17 deletions src/libkstapp/viewvectordialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@

#include "document.h"
#include "vectormodel.h"
#include "editmultiplewidget.h"

#include <datacollection.h>
#include <objectstore.h>
#include <QHeaderView>
#include <QMenu>

#ifdef QT5
#define setResizeMode setSectionResizeMode
Expand All @@ -31,43 +33,127 @@ ViewVectorDialog::ViewVectorDialog(QWidget *parent, Document *doc)

Q_ASSERT(_doc && _doc->objectStore());
setupUi(this);
// TODO ResizeToContents is too expensive
//_vectors->horizontalHeader()->setResizeMode(QHeaderView::ResizeToContents);
_vectors->horizontalHeader()->setResizeMode(QHeaderView::Stretch);

_vectors->verticalHeader()->hide();

connect(_vectorSelector, SIGNAL(selectionChanged(const QString&)), this, SLOT(vectorSelected()));
_vectorSelector->setObjectStore(doc->objectStore());

setAttribute(Qt::WA_DeleteOnClose);
// TODO ResizeToContents is too expensive
_vectors->horizontalHeader()->setResizeMode(QHeaderView::Interactive);
// Allow reorganizing the columns per drag&drop
_vectors->horizontalHeader()->setMovable(true);

// Custom context menu for the remove action
setContextMenuPolicy(Qt::CustomContextMenu);
connect(this, SIGNAL(customContextMenuRequested(const QPoint&)),
this, SLOT(contextMenu(const QPoint&)));

connect(_resetButton, SIGNAL(clicked()), this, SLOT(reset()));

// Add vector list, reusing the editmultiplewidget class + some tweaking
_showMultipleWidget = new EditMultipleWidget();
QPushButton *addButton = new QPushButton();
addButton->setIcon(QPixmap(":kst_rightarrow.png"));
QPushButton *removeButton = new QPushButton();
removeButton->setIcon(QPixmap(":kst_leftarrow.png"));
if (_showMultipleWidget) {
// Set header
_showMultipleWidget->setHeader(i18n("Select Vectors to View"));
// Populate the list
update();
// Finish setting up the layout
_listLayout->addWidget(_showMultipleWidget,0,0,Qt::AlignLeft);
QVBoxLayout *addRemoveButtons = new QVBoxLayout();
addRemoveButtons->addStretch();
addRemoveButtons->addWidget(addButton);
addRemoveButtons->addWidget(removeButton);
addRemoveButtons->addStretch();
_listLayout->addLayout(addRemoveButtons,0,1);
}
_splitter->setStretchFactor(0,0);
_splitter->setStretchFactor(1,1);
connect(addButton, SIGNAL(clicked()), this, SLOT(addSelected()));
connect(removeButton, SIGNAL(clicked()), this, SLOT(removeSelected()));
// setAttribute(Qt::WA_DeleteOnClose);
}


ViewVectorDialog::~ViewVectorDialog() {
delete _model;
_model = 0;
delete _showMultipleWidget;
}


void ViewVectorDialog::show() {
vectorSelected();
// vectorSelected();
QDialog::show();
}

void ViewVectorDialog::contextMenu(const QPoint& position)
{
QMenu menu;
QPoint cursor = QCursor::pos();
QAction* removeAction = menu.addAction(tr("Remove"));
QAction* selectedItem = menu.exec(cursor);
if (selectedItem == removeAction) {
removeSelected();
}
}

void ViewVectorDialog::vectorSelected() {
void ViewVectorDialog::update()
{
VectorList objects = _doc->objectStore()->getObjects<Vector>();
_showMultipleWidget->clearObjects();
foreach(VectorPtr object, objects) {
_showMultipleWidget->addObject(object->Name(), object->descriptionTip());
}
if (_model) {
delete _model;
_model->resetIfChanged();
_vectors->viewport()->update();
}
}

VectorPtr vector = _vectorSelector->selectedVector();
if (vector) {
_model = new VectorModel(vector);
_vectors->setModel(_model);
void ViewVectorDialog::addSelected() {
if (_model == 0) {
_model = new VectorModel();
_vectors->setModel(_model);
}
// Retrieve list of selected objects by name
QStringList objects = _showMultipleWidget->selectedObjects();
// Get to the pointers and add them to the model
foreach (const QString &objectName, objects) {
VectorPtr vector = kst_cast<Vector>(_doc->objectStore()->retrieveObject(objectName));
if (vector) {
_model->addVector(vector);
}
}
}

void ViewVectorDialog::removeSelected() {
if (!_model) {
return;
}
// Get current selection
QModelIndexList sel = _vectors->selectionModel()->selectedIndexes();
// Now go through the list to see how may columns it spans
QList<int> columns;
QModelIndex index;
foreach (index, sel) {
if (!columns.contains(index.column())) {
columns << index.column();
}
}
// Sort the columns in descending order
qSort(columns.begin(), columns.end(), qGreater<int>());
// Remove columns starting from the highest index to avoid shifting them
int column;
foreach (column, columns) {
_model->removeVector(column);
}
}

void ViewVectorDialog::reset() {
delete _model;
_model = 0;
}


}

// vim: ts=2 sw=2 et
18 changes: 13 additions & 5 deletions src/libkstapp/viewvectordialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ namespace Kst {

class Document;
class VectorModel;
class EditMultipleWidget;

class ViewVectorDialog : public QDialog, Ui::ViewVectorDialog
{
Expand All @@ -33,12 +34,19 @@ class ViewVectorDialog : public QDialog, Ui::ViewVectorDialog

virtual void show();

private Q_SLOTS:
void vectorSelected();
public Q_SLOTS:
void contextMenu(const QPoint& position);
void update();

private:
Document *_doc;
VectorModel *_model;
private Q_SLOTS:
void addSelected();
void removeSelected();
void reset();

private:
Document *_doc;
VectorModel *_model;
EditMultipleWidget *_showMultipleWidget;
};

}
Expand Down
144 changes: 88 additions & 56 deletions src/libkstapp/viewvectordialog.ui
Original file line number Diff line number Diff line change
@@ -1,81 +1,113 @@
<ui version="4.0" >
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>ViewVectorDialog</class>
<widget class="QDialog" name="ViewVectorDialog" >
<property name="geometry" >
<widget class="QDialog" name="ViewVectorDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>528</width>
<width>468</width>
<height>536</height>
</rect>
</property>
<property name="windowTitle" >
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle">
<string>View Vector Values</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout" >
<item>
<widget class="Kst::VectorSelector" native="1" name="_vectorSelector" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item>
<widget class="QTableView" name="_vectors" />
</item>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="orientation" >
<widget class="QSplitter" name="_splitter">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons" >
<set>QDialogButtonBox::Close</set>
</property>
<widget class="QWidget" name="gridLayoutWidget">
<layout class="QGridLayout" name="_listLayout">
<property name="sizeConstraint">
<enum>QLayout::SetMinimumSize</enum>
</property>
<property name="rightMargin">
<number>4</number>
</property>
</layout>
</widget>
<widget class="QWidget" name="layoutWidget">
<layout class="QVBoxLayout" name="_viewLayout">
<item>
<widget class="QTableView" name="_vectors">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>1</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>450</width>
<height>450</height>
</size>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="_resetButton">
<property name="text">
<string>Reset View</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="_closeButton">
<property name="text">
<string>Close</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
<zorder>splitter</zorder>
<zorder>gridLayoutWidget</zorder>
<zorder>_vectors</zorder>
</widget>
<customwidgets>
<customwidget>
<class>Kst::VectorSelector</class>
<extends>QWidget</extends>
<header>vectorselector.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>ViewVectorDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>263</x>
<y>513</y>
</hint>
<hint type="destinationlabel" >
<x>263</x>
<y>267</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<sender>_closeButton</sender>
<signal>clicked()</signal>
<receiver>ViewVectorDialog</receiver>
<slot>reject()</slot>
<slot>close()</slot>
<hints>
<hint type="sourcelabel" >
<x>263</x>
<y>513</y>
<hint type="sourcelabel">
<x>490</x>
<y>516</y>
</hint>
<hint type="destinationlabel" >
<x>263</x>
<y>267</y>
<hint type="destinationlabel">
<x>17</x>
<y>518</y>
</hint>
</hints>
</connection>
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/vectorselector.ui
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</sizepolicy>
</property>
<property name="toolTip">
<string>Create a new vector.</string>
<string>Create a new vector</string>
</property>
<property name="whatsThis">
<string>Opens a vector dialog to create a new vector, which will become the selected vector.</string>
Expand Down