Changeset View
Changeset View
Standalone View
Standalone View
src/dolphinviewcontainer.cpp
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Line(s) | 72 | { | |||
---|---|---|---|---|---|
75 | m_topLayout = new QVBoxLayout(this); | 75 | m_topLayout = new QVBoxLayout(this); | ||
76 | m_topLayout->setSpacing(0); | 76 | m_topLayout->setSpacing(0); | ||
77 | m_topLayout->setContentsMargins(0, 0, 0, 0); | 77 | m_topLayout->setContentsMargins(0, 0, 0, 0); | ||
78 | 78 | | |||
79 | m_navigatorWidget = new QWidget(this); | 79 | m_navigatorWidget = new QWidget(this); | ||
80 | QHBoxLayout* navigatorLayout = new QHBoxLayout(m_navigatorWidget); | 80 | QHBoxLayout* navigatorLayout = new QHBoxLayout(m_navigatorWidget); | ||
81 | navigatorLayout->setSpacing(0); | 81 | navigatorLayout->setSpacing(0); | ||
82 | navigatorLayout->setContentsMargins(0, 0, 0, 0); | 82 | navigatorLayout->setContentsMargins(0, 0, 0, 0); | ||
83 | m_navigatorWidget->setWhatsThis(xi18nc("@info:whatsthis location bar", | ||||
84 | "<para>This line describes the location of the files and folders " | ||||
85 | "displayed below.</para><para>The name of the currently viewed " | ||||
86 | "folder can be read at the very right. To the left of it is the " | ||||
87 | "name of the folder that contains it. The whole line is called " | ||||
88 | "the <emphasis>path</emphasis> to the current location because " | ||||
89 | "following these folders from left to right leads here.</para>" | ||||
90 | "<para>The path is displayed on the <emphasis>location bar</emphasis> " | ||||
91 | "which is more powerful than one would expect. To learn more " | ||||
92 | "about the basic and advanced features of the location bar " | ||||
93 | "<link url='help:/dolphin/location-bar.html'>click here</link>. " | ||||
94 | "This will open the dedicated page in the Handbook.</para>")); | ||||
83 | 95 | | |||
84 | m_urlNavigator = new KUrlNavigator(DolphinPlacesModelSingleton::instance().placesModel(), url, this); | 96 | m_urlNavigator = new KUrlNavigator(DolphinPlacesModelSingleton::instance().placesModel(), url, this); | ||
85 | connect(m_urlNavigator, &KUrlNavigator::activated, | 97 | connect(m_urlNavigator, &KUrlNavigator::activated, | ||
86 | this, &DolphinViewContainer::activate); | 98 | this, &DolphinViewContainer::activate); | ||
87 | connect(m_urlNavigator->editor(), &KUrlComboBox::completionModeChanged, | 99 | connect(m_urlNavigator->editor(), &KUrlComboBox::completionModeChanged, | ||
88 | this, &DolphinViewContainer::saveUrlCompletionMode); | 100 | this, &DolphinViewContainer::saveUrlCompletionMode); | ||
89 | 101 | | |||
90 | const GeneralSettings* settings = GeneralSettings::self(); | 102 | const GeneralSettings* settings = GeneralSettings::self(); | ||
Show All 11 Lines | |||||
102 | m_emptyTrashButton->hide(); | 114 | m_emptyTrashButton->hide(); | ||
103 | 115 | | |||
104 | m_searchBox = new DolphinSearchBox(this); | 116 | m_searchBox = new DolphinSearchBox(this); | ||
105 | m_searchBox->hide(); | 117 | m_searchBox->hide(); | ||
106 | connect(m_searchBox, &DolphinSearchBox::activated, this, &DolphinViewContainer::activate); | 118 | connect(m_searchBox, &DolphinSearchBox::activated, this, &DolphinViewContainer::activate); | ||
107 | connect(m_searchBox, &DolphinSearchBox::closeRequest, this, &DolphinViewContainer::closeSearchBox); | 119 | connect(m_searchBox, &DolphinSearchBox::closeRequest, this, &DolphinViewContainer::closeSearchBox); | ||
108 | connect(m_searchBox, &DolphinSearchBox::searchRequest, this, &DolphinViewContainer::startSearching); | 120 | connect(m_searchBox, &DolphinSearchBox::searchRequest, this, &DolphinViewContainer::startSearching); | ||
109 | connect(m_searchBox, &DolphinSearchBox::returnPressed, this, &DolphinViewContainer::requestFocus); | 121 | connect(m_searchBox, &DolphinSearchBox::returnPressed, this, &DolphinViewContainer::requestFocus); | ||
122 | m_searchBox->setWhatsThis(xi18nc("@info:whatsthis findbar", | ||||
123 | "<para>This helps you find files and folders. Enter a <emphasis>" | ||||
124 | "search term</emphasis> and specify search settings with the " | ||||
125 | "buttons at the bottom:<list><item>Filename/Content: " | ||||
126 | "Does the item you are looking for contain the search terms " | ||||
127 | "within its filename or its contents?<nl/>The contents of images, " | ||||
128 | "audio files and videos will not be searched.</item><item>" | ||||
129 | "From Here/Everywhere: Do you want to search in this " | ||||
130 | "folder and its sub-folders or everywhere?</item><item>" | ||||
131 | "More Options: Click this to search by media type, access " | ||||
132 | "time or rating.</item><item>More Search Tools: Install other " | ||||
133 | "means to find an item.</item></list></para>")); | ||||
110 | 134 | | |||
111 | m_messageWidget = new KMessageWidget(this); | 135 | m_messageWidget = new KMessageWidget(this); | ||
112 | m_messageWidget->setCloseButtonVisible(true); | 136 | m_messageWidget->setCloseButtonVisible(true); | ||
113 | m_messageWidget->hide(); | 137 | m_messageWidget->hide(); | ||
114 | 138 | | |||
115 | #ifndef Q_OS_WIN | 139 | #ifndef Q_OS_WIN | ||
116 | if (getuid() == 0) { | 140 | if (getuid() == 0) { | ||
117 | 141 | | |||
▲ Show 20 Lines • Show All 662 Lines • Show Last 20 Lines |