Author: remi
Date: 2008-08-13 18:34:13 +0200 (Wed, 13 Aug 2008)
New Revision: 1480
Modified:
software_suite_v2/software/tools/attitunesStudio/trunk/src/GUI/AttitunePropertiesFrame.java
software_suite_v2/software/tools/attitunesStudio/trunk/src/MainFrame.java
software_suite_v2/software/tools/attitunesStudio/trunk/src/com/tuxisalive/attitunes/messages.properties
Log:
* added a title in the dialog messages
Modified:
software_suite_v2/software/tools/attitunesStudio/trunk/src/GUI/AttitunePropertiesFrame.java
===================================================================
---
software_suite_v2/software/tools/attitunesStudio/trunk/src/GUI/AttitunePropertiesFrame.java
2008-08-13 16:33:10 UTC (rev 1479)
+++
software_suite_v2/software/tools/attitunesStudio/trunk/src/GUI/AttitunePropertiesFrame.java
2008-08-13 16:34:13 UTC (rev 1480)
@@ -161,6 +161,7 @@
{
super();
this.blockViewer = blockViewer;
+
this.setTitle(ATTMessages.getString("AttitunePropertiesFrame.1"));
/* Init the frame */
initGUI();
/* Fill the parameters */
@@ -591,8 +592,10 @@
List<String> badParams = blockViewer.checkHeader();
if (badParams.size() > 0)
{
- JOptionPane.showMessageDialog(this,
-
ATTMessages.getString("AttitunePropertiesFrame.80")); //$NON-NLS-1$
+ JOptionPane.showMessageDialog(this,
+
ATTMessages.getString("AttitunePropertiesFrame.80"),
+
ATTMessages.getString("AttitunePropertiesFrame.1"),
+ JOptionPane.INFORMATION_MESSAGE);
return;
}
}
@@ -620,8 +623,10 @@
List<String> badParams = blockViewer.checkHeader();
if (badParams.size() > 0)
{
- JOptionPane.showMessageDialog(this,
-
ATTMessages.getString("AttitunePropertiesFrame.80")); //$NON-NLS-1$
+ JOptionPane.showMessageDialog(this,
+
ATTMessages.getString("AttitunePropertiesFrame.80"),
+
ATTMessages.getString("AttitunePropertiesFrame.1"),
+ JOptionPane.INFORMATION_MESSAGE);
}
}
Modified:
software_suite_v2/software/tools/attitunesStudio/trunk/src/MainFrame.java
===================================================================
--- software_suite_v2/software/tools/attitunesStudio/trunk/src/MainFrame.java
2008-08-13 16:33:10 UTC (rev 1479)
+++ software_suite_v2/software/tools/attitunesStudio/trunk/src/MainFrame.java
2008-08-13 16:34:13 UTC (rev 1480)
@@ -12,6 +12,7 @@
import java.util.List;
import javax.swing.*;
+
import com.tuxisalive.attitunes.*;
import com.tuxisalive.attitunes.format.*;
import com.tuxisalive.attitunes.block.ATTBlock;
@@ -261,7 +262,10 @@
attBlockViewer.setAttituneIsTemplate(true);
/* Splash message under developpement */
- JOptionPane.showMessageDialog(this,
ATTMessages.getString("MainFrame.98"));
+ JOptionPane.showMessageDialog(this,
+ ATTMessages.getString("MainFrame.98"),
+ ATTMessages.getString("MainFrame.1"),
+ JOptionPane.INFORMATION_MESSAGE);
}
catch (Exception e)
{
@@ -306,7 +310,7 @@
int result = JOptionPane.showConfirmDialog(
this,
ATTMessages.getString("MainFrame.97"),
//$NON-NLS-1$
- ATTMessages.getString("MainFrame.72"),
//$NON-NLS-1$
+ ATTMessages.getString("MainFrame.1"),
//$NON-NLS-1$
JOptionPane.YES_NO_OPTION);
if (result == JOptionPane.YES_OPTION)
{
@@ -332,7 +336,7 @@
int result = JOptionPane.showConfirmDialog(
this,
ATTMessages.getString("MainFrame.97"),
//$NON-NLS-1$
- ATTMessages.getString("MainFrame.72"),
//$NON-NLS-1$
+ ATTMessages.getString("MainFrame.1"),
//$NON-NLS-1$
JOptionPane.YES_NO_OPTION);
if (result == JOptionPane.YES_OPTION)
{
@@ -354,7 +358,10 @@
if (attBlockViewer.loadAttitune(selFile.getPath()))
{
attBlockViewer.setAttituneIsTemplate(false);
- JOptionPane.showMessageDialog(this,
ATTMessages.getString("MainFrame.77")); //$NON-NLS-1$
+ JOptionPane.showMessageDialog(this,
+
ATTMessages.getString("MainFrame.77"),
+
ATTMessages.getString("MainFrame.1"),
+
JOptionPane.INFORMATION_MESSAGE);
}
}
}
@@ -368,8 +375,10 @@
List<String> badParams = attBlockViewer.checkHeader();
if (badParams.size() > 0)
{
- JOptionPane.showMessageDialog(this,
- ATTMessages.getString("MainFrame.78"));
//$NON-NLS-1$
+ JOptionPane.showMessageDialog(this,
+ ATTMessages.getString("MainFrame.78"),
+ ATTMessages.getString("MainFrame.1"),
+ JOptionPane.INFORMATION_MESSAGE);
confirmExit = false;
return;
}
@@ -394,8 +403,10 @@
List<String> badParams = attBlockViewer.checkHeader();
if (badParams.size() > 0)
{
- JOptionPane.showMessageDialog(this,
- ATTMessages.getString("MainFrame.78"));
//$NON-NLS-1$
+ JOptionPane.showMessageDialog(this,
+ ATTMessages.getString("MainFrame.78"),
+ ATTMessages.getString("MainFrame.1"),
+ JOptionPane.INFORMATION_MESSAGE);
return;
}
/* Open a file viewer to select an attitune */
@@ -448,7 +459,7 @@
int result = JOptionPane.showConfirmDialog(
this,
ATTMessages.getString("MainFrame.97"),
//$NON-NLS-1$
- ATTMessages.getString("MainFrame.72"),
//$NON-NLS-1$
+ ATTMessages.getString("MainFrame.1"),
//$NON-NLS-1$
JOptionPane.YES_NO_OPTION);
if (result == JOptionPane.YES_OPTION)
{
@@ -614,7 +625,10 @@
*/
public void onAttituneSaved(ATTBlockViewer bv)
{
- JOptionPane.showMessageDialog(this,
ATTMessages.getString("MainFrame.93")); //$NON-NLS-1$
+ JOptionPane.showMessageDialog(this,
+ ATTMessages.getString("MainFrame.93"),
+ ATTMessages.getString("MainFrame.1"),
+ JOptionPane.INFORMATION_MESSAGE);
}
/*
------------------------------------------------------------------------
@@ -667,7 +681,7 @@
int result = JOptionPane.showConfirmDialog(
this,
ATTMessages.getString("MainFrame.95"),
//$NON-NLS-1$
- ATTMessages.getString("MainFrame.96"),
//$NON-NLS-1$
+ ATTMessages.getString("MainFrame.1"),
//$NON-NLS-1$
JOptionPane.YES_NO_OPTION);
if (result == JOptionPane.YES_OPTION)
{
Modified:
software_suite_v2/software/tools/attitunesStudio/trunk/src/com/tuxisalive/attitunes/messages.properties
===================================================================
---
software_suite_v2/software/tools/attitunesStudio/trunk/src/com/tuxisalive/attitunes/messages.properties
2008-08-13 16:33:10 UTC (rev 1479)
+++
software_suite_v2/software/tools/attitunesStudio/trunk/src/com/tuxisalive/attitunes/messages.properties
2008-08-13 16:34:13 UTC (rev 1480)
@@ -18,6 +18,7 @@
MainFrame.95=You are sure that do you want deleting this block ?
MainFrame.96=Block deleting
MainFrame.98=Attitunes studio is still under developpement
+AttitunePropertiesFrame.1=Attitunes studio - Properties
AttitunePropertiesFrame.55=The parameters marked as red color are missing.
AttitunePropertiesFrame.56=Name :
AttitunePropertiesFrame.57=Author :
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn