void Container::toolbarChanged(QToolBar*) { if (m_bBarChanged) return; saveToolbar(m_bar, data.barState); memcpy(CorePlugin::m_plugin->data.containerBar, data.barState, sizeof(data.barState)); }
void UserWnd::toolbarChanged(Q3ToolBar*) { if (m_bBarChanged) return; saveToolbar(m_edit->m_bar, data.editBar); memcpy(CorePlugin::m_plugin->data.editBar, data.editBar, sizeof(data.editBar)); }
string Container::getState() { clearWndConfig(); string windows; list<UserWnd*> userWnds = m_tabBar->windows(); for (list<UserWnd*>::iterator it = userWnds.begin(); it != userWnds.end(); ++it){ if (!windows.empty()) windows += ','; windows += number((*it)->id()); setWndConfig((*it)->id(), (*it)->getConfig().c_str()); } setWindows(windows.c_str()); UserWnd *userWnd = m_tabBar->currentWnd(); if (userWnd) setActiveWindow(userWnd->id()); saveGeometry(this, data.geometry); saveToolbar(m_bar, data.barState); if (m_tabBar->isVisible()) setStatusSize(m_status->width()); return save_data(containerData, &data); }
string WeatherPlugin::getConfig() { if (m_bar) saveToolbar(m_bar, data.bar); return save_data(weatherData, &data); }
void JabberBrowser::save() { saveToolbar(m_bar, JabberPlugin::plugin->data.browser_bar); }
void HistoryWindow::toolbarChanged(QToolBar*) { saveToolbar(m_bar, CorePlugin::m_plugin->data.historyBar); }
void JabberBrowser::save() { saveToolbar(m_bar, m_client->data.browser_bar); saveGeometry(this, m_client->data.browser_geo); }