Subversion Repositories eFlore/Applications.cel

Rev

Rev 2673 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2673 Rev 2726
Line 28... Line 28...
28
import com.google.gwt.user.client.Window;
28
import com.google.gwt.user.client.Window;
29
import com.gwtext.client.core.EventObject;
29
import com.gwtext.client.core.EventObject;
30
import com.gwtext.client.core.Ext;
30
import com.gwtext.client.core.Ext;
31
import com.gwtext.client.core.ExtElement;
31
import com.gwtext.client.core.ExtElement;
32
import com.gwtext.client.core.RegionPosition;
32
import com.gwtext.client.core.RegionPosition;
-
 
33
import com.gwtext.client.core.SortDir;
-
 
34
import com.gwtext.client.data.FieldDef;
-
 
35
import com.gwtext.client.data.IntegerFieldDef;
33
import com.gwtext.client.data.Record;
36
import com.gwtext.client.data.Record;
-
 
37
import com.gwtext.client.data.RecordDef;
34
import com.gwtext.client.data.Store;
38
import com.gwtext.client.data.Store;
-
 
39
import com.gwtext.client.data.StringFieldDef;
35
import com.gwtext.client.data.Tree;
40
import com.gwtext.client.data.Tree;
36
import com.gwtext.client.dd.DragData;
41
import com.gwtext.client.dd.DragData;
37
import com.gwtext.client.dd.DragSource;
42
import com.gwtext.client.dd.DragSource;
38
import com.gwtext.client.widgets.BoxComponent;
43
import com.gwtext.client.widgets.BoxComponent;
39
import com.gwtext.client.widgets.Component;
44
import com.gwtext.client.widgets.Component;
Line 590... Line 595...
590
 
595
 
591
		}
596
		}
Line 592... Line 597...
592
	}
597
	}
593
	
-
 
594
 
598
	
595
	public void obtenirPhotoGalerie() {
599
 
Line 596... Line 600...
596
		
600
	public void obtenirPhotoGalerie() {	
597
		obtenirPhotoGalerie(getGalerieImage());
601
		obtenirPhotoGalerie(getGalerieImage());
Line 605... Line 609...
605
	 */
609
	 */
606
	public void obtenirPhotoGalerie(Rafraichissable r) {
610
	public void obtenirPhotoGalerie(Rafraichissable r) {
607
		masquerChargement();
611
		masquerChargement();
608
		getIModele().obtenirNombrePhotoGalerie(r);
612
		getIModele().obtenirNombrePhotoGalerie(r);
609
	}
613
	}
-
 
614
	
-
 
615
	 /** envoie au modèle une demande de mise a jour
-
 
616
	 * 
-
 
617
	 * @param r
-
 
618
	 *            la vue demandeuse de mise a jour
-
 
619
	 */
-
 
620
	public void obtenirPhotoGalerieSansCalculerPages(Rafraichissable r) {
-
 
621
		masquerChargement();
-
 
622
		getIModele().obtenirPhotoGalerie(r);
-
 
623
	}
Line 610... Line 624...
610
 
624
 
611
	/**
625
	/**
612
	 * demande au modèle les métadonnées associées a une image
626
	 * demande au modèle les métadonnées associées a une image
613
	 * 
627
	 * 
Line 1814... Line 1828...
1814
		String[] ids = getVueSelectionnee().getIdSelectionnees();
1828
		String[] ids = getVueSelectionnee().getIdSelectionnees();
1815
		if(ids.length > 0) {
1829
		if(ids.length > 0) {
1816
			obtenirMotsClesId(fnMc, ids[ids.length - 1]);
1830
			obtenirMotsClesId(fnMc, ids[ids.length - 1]);
1817
		}
1831
		}
1818
	}
1832
	}
-
 
1833
	
-
 
1834
	public String getTri() {
-
 
1835
		// centralise le tri suivant la vue active
-
 
1836
		// pour le moment seule la liste est triable
-
 
1837
		return listeImage.renvoyerTri();
-
 
1838
	}
-
 
1839
	
-
 
1840
	public String getDirectionTri() {
-
 
1841
		// centralise la direction de tri suivant la vue active
-
 
1842
		return listeImage.renvoyerDirectionTri();
-
 
1843
	}
-
 
1844
	
-
 
1845
	
-
 
1846
	public static FieldDef[] getDefinitionsChampsGrilleImages() {
-
 
1847
		// creation du store
-
 
1848
		FieldDef defNumImage = new IntegerFieldDef("num_image");
-
 
1849
		FieldDef defNomImage = new StringFieldDef("nom_original");
-
 
1850
		FieldDef defDatImage = new StringFieldDef("dat_image");
-
 
1851
		FieldDef defLieImage = new StringFieldDef("lie_image");
-
 
1852
		FieldDef defAppImage = new StringFieldDef("app_image");
-
 
1853
		FieldDef defUrlImageS = new StringFieldDef("url_image_S");
-
 
1854
		FieldDef defUrlImageM = new StringFieldDef("url_image_M");
-
 
1855
		FieldDef defUrlImage = new StringFieldDef("url_image");
-
 
1856
		FieldDef defNoteImage = new StringFieldDef("note_image");
-
 
1857
		FieldDef defidImage = new StringFieldDef("id_image");
-
 
1858
		FieldDef defTailleX = new IntegerFieldDef("taille_x");
-
 
1859
		FieldDef defTailleY = new IntegerFieldDef("taille_y");
-
 
1860
		FieldDef defObsAssociees = new StringFieldDef("obs_associees");
-
 
1861
		FieldDef defTransmis = new StringFieldDef("transmis");
-
 
1862
		FieldDef[] defTab = { defNumImage, defNomImage, defDatImage, defLieImage,
-
 
1863
				defAppImage, defUrlImageS, defUrlImageM, defUrlImage,
-
 
1864
				defNoteImage, defidImage, defTailleX, defTailleY, defObsAssociees, defTransmis};
-
 
1865
 
-
 
1866
		return defTab;
-
 
1867
	}
-
 
1868
 
-
 
1869
	public String getTriMiniListeObs() {
-
 
1870
		return metadonneesIptcExif.getMiniListeObservation().renvoyerTri();
-
 
1871
	}
-
 
1872
 
-
 
1873
	public String getDirectionTriMiniListeObs() {
-
 
1874
		return metadonneesIptcExif.getMiniListeObservation().renvoyerDirectionTri();
-
 
1875
	}
Line 1819... Line 1876...
1819
 
1876