Apport de modifications
This commit is contained in:
@@ -2,11 +2,16 @@ import javax.imageio.ImageIO;
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
|
||||
/**
|
||||
* Affiche une fenêtre du logiciel.
|
||||
* @author V.BOULANGER
|
||||
*/
|
||||
public class AppThinkerWindow extends JFrame {
|
||||
private Project _project;
|
||||
private AppThinkerGrid _grid;
|
||||
|
||||
/**
|
||||
* Constructeur de la classe AppThinkerWindow
|
||||
* @author V.BOULANGER
|
||||
*/
|
||||
public AppThinkerWindow(){
|
||||
//Paramétrage de la fenêtre
|
||||
@@ -27,12 +32,57 @@ public class AppThinkerWindow extends JFrame {
|
||||
this.add(toolbar, BorderLayout.NORTH);
|
||||
|
||||
//Ajout de la grille à la fenêtre
|
||||
AppThinkerGrid grid = new AppThinkerGrid();
|
||||
this.add(grid, BorderLayout.CENTER);
|
||||
_grid = new AppThinkerGrid();
|
||||
this.add(_grid, BorderLayout.CENTER);
|
||||
|
||||
//Ajout de la statusbar à la fenêtre
|
||||
AppThinkerStatusbar statusbar = new AppThinkerStatusbar();
|
||||
this.add(statusbar, BorderLayout.SOUTH);
|
||||
this.pack();
|
||||
}
|
||||
|
||||
/**
|
||||
* Crée un nouveau Projet.
|
||||
*/
|
||||
public void newProject(){
|
||||
this._project = new Project();
|
||||
this.setTitle("AppThinker | " + _project.getName());
|
||||
}
|
||||
|
||||
/**
|
||||
* Ouvre un projet existant dans la fenêtre.
|
||||
* @param path Le chemin du projet à ouvrir.
|
||||
*/
|
||||
public void openProject(String path){
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Ferme le projet en cours.
|
||||
*/
|
||||
public void closeProject(){
|
||||
this._project = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Convertit le projet actuel en chaîne XML.
|
||||
*/
|
||||
public void convertToXml(){
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Sauvegarde le projet en cours.
|
||||
*/
|
||||
public void saveProject(){
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Sauvegarde le projet en cours à un autre emplacement.
|
||||
* @param path Le chemin de sauvegarde du projet.
|
||||
*/
|
||||
public void saveAsProject(String path){
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user