Filippo Gentile
783683b232
RailwaySegmentHelper: add custom error text on segment removal
2022-03-08 15:31:57 +01:00
Filippo Gentile
573dfac662
RsPlanModel: mark cells with errors
2022-03-08 13:23:12 +01:00
Filippo Gentile
82c154fca2
StationsManager: ask confirmation before deleting items
2022-03-08 12:17:31 +01:00
Filippo Gentile
d185c0016e
Models: check also for SQLITE_CONSTRAINT_FOREIGNKEY error
2022-03-08 12:17:00 +01:00
Filippo Gentile
48d7180cd5
ShiftsModel: better shift creation, better error reporting
2022-03-08 12:10:04 +01:00
Filippo Gentile
d3d6e099b6
MeetingSession: fix database table creation
...
Add note on SQLite extended error codes
Explicitly set Foreign Key ON DELETE RESTRICT for jobs.shift_id
2022-03-08 12:08:00 +01:00
Filippo Gentile
4c25de9133
RSOwnersSQLModel: better error message for failing removal
2022-03-08 11:42:46 +01:00
Filippo Gentile
f1fc42dd9b
ShiftManager: ask name on shift creation, show errors to user
2022-03-08 11:42:02 +01:00
Filippo Gentile
1816b6292c
RollingStockManager: show model errors to user
2022-03-08 11:40:55 +01:00
Filippo Gentile
c04d77d004
SQLite: use sqlite3_prepare_v2 to get extended_error_code()
...
See SQLite documentation for more info.
The old deprecated sqlite3_prepare() made sqlite3_step() always
return generic SQLITE_ERROR on fail, now we get better error codes.
2022-03-08 11:32:59 +01:00
Filippo Gentile
e536d1897f
RSImportWizard: fix progress page complete
...
When importation is done we need to tell progress page to enable
'Finish' button.
But we were using load page instead of import page so 'Finish' remained
disabled.
2022-02-13 23:41:47 +01:00
Filippo Gentile
ba97509c2b
Translations: update Italian translation
2022-02-13 23:32:46 +01:00
Filippo Gentile
1aa479afcd
MainWindow: fix infinite loop when closing is busy
...
When Database is busy on closing it migth be because some background
task is still running,
so we wait for a bit and then try to close again.
But if second closeSession() is succesful we need to stopCloseTimer()
otherwise we trigger an infinite loop.
2022-02-13 23:29:42 +01:00
Filippo Gentile
0f0aa2c94e
StopEditingHelper: add tooltips for fields
...
Some tooltips are taken from placeholder texts
2022-02-13 23:27:45 +01:00
Filippo Gentile
80630fbb2a
StopEditingHelper: fix showing out gate track on last stop
...
Last stop has not 'out' gate so hide gate track spinbox
2022-02-13 23:14:22 +01:00
gfgit
b48372faa7
Merge pull request #48 from gfgit/feature/detect_direction_change
...
Feature detect direction change
Detect train direction change on stops by comparing station track sides.
When a direction change is detected:
- draw a little U-shaped arrow near station in JobPathEditor
- In EditStopDialog tell user about it in "Additional Notes" section
- In Job (and Shift) and Station sheets prepend "Reverses direction" on stop description
In addition, show line traction type in EditStopDialog
Cache rendered SVG in pixmaps for StopDelegate
2022-02-13 23:09:59 +01:00
Filippo Gentile
e0e22c8830
Translations: update Italian translation
2022-02-13 22:53:58 +01:00
Filippo Gentile
11637625f8
JobWriter: add direction change in notes
...
StationWriter: do the same
Odt: add translation text for direction reverse
2022-02-13 22:53:58 +01:00
Filippo Gentile
a005f0f49e
StationPlanModel: show direction change in description field
2022-02-13 22:53:47 +01:00
Filippo Gentile
1c4d27351d
Icons: fix reverse_direction.svg icon join betwen arrow and path
2022-02-13 22:50:51 +01:00
Filippo Gentile
7fe4e130ea
StopDelegate: cache SVG in pixmaps, draw direction change indicator
2022-02-13 22:50:51 +01:00
Filippo Gentile
50a2f94233
CMake: add reverse_direction.svg icon and install it in icon folder
2022-02-13 22:50:51 +01:00
Filippo Gentile
b533c5dfe6
EditStopDialog: remove unused variable and unused logic if
2022-02-13 22:50:51 +01:00
Filippo Gentile
3ad2ab563f
StopDelegate: always put a space on left of segment name
...
Previously was done only for transits
- Use constant for sizeHint()
2022-02-13 22:50:51 +01:00
Filippo Gentile
681220732c
EditStopDialog: add Additional Notes section
...
These are automatically generated (as opposed to stop description
which is manually typed by the user).
Current notes: traction type and direction changes
2022-02-13 22:50:50 +01:00
Filippo Gentile
5ccf083911
StopEditingHelper: notify when station track is changed
2022-02-13 22:50:50 +01:00
Filippo Gentile
95c1633103
StopItem: rename gate track member to avoid confusion with station track
2022-02-13 22:50:50 +01:00
Filippo Gentile
4dd467212c
StopModel: store station in and out connections side
...
- Generally improve comments
2022-02-13 22:50:50 +01:00
Filippo Gentile
97cd886109
Style: modernize C++, remove typedef from struct and enum declarations
2022-02-12 16:46:43 +01:00
Filippo Gentile
d25897424e
Clang: mismatched forward declarations struct/class
2022-02-12 16:35:24 +01:00
Filippo Gentile
3427248703
EditRailwaySegmentDlg: fix crash
...
When user clicked on Gate field before setting corresponding Station
field, it crashed because Gate models were not yet initialized.
To fix, initialize them immediately on contructing dialog
2022-02-10 23:32:14 +01:00
Filippo Gentile
e749e82eb4
FilterHeaderLineEdit: fix context menu separator
...
FilterHeaderView: QLineEdit include is not needed
2022-02-07 15:32:02 +01:00
Filippo Gentile
a622a49bdc
CMake: move windeployqt and DLL path finding to separate files
...
Remove unused code for crash debugging
2022-02-03 16:17:13 +01:00
Filippo Gentile
5313a0f287
Spell check on BUILDING.md and CONTRIBUTING.md
2022-02-03 12:07:47 +01:00
Filippo Gentile
d28c2b868b
README: spell check on README.md and README_it.md
2022-02-03 12:02:45 +01:00
Filippo Gentile
83e60d26a1
Screenshots: fix path in README.md and README_it.md
2022-02-01 18:58:23 +01:00
Filippo Gentile
8d5c280663
Screenshots: move to dedicated folder
2022-02-01 15:28:18 +01:00
Filippo Gentile
4e5463173e
Screenshot: add SVG Station Plan screenshots
...
English and Italian versions of Adria station SVG Plan
2022-02-01 15:24:16 +01:00
Filippo Gentile
6bde7076ca
JobPathEditor: add labels for number, category and shift in UI
...
- Use QFormLayout instead of QVBoxLayout
- Remove not needed includes in header
- Renamed shiftCustomCombo to just shiftCombo
2022-01-29 13:02:18 +01:00
Filippo Gentile
ec7897806f
Screenshot: add smaller sized screenshot, useful for small previews
2022-01-29 12:38:27 +01:00
Filippo Gentile
cc0770501d
CMake: Bump project version to 6.1.0
2022-01-27 19:07:02 +01:00
gfgit
d407eb98f0
Merge pull request #46 from gfgit/feature/paged_printing
...
Feature paged printing
- Port shift graph and line graph to common IGraphScene interface
- Create a proxy scene to draw page margins on top of source scene
- Refactor print system, so it can print generic IGraphScene
2022-01-27 18:57:41 +01:00
Filippo Gentile
bdd6be0886
Translations: update Italian translation
2022-01-27 18:56:35 +01:00
Filippo Gentile
2d3336a14f
PrintWorker: lock task when accessing members
...
This is not fully correct because QPainter also keeps a reference to
QPrinter object so it might be better to copy QPrinter or transfer
ownership to task
2022-01-27 18:31:32 +01:00
Filippo Gentile
147b532395
IQuittableTask: add lockTask() and unlockTask() methods
...
Add Doxygen documentation to class
2022-01-27 18:19:59 +01:00
Filippo Gentile
f5279788ce
PrintWorker: move to helper/model subdirectory
...
Move also PrintWorkerHandler and printdefs.h
2022-01-27 17:44:40 +01:00
Filippo Gentile
539f07472f
ShiftGraphEditor: use new print dialog
2022-01-27 17:32:52 +01:00
Filippo Gentile
ea67bc93a8
ShiftGraphPrintDlg: new dialog to print shift graph
...
ShiftGraphSceneCollection: new collection to send shif graph in printing
2022-01-27 17:32:52 +01:00
Filippo Gentile
04c0b5cdfd
PrintWorker: abort when print paged returns false
2022-01-27 17:32:52 +01:00
Filippo Gentile
53421d4507
PrintWizard: rename QPrinter member to m_printer
2022-01-26 16:20:08 +01:00