Merge branch 'master' of github.com:collin80/SavvyCAN
This commit is contained in:
+14
-14
@@ -8,7 +8,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
buildlinux:
|
buildlinux:
|
||||||
name: Linux x64
|
name: Linux x64
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Prepare Environment
|
- name: Prepare Environment
|
||||||
@@ -16,10 +16,10 @@ jobs:
|
|||||||
sudo apt-get install libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xinerama0 libxcb-randr0
|
sudo apt-get install libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xinerama0 libxcb-randr0
|
||||||
|
|
||||||
- name: Prepare Qt Libraries
|
- name: Prepare Qt Libraries
|
||||||
uses: jurplel/install-qt-action@v2
|
uses: jurplel/install-qt-action@v3
|
||||||
|
|
||||||
- name: Clone
|
- name: Clone
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Compile
|
- name: Compile
|
||||||
run: |
|
run: |
|
||||||
@@ -33,14 +33,14 @@ jobs:
|
|||||||
chmod a+x linuxdeployqt-5-x86_64.AppImage
|
chmod a+x linuxdeployqt-5-x86_64.AppImage
|
||||||
./linuxdeployqt-5-x86_64.AppImage appdir/usr/share/applications/SavvyCAN.desktop -appimage -extra-plugins=iconengines,platformthemes/libqgtk3.so,canbus
|
./linuxdeployqt-5-x86_64.AppImage appdir/usr/share/applications/SavvyCAN.desktop -appimage -extra-plugins=iconengines,platformthemes/libqgtk3.so,canbus
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: SavvyCAN-Linux_x64.AppImage
|
name: SavvyCAN-Linux_x64.AppImage
|
||||||
path: SavvyCAN-x86_64.AppImage
|
path: SavvyCAN-x86_64.AppImage
|
||||||
|
|
||||||
buildmacos:
|
buildmacos:
|
||||||
name: macOS x64
|
name: macOS x64
|
||||||
runs-on: macos-10.15
|
runs-on: macos-11
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Prepare macOS Environment
|
- name: Prepare macOS Environment
|
||||||
@@ -49,7 +49,7 @@ jobs:
|
|||||||
brew link qt5 --force
|
brew link qt5 --force
|
||||||
|
|
||||||
- name: Clone
|
- name: Clone
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Compile
|
- name: Compile
|
||||||
run: |
|
run: |
|
||||||
@@ -62,7 +62,7 @@ jobs:
|
|||||||
cp -R help/* SavvyCAN.app/Contents/MacOS/help
|
cp -R help/* SavvyCAN.app/Contents/MacOS/help
|
||||||
macdeployqt SavvyCAN.app -dmg
|
macdeployqt SavvyCAN.app -dmg
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: SavvyCAN-macOS_x64.dmg
|
name: SavvyCAN-macOS_x64.dmg
|
||||||
path: SavvyCAN.dmg
|
path: SavvyCAN.dmg
|
||||||
@@ -73,10 +73,10 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Prepare Qt Libraries
|
- name: Prepare Qt Libraries
|
||||||
uses: jurplel/install-qt-action@v2
|
uses: jurplel/install-qt-action@v3
|
||||||
|
|
||||||
- name: Clone
|
- name: Clone
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Compile
|
- name: Compile
|
||||||
shell: cmd
|
shell: cmd
|
||||||
@@ -113,7 +113,7 @@ jobs:
|
|||||||
mkdir package/canbus
|
mkdir package/canbus
|
||||||
copy "${Env:Qt5_Dir}/plugins/canbus/*.*" package/canbus/
|
copy "${Env:Qt5_Dir}/plugins/canbus/*.*" package/canbus/
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: SavvyCAN-Windows_x64
|
name: SavvyCAN-Windows_x64
|
||||||
path: package
|
path: package
|
||||||
@@ -124,12 +124,12 @@ jobs:
|
|||||||
needs: [buildwindows, buildmacos, buildlinux]
|
needs: [buildwindows, buildmacos, buildlinux]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v3
|
||||||
|
|
||||||
- name: Display structure of downloaded files
|
- name: Display structure of downloaded files
|
||||||
run: zip -r SavvyCAN_CIBuild.zip SavvyCAN-Windows_x64
|
run: zip -r SavvyCAN-Windows_x64_CIBuild.zip SavvyCAN-Windows_x64
|
||||||
- uses: "marvinpinto/action-automatic-releases@latest"
|
- uses: "marvinpinto/action-automatic-releases@latest"
|
||||||
with:
|
with:
|
||||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
@@ -138,7 +138,7 @@ jobs:
|
|||||||
title: "Development Build"
|
title: "Development Build"
|
||||||
files: |
|
files: |
|
||||||
SavvyCAN-Linux_x64.AppImage/SavvyCAN-x86_64.AppImage
|
SavvyCAN-Linux_x64.AppImage/SavvyCAN-x86_64.AppImage
|
||||||
SavvyCAN_CIBuild.zip
|
SavvyCAN-Windows_x64_CIBuild.zip
|
||||||
SavvyCAN-macOS_x64.dmg/SavvyCAN.dmg
|
SavvyCAN-macOS_x64.dmg/SavvyCAN.dmg
|
||||||
|
|
||||||
notify:
|
notify:
|
||||||
|
|||||||
+17
-2
@@ -473,8 +473,21 @@ void MainWindow::expandAllRows()
|
|||||||
|
|
||||||
void MainWindow::manageRowExpansion()
|
void MainWindow::manageRowExpansion()
|
||||||
{
|
{
|
||||||
if(rowExpansionActive && model->getInterpretMode())
|
int numRows = ui->canFramesView->model()->rowCount();
|
||||||
ui->canFramesView->resizeRowsToContents();
|
if(numRows < 20000)
|
||||||
|
{
|
||||||
|
if(rowExpansionActive && model->getInterpretMode())
|
||||||
|
ui->canFramesView->resizeRowsToContents();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
disableAutoRowExpansion();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::disableAutoRowExpansion()
|
||||||
|
{
|
||||||
|
rowExpansionActive = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::collapseAllRows()
|
void MainWindow::collapseAllRows()
|
||||||
@@ -869,6 +882,7 @@ void MainWindow::handleLoadFile()
|
|||||||
|
|
||||||
if (loadResult)
|
if (loadResult)
|
||||||
{
|
{
|
||||||
|
disableAutoRowExpansion();
|
||||||
ui->canFramesView->scrollToTop();
|
ui->canFramesView->scrollToTop();
|
||||||
model->clearFrames();
|
model->clearFrames();
|
||||||
model->insertFrames(tempFrames);
|
model->insertFrames(tempFrames);
|
||||||
@@ -912,6 +926,7 @@ void MainWindow::handleDroppedFile(const QString &filename)
|
|||||||
|
|
||||||
if (loadResult)
|
if (loadResult)
|
||||||
{
|
{
|
||||||
|
disableAutoRowExpansion();
|
||||||
ui->canFramesView->scrollToTop();
|
ui->canFramesView->scrollToTop();
|
||||||
model->clearFrames();
|
model->clearFrames();
|
||||||
model->insertFrames(loadedFrames);
|
model->insertFrames(loadedFrames);
|
||||||
|
|||||||
@@ -209,6 +209,7 @@ private:
|
|||||||
void writeSettings();
|
void writeSettings();
|
||||||
bool eventFilter(QObject *obj, QEvent *event);
|
bool eventFilter(QObject *obj, QEvent *event);
|
||||||
void manageRowExpansion();
|
void manageRowExpansion();
|
||||||
|
void disableAutoRowExpansion();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // MAINWINDOW_H
|
#endif // MAINWINDOW_H
|
||||||
|
|||||||
Reference in New Issue
Block a user