mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-02-10 18:05:16 +08:00
[win-nix] refactoring
This commit is contained in:
@ -8,11 +8,11 @@ INCLUDEPATH += $$PWD/src/prop \
|
||||
$$PWD/src
|
||||
|
||||
HEADERS += \
|
||||
src/prop/csplash_p.h \
|
||||
src/prop/defines_p.h \
|
||||
src/prop/version_p.h
|
||||
|
||||
SOURCES += \
|
||||
src/prop/csplash_p.cpp \
|
||||
src/prop/cmainpanelimpl.cpp \
|
||||
src/prop/cascapplicationmanagerwrapper_private.h \
|
||||
src/prop/utils.cpp
|
||||
|
||||
@ -222,13 +222,7 @@ CMainPanel::CMainPanel(QWidget *parent, bool isCustomWindow, uchar dpi_ratio)
|
||||
// m_pTabs->addEditor("editor3", etSpreadsheet, L"http://google.com");
|
||||
// m_pTabs->updateIcons();
|
||||
|
||||
QString params = QString("lang=%1&username=%3&location=%2")
|
||||
.arg(CLangater::getCurrentLangCode(), Utils::systemLocationCode());
|
||||
wstring wparams = params.toStdWString();
|
||||
wstring user_name = Utils::appUserName();
|
||||
|
||||
wparams.replace(wparams.find(L"%3"), 2, user_name);
|
||||
AscAppManager::getInstance().InitAdditionalEditorParams(wparams);
|
||||
}
|
||||
|
||||
void CMainPanel::RecalculatePlaces()
|
||||
@ -647,7 +641,7 @@ void CMainPanel::onLocalFileRecent(void * d)
|
||||
tr("%1 doesn't exists!<br>Remove file from the list?").arg(_info.fileName()));
|
||||
|
||||
if (modal_res == MODAL_RESULT_CUSTOM) {
|
||||
AscAppManager::sendCommandTo(QCEF_CAST(m_pMainWidget), "file:skip", QString::number(opts.id));
|
||||
AscAppManager::sendCommandTo(SEND_TO_ALL_START_PAGE, "file:skip", QString::number(opts.id));
|
||||
}
|
||||
|
||||
return;
|
||||
@ -819,7 +813,7 @@ void CMainPanel::onDocumentReady(int uid)
|
||||
refreshAboutVersion();
|
||||
emit mainPageReady();
|
||||
|
||||
AscAppManager::sendCommandTo( QCEF_CAST(m_pMainWidget), "app:ready" );
|
||||
AscAppManager::sendCommandTo(SEND_TO_ALL_START_PAGE, L"app:ready");
|
||||
});
|
||||
} else {
|
||||
m_pTabs->applyDocumentChanging(uid, DOCUMENT_CHANGED_LOADING_FINISH);
|
||||
|
||||
@ -32,13 +32,13 @@
|
||||
|
||||
|
||||
#include "csplash.h"
|
||||
#include "csplash_p.h"
|
||||
#include "defines.h"
|
||||
#include <QApplication>
|
||||
#include <QScreen>
|
||||
#include <QSettings>
|
||||
#include <QStyle>
|
||||
#include "utils.h"
|
||||
#include "csplash_p.cpp"
|
||||
|
||||
CSplash * _splash;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user