Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve WidgetInterface API #9

Merged
merged 9 commits into from
Apr 10, 2018

Conversation

dyollb
Copy link
Member

@dyollb dyollb commented Apr 10, 2018

  • added several slots and signals to base class WidgetInterface
  • use override in all WidgetInterface derived classes
  • updated code in derived classes and mainly in Mainwindow::tab_changed and Mainwindow::(dis)connect_mouseclick, i.e. widget specific signal-slot connections could be replaced by generic code
  • renamed folder Plugin->Interface, and moved some basic classes from Core to Interface (e.g. Point)
  • renamed Addon files to Plugin files
  • fixed capitalization in file names in Core/iSeg

Bryn Lloyd added 9 commits April 9, 2018 09:28
…lice change, etc.)

added basic fix/hack to copy plugins to bundle on osx
- added signals and slots to base widget class
- replaced pt_clicked by mouse_clicked (moved/released)
- simplified connection/disconnection of slots in Mainwindow
- added todos
- biggest worry is currently: on_tissuenr_changed -> what is meaning of index passed to callback, how is it used (offset -1 all over the code makes things really confusing)
instead of calling cleanup for specific widgets, base class now has cleanup API, and Mainwindow calls it in generic block
@dyollb dyollb self-assigned this Apr 10, 2018
@dyollb dyollb requested a review from sanderegg April 10, 2018 10:06
Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all good, it compiles.

@sanderegg sanderegg merged commit dc17764 into ITISFoundation:master Apr 10, 2018
@dyollb dyollb deleted the improve_widget_api branch April 13, 2018 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants