OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 virtual bool supportsPlaceholder() const; | 314 virtual bool supportsPlaceholder() const; |
315 virtual void updatePlaceholderText(); | 315 virtual void updatePlaceholderText(); |
316 virtual bool isEmptyValue() const OVERRIDE { return innerTextValue().isEmpty
(); } | 316 virtual bool isEmptyValue() const OVERRIDE { return innerTextValue().isEmpty
(); } |
317 virtual bool isEmptySuggestedValue() const { return suggestedValue().isEmpty
(); } | 317 virtual bool isEmptySuggestedValue() const { return suggestedValue().isEmpty
(); } |
318 virtual void handleFocusEvent(); | 318 virtual void handleFocusEvent(); |
319 virtual void handleBlurEvent(); | 319 virtual void handleBlurEvent(); |
320 | 320 |
321 virtual bool isOptionalFormControl() const { return !isRequiredFormControl()
; } | 321 virtual bool isOptionalFormControl() const { return !isRequiredFormControl()
; } |
322 virtual bool isRequiredFormControl() const; | 322 virtual bool isRequiredFormControl() const; |
323 virtual bool recalcWillValidate() const; | 323 virtual bool recalcWillValidate() const; |
324 virtual void requiredAttributeChanged() OVERRIDE; | |
325 | 324 |
326 void updateType(); | 325 void updateType(); |
327 | 326 |
328 virtual void subtreeHasChanged(); | 327 virtual void subtreeHasChanged(); |
329 | 328 |
330 bool getAllowedValueStepWithDecimalPlaces(AnyStepHandling, double*, unsigned
*) const; | 329 bool getAllowedValueStepWithDecimalPlaces(AnyStepHandling, double*, unsigned
*) const; |
331 | 330 |
332 // Helper for stepUp()/stepDown(). Adds step value * count to the current v
alue. | 331 // Helper for stepUp()/stepDown(). Adds step value * count to the current v
alue. |
333 void applyStep(double count, AnyStepHandling, bool sendChangeEvent, Exceptio
nCode&); | 332 void applyStep(double count, AnyStepHandling, bool sendChangeEvent, Exceptio
nCode&); |
334 double alignValueForStep(double value, double step, unsigned currentDecimalP
laces, unsigned stepDecimalPlaces); | 333 double alignValueForStep(double value, double step, unsigned currentDecimalP
laces, unsigned stepDecimalPlaces); |
(...skipping 23 matching lines...) Expand all Loading... |
358 bool m_stateRestored : 1; | 357 bool m_stateRestored : 1; |
359 bool m_parsingInProgress : 1; | 358 bool m_parsingInProgress : 1; |
360 bool m_wasModifiedByUser : 1; | 359 bool m_wasModifiedByUser : 1; |
361 bool m_canReceiveDroppedFiles : 1; | 360 bool m_canReceiveDroppedFiles : 1; |
362 OwnPtr<InputType> m_inputType; | 361 OwnPtr<InputType> m_inputType; |
363 }; | 362 }; |
364 | 363 |
365 } //namespace | 364 } //namespace |
366 | 365 |
367 #endif | 366 #endif |
OLD | NEW |