diff --git a/education.db b/education.db new file mode 100644 index 0000000000000000000000000000000000000000..2dd77519f15aa53207ccf8f100de977b4e2c1de4 Binary files /dev/null and b/education.db differ diff --git a/src/cn/edu/hit/education/dialog/separateCourseDialog.java b/src/cn/edu/hit/education/dialog/separateCourseDialog.java new file mode 100644 index 0000000000000000000000000000000000000000..b4fffe18bf655a38099e02fe08fdec1ecd976caf --- /dev/null +++ b/src/cn/edu/hit/education/dialog/separateCourseDialog.java @@ -0,0 +1,65 @@ +package cn.edu.hit.education.dialog; + +import org.eclipse.jface.dialogs.IMessageProvider; +import org.eclipse.jface.dialogs.TitleAreaDialog; +import org.eclipse.jface.preference.IPreferenceStore; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Control; +import org.eclipse.swt.widgets.Shell; + +import educationschedule.Activator; +import org.eclipse.swt.layout.GridLayout; +import org.eclipse.swt.widgets.Label; +import org.eclipse.swt.SWT; +import org.eclipse.swt.widgets.Text; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.widgets.Combo; + +/** +*@Title: separateCourse +*@Description:分散授课设置 +*@author:李朝辉 +*@data:2021年4月29日午夜12:00 +* +*/ +public class separateCourseDialog extends TitleAreaDialog { + private Text text; + private Text text_1; + + public separateCourseDialog(Shell parentShell) { + super(parentShell); + // TODO Auto-generated constructor stub + } + + protected Control createDialogArea(Composite parent) { + Composite composite = (Composite)super.createDialogArea(parent); + composite.setLayout(new GridLayout(2, false)); + new Label(composite, SWT.NONE); + + Label label = new Label(composite, SWT.NONE); + label.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1)); + label.setText("本学期安排课时"); + + text = new Text(composite, SWT.BORDER); + text.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1)); + + Label lblNewLabel = new Label(composite, SWT.NONE); + lblNewLabel.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1)); + lblNewLabel.setText("本学期安排学分"); + + text_1 = new Text(composite, SWT.BORDER); + text_1.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1)); + + this.setTitle("请输入该课程本学期分散的课时与学分"); + this.setMessage("课时与学分",IMessageProvider.INFORMATION); + + return composite; + + } + protected void configureShell(Shell newShell) { + super.configureShell(newShell); + newShell.setText("分散课程设置"); + } + + +}