DialogFindFriends::DialogFindFriends(QWidget *parent) : QDialog(parent) { setWindowTitle("Find a friend"); inftext = new QLabel(this); QVBoxLayout *lyt = new QVBoxLayout(); QHBoxLayout *lytBut = new QHBoxLayout(); lyt->addWidget(inftext); QLabel *lblUserLogin = new QLabel("Enter a login of a friend:", this); leFriendLogin = new QLineEdit(this); lyt->addWidget(lblUserLogin); lyt->addWidget(leFriendLogin); butFind = new QPushButton("Find", this); butAdd = new QPushButton("Add", this); butWrite = new QPushButton("Write", this); lytBut->addWidget(butFind); lytBut->addWidget(butAdd); lytBut->addWidget(butWrite); lyt->addLayout(lytBut); setLayout(lyt); connect(butFind, SIGNAL(clicked()), this, SLOT(slotFindFr())); connect(butAdd, SIGNAL(clicked()), this, SLOT(slotAdd())); connect(butWrite, SIGNAL(clicked()), this, SLOT(slotWrite())); //connect(butNo, SIGNAL(clicked()), this, SLOT(slotNoAddFriend())); butAdd->setEnabled(false); butWrite->setEnabled(false); //inftext->setText("<font size = 14 color = \"red\" >Lalay, saska!</font>"); }
static void sviMemWrite(void* ref, UInt16 address, UInt8 value) { if ((svi80ColEnabled && svi80colMemBankCtrlStatus()) && (address & 0xf800) == 0xf000) { svi80colMemWrite(address & 0xfff, value); } else slotWrite(ref, address, value); }
static int dbgWriteMemory(R800Debug* dbg, char* name, void* data, int start, int size) { UInt8* dataBuffer = data; int i; int rv = 1; if (strcmp(name, "Visible Memory") || start + size > 0x10000) { return 0; } for (i = 0; i < size; i++) { slotWrite(NULL, start + i, dataBuffer[i]); rv &= dataBuffer[i] == slotPeek(NULL, start + i); } return rv; }