Do general refactoring to make the code cleaner and easier to maintain - Long functions are bad style. They should be avoided. - One function should only have one purpose - to-do: - [x] Remove minimal layout, it causes too many problems and would have to be reimplemented cleanly - [x] #71 - [x] LinboBackend: - [x] Split all QProcess stuff into a spereate class - [x] Remove currentOS. It should not be handled in the backend - [x] Split constructor - [x] ~~Split _executeCommand~~ (now handled in LinboBackend) - [x] Split _handleCommandFinished - [x] ~~Split cancelCurrentAction~~ (it's good enough) - [x] Add parameters to all signals to make getters obsolete - [x] Move start, sync, reinstall to LinboOs - [x] Move createImage and replaceImage to LinboOs - [x] Combine root timeout timer and autostart timeout timer - [x] Move some Stuff to LinboCmd to make the class smaller - [x] LinboConfigReader - [x] Split _loadStartConfiguration - [x] Split _loadEnvironmentValues - [x] Split _loadThemeConfiguration - [X] ~~Refactor all _parse functions~~ (I did not find a better way to handle this) - [x] LinboOs - [x] Remove backend() function - [x] LinboCheckbox - [x] Replace `+` in strings with QString::asprintf - [x] LinboComboBox - [x] Replace `+` in strings with QString::asprintf - [x] LinboDialog - [x] Split constructor - [x] Split paintEvent - [x] Split setVisibleAnimated - [x] Split resizeEvent - [x] ModalOverlay - [x] Split setVisibleAnimated - [x] LinboLineEdit - [x] Replace `+` in strings with QString::asprintf - [x] LinboProgressbar - [x] Split setIndeterminate - [x] Split paintEvent - [ ] LinboPushButton - [x] Split constructor - [ ] Split resizeEvent - [ ] Split setVisibleAnimated - [ ] Split paintEvent - [x] LinboRadioButton - [x] Replace `+` in strings with QString::asprintf - [ ] LinboTerminal - [x] Replace `+` in strings with QString::asprintf - [ ] Split constructor - [ ] Split keyPressEvent - [ ] LinboTextBrowser - [ ] Split constructor - [x] Replace `+` in strings with QString::asprintf - [ ] LinboImageCreationDialog - [ ] Split constructor - [ ] Split resizeEvent - [ ] Split _refreshPathAndDescription - [ ] LinboImageUploadDialog - [ ] Split constructor - [ ] Split resizeEvent - [ ] LinboRegisterDialog - [ ] Split constructor - [ ] Split resizeEvent - [ ] LinboUpdateCacheDialog - [ ] Split constructor - [ ] LinboClientInfo - [ ] Split constructor - [ ] Split resizeEvent - [ ] LinboMainPage - [ ] Split Constructor - [ ] Split _handleLinboStateChanged - [ ] Split eventFilter - [ ] LinboOsSelectButton - [ ] Split constructor - [ ] Split resizeEvent - [ ] Split _handleBackendStateChange - [ ] Split _updateActionButtonVisibility - [ ] LinboMainActions - [ ] Split constructor - [ ] Split _resizeAndPositionAllItems - [ ] Split _handleLinboStateChanged - [ ] LinboOsSelectionRow - [ ] Split _resizeAndPositionAllButtons - [ ] Split setMinimumSizeAnimated
Do general refactoring to make the code cleaner and easier to maintain
Split _executeCommand(now handled in LinboBackend)Split cancelCurrentAction(it's good enough)Refactor all _parse functions(I did not find a better way to handle this)+in strings with QString::asprintf+in strings with QString::asprintf+in strings with QString::asprintf+in strings with QString::asprintf+in strings with QString::asprintf+in strings with QString::asprintf