Skip to content

Commit

Permalink
Merge branch 'master' of github.com:collin80/SavvyCAN into WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
collin80 committed Feb 14, 2019
2 parents 1727974 + 9c3f1bf commit c453a2f
Show file tree
Hide file tree
Showing 20 changed files with 33 additions and 14 deletions.
1 change: 1 addition & 0 deletions bisectwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ BisectWindow::BisectWindow(const QVector<CANFrame> *frames, QWidget *parent) :
ui(new Ui::BisectWindow)
{
ui->setupUi(this);
setWindowFlags(Qt::Window);

modelFrames = frames;

Expand Down
1 change: 1 addition & 0 deletions connections/connectionwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ConnectionWindow::ConnectionWindow(QWidget *parent) :
ui(new Ui::ConnectionWindow)
{
ui->setupUi(this);
setWindowFlags(Qt::Window);

QSettings settings;

Expand Down
1 change: 1 addition & 0 deletions dbc/dbcloadsavewindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ DBCLoadSaveWindow::DBCLoadSaveWindow(const QVector<CANFrame> *frames, QWidget *p
QDialog(parent),
ui(new Ui::DBCLoadSaveWindow)
{
setWindowFlags(Qt::Window);

dbcHandler = DBCHandler::getReference();
referenceFrames = frames;
Expand Down
9 changes: 5 additions & 4 deletions firmwareuploaderwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ FirmwareUploaderWindow::FirmwareUploaderWindow(const QVector<CANFrame> *frames,
QDialog(parent),
ui(new Ui::FirmwareUploaderWindow)
{
ui->setupUi(this);
ui->setupUi(this);
setWindowFlags(Qt::Window);

transferInProgress = false;
startedProcess = false;
Expand All @@ -25,7 +26,7 @@ FirmwareUploaderWindow::FirmwareUploaderWindow(const QVector<CANFrame> *frames,
updateProgress();

timer = new QTimer();
timer->setInterval(100); //100ms without a reply will cause us to attempt a resend
timer->setInterval(100); //100ms without a reply will cause us to attempt a resend

connect(MainWindow::getReference(), SIGNAL(framesUpdated(int)), this, SLOT(updatedFrames(int)));
connect(ui->btnLoadFile, SIGNAL(clicked(bool)), this, SLOT(handleLoadFile()));
Expand Down Expand Up @@ -136,7 +137,7 @@ void FirmwareUploaderWindow::sendFirmwareChunk()
output->data[4] = firmwareData[firmwareLocation++];
output->data[5] = firmwareData[firmwareLocation++];
for (int i = 0; i < 6; i++) xorByte = xorByte ^ output->data[i];
output->data[6] = xorByte;
output->data[6] = xorByte;
sendCANFrame(output);
timer->start();
}
Expand All @@ -162,7 +163,7 @@ void FirmwareUploaderWindow::handleStartStopTransfer()
if (startedProcess) //start the process
{
ui->progressBar->setValue(0);
ui->btnStartStop->setText("Stop Upload");
ui->btnStartStop->setText("Stop Upload");
token = Utility::ParseStringToNum(ui->txtToken->text());
bus = ui->spinBus->value();
baseAddress = Utility::ParseStringToNum(ui->txtBaseAddr->text());
Expand Down
6 changes: 3 additions & 3 deletions frameplaybackwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ FramePlaybackWindow::FramePlaybackWindow(const QVector<CANFrame> *frames, QWidge
ui(new Ui::FramePlaybackWindow)
{
ui->setupUi(this);

setWindowFlags(Qt::Window);

int numBuses = CANConManager::getInstance()->getNumBuses();
for (int n = 0; n < numBuses; n++) ui->comboCANBus->addItem(QString::number(n));
Expand Down Expand Up @@ -558,7 +558,7 @@ void FramePlaybackWindow::btnStopClick()
{
ui->tblSequence->setCurrentCell(0, 0);
refreshIDList();
}
}
updateFrameLabel();
}

Expand Down Expand Up @@ -599,7 +599,7 @@ void FramePlaybackWindow::changeSendingBus(int newIdx)
void FramePlaybackWindow::changeIDFiltering(QListWidgetItem *item)
{
qDebug() << "Changed ID filter " << item->text() << " : " << item->checkState();
int ID = Utility::ParseStringToNum(item->text());
int ID = Utility::ParseStringToNum(item->text());
currentSeqItem->idFilters[ID] = (item->checkState() == Qt::Checked) ? true : false;
}

Expand Down
1 change: 1 addition & 0 deletions framesenderwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ FrameSenderWindow::FrameSenderWindow(const QVector<CANFrame> *frames, QWidget *p
ui(new Ui::FrameSenderWindow)
{
ui->setupUi(this);
setWindowFlags(Qt::Window);

modelFrames = frames;

Expand Down
1 change: 1 addition & 0 deletions helpwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ HelpWindow::HelpWindow(QWidget *parent) :
ui(new Ui::HelpWindow)
{
ui->setupUi(this);
setWindowFlags(Qt::Window);

m_helpEngine = new QHelpEngineCore(QApplication::applicationDirPath() +"/SavvyCAN.qhc", this);
if (!m_helpEngine->setupData()) {
Expand Down
1 change: 1 addition & 0 deletions motorcontrollerconfigwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ MotorControllerConfigWindow::MotorControllerConfigWindow(const QVector<CANFrame>
ui(new Ui::MotorControllerConfigWindow)
{
ui->setupUi(this);
setWindowFlags(Qt::Window);

modelFrames = frames;

Expand Down
1 change: 1 addition & 0 deletions re/discretestatewindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ DiscreteStateWindow::DiscreteStateWindow(const QVector<CANFrame> *frames, QWidge
ui(new Ui::DiscreteStateWindow)
{
ui->setupUi(this);
setWindowFlags(Qt::Window);

modelFrames = frames;
operatingState = DWStates::IDLE;
Expand Down
7 changes: 4 additions & 3 deletions re/filecomparatorwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ FileComparatorWindow::FileComparatorWindow(QWidget *parent) :
ui(new Ui::FileComparatorWindow)
{
ui->setupUi(this);
setWindowFlags(Qt::Window);

connect(ui->btnInterestedFile, SIGNAL(clicked(bool)), this, SLOT(loadInterestedFile()));
connect(ui->btnLoadRefFile, SIGNAL(clicked(bool)), this, SLOT(loadReferenceFile()));
Expand Down Expand Up @@ -167,8 +168,8 @@ void FileComparatorWindow::calculateDetails()
//qDebug() << "bitmap: " << QString::number(newData->bitmap, 16);
}
interestedIDs.insert(frame.ID, *newData);
}
}
}
}

for (int x = 0; x < referenceFrames.count(); x++)
{
Expand Down Expand Up @@ -227,7 +228,7 @@ void FileComparatorWindow::calculateDetails()
{
interestedHadUnique = false;
sharedItem = new QTreeWidgetItem();
sharedItem->setText(0, Utility::formatHexNum(keyone));
sharedItem->setText(0, Utility::formatHexNum(keyone));
//if the ID was in both files then we can use the data accumulated above in bitmap
//and values to figure out what has changed between the two files

Expand Down
1 change: 1 addition & 0 deletions re/flowviewwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ FlowViewWindow::FlowViewWindow(const QVector<CANFrame> *frames, QWidget *parent)
ui(new Ui::FlowViewWindow)
{
ui->setupUi(this);
setWindowFlags(Qt::Window);

readSettings();

Expand Down
1 change: 1 addition & 0 deletions re/frameinfowindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ FrameInfoWindow::FrameInfoWindow(const QVector<CANFrame> *frames, QWidget *paren
ui(new Ui::FrameInfoWindow)
{
ui->setupUi(this);
setWindowFlags(Qt::Window);

readSettings();

Expand Down
5 changes: 3 additions & 2 deletions re/fuzzingwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ FuzzingWindow::FuzzingWindow(const QVector<CANFrame> *frames, QWidget *parent) :
ui(new Ui::FuzzingWindow)
{
ui->setupUi(this);
setWindowFlags(Qt::Window);

modelFrames = frames;

Expand Down Expand Up @@ -185,7 +186,7 @@ void FuzzingWindow::setAllFilters()
void FuzzingWindow::calcNextID()
{
if (seqIDScan)
{
{
if (rangeIDSelect)
{
currentID++;
Expand Down Expand Up @@ -368,7 +369,7 @@ void FuzzingWindow::refreshIDList()

int id;
for (int i = 0; i < modelFrames->count(); i++)
{
{
CANFrame thisFrame = modelFrames->at(i);
id = thisFrame.ID;
if (!foundIDs.contains(id))
Expand Down
1 change: 1 addition & 0 deletions re/graphingwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ GraphingWindow::GraphingWindow(const QVector<CANFrame> *frames, QWidget *parent)
ui(new Ui::GraphingWindow)
{
ui->setupUi(this);
setWindowFlags(Qt::Window);

readSettings();

Expand Down
1 change: 1 addition & 0 deletions re/isotp_interpreterwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ISOTP_InterpreterWindow::ISOTP_InterpreterWindow(const QVector<CANFrame> *frames
ui(new Ui::ISOTP_InterpreterWindow)
{
ui->setupUi(this);
setWindowFlags(Qt::Window);
modelFrames = frames;

decoder = new ISOTP_HANDLER;
Expand Down
3 changes: 2 additions & 1 deletion re/rangestatewindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ RangeStateWindow::RangeStateWindow(const QVector<CANFrame> *frames, QWidget *par
ui(new Ui::RangeStateWindow)
{
ui->setupUi(this);
setWindowFlags(Qt::Window);

modelFrames = frames;

Expand Down Expand Up @@ -225,7 +226,7 @@ void RangeStateWindow::recalcButton()
if (modelFrames->at(j).ID == id) frameCache.append(modelFrames->at(j));
}
//now we've got a list with all the same ID. Time to send it off for processing
signalsFactory();
signalsFactory();
}
}

Expand Down
1 change: 1 addition & 0 deletions re/sniffer/snifferwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ SnifferWindow::SnifferWindow(QWidget *parent) :
mFilter(false)
{
ui->setupUi(this);
setWindowFlags(Qt::Window);
ui->treeView->setModel(&mModel);

/* set column width */
Expand Down
1 change: 1 addition & 0 deletions re/udsscanwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ UDSScanWindow::UDSScanWindow(const QVector<CANFrame> *frames, QWidget *parent) :
ui(new Ui::UDSScanWindow)
{
ui->setupUi(this);
setWindowFlags(Qt::Window);

modelFrames = frames;

Expand Down
1 change: 1 addition & 0 deletions scriptingwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ ScriptingWindow::ScriptingWindow(const QVector<CANFrame> *frames, QWidget *paren
ui(new Ui::ScriptingWindow)
{
ui->setupUi(this);
setWindowFlags(Qt::Window);

editor = new JSEdit();
editor->setFrameShape(JSEdit::NoFrame);
Expand Down
3 changes: 2 additions & 1 deletion signalviewerwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ SignalViewerWindow::SignalViewerWindow(QWidget *parent) :
ui(new Ui::SignalViewerWindow)
{
ui->setupUi(this);
setWindowFlags(Qt::Window);

QStringList headers;
headers << "Signal" << "Value";
ui->tableViewer->setHorizontalHeaderLabels(headers);
ui->tableViewer->setHorizontalHeaderLabels(headers);
ui->tableViewer->setColumnWidth(0, 150);
ui->tableViewer->setColumnWidth(1, 300);
QHeaderView *HorzHdr = ui->tableViewer->horizontalHeader();
Expand Down

0 comments on commit c453a2f

Please sign in to comment.