1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
|
/* This file is part of the KDE projec
Copyright (C) 2003 Lucijan Busch <[email protected]>
Copyright (C) 2003-2007 Jaroslaw Staniek <[email protected]>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifdef KEXI_NO_PROCESS_EVENTS
# define KEXI_NO_PENDING_DIALOGS
#endif
//! @internal safer dictionary
typedef TQMap< int, TQGuardedPtr<KexiDialogBase> > KexiDialogDict;
//! @internal
class KexiMainWindowImpl::Private
{
public:
Private(KexiMainWindowImpl* w)
// : dialogs(401)
: wnd(w)
, m_openedCustomObjectsForItem(1019, true)
{
propEditor=0;
propEditorToolWindow=0;
propEditorTabWidget=0;
userMode = false;
nav=0;
navToolWindow=0;
prj = 0;
curDialogGUIClient=0;
curDialogViewGUIClient=0;
closedDialogGUIClient=0;
closedDialogViewGUIClient=0;
nameDialog=0;
curDialog=0;
m_findDialog=0;
block_KMdiMainFrm_eventFilter=false;
focus_before_popup=0;
// relationPart=0;
privateIDCounter=0;
action_view_nav=0;
action_view_propeditor=0;
action_view_mainarea=0;
action_open_recent_projects_title_id = -1;
action_open_recent_connections_title_id = -1;
forceDialogClosing=false;
insideCloseDialog=false;
#ifndef KEXI_NO_PENDING_DIALOGS
actionToExecuteWhenPendingJobsAreFinished = NoAction;
#endif
// callSlotLastChildViewClosedAfterCloseDialog=false;
createMenu=0;
showImportantInfoOnStartup=true;
// disableErrorMessages=false;
// last_checked_mode=0;
propEditorDockSeparatorPos=-1;
navDockSeparatorPos=-1;
// navDockSeparatorPosWithAutoOpen=-1;
wasAutoOpen = false;
dialogExistedBeforeCloseProject = false;
#ifndef KEXI_SHOW_UNIMPLEMENTED
dummy_action = new TDEActionMenu(TQString(""), TQT_TQOBJECT(wnd));
#endif
maximizeFirstOpenedChildFrm = false;
#ifdef HAVE_KNEWSTUFF
newStuff = 0;
#endif
mdiModeToSwitchAfterRestart = (KMdi::MdiMode)0;
forceShowProjectNavigatorOnCreation = false;
forceHideProjectNavigatorOnCreation = false;
navWasVisibleBeforeProjectClosing = false;
saveSettingsForShowProjectNavigator = true;
m_openedCustomObjectsForItem.setAutoDelete(true);
}
~Private() {
}
#ifndef KEXI_NO_PENDING_DIALOGS
//! Job type. Currently used for marking items as being opened or closed.
enum PendingJobType {
NoJob = 0,
DialogOpeningJob,
DialogClosingJob
};
KexiDialogBase *openedDialogFor( const KexiPart::Item* item, PendingJobType &pendingType )
{
return openedDialogFor( item->identifier(), pendingType );
}
KexiDialogBase *openedDialogFor( int identifier, PendingJobType &pendingType )
{
//todo(threads) TQMutexLocker dialogsLocker( &dialogsMutex );
TQMap<int, PendingJobType>::ConstIterator it = pendingDialogs.find( identifier );
if (it==pendingDialogs.constEnd())
pendingType = NoJob;
else
pendingType = it.data();
if (pendingType == DialogOpeningJob) {
return 0;
}
return (KexiDialogBase*)dialogs[ identifier ];
}
#else
KexiDialogBase *openedDialogFor( const KexiPart::Item* item )
{
return openedDialogFor( item->identifier() );
}
KexiDialogBase *openedDialogFor( int identifier )
{
//todo(threads) TQMutexLocker dialogsLocker( &dialogsMutex );
return (KexiDialogBase*)dialogs[ identifier ];
}
#endif
void insertDialog(KexiDialogBase *dlg) {
//todo(threads) TQMutexLocker dialogsLocker( &dialogsMutex );
dialogs.insert(dlg->id(), TQGuardedPtr<KexiDialogBase>(dlg));
#ifndef KEXI_NO_PENDING_DIALOGS
pendingDialogs.remove(dlg->id());
#endif
}
#ifndef KEXI_NO_PENDING_DIALOGS
void addItemToPendingDialogs(const KexiPart::Item* item, PendingJobType jobType) {
//todo(threads) TQMutexLocker dialogsLocker( &dialogsMutex );
pendingDialogs.replace( item->identifier(), jobType );
}
bool pendingDialogsExist() {
if (pendingDialogs.constBegin()!=pendingDialogs.constEnd())
kdDebug() << pendingDialogs.constBegin().key() << " " << (int)pendingDialogs.constBegin().data() << endl;
//todo(threads) TQMutexLocker dialogsLocker( &dialogsMutex );
return !pendingDialogs.isEmpty();
}
#endif
void updateDialogId(KexiDialogBase *dlg, int oldItemID) {
//todo(threads) TQMutexLocker dialogsLocker( &dialogsMutex );
dialogs.remove(oldItemID);
#ifndef KEXI_NO_PENDING_DIALOGS
pendingDialogs.remove(oldItemID);
#endif
dialogs.insert(dlg->id(), TQGuardedPtr<KexiDialogBase>(dlg));
}
void removeDialog(int identifier) {
//todo(threads) TQMutexLocker dialogsLocker( &dialogsMutex );
dialogs.remove(identifier);
}
#ifndef KEXI_NO_PENDING_DIALOGS
void removePendingDialog(int identifier) {
//todo(threads) TQMutexLocker dialogsLocker( &dialogsMutex );
pendingDialogs.remove(identifier);
}
#endif
uint openedDialogsCount() {
//todo(threads) TQMutexLocker dialogsLocker( &dialogsMutex );
return dialogs.count();
}
//! Used in KexiMainWindowImple::closeProject()
void clearDialogs() {
//todo(threads) TQMutexLocker dialogsLocker( &dialogsMutex );
dialogs.clear();
#ifndef KEXI_NO_PENDING_DIALOGS
pendingDialogs.clear();
#endif
}
/*! Toggles last checked view mode radio action, if available. */
void toggleLastCheckedMode()
{
if (curDialog.isNull())
return;
TDERadioAction *ra = actions_for_view_modes[ curDialog->currentViewMode() ];
if (ra)
ra->setChecked(true);
// if (!last_checked_mode)
// return;
// last_checked_mode->setChecked(true);
}
/*
void updatePropEditorDockWidthInfo() {
if (propEditor) {
KDockWidget *dw = (KDockWidget *)propEditor->parentWidget();
#if defined(KDOCKWIDGET_P)
KDockSplitter *ds = (KDockSplitter *)dw->parentWidget();
if (ds) {
propEditorDockSeparatorPos = ds->separatorPosInPercent();*/
/* if (propEditorDockSeparatorPos<=0) {
config->setGroup("MainWindow");
propEditorDockSeparatorPos = config->readNumEntry("RightDockPosition", 80);
ds->setSeparatorPos(propEditorDockSeparatorPos, true);
}*/
/*}
#endif
}
}*/
void showStartProcessMsg(const TQStringList& args)
{
wnd->showErrorMessage(i18n("Could not start %1 application.").arg(KEXI_APP_NAME),
i18n("Command \"%1\" failed.").arg(args.join(" ")));
}
void hideMenuItem(const TQString& menuName, const TQString& itemText, bool alsoSeparator)
{
TQPopupMenu *pm = popups[menuName.ascii()];
if (!pm)
return;
uint i=0;
const uint c = pm->count();
for (;i<c;i++) {
kdDebug() << pm->text( pm->idAt(i) ) <<endl;
if (pm->text( pm->idAt(i) ).lower().stripWhiteSpace()==itemText.lower().stripWhiteSpace())
break;
}
if (i<c) {
pm->setItemVisible( pm->idAt(i), false );
if (alsoSeparator)
pm->setItemVisible( pm->idAt(i+1), false ); //also separator
}
}
void disableMenuItem(const TQString& menuName, const TQString& itemText)
{
TQPopupMenu *pm = popups[menuName.ascii()];
if (!pm)
return;
uint i=0;
const uint c = pm->count();
for (;i<c;i++) {
if (pm->text( pm->idAt(i) ).lower().stripWhiteSpace()==itemText.lower().stripWhiteSpace())
break;
}
if (i<c)
pm->setItemEnabled( pm->idAt(i), false );
}
void updatePropEditorVisibility(int viewMode)
{
if (propEditorToolWindow) {
if (viewMode==0 || viewMode==Kexi::DataViewMode) {
#ifdef PROPEDITOR_VISIBILITY_CHANGES
wnd->makeDockInvisible( wnd->manager()->findWidgetParentDock(propEditor) );
// propEditorToolWindow->hide();
#endif
} else {
//propEditorToolWindow->show();
TQWidget *origFocusWidget = tqApp->focusWidget();
wnd->makeWidgetDockVisible(propEditorTabWidget);
if (origFocusWidget)
origFocusWidget->setFocus();
/*moved
#if defined(KDOCKWIDGET_P)
KDockWidget *dw = (KDockWidget *)propEditor->parentWidget();
KDockSplitter *ds = (KDockSplitter *)dw->parentWidget();
ds->setSeparatorPosInPercent(config->readNumEntry("RightDockPosition", 80));//%
#endif*/
}
}
}
void restoreNavigatorWidth()
{
#if defined(KDOCKWIDGET_P)
if (wnd->mdiMode()==KMdi::ChildframeMode || wnd->mdiMode()==KMdi::TabPageMode) {
KDockWidget *dw = (KDockWidget *)nav->parentWidget();
KDockSplitter *ds = (KDockSplitter *)dw->parentWidget();
// ds->setKeepSize(true);
config->setGroup("MainWindow");
# if TDE_VERSION >= TDE_MAKE_VERSION(3,4,0)
if (wasAutoOpen) //(dw2->isVisible())
// ds->setSeparatorPosInPercent( 100 * nav->width() / wnd->width() );
ds->setSeparatorPosInPercent(
TQMAX(TQMAX( config->readNumEntry("LeftDockPositionWithAutoOpen",20),
config->readNumEntry("LeftDockPosition",20)),20)
);
else
ds->setSeparatorPosInPercent(
TQMAX(20, config->readNumEntry("LeftDockPosition", 20/* % */)));
// dw->resize( d->config->readNumEntry("LeftDockPosition", 115/* % */), dw->height() );
# else
//there were problems on KDE < 3.4
ds->setSeparatorPosInPercent( 20 );
# endif
//if (!wasAutoOpen) //(dw2->isVisible())
// ds->setSeparatorPos( ds->separatorPos(), true );
}
#endif
}
template<class type>
type *openedCustomObjectsForItem(KexiPart::Item* item, const char* name)
{
if (!item || !name) {
kdWarning() <<
"KexiMainWindowImpl::Private::openedCustomObjectsForItem(): !item || !name" << endl;
return 0;
}
TQString key( TQString::number(item->identifier()) + name );
return dynamic_cast<type*>( m_openedCustomObjectsForItem.find( key.latin1() ) );
}
void addOpenedCustomObjectForItem(KexiPart::Item* item, TQObject* object, const char* name)
{
TQString key = TQString::number(item->identifier()) + name;
m_openedCustomObjectsForItem.insert( key.latin1(), object );
}
KexiFindDialog *findDialog() {
if (!m_findDialog) {
m_findDialog = new KexiFindDialog(wnd);
m_findDialog->setActions( action_edit_findnext, action_edit_findprev,
action_edit_replace, action_edit_replace_all );
/* connect(m_findDialog, TQT_SIGNAL(findNext()), action_edit_findnext, TQT_SLOT(activate()));
connect(m_findDialog, TQT_SIGNAL(find()), wnd, TQT_SLOT(slotEditFindNext()));
connect(m_findDialog, TQT_SIGNAL(replace()), wnd, TQT_SLOT(slotEditReplaceNext()));
connect(m_findDialog, TQT_SIGNAL(replaceAll()), wnd, TQT_SLOT(slotEditReplaceAll()));*/
}
return m_findDialog;
}
/*! Updates the find/replace dialog depending on the active view.
Nothing is performed if the dialog is not instantiated yet or is invisible. */
void updateFindDialogContents(bool createIfDoesNotExist = false) {
if (!createIfDoesNotExist && (!m_findDialog || !m_findDialog->isVisible()))
return;
KexiSearchAndReplaceViewInterface* iface = currentViewSupportingSearchAndReplaceInterface();
if (!iface) {
if (m_findDialog) {
m_findDialog->setButtonsEnabled(false);
m_findDialog->setLookInColumnList(TQStringList(), TQStringList());
}
return;
}
//! @todo use ->caption() here, depending on global settings related to displaying captions
findDialog()->setObjectNameForCaption(curDialog->partItem()->name());
TQStringList columnNames;
TQStringList columnCaptions;
TQString currentColumnName; // for 'look in'
if (!iface->setupFindAndReplace(columnNames, columnCaptions, currentColumnName)) {
m_findDialog->setButtonsEnabled(false);
m_findDialog->setLookInColumnList(TQStringList(), TQStringList());
return;
}
m_findDialog->setButtonsEnabled(true);
/* //update "look in" list
KexiTableViewColumn::List columns( dataAwareObject()->data()->columns );
TQStringList columnNames;
TQStringList columnCaptions;
for (KexiTableViewColumn::ListIterator it(columns); it.current(); ++it) {
if (!it.current()->visible())
continue;
columnNames.append( it.current()->field()->name() );
columnCaptions.append( it.current()->captionAliasOrName() );
}*/
const TQString prevColumnName( m_findDialog->currentLookInColumnName());
m_findDialog->setLookInColumnList(columnNames, columnCaptions);
m_findDialog->setCurrentLookInColumnName( prevColumnName );
}
//! \return the current view if it supports \a actionName, otherwise returns 0.
KexiViewBase *currentViewSupportingAction(const char* actionName) const
{
if (!curDialog)
return 0;
KexiViewBase *view = curDialog->selectedView();
if (!view)
return 0;
TDEAction *action = view->sharedAction(actionName);
if (!action || !action->isEnabled())
return 0;
return view;
}
//! \return the current view if it supports KexiSearchAndReplaceViewInterface.
KexiSearchAndReplaceViewInterface* currentViewSupportingSearchAndReplaceInterface() const
{
if (!curDialog)
return 0;
KexiViewBase *view = curDialog->selectedView();
if (!view)
return 0;
return dynamic_cast<KexiSearchAndReplaceViewInterface*>(view);
}
KexiMainWindowImpl *wnd;
KexitStatusBar *statusBar;
KexiProject *prj;
TDEConfig *config;
#ifndef KEXI_NO_CTXT_HELP
KexiContextHelp *ctxHelp;
#endif
KexiBrowser *nav;
KTabWidget *propEditorTabWidget;
//! poits to kexi part which has been previously used to setup proppanel's tabs using
//! KexiPart::setupCustomPropertyPanelTabs(), in updateCustomPropertyPanelTabs().
TQGuardedPtr<KexiPart::Part> partForPreviouslySetupPropertyPanelTabs;
TQMap<KexiPart::Part*, int> recentlySelectedPropertyPanelPages;
TQGuardedPtr<KexiPropertyEditorView> propEditor;
TQGuardedPtr<KoProperty::Set> propBuffer;
KXMLGUIClient *curDialogGUIClient, *curDialogViewGUIClient,
*closedDialogGUIClient, *closedDialogViewGUIClient;
TQGuardedPtr<KexiDialogBase> curDialog;
KexiNameDialog *nameDialog;
TQTimer timer; //helper timer
// TQSignalMapper *actionMapper;
TQAsciiDict<TQPopupMenu> popups; //list of menu popups
TQPopupMenu *createMenu;
TQString origAppCaption; //<! original application's caption (without project name)
TQString appCaptionPrefix; //<! application's caption prefix - prj name (if opened), else: null
#ifndef KEXI_SHOW_UNIMPLEMENTED
TDEActionMenu *dummy_action;
#endif
//! project menu
TDEAction *action_save, *action_save_as, *action_close,
*action_project_properties, *action_open_recent_more,
*action_project_relations, *action_project_import_data_table,
*action_project_export_data_table,
*action_project_print, *action_project_print_preview,
*action_project_print_setup;
// TDERecentFilesAction *action_open_recent;
TDEActionMenu *action_open_recent, *action_show_other;
// int action_open_recent_more_id;
int action_open_recent_projects_title_id,
action_open_recent_connections_title_id;
//! edit menu
TDEAction *action_edit_delete, *action_edit_delete_row,
*action_edit_cut, *action_edit_copy, *action_edit_paste,
*action_edit_find, *action_edit_findnext, *action_edit_findprev,
*action_edit_replace, *action_edit_replace_all,
*action_edit_select_all,
*action_edit_undo, *action_edit_redo,
*action_edit_insert_empty_row,
*action_edit_edititem, *action_edit_clear_table,
*action_edit_paste_special_data_table,
*action_edit_copy_special_data_table;
//! view menu
TDEAction *action_view_nav, *action_view_propeditor, *action_view_mainarea;
TDERadioAction *action_view_data_mode, *action_view_design_mode, *action_view_text_mode;
TQIntDict<TDERadioAction> actions_for_view_modes;
// TDERadioAction *last_checked_mode;
#ifndef KEXI_NO_CTXT_HELP
TDEToggleAction *action_show_helper;
#endif
//! data menu
TDEAction *action_data_save_row;
TDEAction *action_data_cancel_row_changes;
TDEAction *action_data_execute;
//! format menu
TDEAction *action_format_font;
//! tools menu
TDEAction *action_tools_data_migration, *action_tools_compact_database;
TDEActionMenu *action_tools_scripts;
//! window menu
TDEAction *action_window_next, *action_window_previous;
//! settings menu
TDEAction *action_configure;
//! for dock windows
KMdiToolViewAccessor* navToolWindow;
KMdiToolViewAccessor* propEditorToolWindow;
TQGuardedPtr<TQWidget> focus_before_popup;
// KexiRelationPart *relationPart;
int privateIDCounter; //!< counter: ID for private "document" like Relations window
bool block_KMdiMainFrm_eventFilter : 1;
//! Set to true only in destructor, used by closeDialog() to know if
//! user can cancel dialog closing. If true user even doesn't see any messages
//! before closing a dialog. This is for extremely sanity... and shouldn't be even needed.
bool forceDialogClosing : 1;
//! Indicates that we're inside closeDialog() method - to avoid inf. recursion
//! on dialog removing
bool insideCloseDialog : 1;
#ifndef KEXI_NO_PENDING_DIALOGS
//! Used in executeActionWhenPendingJobsAreFinished().
enum ActionToExecuteWhenPendingJobsAreFinished {
NoAction,
QuitAction,
CloseProjectAction
};
ActionToExecuteWhenPendingJobsAreFinished actionToExecuteWhenPendingJobsAreFinished;
void executeActionWhenPendingJobsAreFinished() {
ActionToExecuteWhenPendingJobsAreFinished a = actionToExecuteWhenPendingJobsAreFinished;
actionToExecuteWhenPendingJobsAreFinished = NoAction;
switch (a) {
case QuitAction:
tqApp->quit();
break;
case CloseProjectAction:
wnd->closeProject();
break;
default:;
}
}
#endif
//! Used for delayed dialogs closing for 'close all'
TQPtrList<KexiDialogBase> windowsToClose;
//! Opened page setup dialogs, used by printOrPrintPreviewForItem().
TQIntDict<KexiDialogBase> pageSetupDialogs;
/*! A map from Kexi dialog to "print setup" part item's ID of the data item
used by closeDialog() to find an ID of the data item, so the entry
can be removed from pageSetupDialogs dictionary. */
TQMap<int, int> pageSetupDialogItemID2dataItemID_map;
//! Used in several places to show info dialog at startup (only once per session)
//! before displaying other stuff
bool showImportantInfoOnStartup : 1;
// //! Used sometimes to block showErrorMessage()
// bool disableErrorMessages : 1;
//! Indicates if project is started in User Mode
bool userMode : 1;
//! Indicates if project navigator should be visible
bool isProjectNavigatorVisible : 1;
//! Used on opening 1st child window
bool maximizeFirstOpenedChildFrm : 1;
//! Set in restoreSettings() and used in initNavigator()
//! to customize navigator visibility on startup
bool forceShowProjectNavigatorOnCreation : 1;
bool forceHideProjectNavigatorOnCreation : 1;
bool navWasVisibleBeforeProjectClosing : 1;
bool saveSettingsForShowProjectNavigator : 1;
#ifdef HAVE_KNEWSTUFF
KexiNewStuff *newStuff;
#endif
//! Used by openedCustomObjectsForItem() and addOpenedCustomObjectForItem()
TQAsciiDict<TQObject> m_openedCustomObjectsForItem;
int propEditorDockSeparatorPos, navDockSeparatorPos;
// int navDockSeparatorPosWithAutoOpen;
bool wasAutoOpen;
bool dialogExistedBeforeCloseProject;
KMdi::MdiMode mdiModeToSwitchAfterRestart;
private:
//! @todo move to KexiProject
KexiDialogDict dialogs;
#ifndef KEXI_NO_PROCESS_EVENTS
TQMap<int, PendingJobType> pendingDialogs; //!< part item identifiers for dialogs whoose opening has been started
//todo(threads) TQMutex dialogsMutex; //!< used for locking dialogs and pendingDialogs dicts
#endif
KexiFindDialog *m_findDialog;
};
|