Package de.chris_soft.fyllgen.data

Examples of de.chris_soft.fyllgen.data.Family


public class BigFamilyName implements Listener {
  /**
   * @see org.eclipse.swt.widgets.Listener#handleEvent(org.eclipse.swt.widgets.Event)
   */
  public void handleEvent(Event event) {
    Family family = Family.instance;
    Person currentPerson = family.getCurrentPerson();
    String fullName = currentPerson.getValueView(Person.NAME);
    int afterSpace = fullName.lastIndexOf(' ') + 1;
    fullName = fullName.substring(0, afterSpace) + fullName.substring(afterSpace).toUpperCase();
    currentPerson.setValue(Person.NAME, fullName);
    family.setChanged(true);
    family.setCurrentPerson(currentPerson, 0);
  }
View Full Code Here


      fd.setText("Datei zum Verkn�pfen w�hlen");
      String result = fd.open();
      if (result != null) {
        // *** FyLLGenFile ***
        if (result.endsWith(".fgf")) {
          Family mergeFamily = new Family();
          try {
            mergeFamily.loader.load(result);
          }
          catch (Exception exception) {
            messageBoxFileProblems(exception);
            return;
          }
          Statics.mergeFamily = mergeFamily;
        }
        // *** GEDCOM ***
        else if (result.endsWith(".ged")) {
          Family mergeFamily = new Family();
          try {
            readGedFile(result, mergeFamily);
          }
          catch (Exception exception) {
            messageBoxFileProblems(exception);
View Full Code Here

        String imagename = file.getName();
        try {
          while (true) {
            imagename = cutImage(imagename);
            if (imagename != null) {
              Family family = Family.instance;
              Person currentPerson = family.getCurrentPerson();
              String cpName = currentPerson.getValueView(Person.NAME);
              String quest = "Soll das Portrait\r\n" + cpName + "\r\nzugeordnet werden?";
              if (SwtUtilities.askYesNo(GUI.instance.shell, quest, "Portraitzuordnung")) {
                currentPerson.addImage(imagename);
                family.review();
              }
              else {
                PersonChoiceShell pcs = new PersonChoiceShell(GUI.instance.shell, "Bild-Person festlegen",
                    "Bild zuordnen", null, 1, false, new File("images/" + imagename), true);
                // int p = imagename.lastIndexOf('.');
                // pcs.setStartString(imagename.substring(0, p).replace('_',
                // ' '));
                pcs.open();

                Person person = pcs.personChoice;
                if (person != null) {
                  person.addImage(imagename);
                  family.setCurrentPerson(person, 1);
                }
                else {
                  new File("images/" + imagename).delete();
                  break;
                }
View Full Code Here

      }
    }

    // Falls es eine zu verkn�pfende Datei gibt, diese ebenfalls laden.
    if (new File(Statics.FAMILY2MERGE_ZIP).exists()) {
      Statics.mergeFamily = new Family();
      try {
        Statics.mergeFamily.loader.load(Statics.FAMILY2MERGE_ZIP);
      }
      catch (IOException exception) {
        SwtUtilities.sayError(GUI.instance.shell, "Es gab Probleme beim Laden der Merge-Daten!");
View Full Code Here

    tabFolder.setLayoutData(fd);

    // Im hier erzeugten Composite werden die elementaren Daten zur aktuellen
    // Person dargestellt.
    Composite comp;
    Family family = Family.instance;

    comp = createTabItemComposite("Personendaten");
    createTabItemWidgets(Person.atomData, comp, null, family);

    comp = createTabItemComposite("Eltern");
View Full Code Here

TOP

Related Classes of de.chris_soft.fyllgen.data.Family

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.