-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb7664a
commit 06e5133
Showing
8 changed files
with
199 additions
and
1 deletion.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
src/org/nschmidt/ldparteditor/data/VM28SlantingMatrixProjector.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* MIT - License | ||
Copyright (c) 2012 - this year, Nils Schmidt | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), | ||
to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, | ||
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR | ||
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE | ||
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ | ||
package org.nschmidt.ldparteditor.data; | ||
|
||
public class VM28SlantingMatrixProjector extends VM27YTruder { | ||
|
||
protected VM28SlantingMatrixProjector(DatFile linkedDatFile) { | ||
super(linkedDatFile); | ||
} | ||
|
||
public void projectWithSlantingMatrix() { | ||
// FIXME Needs impl. | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92 changes: 92 additions & 0 deletions
92
.../nschmidt/ldparteditor/dialogs/slantingmatrixprojector/SlantingMatrixProjectorDesign.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
/* MIT - License | ||
Copyright (c) 2012 - this year, Nils Schmidt | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), | ||
to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, | ||
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR | ||
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE | ||
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ | ||
package org.nschmidt.ldparteditor.dialogs.slantingmatrixprojector; | ||
|
||
import org.eclipse.jface.dialogs.Dialog; | ||
import org.eclipse.jface.dialogs.IDialogConstants; | ||
import org.eclipse.swt.SWT; | ||
import org.eclipse.swt.graphics.Point; | ||
import org.eclipse.swt.layout.GridData; | ||
import org.eclipse.swt.layout.GridLayout; | ||
import org.eclipse.swt.widgets.Composite; | ||
import org.eclipse.swt.widgets.Control; | ||
import org.eclipse.swt.widgets.Label; | ||
import org.eclipse.swt.widgets.Shell; | ||
import org.nschmidt.ldparteditor.i18n.I18n; | ||
|
||
/** | ||
* The SlantingMatrixProjector dialog | ||
* <p> | ||
* Note: This class should not be instantiated, it defines the gui layout and no | ||
* business logic. | ||
* | ||
* @author nils | ||
* | ||
*/ | ||
class SlantingMatrixProjectorDesign extends Dialog { | ||
|
||
// Use final only for subclass/listener references! | ||
|
||
SlantingMatrixProjectorDesign(Shell parentShell) { | ||
super(parentShell); | ||
} | ||
|
||
/** | ||
* Create contents of the dialog. | ||
* | ||
* @param parent | ||
*/ | ||
@Override | ||
protected Control createDialogArea(Composite parent) { | ||
Composite cmp_container = (Composite) super.createDialogArea(parent); | ||
GridLayout gridLayout = (GridLayout) cmp_container.getLayout(); | ||
gridLayout.verticalSpacing = 10; | ||
gridLayout.horizontalSpacing = 10; | ||
|
||
Label lbl_specify = new Label(cmp_container, SWT.NONE); | ||
// TODO lbl_specify.setText(I18n.MATRIXPROJECTOR_Title); | ||
|
||
Label lbl_separator = new Label(cmp_container, SWT.SEPARATOR | SWT.HORIZONTAL); | ||
lbl_separator.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1)); | ||
|
||
Label lbl_info = new Label(cmp_container, SWT.NONE); | ||
lbl_info.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1)); | ||
// TODO lbl_info.setText(I18n.MATRIXPROJECTOR_Hint); | ||
|
||
cmp_container.pack(); | ||
return cmp_container; | ||
} | ||
|
||
/** | ||
* Create contents of the button bar. | ||
* | ||
* @param parent | ||
*/ | ||
@Override | ||
protected void createButtonsForButtonBar(Composite parent) { | ||
createButton(parent, IDialogConstants.OK_ID, I18n.DIALOG_OK, true); | ||
createButton(parent, IDialogConstants.CANCEL_ID, I18n.DIALOG_Cancel, false); | ||
} | ||
|
||
/** | ||
* Return the initial size of the dialog. | ||
*/ | ||
@Override | ||
protected Point getInitialSize() { | ||
return super.getInitialSize(); | ||
} | ||
|
||
} |
49 changes: 49 additions & 0 deletions
49
.../nschmidt/ldparteditor/dialogs/slantingmatrixprojector/SlantingMatrixProjectorDialog.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* MIT - License | ||
Copyright (c) 2012 - this year, Nils Schmidt | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), | ||
to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, | ||
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR | ||
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE | ||
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ | ||
package org.nschmidt.ldparteditor.dialogs.slantingmatrixprojector; | ||
|
||
import org.eclipse.swt.widgets.Shell; | ||
|
||
/** | ||
* | ||
* <p> | ||
* Note: This class should be instantiated, it defines all listeners and part of | ||
* the business logic. It overrides the {@code open()} method to invoke the | ||
* listener definitions ;) | ||
* | ||
* @author nils | ||
* | ||
*/ | ||
public class SlantingMatrixProjectorDialog extends SlantingMatrixProjectorDesign { | ||
|
||
/** | ||
* Create the dialog. | ||
* | ||
* @param parentShell | ||
*/ | ||
public SlantingMatrixProjectorDialog(Shell parentShell) { | ||
super(parentShell); | ||
} | ||
|
||
@Override | ||
public int open() { | ||
super.create(); | ||
// MARK All final listeners will be configured here.. | ||
|
||
return super.open(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters