Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cfwl_comboedit.cpp
Go to the documentation of this file.
1// Copyright 2016 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#include "xfa/fwl/cfwl_comboedit.h"
8
9#include "xfa/fde/cfde_texteditengine.h"
10#include "xfa/fwl/cfwl_combobox.h"
11#include "xfa/fwl/cfwl_messagemouse.h"
12
13namespace pdfium {
14
15CFWL_ComboEdit::CFWL_ComboEdit(CFWL_App* app,
16 const Properties& properties,
17 CFWL_Widget* pOuter)
18 : CFWL_Edit(app, properties, pOuter) {}
19
20CFWL_ComboEdit::~CFWL_ComboEdit() = default;
21
22void CFWL_ComboEdit::ClearSelected() {
25}
26
27void CFWL_ComboEdit::SetSelected() {
29 SelectAll();
30}
31
32void CFWL_ComboEdit::OnProcessMessage(CFWL_Message* pMessage) {
33 bool backDefault = true;
34 switch (pMessage->GetType()) {
37 backDefault = false;
38 break;
39 }
42 backDefault = false;
43 break;
44 }
46 CFWL_MessageMouse* pMsg = static_cast<CFWL_MessageMouse*>(pMessage);
47 if ((pMsg->m_dwCmd == CFWL_MessageMouse::MouseCommand::kLeftButtonDown) &&
50 }
51 break;
52 }
53 default:
54 break;
55 }
56 if (backDefault)
58}
59
60} // namespace pdfium
#define FWL_STATE_WGT_Focused
Definition cfwl_widget.h:44
void OnProcessMessage(CFWL_Message *pMessage) override
~CFWL_ComboEdit() override
void OnProcessMessage(CFWL_Message *pMessage) override
CFWL_Edit(CFWL_App *app, const Properties &properties, CFWL_Widget *pOuter)
Definition cfwl_edit.cpp:52
const CFX_RectF & GetRTClient() const
Definition cfwl_edit.h:108
Type GetType() const
void RepaintRect(const CFX_RectF &pRect)
Properties m_Properties