From c1bbbfa0199949cd2e0c0679725884b855cf0375 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 28 May 2008 12:47:27 +0200 Subject: [PATCH] add flag images to language actions --- resources/flag-de.png | Bin 0 -> 122 bytes resources/flag-en.png | Bin 0 -> 538 bytes .../pterodactylus/jsite/gui/SwingInterface.java | 58 ++++++++++----------- 3 files changed, 29 insertions(+), 29 deletions(-) create mode 100644 resources/flag-de.png create mode 100644 resources/flag-en.png diff --git a/resources/flag-de.png b/resources/flag-de.png new file mode 100644 index 0000000000000000000000000000000000000000..08a8e63fc0e9e58b5a8cd7383f983f902106b37f GIT binary patch literal 122 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~g!2~3Y?s%RCQjEnx?oJHr&dIz4a!fp3977~7 zCnrdhG!*VqVHWn3y0^mEzPx$)Ja4^R4C6?kUeNqaTLYRz3=~jFNuB7QfhIj5w-E7Lj@Oy;$kI=4vLT>3L+96 z9*7RrMYL{;G@xP;L5LZYHY!3t=p@*JK?tROwADo&GAUMT6JK6l{?{R?;GHh#a1Xz8 zX-9Xur6p!rQeO3m5Q*BlR-YP(1ArJ1AP~?WAM4({)LmVQiHJfGGJpaT5ix@d0U!Vf zS+VQ3jXx*P`tQt-||Q~wxhMB zv?CykI1;tZYT1803K21I-p^U7ft8EbuU?Zvf!B8k^=wPGwZ_O|zg*R}vK?hA)yY%a z)sJr~9w)ZY=mBXg^m=xI2qJ4bpnm`C&E4kwQwnPMe*~ak-gz;GXe}bBM!tSgg#v;A zJv&A4&uJc%ALW|K#N5%YmzHWrQugVSD3!wb4@v@)&93a)J6haY4H$sZo40@j0`qo` z?vFg%b7OY6GXnq^8bTtWP8>Syo=x{{>i6EATU^x29~%Rp=Zni5cVFHxHJx*lNof#Q zDl~XWjrVm9-+R$L@nGWP(Ywbo96O$hE`Oiwy|TY}b9%;==0lpq0(mvV`}!&0dd9hv cxlkJX3zAH}{7wCkDF6Tf07*qoM6N<$f*`i-OaK4? literal 0 HcmV?d00001 diff --git a/src/net/pterodactylus/jsite/gui/SwingInterface.java b/src/net/pterodactylus/jsite/gui/SwingInterface.java index be9b22d..9531717 100644 --- a/src/net/pterodactylus/jsite/gui/SwingInterface.java +++ b/src/net/pterodactylus/jsite/gui/SwingInterface.java @@ -59,7 +59,7 @@ import net.pterodactylus.util.logging.LoggingListener; /** * The Swing user interface. - * + * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ public class SwingInterface implements CoreListener, LoggingListener, PropertyChangeListener { @@ -169,7 +169,7 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh /** * Creates a new swing interface. - * + * * @param core * The core to operate on * @param configDirectory @@ -219,7 +219,7 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh /** * Returns the core that is controlled by the Swing interface. - * + * * @return The core */ Core getCore() { @@ -228,7 +228,7 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh /** * Returns the main window of the Swing interface. - * + * * @return The main window */ MainWindow getMainWindow() { @@ -237,7 +237,7 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh /** * Returns whether the advanced mode is activated. - * + * * @return true if the advanced mode is activated, * false if the simple mode is activated */ @@ -247,7 +247,7 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh /** * Returns the “configure” action. - * + * * @return The “configure” action */ I18nAction getConfigureAction() { @@ -256,7 +256,7 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh /** * Returns the “import config” action. - * + * * @return The “import config” action */ I18nAction getImportConfigAction() { @@ -265,7 +265,7 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh /** * Returns the “quit” action. - * + * * @return The “quit” action */ I18nAction getQuitAction() { @@ -274,7 +274,7 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh /** * Returns the “add node” action. - * + * * @return The “add node” action */ I18nAction getAddNodeAction() { @@ -283,7 +283,7 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh /** * Returns the “connect to node” action for the given node. - * + * * @param node * The node go get the “connect” action for * @return The “connect to node” action @@ -294,7 +294,7 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh /** * Returns the “disconnect from node” action for the given node. - * + * * @param node * The node go get the “disconnect” action for * @return The “disconnect from node” action @@ -305,7 +305,7 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh /** * Returns the “edit node” action for the given node. - * + * * @param node * The node to edit * @return The “edit node” action @@ -316,7 +316,7 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh /** * Returns the “delete node” action for the given node. - * + * * @param node * The node to delete * @return The “delete node” action @@ -327,7 +327,7 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh /** * Returns all language actions. - * + * * @return All language actions */ List getLanguageActions() { @@ -336,7 +336,7 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh /** * Returns the “about” action. - * + * * @return The “about” action */ I18nAction getHelpAboutAction() { @@ -345,7 +345,7 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh /** * Returns the “add project” action. - * + * * @return The “add project” action */ I18nAction getAddProjectAction() { @@ -354,7 +354,7 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh /** * Returns the “clone project” action for the given project. - * + * * @param project * The project to get the “clone project” action for * @return The “clone project” action @@ -365,7 +365,7 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh /** * Returns the “delete project” action for the given project. - * + * * @param project * The project to get the “delete project” action for * @return The “delete project” action @@ -376,7 +376,7 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh /** * Returns all currently configured nodes. - * + * * @return All configured nodes */ List getNodes() { @@ -385,7 +385,7 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh /** * Returns a list of all projects. - * + * * @return All projects */ List getProjects() { @@ -394,7 +394,7 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh /** * Returns the thread pool used for off-thread processes. - * + * * @return The thread pool */ Executor getThreadPool() { @@ -547,7 +547,7 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh }; List availableLanguages = I18n.findAvailableLanguages(); for (final Locale locale: availableLanguages) { - I18nAction languageAction = new I18nAction("general.language." + locale.getLanguage()) { + I18nAction languageAction = new I18nAction("general.language." + locale.getLanguage(), IconLoader.loadIcon("/flag-" + locale.getLanguage() + ".png")) { @SuppressWarnings("synthetic-access") public void actionPerformed(ActionEvent e) { @@ -673,7 +673,7 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh /** * Edits the given node. - * + * * @param node * The node to edit */ @@ -691,7 +691,7 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh /** * Deletes the given node. - * + * * @param node * The node to delete */ @@ -704,7 +704,7 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh /** * Connects to the node. - * + * * @param node * The node to connect to */ @@ -724,7 +724,7 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh /** * Disconnects from the node. - * + * * @param node * The node to disconnect from */ @@ -736,7 +736,7 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh /** * Changes the language of the interface. This method also disables the * action for the newly set language and enables all others. - * + * * @param newLocale * The new language * @param languageAction @@ -773,7 +773,7 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh /** * Clones a project. - * + * * @param project * The project to clone */ @@ -783,7 +783,7 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh /** * Deletes a project. - * + * * @param project * The project to delete */ -- 2.7.4