60 |
60 |
import org.txm.rcp.editors.listeners.ComputeKeyListener;
|
61 |
61 |
import org.txm.rcp.editors.listeners.ComputeSelectionListener;
|
62 |
62 |
import org.txm.rcp.messages.TXMUIMessages;
|
|
63 |
import org.txm.rcp.swt.GLComposite;
|
63 |
64 |
import org.txm.rcp.swt.widget.AssistedQueryWidget;
|
64 |
65 |
import org.txm.rcp.swt.widget.NavigationWidget;
|
65 |
66 |
import org.txm.rcp.swt.widget.PropertiesSelector;
|
... | ... | |
86 |
87 |
/** The query label. */
|
87 |
88 |
protected Label queryLabel;
|
88 |
89 |
|
89 |
|
/** The go. */
|
90 |
|
protected Button searchButton;
|
91 |
|
|
92 |
|
|
93 |
90 |
// infos
|
94 |
91 |
/** The navigation area. */
|
95 |
92 |
protected NavigationWidget navigationArea;
|
... | ... | |
175 |
172 |
paramArea.setLayout(new FormLayout());
|
176 |
173 |
|
177 |
174 |
// info&navigation panel
|
178 |
|
final Composite infosArea = this.getBottomToolbar().installGLComposite("Infos", 1, false);
|
|
175 |
final GLComposite infosArea = this.getBottomToolbar().installGLComposite("Infos", 1, false);
|
179 |
176 |
infosArea.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false));
|
180 |
|
|
|
177 |
infosArea.getLayout().numColumns = 5; // nav panel + labels
|
181 |
178 |
Composite resultArea = this.getResultArea();
|
182 |
179 |
|
183 |
180 |
// on créé une Query, ici le pivot de la concordance est "[]"
|
... | ... | |
220 |
217 |
// Listener
|
221 |
218 |
propertiesSelector.addSelectionListener(computeSelectionListener);
|
222 |
219 |
|
223 |
|
//Search button
|
224 |
|
searchButton = new Button(queryArea, SWT.BOLD);
|
225 |
|
searchButton.setText(TXMUIMessages.SEARCH);
|
226 |
|
|
227 |
|
Font f = searchButton.getFont();
|
228 |
|
FontData defaultFont = f.getFontData()[0];
|
229 |
|
defaultFont.setStyle(SWT.BOLD);
|
230 |
|
Font newf = new Font(searchButton.getDisplay(), defaultFont);
|
231 |
|
searchButton.setFont(newf);
|
232 |
|
|
233 |
|
layoutData = new GridData(GridData.VERTICAL_ALIGN_CENTER);
|
234 |
|
layoutData.horizontalAlignment = GridData.FILL;
|
235 |
|
layoutData.grabExcessHorizontalSpace = false;
|
236 |
|
searchButton.setLayoutData(layoutData);
|
237 |
|
searchButton.addSelectionListener(computeSelectionListener);
|
238 |
|
|
239 |
220 |
// Filters
|
240 |
221 |
Composite filtercontrols = new Composite(paramArea, SWT.NONE);
|
241 |
222 |
FormData filtersLayoutData = new FormData();
|
... | ... | |
317 |
298 |
}
|
318 |
299 |
});
|
319 |
300 |
|
320 |
|
// compose infosArea
|
321 |
|
infosArea.setLayout(new GridLayout(6, false));
|
322 |
|
|
323 |
301 |
navigationArea = new NavigationWidget(infosArea, SWT.NONE);
|
324 |
|
//navigationArea.setLayoutData(new GridData(SWT.CENTER, SWT.FILL, true, false));
|
|
302 |
navigationArea.setLayoutData(new GridData(SWT.CENTER, SWT.FILL, true, false));
|
325 |
303 |
|
326 |
304 |
navigationArea.addFirstListener(new SelectionListener() {
|
327 |
305 |
@Override
|
... | ... | |
384 |
362 |
});
|
385 |
363 |
|
386 |
364 |
// Labels added after the top toolbar
|
387 |
|
lTInfo = new Label(getTopToolbarContainer(), SWT.NONE);
|
|
365 |
lTInfo = new Label(infosArea, SWT.NONE);
|
388 |
366 |
lTInfo.setText(""); //$NON-NLS-1$
|
389 |
367 |
// lTInfo.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false));
|
390 |
368 |
|
391 |
|
lVInfo = new Label(getTopToolbarContainer(), SWT.NONE);
|
|
369 |
lVInfo = new Label(infosArea, SWT.NONE);
|
392 |
370 |
lVInfo.setText(""); //$NON-NLS-1$
|
393 |
371 |
// lVInfo.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false));
|
394 |
372 |
|
395 |
|
lFminInfo = new Label(getTopToolbarContainer(), SWT.NONE);
|
|
373 |
lFminInfo = new Label(infosArea, SWT.NONE);
|
396 |
374 |
lFminInfo.setText(""); //$NON-NLS-1$
|
397 |
375 |
// lFminInfo.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false));
|
398 |
376 |
|
399 |
|
lFmaxInfo = new Label(getTopToolbarContainer(), SWT.NONE);
|
|
377 |
lFmaxInfo = new Label(infosArea, SWT.NONE);
|
400 |
378 |
lFmaxInfo.setText(""); //$NON-NLS-1$
|
401 |
379 |
// lFmaxInfo.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false));
|
402 |
380 |
|