Changeset View
Changeset View
Standalone View
Standalone View
kimeshell.cpp
Context not available. | |||||
37 | #include <kactioncollection.h> | 37 | #include <kactioncollection.h> | ||
---|---|---|---|---|---|
38 | #include <KSharedConfig> | 38 | #include <KSharedConfig> | ||
39 | #include <KConfigGroup> | 39 | #include <KConfigGroup> | ||
40 | #include <KWindowConfig> | ||||
40 | 41 | | |||
41 | #include "drawzone.h" | 42 | #include "drawzone.h" | ||
42 | #include "kimagemapeditor.h" // the KPart | 43 | #include "kimagemapeditor.h" // the KPart | ||
Context not available. | |||||
80 | QApplication::sendEvent( m_part, &ev ); | 81 | QApplication::sendEvent( m_part, &ev ); | ||
81 | //setCentralWidget(part->widget()); | 82 | //setCentralWidget(part->widget()); | ||
82 | qCDebug(KIMAGEMAPEDITOR_LOG) << "KimeShell starting 3"; | 83 | qCDebug(KIMAGEMAPEDITOR_LOG) << "KimeShell starting 3"; | ||
83 | if (!initialGeometrySet()) | 84 | resize( QSize(725, 525).expandedTo(minimumSizeHint())); | ||
84 | resize( QSize(725, 525).expandedTo(minimumSizeHint())); | | |||
85 | 85 | | |||
86 | connect( m_part, SIGNAL(setStatusBarText(QString)), | 86 | connect( m_part, SIGNAL(setStatusBarText(QString)), | ||
87 | this, SLOT(slotSetStatusBarText(QString))); | 87 | this, SLOT(slotSetStatusBarText(QString))); | ||
Context not available. | |||||
157 | }; | 157 | }; | ||
158 | } | 158 | } | ||
159 | 159 | | |||
160 | void KimeShell::openFile(const KUrl & url) | 160 | void KimeShell::openFile(const QUrl & url) | ||
161 | { | 161 | { | ||
162 | m_part->openFile(url); | 162 | m_part->openFile(url); | ||
163 | } | 163 | } | ||
Context not available. | |||||
174 | 174 | | |||
175 | void KimeShell::fileOpen() | 175 | void KimeShell::fileOpen() | ||
176 | { | 176 | { | ||
177 | KUrl url = QFileDialog::getOpenFileUrl(this, i18n("Choose Picture to Open"), QString(), | 177 | QUrl url = QFileDialog::getOpenFileUrl(this, i18n("Choose Picture to Open"), QString(), | ||
178 | i18n("Web File (*.png *.jpg *.jpeg *.gif *.htm *.html);;Images (*.png *.jpg *.jpeg *.gif *.bmp *.xbm *.xpm *.pnm *.mng);;" | 178 | i18n("Web File (*.png *.jpg *.jpeg *.gif *.htm *.html);;Images (*.png *.jpg *.jpeg *.gif *.bmp *.xbm *.xpm *.pnm *.mng);;" | ||
179 | "HTML Files (*.htm *.html);;All Files (*)")); | 179 | "HTML Files (*.htm *.html);;All Files (*)")); | ||
180 | if (!url.isEmpty()) { | 180 | if (!url.isEmpty()) { | ||
Context not available. | |||||
217 | 217 | | |||
218 | void KimeShell::writeConfig(KConfigGroup &config) { | 218 | void KimeShell::writeConfig(KConfigGroup &config) { | ||
219 | saveMainWindowSettings(config); | 219 | saveMainWindowSettings(config); | ||
220 | saveWindowSize(config); | 220 | KWindowConfig::saveWindowSize(windowHandle(), config); | ||
221 | // writeDockConfig(config); | 221 | // writeDockConfig(config); | ||
222 | config.sync(); | 222 | config.sync(); | ||
223 | 223 | | |||
Context not available. |