mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-07 11:40:42 +00:00
Graph settings Preferences tab.. (Note, this works, but does not save yet)
This commit is contained in:
parent
8239184f45
commit
7e70eaeff3
2
daily.h
2
daily.h
@ -39,7 +39,7 @@ public:
|
|||||||
~Daily();
|
~Daily();
|
||||||
void ReloadGraphs();
|
void ReloadGraphs();
|
||||||
void ResetGraphLayout();
|
void ResetGraphLayout();
|
||||||
gGraphView *SharedWidget() { return GraphView; }
|
gGraphView *graphView() { return GraphView; }
|
||||||
void RedrawGraphs();
|
void RedrawGraphs();
|
||||||
void LoadDate(QDate date);
|
void LoadDate(QDate date);
|
||||||
QDate getDate() { return previous_date; }
|
QDate getDate() { return previous_date; }
|
||||||
|
3
daily.ui
3
daily.ui
@ -324,6 +324,9 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_9">
|
<layout class="QHBoxLayout" name="horizontalLayout_9">
|
||||||
|
<property name="margin">
|
||||||
|
<number>4</number>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_7">
|
<widget class="QLabel" name="label_7">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -199,10 +199,10 @@ void MainWindow::Startup()
|
|||||||
daily=new Daily(ui->tabWidget,NULL,this);
|
daily=new Daily(ui->tabWidget,NULL,this);
|
||||||
ui->tabWidget->insertTab(1,daily,tr("Daily"));
|
ui->tabWidget->insertTab(1,daily,tr("Daily"));
|
||||||
|
|
||||||
overview=new Overview(ui->tabWidget,daily->SharedWidget());
|
overview=new Overview(ui->tabWidget,daily->graphView());
|
||||||
ui->tabWidget->insertTab(2,overview,tr("Overview"));
|
ui->tabWidget->insertTab(2,overview,tr("Overview"));
|
||||||
if (PROFILE["EnableOximetry"].toBool()) {
|
if (PROFILE["EnableOximetry"].toBool()) {
|
||||||
oximetry=new Oximetry(ui->tabWidget,daily->SharedWidget());
|
oximetry=new Oximetry(ui->tabWidget,daily->graphView());
|
||||||
ui->tabWidget->insertTab(3,oximetry,tr("Oximetry"));
|
ui->tabWidget->insertTab(3,oximetry,tr("Oximetry"));
|
||||||
}
|
}
|
||||||
if (daily) daily->ReloadGraphs();
|
if (daily) daily->ReloadGraphs();
|
||||||
@ -467,7 +467,7 @@ void MainWindow::on_oximetryButton_clicked()
|
|||||||
if (QMessageBox::question(this,"Question","Do you have a CMS50[x] Oximeter?\nOne is required to use this section.\nNote: This section is not fully completed yet.",QMessageBox::Yes,QMessageBox::No)==QMessageBox::No) return;
|
if (QMessageBox::question(this,"Question","Do you have a CMS50[x] Oximeter?\nOne is required to use this section.\nNote: This section is not fully completed yet.",QMessageBox::Yes,QMessageBox::No)==QMessageBox::No) return;
|
||||||
PROFILE["EnableOximetry"]=true;
|
PROFILE["EnableOximetry"]=true;
|
||||||
}
|
}
|
||||||
oximetry=new Oximetry(ui->tabWidget,daily->SharedWidget());
|
oximetry=new Oximetry(ui->tabWidget,daily->graphView());
|
||||||
ui->tabWidget->insertTab(3,oximetry,tr("Oximetry"));
|
ui->tabWidget->insertTab(3,oximetry,tr("Oximetry"));
|
||||||
first=true;
|
first=true;
|
||||||
}
|
}
|
||||||
@ -599,3 +599,4 @@ void MainWindow::on_action_Frequently_Asked_Questions_triggered()
|
|||||||
ui->webView->load(QUrl("http://sourceforge.net/apps/mediawiki/sleepyhead/index.php?title=Frequently_Asked_Questions"));
|
ui->webView->load(QUrl("http://sourceforge.net/apps/mediawiki/sleepyhead/index.php?title=Frequently_Asked_Questions"));
|
||||||
ui->tabWidget->setCurrentIndex(0);
|
ui->tabWidget->setCurrentIndex(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ public:
|
|||||||
explicit Overview(QWidget *parent, gGraphView *shared=NULL);
|
explicit Overview(QWidget *parent, gGraphView *shared=NULL);
|
||||||
~Overview();
|
~Overview();
|
||||||
|
|
||||||
|
gGraphView *graphView() { return GraphView; }
|
||||||
void ReloadGraphs();
|
void ReloadGraphs();
|
||||||
void ResetGraphLayout();
|
void ResetGraphLayout();
|
||||||
void RedrawGraphs();
|
void RedrawGraphs();
|
||||||
|
@ -146,6 +146,8 @@ public:
|
|||||||
|
|
||||||
void RedrawGraphs();
|
void RedrawGraphs();
|
||||||
|
|
||||||
|
gGraphView *graphView() { return GraphView; }
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void on_RefreshPortsButton_clicked();
|
void on_RefreshPortsButton_clicked();
|
||||||
void on_RunButton_toggled(bool checked);
|
void on_RunButton_toggled(bool checked);
|
||||||
|
@ -7,12 +7,17 @@
|
|||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QTextStream>
|
#include <QTextStream>
|
||||||
#include "preferencesdialog.h"
|
#include "preferencesdialog.h"
|
||||||
|
|
||||||
|
|
||||||
|
#include <Graphs/gGraphView.h>
|
||||||
|
#include <mainwindow.h>
|
||||||
#include "ui_preferencesdialog.h"
|
#include "ui_preferencesdialog.h"
|
||||||
#include "SleepLib/machine_common.h"
|
#include "SleepLib/machine_common.h"
|
||||||
|
|
||||||
extern QFont * defaultfont;
|
extern QFont * defaultfont;
|
||||||
extern QFont * mediumfont;
|
extern QFont * mediumfont;
|
||||||
extern QFont * bigfont;
|
extern QFont * bigfont;
|
||||||
|
extern MainWindow * mainwin;
|
||||||
|
|
||||||
PreferencesDialog::PreferencesDialog(QWidget *parent,Profile * _profile) :
|
PreferencesDialog::PreferencesDialog(QWidget *parent,Profile * _profile) :
|
||||||
QDialog(parent),
|
QDialog(parent),
|
||||||
@ -40,7 +45,7 @@ PreferencesDialog::PreferencesDialog(QWidget *parent,Profile * _profile) :
|
|||||||
}
|
}
|
||||||
importModel=new QStringListModel(importLocations,this);
|
importModel=new QStringListModel(importLocations,this);
|
||||||
ui->importListWidget->setModel(importModel);
|
ui->importListWidget->setModel(importModel);
|
||||||
ui->tabWidget->removeTab(3);
|
//ui->tabWidget->removeTab(3);
|
||||||
|
|
||||||
Q_ASSERT(profile!=NULL);
|
Q_ASSERT(profile!=NULL);
|
||||||
ui->tabWidget->setCurrentIndex(0);
|
ui->tabWidget->setCurrentIndex(0);
|
||||||
@ -158,28 +163,24 @@ PreferencesDialog::PreferencesDialog(QWidget *parent,Profile * _profile) :
|
|||||||
shortformat.replace("yy","yyyy");
|
shortformat.replace("yy","yyyy");
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
QTreeWidget *tree=ui->graphTree;
|
graphFilterModel=new MySortFilterProxyModel(this);
|
||||||
tree->clear();
|
graphModel=new QStandardItemModel(this);
|
||||||
tree->setColumnCount(1); // 1 visible common.. (1 hidden)
|
graphFilterModel->setSourceModel(graphModel);
|
||||||
|
graphFilterModel->setFilterCaseSensitivity(Qt::CaseInsensitive);
|
||||||
|
graphFilterModel->setFilterKeyColumn(0);
|
||||||
|
ui->graphView->setModel(graphFilterModel);
|
||||||
|
|
||||||
QTreeWidgetItem *daily=new QTreeWidgetItem((QTreeWidget *)0,QStringList("Daily Graphs"));
|
|
||||||
QTreeWidgetItem *overview=new QTreeWidgetItem((QTreeWidget *)0,QStringList("Overview Graphs"));
|
|
||||||
tree->insertTopLevelItem(0,daily);
|
resetGraphModel();
|
||||||
tree->insertTopLevelItem(0,overview);
|
// tree->sortByColumn(0,Qt::AscendingOrder);
|
||||||
QTreeWidgetItem *it=new QTreeWidgetItem(daily,QStringList("Event Flags"));//,QTreeWidgetItem::UserType);
|
|
||||||
it->setFlags(Qt::ItemIsUserCheckable|Qt::ItemIsSelectable|Qt::ItemIsEnabled);
|
|
||||||
it->setCheckState(0,Qt::Checked);
|
|
||||||
daily->addChild(it);
|
|
||||||
//QTreeWidgetItem *root=NULL;//new QTreeWidgetItem((QTreeWidget *)0,QStringList("Stuff"));
|
|
||||||
//=new QTreeWidgetItem(root,l);
|
|
||||||
//ui->graphTree->setModel(
|
|
||||||
tree->sortByColumn(0,Qt::AscendingOrder);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
PreferencesDialog::~PreferencesDialog()
|
PreferencesDialog::~PreferencesDialog()
|
||||||
{
|
{
|
||||||
|
disconnect(graphModel,SIGNAL(itemChanged(QStandardItem*)),this,SLOT(on_graphModel_changed(QStandardItem*)));
|
||||||
delete ui;
|
delete ui;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -402,3 +403,227 @@ void PreferencesDialog::on_removeImportLocation_clicked()
|
|||||||
importLocations.removeAll(dir);
|
importLocations.removeAll(dir);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void PreferencesDialog::on_graphView_activated(const QModelIndex &index)
|
||||||
|
{
|
||||||
|
QString a=index.data().toString();
|
||||||
|
qDebug() << "Could do something here with" << a;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PreferencesDialog::on_graphFilter_textChanged(const QString &arg1)
|
||||||
|
{
|
||||||
|
graphFilterModel->setFilterFixedString(arg1);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
MySortFilterProxyModel::MySortFilterProxyModel(QObject *parent)
|
||||||
|
:QSortFilterProxyModel(parent)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
bool MySortFilterProxyModel::filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
|
||||||
|
{
|
||||||
|
if (source_parent == qobject_cast<QStandardItemModel*>(sourceModel())->invisibleRootItem()->index()) {
|
||||||
|
// always accept children of rootitem, since we want to filter their children
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return QSortFilterProxyModel::filterAcceptsRow(source_row, source_parent);
|
||||||
|
}
|
||||||
|
|
||||||
|
void PreferencesDialog::on_graphModel_changed(QStandardItem * item)
|
||||||
|
{
|
||||||
|
QModelIndex index=item->index();
|
||||||
|
|
||||||
|
gGraphView *gv=NULL;
|
||||||
|
bool ok;
|
||||||
|
|
||||||
|
const QModelIndex & row=index.sibling(index.row(),0);
|
||||||
|
bool checked=row.data(Qt::CheckStateRole)!=0;
|
||||||
|
QString name=row.data().toString();
|
||||||
|
|
||||||
|
int group=row.data(Qt::UserRole+1).toInt();
|
||||||
|
int id=row.data(Qt::UserRole+2).toInt();
|
||||||
|
switch(group) {
|
||||||
|
case 0: gv=mainwin->getDaily()->graphView(); break;
|
||||||
|
case 1: gv=mainwin->getOverview()->graphView(); break;
|
||||||
|
case 2: gv=mainwin->getOximetry()->graphView(); break;
|
||||||
|
default: ;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!gv)
|
||||||
|
return;
|
||||||
|
|
||||||
|
gGraph *graph=(*gv)[id];
|
||||||
|
if (!graph)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (graph->visible()!=checked) {
|
||||||
|
graph->setVisible(checked);
|
||||||
|
}
|
||||||
|
|
||||||
|
EventDataType val;
|
||||||
|
|
||||||
|
if (index.column()==1) {
|
||||||
|
val=index.data().toDouble(&ok);
|
||||||
|
|
||||||
|
if (!ok) {
|
||||||
|
graphModel->setData(index,QString::number(graph->rec_miny,'f',1));
|
||||||
|
ui->graphView->update();
|
||||||
|
} else {
|
||||||
|
if ((val < graph->rec_maxy) || (val==0)) {
|
||||||
|
graph->recMinY(val);
|
||||||
|
} else {
|
||||||
|
graphModel->setData(index,QString::number(graph->rec_miny,'f',1));
|
||||||
|
ui->graphView->update();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (index.column()==2) {
|
||||||
|
val=index.data().toDouble(&ok);
|
||||||
|
if (!ok) {
|
||||||
|
graphModel->setData(index,QString::number(graph->rec_maxy,'f',1));
|
||||||
|
ui->graphView->update();
|
||||||
|
} else {
|
||||||
|
if ((val > graph->rec_miny) || (val==0)) {
|
||||||
|
graph->recMaxY(val);
|
||||||
|
} else {
|
||||||
|
graphModel->setData(index,QString::number(graph->rec_maxy,'f',1));
|
||||||
|
ui->graphView->update();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
// qDebug() << name << checked;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PreferencesDialog::resetGraphModel()
|
||||||
|
{
|
||||||
|
|
||||||
|
graphModel->clear();
|
||||||
|
QStandardItem *daily=new QStandardItem("Daily Graphs");
|
||||||
|
QStandardItem *overview=new QStandardItem("Overview Graphs");
|
||||||
|
daily->setEditable(false);
|
||||||
|
overview->setEditable(false);
|
||||||
|
|
||||||
|
graphModel->appendRow(daily);
|
||||||
|
graphModel->appendRow(overview);
|
||||||
|
connect(graphModel,SIGNAL(itemChanged(QStandardItem*)),this,SLOT(on_graphModel_changed(QStandardItem*)));
|
||||||
|
|
||||||
|
ui->graphView->setAlternatingRowColors(true);
|
||||||
|
|
||||||
|
ui->graphView->setFirstColumnSpanned(0,daily->index(),true);
|
||||||
|
graphModel->setColumnCount(3);
|
||||||
|
QStringList headers;
|
||||||
|
headers.append("Graph");
|
||||||
|
headers.append("Min");
|
||||||
|
headers.append("Max");
|
||||||
|
graphModel->setHorizontalHeaderLabels(headers);
|
||||||
|
ui->graphView->setColumnWidth(0,250);
|
||||||
|
ui->graphView->setColumnWidth(1,50);
|
||||||
|
ui->graphView->setColumnWidth(2,50);
|
||||||
|
|
||||||
|
gGraphView *gv=mainwin->getDaily()->graphView();
|
||||||
|
for (int i=0;i<gv->size();i++) {
|
||||||
|
QList<QStandardItem *> items;
|
||||||
|
QString title=(*gv)[i]->title();
|
||||||
|
QStandardItem *it=new QStandardItem(title);
|
||||||
|
it->setCheckable(true);
|
||||||
|
it->setCheckState((*gv)[i]->visible() ? Qt::Checked : Qt::Unchecked);
|
||||||
|
it->setEditable(false);
|
||||||
|
it->setData(0,Qt::UserRole+1);
|
||||||
|
it->setData(i,Qt::UserRole+2);
|
||||||
|
items.push_back(it);
|
||||||
|
|
||||||
|
if (title!="Event Flags") {
|
||||||
|
|
||||||
|
it=new QStandardItem(QString::number((*gv)[i]->rec_miny,'f',1));
|
||||||
|
it->setEditable(true);
|
||||||
|
items.push_back(it);
|
||||||
|
|
||||||
|
it=new QStandardItem(QString::number((*gv)[i]->rec_maxy,'f',1));
|
||||||
|
it->setEditable(true);
|
||||||
|
items.push_back(it);
|
||||||
|
} else {
|
||||||
|
it=new QStandardItem(tr("N/A")); // not applicable.
|
||||||
|
it->setEditable(false);
|
||||||
|
items.push_back(it);
|
||||||
|
items.push_back(it->clone());
|
||||||
|
}
|
||||||
|
|
||||||
|
daily->insertRow(i,items);
|
||||||
|
}
|
||||||
|
|
||||||
|
gv=mainwin->getOverview()->graphView();
|
||||||
|
for (int i=0;i<gv->size();i++) {
|
||||||
|
QList<QStandardItem *> items;
|
||||||
|
QStandardItem *it=new QStandardItem((*gv)[i]->title());
|
||||||
|
it->setCheckable(true);
|
||||||
|
it->setCheckState((*gv)[i]->visible() ? Qt::Checked : Qt::Unchecked);
|
||||||
|
it->setEditable(false);
|
||||||
|
items.push_back(it);
|
||||||
|
it->setData(1,Qt::UserRole+1);
|
||||||
|
it->setData(i,Qt::UserRole+2);
|
||||||
|
|
||||||
|
it=new QStandardItem(QString::number((*gv)[i]->rec_miny,'f',1));
|
||||||
|
it->setEditable(true);
|
||||||
|
items.push_back(it);
|
||||||
|
|
||||||
|
it=new QStandardItem(QString::number((*gv)[i]->rec_maxy,'f',1));
|
||||||
|
it->setEditable(true);
|
||||||
|
items.push_back(it);
|
||||||
|
|
||||||
|
overview->insertRow(i,items);
|
||||||
|
}
|
||||||
|
if (mainwin->getOximetry()) {
|
||||||
|
QStandardItem *oximetry=new QStandardItem("Oximetry Graphs");
|
||||||
|
graphModel->appendRow(oximetry);
|
||||||
|
oximetry->setEditable(false);
|
||||||
|
gv=mainwin->getOximetry()->graphView();
|
||||||
|
for (int i=0;i<gv->size();i++) {
|
||||||
|
QList<QStandardItem *> items;
|
||||||
|
QStandardItem *it=new QStandardItem((*gv)[i]->title());
|
||||||
|
it->setCheckable(true);
|
||||||
|
it->setCheckState((*gv)[i]->visible() ? Qt::Checked : Qt::Unchecked);
|
||||||
|
it->setEditable(false);
|
||||||
|
it->setData(2,Qt::UserRole+1);
|
||||||
|
it->setData(i,Qt::UserRole+2);
|
||||||
|
items.push_back(it);
|
||||||
|
|
||||||
|
it=new QStandardItem(QString::number((*gv)[i]->rec_miny,'f',1));
|
||||||
|
it->setEditable(true);
|
||||||
|
items.push_back(it);
|
||||||
|
|
||||||
|
it=new QStandardItem(QString::number((*gv)[i]->rec_maxy,'f',1));
|
||||||
|
it->setEditable(true);
|
||||||
|
items.push_back(it);
|
||||||
|
|
||||||
|
oximetry->insertRow(i,items);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ui->graphView->expandAll();
|
||||||
|
}
|
||||||
|
|
||||||
|
void PreferencesDialog::on_resetGraphButton_clicked()
|
||||||
|
{
|
||||||
|
if (QMessageBox::question(this,"Confirmation","Are you sure you want to reset your graph preferences to the defaults?",QMessageBox::Yes,QMessageBox::No)==QMessageBox::Yes) {
|
||||||
|
gGraphView *gv[3];
|
||||||
|
gv[0]=mainwin->getDaily()->graphView();
|
||||||
|
gv[1]=mainwin->getOverview()->graphView();
|
||||||
|
gv[2]=mainwin->getOximetry()->graphView();
|
||||||
|
for (int j=0;j<3;j++) {
|
||||||
|
if (gv[j]!=NULL) {
|
||||||
|
for (int i=0;i<gv[j]->size();i++) {
|
||||||
|
gGraph *g=(*(gv[j]))[i];
|
||||||
|
g->recMaxY(0);
|
||||||
|
g->recMinY(0);
|
||||||
|
g->setVisible(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
resetGraphModel();
|
||||||
|
ui->graphView->update();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -10,12 +10,25 @@
|
|||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QModelIndex>
|
#include <QModelIndex>
|
||||||
#include <QStringListModel>
|
#include <QStringListModel>
|
||||||
|
#include <QSortFilterProxyModel>
|
||||||
|
#include <QStandardItemModel>
|
||||||
#include "SleepLib/profiles.h"
|
#include "SleepLib/profiles.h"
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class PreferencesDialog;
|
class PreferencesDialog;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class MySortFilterProxyModel:public QSortFilterProxyModel
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
MySortFilterProxyModel(QObject *parent = 0);
|
||||||
|
|
||||||
|
protected:
|
||||||
|
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
class PreferencesDialog : public QDialog
|
class PreferencesDialog : public QDialog
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
@ -39,13 +52,25 @@ private slots:
|
|||||||
|
|
||||||
void on_removeImportLocation_clicked();
|
void on_removeImportLocation_clicked();
|
||||||
|
|
||||||
|
void on_graphView_activated(const QModelIndex &index);
|
||||||
|
|
||||||
|
void on_graphFilter_textChanged(const QString &arg1);
|
||||||
|
|
||||||
|
void on_graphModel_changed(QStandardItem * item);
|
||||||
|
|
||||||
|
void on_resetGraphButton_clicked();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void resetGraphModel();
|
||||||
Ui::PreferencesDialog *ui;
|
Ui::PreferencesDialog *ui;
|
||||||
Profile * profile;
|
Profile * profile;
|
||||||
QHash<int,QColor> m_new_colors;
|
QHash<int,QColor> m_new_colors;
|
||||||
QStringList importLocations;
|
QStringList importLocations;
|
||||||
QStringListModel *importModel;
|
QStringListModel *importModel;
|
||||||
|
MySortFilterProxyModel *graphFilterModel;
|
||||||
|
QStandardItemModel *graphModel;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif // PREFERENCESDIALOG_H
|
#endif // PREFERENCESDIALOG_H
|
||||||
|
@ -494,45 +494,49 @@ p, li { white-space: pre-wrap; }
|
|||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_9">
|
<layout class="QHBoxLayout" name="horizontalLayout_6">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_8">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>This page is yet another work in progress. Please ignore.</string>
|
<string>Search</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_6">
|
<widget class="QLineEdit" name="graphFilter"/>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_8">
|
<widget class="QTreeView" name="graphView"/>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QWidget" name="widget_3" native="true">
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_11">
|
||||||
|
<property name="margin">
|
||||||
|
<number>3</number>
|
||||||
|
</property>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="resetGraphButton">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Filter</string>
|
<string>&Defaults</string>
|
||||||
</property>
|
|
||||||
<property name="margin">
|
|
||||||
<number>4</number>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLineEdit" name="graphTreeFilter"/>
|
<widget class="QLabel" name="label_9">
|
||||||
|
<property name="text">
|
||||||
|
<string>Please Note: Graph visibility also depends on machine availability.</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QTreeWidget" name="graphTree">
|
|
||||||
<property name="headerHidden">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<column>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">1</string>
|
|
||||||
</property>
|
|
||||||
</column>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
@ -1247,31 +1251,57 @@ It has no effect on single cpu machines.</string>
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QDialogButtonBox" name="buttonBox">
|
<widget class="QWidget" name="widget_2" native="true">
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_9">
|
||||||
|
<property name="spacing">
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
|
<property name="margin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer_5">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="standardButtons">
|
<property name="sizeHint" stdset="0">
|
||||||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="centerButtons">
|
</spacer>
|
||||||
<bool>false</bool>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="cancelButton">
|
||||||
|
<property name="text">
|
||||||
|
<string>&Cancel</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="okButton">
|
||||||
|
<property name="text">
|
||||||
|
<string>&Ok</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections>
|
<connections>
|
||||||
<connection>
|
<connection>
|
||||||
<sender>buttonBox</sender>
|
<sender>okButton</sender>
|
||||||
<signal>accepted()</signal>
|
<signal>clicked()</signal>
|
||||||
<receiver>PreferencesDialog</receiver>
|
<receiver>PreferencesDialog</receiver>
|
||||||
<slot>accept()</slot>
|
<slot>accept()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
<x>248</x>
|
<x>444</x>
|
||||||
<y>254</y>
|
<y>303</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel">
|
<hint type="destinationlabel">
|
||||||
<x>157</x>
|
<x>157</x>
|
||||||
@ -1280,14 +1310,14 @@ It has no effect on single cpu machines.</string>
|
|||||||
</hints>
|
</hints>
|
||||||
</connection>
|
</connection>
|
||||||
<connection>
|
<connection>
|
||||||
<sender>buttonBox</sender>
|
<sender>cancelButton</sender>
|
||||||
<signal>rejected()</signal>
|
<signal>clicked()</signal>
|
||||||
<receiver>PreferencesDialog</receiver>
|
<receiver>PreferencesDialog</receiver>
|
||||||
<slot>reject()</slot>
|
<slot>reject()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
<x>316</x>
|
<x>154</x>
|
||||||
<y>260</y>
|
<y>303</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel">
|
<hint type="destinationlabel">
|
||||||
<x>286</x>
|
<x>286</x>
|
||||||
|
Loading…
Reference in New Issue
Block a user