| 1711 | } |
| 1712 | |
| 1713 | void MainWindow::on_actionOpenListRecent_triggered() |
| 1714 | { |
| 1715 | CFrmRecent* p = new CFrmRecent(this, &m_Manager, m_Parameter, false); |
| 1716 | if(!p) return; |
| 1717 | bool check = connect(p, SIGNAL(sigStart(const QString&, bool)), |
| 1718 | this, SLOT(slotOpenFile(const QString&, bool))); |
| 1719 | Q_ASSERT(check); |
| 1720 | check = connect(p, SIGNAL(sigAddToFavorite(QString,QString,QString,QIcon)), |
| 1721 | m_pFavoriteView, SLOT(slotAddToFavorite(QString,QString,QString,QIcon))); |
| 1722 | Q_ASSERT(check); |
| 1723 | |
| 1724 | int nRet = p->Initial(); |
| 1725 | if(nRet) return; |
| 1726 | |
| 1727 | QDialog d; |
| 1728 | d.resize(540, 400); |
| 1729 | d.setWindowIcon(windowIcon()); |
| 1730 | d.setWindowTitle(p->windowTitle()); |
| 1731 | QGridLayout* pLayout = new QGridLayout(&d); |
| 1732 | if(pLayout){ |
| 1733 | pLayout->addWidget(p); |
| 1734 | check = connect(p, SIGNAL(destroyed()), &d, SLOT(reject())); |
| 1735 | d.setLayout(pLayout); |
| 1736 | } |
| 1737 | RC_SHOW_WINDOW(&d); |
| 1738 | } |
| 1739 | |
| 1740 | void MainWindow::on_actionAdd_to_favorite_triggered() |
| 1741 | { |