void DreamWebEngine::doSomeTalk() { while (true) { const uint8 *str = getPersonText(_character & 0x7F, _talkPos); if (*str == 0) { // endheartalk _pointerMode = 0; return; } createPanel(); showPanel(); showMan(); showExit(); convIcons(); printDirect(str, 164, 64, 144, false); loadSpeech('R', _realLocation, 'C', (64 * (_character & 0x7F)) + _talkPos); if (_speechLoaded) playChannel1(62); _pointerMode = 3; workToScreenM(); if (hangOnPQ()) return; _talkPos++; str = getPersonText(_character & 0x7F, _talkPos); if (*str == 0) { // endheartalk _pointerMode = 0; return; } if (*str != ':' && *str != 32) { createPanel(); showPanel(); showMan(); showExit(); convIcons(); printDirect(str, 48, 128, 144, false); loadSpeech('R', _realLocation, 'C', (64 * (_character & 0x7F)) + _talkPos); if (_speechLoaded) playChannel1(62); _pointerMode = 3; workToScreenM(); if (hangOnPQ()) return; } _talkPos++; } }
void DreamWebEngine::lastDest() { commandOnlyCond(29, 219); if (!(_mouseButton & 1) || _oldButton == 1) return; // nodd do { _destPos--; if (_destPos == 0xFF) _destPos = 15; // first destination } while (!getLocation(_destPos)); _newTextLine = 1; delTextLine(); delPointer(); showPanel(); showMan(); showArrows(); locationPic(); underTextLine(); readMouse(); showPointer(); workToScreen(); delPointer(); }
// static void LLFloaterDirectory::toggleFind(void*) { if (!sInstance) { std::string panel = gSavedSettings.getString("LastFindPanel"); bool hasWebSearch = gHippoGridManager->getConnectedGrid()->isSecondLife() || !gHippoGridManager->getConnectedGrid()->getSearchUrl().empty(); if (hasWebSearch && (panel == "find_all_panel" || panel == "showcase_panel")) { panel = "find_all_old_panel"; } showPanel(panel); // HACK: force query for today's events if (sInstance->mEventsPanel) { sInstance->mEventsPanel->setDay(0); //sInstance->mEventsPanel->performQuery(); // Temporary change to help DB - Sabin } return; } BOOL panel_visible = sInstance->getVisible(); if (!panel_visible) { sInstance->open(); /*Flawfinder: ignore*/ sInstance->focusCurrentPanel(); } else { sInstance->close(); } }
// static void LLFloaterDirectory::toggleFind(void*) { #ifndef LL_RELEASE_FOR_DOWNLOAD delete sInstance; sInstance = NULL; #endif if (!sInstance) { LLString panel = gSavedSettings.getString("LastFindPanel"); showPanel(panel); // HACK: force query for today's events if (sInstance->mEventsPanel) { sInstance->mEventsPanel->setDay(0); //sInstance->mEventsPanel->performQuery(); // Temporary change to help DB - Sabin } return; } BOOL panel_visible = sInstance->getVisible(); if (!panel_visible) { sInstance->open(); /*Flawfinder: ignore*/ sInstance->focusCurrentPanel(); } else { sInstance->close(); } }
void DreamWebEngine::selectOpenOb() { uint8 slotSize, slotCount; getAnyAd(&slotSize, &slotCount); if (slotCount == 255) { // Can't open the object blank(); return; } if (_commandType != 224) { _commandType = 224; commandWithOb(38, _objectType, _command); } if (_mouseButton == _oldButton || !(_mouseButton & 1)) return; _openedOb = _command; _openedType = _objectType; createPanel(); showPanel(); showMan(); examIcon(); showExit(); openInv(); openOb(); underTextLine(); readMouse(); showPointer(); workToScreen(); delPointer(); }
void DreamWebEngine::redes() { if (_channel1Playing != 255 || _talkMode != 2) { blank(); return; } if (_commandType != 217) { _commandType = 217; commandOnly(50); } if (!(_mouseButton & 1)) return; delPointer(); createPanel(); showPanel(); showMan(); showExit(); convIcons(); startTalk(); readMouse(); showPointer(); workToScreen(); delPointer(); }
void DreamWebEngine::inventory() { if (_vars._manDead == 1 || _vars._watchingTime != 0) { blank(); return; } commandOnlyCond(32, 239); if (_mouseButton == _oldButton) return; if (!(_mouseButton & 1)) // only on left mouse button return; _timeCount = 0; _pointerMode = 0; _inMapArea = 0; animPointer(); createPanel(); showPanel(); examIcon(); showMan(); showExit(); underTextLine(); _pickUp = 0; _invOpen = 2; openInv(); readMouse(); showPointer(); workToScreen(); delPointer(); _openedOb = 255; examineOb(false); }
// can be called multiple times without causing trouble void ModSelectorScreen::init() { leftbar.width = 100; leftbar.height = height; leftbar.alpha = 0; leftbar.alpha.interpolateTo(1, 0.2f); leftbar.position = Vector((leftbar.width - width) / 2, 0); leftbar.followCamera = 1; if(!leftbar.getParent()) { leftbar.init(); addChild(&leftbar, PM_STATIC); panels.resize(leftbar.icons.size()); std::fill(panels.begin(), panels.end(), (IconGridPanel*)NULL); } rightbar.width = 100; rightbar.height = height; rightbar.alpha = 0; rightbar.alpha.interpolateTo(1, 0.2f); rightbar.position = Vector(((width - rightbar.width) / 2), 0); rightbar.followCamera = 1; if(!rightbar.getParent()) { rightbar.init(); addChild(&rightbar, PM_STATIC); } for(int i = 0; i < panels.size(); ++i) { if(panels[i]) continue; panels[i] = new IconGridPanel(); panels[i]->followCamera = 1; panels[i]->width = width - leftbar.width - rightbar.width; panels[i]->height = 750; panels[i]->position = Vector(0, 0); panels[i]->alpha = 0; panels[i]->spacing = 20; // for the grid panels[i]->scale = Vector(0.8f, 0.8f); leftbar.icons[i]->cb = _MenuIconClickCallback; leftbar.icons[i]->cb_data = this; addChild(panels[i], PM_POINTER); } // NEW GRID VIEW initModAndPatchPanel(); // net panel inited on demand showPanel(0); // we abuse those dsq->subtext->alpha = 1.2f; dsq->subbox->alpha = 1; // TODO: keyboard/gamepad control }
void LLFloaterDirectory::showClassified(const LLUUID& classified_id) { showPanel("classified_panel"); if (sInstance->mClassifiedPanel) { sInstance->mClassifiedPanel->selectByUUID(classified_id); } }
// static void LLFloaterDirectory::showPopular(const LLUUID& parcel_id) { showPanel("popular_panel"); if (sInstance->mPopularPanel) { sInstance->mPopularPanel->selectByUUID(parcel_id); } }
// static void LLFloaterDirectory::showLandForSale(const LLUUID& parcel_id) { showPanel("land_sales_panel"); if (sInstance->mLandPanel) { sInstance->mLandPanel->selectByUUID(parcel_id); } }
void DreamWebEngine::wornError() { _commandType = 255; delPointer(); printMessage(76, 21, 57, 240, false); workToScreenM(); hangOnP(50); showPanel(); showMan(); examIcon(); _commandType = 255; workToScreenM(); }
void DreamWebEngine::cantDrop() { _commandType = 255; delPointer(); printMessage(76, 21, 24, 240, 240 & 1); workToScreenM(); hangOnP(50); showPanel(); showMan(); examIcon(); _commandType = 255; workToScreenM(); }
void PanelManager::setItem(const ResourceTreeItem *item) { if (!_layout) return; Aurora::ResourceType type; if (!item) type = Aurora::kResourceNone; else type = item->getResourceType(); showPanel(type, item); }
// static void LLFloaterDirectory::showEvents(S32 event_id) { showPanel("events_panel"); if (sInstance->mEventsPanel) { // HACK: force query for today's events sInstance->mEventsPanel->setDay(0); sInstance->mEventsPanel->performQuery(); if (event_id != 0) { sInstance->mEventsPanel->selectEventByID(event_id); } } }
void DreamWebEngine::talk() { _talkPos = 0; _inMapArea = 0; _character = _command; createPanel(); showPanel(); showMan(); showExit(); underTextLine(); convIcons(); startTalk(); _commandType = 255; readMouse(); showPointer(); workToScreen(); RectWithCallback<DreamWebEngine> talkList[] = { { 273,320,157,198,&DreamWebEngine::getBack1 }, { 240,290,2,44,&DreamWebEngine::moreTalk }, { 0,320,0,200,&DreamWebEngine::blank }, { 0xFFFF,0,0,0,0 } }; do { delPointer(); readMouse(); animPointer(); showPointer(); vSync(); dumpPointer(); dumpTextLine(); _getBack = 0; checkCoords(talkList); if (_quitRequested) break; } while (!_getBack); if (_talkPos >= 4) _personData->b7 |= 128; redrawMainScrn(); workToScreenM(); if (_speechLoaded) { cancelCh1(); _volumeDirection = -1; _volumeTo = 0; } }
void DreamWebEngine::examineInventory() { commandOnlyCond(32, 249); if (!(_mouseButton & 1)) return; createPanel(); showPanel(); showMan(); showExit(); examIcon(); _pickUp = 0; _invOpen = 2; openInv(); workToScreenM(); }
void DreamWebEngine::setPickup() { if (_objectType != kSetObjectType1 && _objectType != kSetObjectType3) { // Object types 1 and 3 are excluded, so the resulting object is a DynObject uint8 dummy; DynObject *object = (DynObject *)getAnyAd(&dummy, &dummy); if (object->mapad[0] == 4) { blank(); return; } } else { blank(); return; } if (_commandType != 209) { _commandType = 209; commandWithOb(33, _objectType, _command); } if (_mouseButton != 1 || _mouseButton == _oldButton) return; createPanel(); showPanel(); showMan(); showExit(); examIcon(); _pickUp = 1; _invOpen = 2; if (_objectType != kExObjectType) { assert(_objectType == kFreeObjectType); _openedOb = 255; _itemFrame = transferToEx(_command); _objectType = kExObjectType; DynObject *object = getExAd(_itemFrame); object->mapad[0] = 20; object->mapad[1] = 255; } else { _itemFrame = _command; _openedOb = 255; } openInv(); workToScreenM(); }
mainView::mainView(QWidget *parent) : QWidget(parent), ui(new Ui::mainView) { ui->setupUi(this); ui->lineEdit->setEmptyMessage("Type 'mibit' to see what happens"); tip1 = new MibitTip(this, ui->lineEdit, "tip.svg",QPixmap("important.png") ); tip3 = new MibitTip(this, ui->btnTest3, "tip.svg", QPixmap("important.png"), tpAbove ); dialog1 = new MibitDialog(this,"Nothing","dialog-theme.opaque.svg",QPixmap("face-smile.png"), atSlideDown ); dialog1->setSize(300,150); floatPanel = new MibitFloatPanel(this,"rotated_panel.svg", Bottom); floatPanel->setSize(350,200); floatPanel->addWidget(ui->toFloat); QTimer::singleShot(3000,floatPanel,SLOT(showPanel())); notifier = new MibitNotifier(this,"notifier.svg",QPixmap("information.png"));//onTop = true connect(ui->btnClosePanel, SIGNAL(clicked()), floatPanel, SLOT(hideOnUserRequest())); connect(ui->btnQuit, SIGNAL(clicked()),qApp, SLOT(quit())); ui->slider->setRange(0,100); connect(ui->slider, SIGNAL(valueChanged(int)), ui->progressBar, SLOT(setValue(int))); connect(ui->btnTest1, SIGNAL(clicked()), SLOT(showTip1())); connect(ui->btnTest3, SIGNAL(clicked()), SLOT(showTip3())); connect(ui->btnDialog1, SIGNAL(clicked()), SLOT(showDialog1())); connect(ui->btnDialog2, SIGNAL(clicked()), SLOT(showDialog2())); connect(ui->btnDialog3, SIGNAL(clicked()), SLOT(showDialog3())); connect(ui->btnDialog4, SIGNAL(clicked()), SLOT(showDialog4())); connect(ui->btnNotify, SIGNAL(clicked()), this, SLOT(showNotify()) ); connect(ui->btnNotify2, SIGNAL(clicked()), this, SLOT(showNotify2()) ); connect(ui->lineEdit,SIGNAL(textEdited(QString)), this, SLOT(checkText(QString))); QTimer::singleShot(700,this,SLOT(showDialog1())); QTimer::singleShot(0,this,SLOT(centerWindow())); }
void UIVisoCreator::sltPanelActionToggled(bool fChecked) { QAction *pSenderAction = qobject_cast<QAction*>(sender()); if (!pSenderAction) return; UIDialogPanel* pPanel = 0; /* Look for the sender() within the m_panelActionMap's values: */ for (QMap<UIDialogPanel*, QAction*>::const_iterator iterator = m_panelActionMap.begin(); iterator != m_panelActionMap.end(); ++iterator) { if (iterator.value() == pSenderAction) pPanel = iterator.key(); } if (!pPanel) return; if (fChecked) showPanel(pPanel); else hidePanel(pPanel); }
ProvidersEditor::ProvidersEditor( QWidget *parent, bool newProvider, const QSqlDatabase& database ) : KDialog( parent ) { modelCreated = false; db = database; enableButtonOk(false); ui = new ProvidersEditorUI( this ); setMainWidget( ui ); setCaption( i18n("Product Editor") ); setButtons( KDialog::Ok|KDialog::Cancel ); connect( ui->btnRemove, SIGNAL(clicked()), SLOT( removeItem()) ); connect( ui->btnAttach, SIGNAL(clicked()), SLOT( addItem()) ); connect( ui->editName, SIGNAL(editingFinished()), this, SLOT(checkFieldsState())); connect( ui->editAddress, SIGNAL(textChanged()), this, SLOT(checkFieldsState())); connect( ui->editPhone, SIGNAL(editingFinished()), this, SLOT(checkFieldsState())); connect( ui->editCell, SIGNAL(textChanged(const QString &)), this, SLOT(checkFieldsState())); QString path = KStandardDirs::locate("appdata", "styles/"); path = path+"floating_bottom.svg"; panel = new MibitFloatPanel(this, path, Bottom); panel->setSize(350,200); panel->setMode(pmManual); panel->setHiddenTotally(true); panel->addWidget(ui->attachment); connect( ui->btnAdd, SIGNAL(clicked()), panel, SLOT( showPanel() ) ); connect( ui->btnAttach, SIGNAL(clicked()), panel, SLOT( hidePanel() ) ); connect( ui->btnCancelAttach, SIGNAL(clicked()), panel, SLOT( hidePanel()) ); m_pInfo.id = 0; m_pInfo.name = ""; m_pInfo.address = ""; m_pInfo.phone = ""; m_pInfo.cell = ""; }
// static void LLFloaterDirectory::toggleFind(void*) { if (!sInstance) { std::string panel = gSavedSettings.getString("LastFindPanel"); if (!gHippoGridManager->getConnectedGrid()->isSecondLife()) { LFSimFeatureHandler& inst(LFSimFeatureHandler::instance()); if (panel == "web_panel" || (inst.searchURL().empty() && panel == "find_all_panel") || (inst.destinationGuideURL().empty() && panel == "showcase_panel")) panel = "find_all_old_panel"; } else if (panel == "find_all_old_panel") panel = "find_all_panel"; showPanel(panel); // HACK: force query for today's events if (sInstance->mEventsPanel) { sInstance->mEventsPanel->setDay(0); //sInstance->mEventsPanel->performQuery(); // Temporary change to help DB - Sabin } return; } BOOL panel_visible = sInstance->getVisible(); if (!panel_visible) { sInstance->open(); /*Flawfinder: ignore*/ sInstance->focusCurrentPanel(); } else { sInstance->close(); } }
ReservationsDialog::ReservationsDialog( QWidget *parent, Gaveta *theDrawer, int userid ) : KDialog( parent ) { drawer = theDrawer; userId = userid; m_modelAssigned = false; trNumber = 0; rNumber = 0; rPayment = 0; rProfit = 0; item_discounts = ""; ui = new ReservationsDialogUI( this ); setMainWidget( ui ); setCaption( i18n("Reservations") ); setButtons( KDialog::Ok|KDialog::Cancel ); enableButtonOk(false); QString path = KStandardDirs::locate("appdata", "styles/"); path = path+"floating_bottom.svg"; panel = new MibitFloatPanel(this, path, Top); panel->setSize(250,150); panel->addWidget(ui->confirmFrame); panel->setMode(pmManual); panel->setHiddenTotally(true); panel->hide(); connect(ui->btnYes, SIGNAL(clicked()), SLOT(cancelReservation() )); connect(ui->btnNo, SIGNAL(clicked()), panel, SLOT(hidePanel() )); connect(ui->btnCancelReservation, SIGNAL(clicked()), panel, SLOT(showPanel() )); connect(ui->tableWidget, SIGNAL(clicked(const QModelIndex &)), SLOT(itemClicked(const QModelIndex &))); setDefaultButton(KDialog::Ok); //disable the cancel button ui->btnCancelReservation->setDisabled(true); }
void DreamWebEngine::examineOb(bool examineAgain) { _pointerMode = 0; _timeCount = 0; while (true) { if (examineAgain) { _inMapArea = 0; _examAgain = 0; _openedOb = 255; _openedType = 255; _invOpen = 0; _objectType = _commandType; _itemFrame = 0; _pointerFrame = 0; createPanel(); showPanel(); showMan(); showExit(); obIcons(); obPicture(); describeOb(); underTextLine(); _commandType = 255; readMouse(); showPointer(); workToScreen(); delPointer(); examineAgain = false; } readMouse(); showPointer(); waitForVSync(); dumpPointer(); dumpTextLine(); delPointer(); _getBack = 0; switch (_invOpen) { case 0: { RectWithCallback examList[] = { { 273,320,157,198,&DreamWebEngine::getBackFromOb }, { 260,300,0,44,&DreamWebEngine::useObject }, { 210,254,0,44,&DreamWebEngine::selectOpenOb }, { 144,176,64,96,&DreamWebEngine::setPickup }, { 0,50,50,200,&DreamWebEngine::examineInventory }, { 0,320,0,200,&DreamWebEngine::blank }, { 0xFFFF,0,0,0,0 } }; checkCoords(examList); break; } case 1: { // Note: This table contains the non-constant _openChangeSize! RectWithCallback invList1[] = { { 273,320,157,198,&DreamWebEngine::getBackFromOb }, { 255,294,0,24,&DreamWebEngine::dropObject }, { kInventx+167,kInventx+167+(18*3),kInventy-18,kInventy-2,&DreamWebEngine::incRyanPage }, { kInventx,_openChangeSize,kInventy+100,kInventy+100+kItempicsize,&DreamWebEngine::useOpened }, { kInventx,kInventx+(5*kItempicsize),kInventy,kInventy+(2*kItempicsize),&DreamWebEngine::inToInv }, { 0,320,0,200,&DreamWebEngine::blank }, { 0xFFFF,0,0,0,0 } }; checkCoords(invList1); break; } default: { RectWithCallback withList1[] = { { 273,320,157,198,&DreamWebEngine::getBackFromOb }, { kInventx+167,kInventx+167+(18*3),kInventy-18,kInventy-2,&DreamWebEngine::incRyanPage }, { kInventx,kInventx+(5*kItempicsize), kInventy,kInventy+(2*kItempicsize),&DreamWebEngine::selectOb }, { 0,320,0,200,&DreamWebEngine::blank }, { 0xFFFF,0,0,0,0 } }; checkCoords(withList1); break; } } if (_quitRequested) break; if (_examAgain != 0) examineAgain = true; else if (_getBack != 0) break; } _pickUp = 0; if (_vars._watchingTime != 0 || _newLocation == 255) { // isWatching makeMainScreen(); } _invOpen = 0; _openedOb = 255; }
void DreamWebEngine::selectLocation() { _inMapArea = 0; clearBeforeLoad(); _getBack = 0; _pointerFrame = 22; readCityPic(); showCity(); _cityGraphics.clear(); readDestIcon(); loadTravelText(); showPanel(); showMan(); showArrows(); showExit(); locationPic(); underTextLine(); _commandType = 255; readMouse(); _pointerFrame = 0; showPointer(); workToScreen(); _sound->playChannel0(9, 255); _newLocation = 255; while (_newLocation == 255) { if (_quitRequested) break; delPointer(); readMouse(); showPointer(); waitForVSync(); dumpPointer(); dumpTextLine(); if (_getBack == 1) break; RectWithCallback destList[] = { { 238,258,4,44,&DreamWebEngine::nextDest }, { 104,124,4,44,&DreamWebEngine::lastDest }, { 280,308,4,44,&DreamWebEngine::lookAtPlace }, { 104,216,138,192,&DreamWebEngine::destSelect }, { 273,320,157,198,&DreamWebEngine::getBack1 }, { 0,320,0,200,&DreamWebEngine::blank }, { 0xFFFF,0,0,0,0 } }; checkCoords(destList); } if (_quitRequested || _getBack == 1 || _newLocation == _vars._location) { _newLocation = _realLocation; _getBack = 0; } _newplaceGraphics.clear(); _newplaceGraphics2.clear(); _newplaceGraphics3.clear(); _travelText.clear(); }
SpecialOrderEditor::SpecialOrderEditor( QWidget *parent, bool newOne ) : KDialog( parent ) { m_modelAssigned = false; priceEach = 0; paymentEach = 0; groupInfo.isAvailable = true; groupInfo.cost = 0; groupInfo.price = 0; groupInfo.count = 0; groupInfo.name = ""; ui = new SpecialOrderUI( this ); setMainWidget( ui ); setCaption( i18n("Special Orders") ); setButtons( KDialog::Ok|KDialog::Cancel ); //Set Validators for input boxes ui->editAddQty->setValidator(new QDoubleValidator(0.00, 999999999999.99, 3, ui->editAddQty)); ui->editQty->setValue(1); ui->editAddQty->setText("1.00"); connect( ui->editQty, SIGNAL(editingFinished()), this, SLOT(calculateCost())); connect( ui->editQty, SIGNAL(valueChanged(int)), this, SLOT(calculateCost())); connect( ui->editQty, SIGNAL(editingFinished()), this, SLOT(checkFieldsState())); connect( ui->editPayment, SIGNAL(valueChanged(double)), this, SLOT(checkFieldsState())); connect( ui->editFilter, SIGNAL(textEdited ( const QString &)), SLOT(applyFilter(const QString &)) ); connect( ui->btnAdd, SIGNAL(clicked()), SLOT(addItem()) ); connect( ui->editAddQty, SIGNAL(returnPressed()), SLOT(addItem()) ); connect( ui->btnRemove, SIGNAL(clicked()), SLOT(removeItem()) ); connect( ui->groupView, SIGNAL(itemDoubleClicked(QTableWidgetItem*)), SLOT(itemDoubleClicked(QTableWidgetItem*)) ); connect( ui->deliveryDT, SIGNAL(valueChanged(QDateTime)), this, SLOT(checkDate(QDateTime)) ); connect( ui->editNotes, SIGNAL(textChanged()), SLOT(updateNoteLength()) ); //for now, when creating a s.o. the status cannot be modified. It can be when edited. if (newOne) { dateTime = QDateTime::currentDateTime(); ui->deliveryDT->setDateTime(QDateTime::currentDateTime().addDays(1)); } //tip QString path = KStandardDirs::locate("appdata", "styles/"); path = path+"tip.svg"; qtyTip = new MibitTip(this, ui->editQty, path, DesktopIcon("dialog-warning",32) ); path = KStandardDirs::locate("appdata", "styles/")+"rotated_tip.svg"; groupTip = new MibitTip(this, ui->groupView, path, DesktopIcon("dialog-warning",32), tpAbove ); path = KStandardDirs::locate("appdata", "styles/"); path = path+"floating_bottom.svg"; newClientPanel = new MibitFloatPanel(this, path, Top); newClientPanel->setSize(550,250); newClientPanel->addWidget(ui->frameClient); newClientPanel->setMode(pmManual); newClientPanel->setHiddenTotally(true); ui->editClientName->setEmptyMessage(i18n("Enter client name here...")); ui->editClientPhone->setEmptyMessage(i18n("Enter client phone here...")); ui->editClientCell->setEmptyMessage(i18n("Enter client cell phone here...")); connect( ui->btnNewClient, SIGNAL(clicked()), newClientPanel, SLOT(showPanel() )); connect( ui->btnNewClient, SIGNAL(clicked()), this, SLOT(enableCreateClient() )); connect( ui->btnClientCancel, SIGNAL(clicked()), newClientPanel, SLOT(hidePanel())); connect( ui->btnClientAdd, SIGNAL(clicked()), this, SLOT(createClient())); connect( ui->editClientName, SIGNAL(textEdited(const QString &)), this, SLOT(checkValidInfo()) ); connect( ui->editClientAddress, SIGNAL(textChanged()), this, SLOT(checkValidInfo()) ); connect( ui->editClientPhone, SIGNAL(textEdited(const QString &)), this, SLOT(checkValidInfo()) ); connect( ui->editClientCell, SIGNAL(textEdited(const QString &)), this, SLOT(checkValidInfo()) ); setDefaultButton(KDialog::None); ui->btnFilter->setDefault(true); ui->btnFilter->hide(); //hack to dont have a default OK or Cancel button ui->clientsCombo->setFocus(); enableButtonOk(false); }
//static void LLFloaterDirectory::performQueryOn(const std::string& name, const std::string& search_text) { showPanel(name); performQueryOn2(name, search_text); }
// static void LLFloaterDirectory::showDestinations() { showPanel("showcase_panel"); }
void CSVWorld::SceneTool::openRequest() { showPanel (parentWidget()->mapToGlobal (pos())); }
void LLFloaterDirectory::showFindAll(const std::string& search_text) { showPanel(LFSimFeatureHandler::instance().searchURL().empty() ? "find_all_old_panel" : "find_all_panel"); LLPanelDirFindAllInterface::search(sInstance->mFindAllPanel, search_text); }