Line 50... |
Line 50... |
private ChannelConfigurationWidget configWidget;
|
private ChannelConfigurationWidget configWidget;
|
|
|
public ModularModules(QWidget parent) {
|
public ModularModules(QWidget parent) {
|
super(parent);
|
super(parent);
|
this.setWindowTitle("Module Modules");
|
this.setWindowTitle("Module Modules");
|
createActions();
|
|
createMenus();
|
|
// makeConnections();
|
|
createWidgets();
|
|
createLayout();
|
|
connectSignalsAndSlots();
|
|
|
|
try {
|
try {
|
fcpProtocol = new FCPProtocol();
|
fcpProtocol = new FCPProtocol();
|
icapInterface = new IcapInterface(fcpProtocol, 3, 4);
|
icapInterface = new IcapInterface(fcpProtocol, 3, 4);
|
} catch (IOException e) {
|
} catch (IOException e) {
|
// TODO Auto-generated catch block
|
// TODO Auto-generated catch block
|
e.printStackTrace();
|
e.printStackTrace();
|
QMessageBox.critical(this, "Bind Error", "Could not bind socket.");
|
QMessageBox.critical(this, "Bind Error", "Could not bind socket.");
|
}
|
}
|
|
|
|
createActions();
|
|
createMenus();
|
|
// makeConnections();
|
|
createWidgets();
|
|
createLayout();
|
|
connectSignalsAndSlots();
|
|
|
connectionChanged();
|
connectionChanged();
|
}
|
}
|
|
|
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
private void connect() {
|
private void connect() {
|
Line 137... |
Line 138... |
helpMenu.addAction(aboutQtJambiAct);
|
helpMenu.addAction(aboutQtJambiAct);
|
}
|
}
|
|
|
private void createWidgets() {
|
private void createWidgets() {
|
moduleStack = new QStackedWidget(this);
|
moduleStack = new QStackedWidget(this);
|
staticWidget = new StaticModulesWidget(this, null);
|
staticWidget = new StaticModulesWidget(this, fcpProtocol);
|
availWidget = new AvailableModulesWidget(this);
|
availWidget = new AvailableModulesWidget(this);
|
configWidget = new ChannelConfigurationWidget(this);
|
configWidget = new ChannelConfigurationWidget(this);
|
md5Widget = new MD5Widget(moduleStack, fcpProtocol);
|
md5Widget = new MD5Widget(moduleStack, fcpProtocol);
|
sha1Widget = new SHA1Widget(moduleStack, fcpProtocol);
|
sha1Widget = new SHA1Widget(moduleStack, fcpProtocol);
|
// availWidget.addModule(new AvailableModule("32-bit\nRegister",
|
|
// availWidget));
|
|
// availWidget.addModule(new AvailableModule("MD5", availWidget,
|
|
// md5Widget));
|
|
// availWidget.addModule(new AvailableModule("SHA1", availWidget,
|
|
// sha1Widget));
|
|
}
|
}
|
|
|
private void createLayout() {
|
private void createLayout() {
|
mainFrame = new QFrame(this);
|
mainFrame = new QFrame(this);
|
this.setCentralWidget(mainFrame);
|
this.setCentralWidget(mainFrame);
|