Changeset 27465 in osm


Ignore:
Timestamp:
2012-01-15T12:10:55+01:00 (13 years ago)
Author:
stoecker
Message:

use createLayout function

Location:
applications/editors/josm/plugins
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/czechaddress/build.xml

    r27352 r27465  
    3333            <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/CS:JOSM/Plugins/CzechAddress"/>
    3434            <attribute name="Plugin-Icon" value="images/preferences/czech_flag.png"/>
    35             <attribute name="Plugin-Mainversion" value="4549"/>
     35            <attribute name="Plugin-Mainversion" value="4733"/>
    3636            <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    3737        </manifest>
  • applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/actions/ManagerAction.java

    r23190 r27465  
    2323                        "Adresy: Přiřadit adresy",
    2424                        KeyEvent.VK_P, Shortcut.GROUP_DIRECT, Shortcut.SHIFT_DEFAULT),
    25               true);
     25              true, "czechaddress/manager", true);
    2626    }
    2727
  • applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/gui/FactoryDialog.java

    r26299 r27465  
    6868        initComponents();
    6969        setLayout(originalManager);
    70         add(mainPanel);
     70        createLayout(mainPanel, false, null);
    7171
    7272        // Register to all messages
  • applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/JunctionCheckDialog.java

    r25501 r27465  
    99import java.awt.event.ActionListener;
    1010import java.awt.event.KeyEvent;
     11import java.util.Arrays;
    1112import java.util.Collection;
    1213
     
    8788
    8889                // ButtonPanel
    89                 JPanel buttonPanel = new JPanel();
    90                 buttonPanel.setLayout(new GridLayout(1, 3));
    9190                createDigraphButton = new SideButton(marktr("Create"), "digraphcreation", tr ("start the channel digraph creation"),
    9291                                tr("create the channel digraph"), this);
    93                 buttonPanel.add(createDigraphButton);
    9492                checkJunctionButton = new SideButton(marktr("Check "), "junctioncheck", tr("check a marked subset if it is a junction"),
    9593                                tr("check the subust for junction properties"), this);
    9694                checkJunctionButton.setEnabled(false);
    97                 buttonPanel.add(checkJunctionButton);
    9895                searchJunctionButton = new SideButton(marktr("Search "), "junctionsearch", tr ("search for junctions into a subset of channels"),
    9996                                tr("search for junctions in the channel subset"), this);
    10097                searchJunctionButton.setEnabled(false);
    101                 buttonPanel.add(searchJunctionButton);
    10298
    103                 add(centerPanel, BorderLayout.CENTER);
    104                 add(buttonPanel, BorderLayout.SOUTH);
     99                createLayout(centerPanel, false, Arrays.asList(new SideButton[] {
     100                        createDigraphButton, checkJunctionButton, searchJunctionButton
     101                }));
    105102        }
    106103
  • applications/editors/josm/plugins/reltoolbox/src/relcontext/RelContextDialog.java

    r26887 r27465  
    172172        });
    173173
    174         add(rcPanel, BorderLayout.CENTER);
     174        createLayout(rcPanel, false, null);
    175175    }
    176176
  • applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/gui/dialogs/TrustDialog.java

    r25785 r27465  
    352352                dataPanel.add(geomTree);
    353353
    354                 add(new JScrollPane(dataPanel), BorderLayout.CENTER);
    355 
    356                 JPanel buttonPanel = new JPanel(new GridLayout(1, 3));
    357 
    358354                checkButton = new SideButton(marktr("Check"), "checksignatures", "TrustOSM",
    359355                                tr("Check all available signatures for selected object."), this);
    360                 buttonPanel.add(checkButton);
    361 
    362356                signButton = new SideButton(marktr("Sign"), "sign", "TrustOSM",
    363357                                tr("Digital sign selected Tags, if you believe they are correct."), this);
    364                 buttonPanel.add(signButton);
    365 
    366358                showButton = new SideButton(marktr("Show"), "showsig", "TrustOSM",
    367359                                tr("Show all available signatures for selected attribute."), this);
    368                 buttonPanel.add(showButton);
    369 
    370 
    371                 add(buttonPanel, BorderLayout.SOUTH);
     360
     361                createLayout(dataPanel, true, Arrays.asList(new SideButton[] {
     362                        checkButton, signButton, showButton
     363                }));
    372364                DataSet.addSelectionListener(this);
    373365        }
Note: See TracChangeset for help on using the changeset viewer.