[Qgis-developer] Python support in project file
Nathan Woodrow
madmanwoo at gmail.com
Tue Aug 21 04:48:42 PDT 2012
True, my bad :)
In that case I would reduce the level of the mInfoBar->pushWidget(
mMacrosWarn, 2 ); to 1 as it really should be yellow.
- Nathan
On Tue, Aug 21, 2012 at 9:34 PM, Giuseppe Sucameli <sucameli at faunalia.it> wrote:
> Hi,
>
> On Tue, Aug 21, 2012 at 1:14 PM, Nathan Woodrow <madmanwoo at gmail.com> wrote:
>> I'm also thinking that I might be good to have a light yellow bar for
>> warnings, light red for error, and light blue for information. Pick
>> the main colour of the icon and change it enough so the icon and bar
>> stand out.
>
> The bar is already red for critical messages, orange-yellow for warnings
> and light blue for informations :)
> Have a look at the QgsMessageBar::pushWidget() method [1].
>
> BTW, if you tell me the new hex of filling and border colors
> I'll change them.
>
> Cheers.
>
> [1] https://github.com/brushtyler/Quantum-GIS/commit/382187ba0b0be6e5b0e64e654b6c66f2271838fe#L4R153
>
>> I think people will be very happy with addition.
>>
>> - Nathan
>>
>>>
>>> Opinions are welcome!
>>> Regards.
>>>
>>>> - Nathan
>>>>
>>>>
>>>> On Tue, Aug 21, 2012 at 5:54 PM, Nathan Woodrow <madmanwoo at gmail.com> wrote:
>>>>> Very nice Giiseppe. Will test soon.
>>>>>
>>>>> Sent from some fancy phone looking thingo
>>>>> From: Giuseppe Sucameli
>>>>> Sent: 21/08/2012 5:24 PM
>>>>> To: qgis-developer ML
>>>>> Subject: Re: [Qgis-developer] Python support in project file
>>>>> Hi all,
>>>>>
>>>>> I've pushed the code on the branch project_macros on my
>>>>> QGis fork [1].
>>>>>
>>>>> The macros python code is loaded into a dummy module,
>>>>> in this manner it can be unloaded when needed.
>>>>>
>>>>> On Thu, May 31, 2012 at 8:30 AM, Martin Dobias <wonder.sk at gmail.com> wrote:
>>>>>> On Thu, May 31, 2012 at 2:49 AM, Giuseppe Sucameli <sucameli at faunalia.it> wrote:
>>>>>>> I would save it into the project (embedded in the XML) until we will
>>>>>>> have a different way to pack project and related stuff together.
>>>>>>
>>>>>> Ok - hopefully XML will not choke python indentation :)
>>>>>
>>>>> It seems conversion to XML doesn't break anything.
>>>>>
>>>>>>> BTW one popup only would be needed, i.e. the project is loaded.
>>>>>>> If the user trust macros then they become active and ready to be
>>>>>>> executed.
>>>>>>
>>>>>> See Nathan's post - he better explains what I have meant.
>>>>>
>>>>> I developed a QgsMessageBar class to display information
>>>>> to the user using a non-blocking widget.
>>>>>
>>>>> The bar allows to push more messages as in a queue, then
>>>>> displays them one by one beside to a close button.
>>>>> The button remove the current message or the bar when the
>>>>> message queue is empty.
>>>>>
>>>>> The QgisApp instance creates a object of that class and
>>>>> puts it above the canvas and also on the top of it (so the canvas
>>>>> is not refreshed when the bar is shown or hidden as no resize
>>>>> event occurs).
>>>>>
>>>>> Please, could you test it and report here?
>>>>>
>>>>> Regards.
>>>>>
>>>>> --
>>>>> Giuseppe Sucameli - Faunalia
>>>>> _______________________________________________
>>>>> Qgis-developer mailing list
>>>>> Qgis-developer at lists.osgeo.org
>>>>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>>> _______________________________________________
>>>> Qgis-developer mailing list
>>>> Qgis-developer at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>>
>>>
>>>
>>> --
>>> Giuseppe Sucameli - Faunalia
>> _______________________________________________
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
>
> --
> Giuseppe Sucameli - Faunalia
More information about the Qgis-developer
mailing list