OpenCores
URL https://opencores.org/ocsvn/fpga-cf/fpga-cf/trunk

Subversion Repositories fpga-cf

[/] [fpga-cf/] [trunk/] [java/] [src/] [edu/] [byu/] [cc/] [plieber/] [fpgaenet/] [modmod/] [SHA1Widget.java] - Diff between revs 2 and 7

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 2 Rev 7
Line 1... Line 1...
package edu.byu.cc.plieber.fpgaenet.modmod;
package edu.byu.cc.plieber.fpgaenet.modmod;
 
import java.io.IOException;
 
import java.net.InetAddress;
import java.util.ArrayList;
import java.util.ArrayList;
 
 
import com.trolltech.qt.gui.*;
import com.trolltech.qt.gui.*;
import com.trolltech.qt.gui.QSizePolicy.Policy;
import com.trolltech.qt.gui.QSizePolicy.Policy;
 
 
Line 8... Line 10...
import edu.byu.cc.plieber.fpgaenet.fcp.FCPProtocol;
import edu.byu.cc.plieber.fpgaenet.fcp.FCPProtocol;
import edu.byu.cc.plieber.util.StringUtil;
import edu.byu.cc.plieber.util.StringUtil;
 
 
public class SHA1Widget extends ModuleControlWidget{
public class SHA1Widget extends ModuleControlWidget{
 
 
 
        public static void main(String[] args) {
 
                QApplication.initialize(args);
 
 
 
                FCPProtocol p = null;
 
                try {
 
                        p = new FCPProtocol();
 
                        p.connect(InetAddress.getByName("10.0.1.42"));
 
                        while (!p.isConnected());
 
                } catch (IOException e) {
 
                        // TODO Auto-generated catch block
 
                        e.printStackTrace();
 
                }
 
                SHA1Widget w = new SHA1Widget(null, p);
 
                w.setChannelNumber(6);
 
                w.show();
 
                QApplication.exec();
 
                p.disconnect();
 
 
 
        }
 
 
    public SHA1Widget(QWidget parent, FCPProtocol protocol){
    public SHA1Widget(QWidget parent, FCPProtocol protocol){
        super(parent);
        super(parent);
        fcpProtocol = protocol;
        fcpProtocol = protocol;
        createWidgets();
        createWidgets();
        connectSignalsAndSlots();
        connectSignalsAndSlots();

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.