HowTo port a screen from Old Petra: Difference between revisions

From OpenPetra Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
# Make a screenshot from the screen you want to move (Press ALT GR +Print). Copy it into a word document (CRTL-V).
# Make a screenshot from the screen you want to move (Press ALT GR +Print). Copy it into a word document (CRTL-V).
# If the screen contains a Table scroll from Left to right and make several screenshots in order to shot the headers of all columns.
# If the screen contains a Table scroll from Left to right and make several screenshots in order to shot the headers of all columns.
# Also make a screenshot of Help-ABout Petra. This contains the name of the progress program for the screen. You may need this later if values of boxes are calculated or to check if the old program has some extraordinary behavior. Please note that you also need to shot the detail screen(s). In OpenPetra Screens are larger and contain Table and Details together on one screen.
# Also make a screenshot of Help-About Petra. This contains the name of the progress program for the screen. You may need this later if values of boxes are calculated or to check if the old program has some extraordinary behavior. Please note that you also need to shot the detail screen(s). In OpenPetra Screens are larger and contain Table and Details together on one screen.
# Now you can close Old Petra (+Virtualbox) and start with the devolopment of the new screen.
# Now you can close Old Petra (+Virtualbox) and start with the devolopment of the new screen.
# Create a yaml file for the new screen. There is a very good long description for this in [[How-To: Creating a Maintain Table screen]].
# Create a yaml file for the new screen. There is a very good long description for this in [[How-To: Creating a Maintain Table screen]].
# The yaml files reference templates (at the moment located in [projectroot]\inc\template\src\Winforms), so you have to find out which is right template (does it have an own window (window...) or is it embedded in an other window (usercontrol...)? Does it contain a table, and  an additional Details Panel which shall be filled automatically?  Is the table part of a larger dataset or just single?)
# The yaml files reference templates (at the moment located in [projectroot]\inc\template\src\Winforms), so you have to find out which is right template (does it have an own window (window...) or is it embedded in an other window (usercontrol...)? Does it contain a table, and  an additional Details Panel which shall be filled automatically?  Is the table part of a larger dataset or just single?)
# After your decision for the right template find an example where this template is already used and copy the yaml-file and the xx.manual-code file. This file is needed nearly always. Adopt the copied files to your purposes.
# After your decision for the right template find an example where this template is already used and copy the yaml-file and the xx.manual-code file. This file is needed nearly always. Adopt the copied files to your purposes.

Revision as of 19:41, 16 June 2011

  1. Start Old Petra (e.g. in a virtualBox).
  2. Make a screenshot from the screen you want to move (Press ALT GR +Print). Copy it into a word document (CRTL-V).
  3. If the screen contains a Table scroll from Left to right and make several screenshots in order to shot the headers of all columns.
  4. Also make a screenshot of Help-About Petra. This contains the name of the progress program for the screen. You may need this later if values of boxes are calculated or to check if the old program has some extraordinary behavior. Please note that you also need to shot the detail screen(s). In OpenPetra Screens are larger and contain Table and Details together on one screen.
  5. Now you can close Old Petra (+Virtualbox) and start with the devolopment of the new screen.
  6. Create a yaml file for the new screen. There is a very good long description for this in How-To: Creating a Maintain Table screen.
  7. The yaml files reference templates (at the moment located in [projectroot]\inc\template\src\Winforms), so you have to find out which is right template (does it have an own window (window...) or is it embedded in an other window (usercontrol...)? Does it contain a table, and an additional Details Panel which shall be filled automatically? Is the table part of a larger dataset or just single?)
  8. After your decision for the right template find an example where this template is already used and copy the yaml-file and the xx.manual-code file. This file is needed nearly always. Adopt the copied files to your purposes.