Обсуждение: [pgAdmin III] #250: Extend the syntax highlighting to setting sql commands in upper

Поиск
Список
Период
Сортировка

[pgAdmin III] #250: Extend the syntax highlighting to setting sql commands in upper

От
"pgAdmin Trac"
Дата:
#250: Extend the syntax highlighting to setting sql commands in upper
-----------------------+----------------------------------------------------
 Reporter:  Andreas    |       Owner:  dpage
     Type:  feature    |      Status:  new  
 Priority:  minor      |   Milestone:       
Component:  pgadmin    |     Version:  1.12 
 Keywords:  querytool  |    Platform:  all  
-----------------------+----------------------------------------------------


--
Ticket URL: <http://code.pgadmin.org/trac/ticket/250>
pgAdmin III <http://code.pgadmin.org/trac/>
pgAdmin III

Re: [pgAdmin III] #250: Extend the syntax highlighting to setting sql commands in upper

От
"pgAdmin Trac"
Дата:
#250: Extend the syntax highlighting to setting sql commands in upper
-----------------------+----------------------------------------------------
 Reporter:  Andreas    |       Owner:  dpage
     Type:  feature    |      Status:  new  
 Priority:  minor      |   Milestone:       
Component:  pgadmin    |     Version:  1.12 
 Keywords:  querytool  |    Platform:  all  
-----------------------+----------------------------------------------------

Comment(by gleu):

 You're right. And as a matter of fact, it's quite easy. Here is the diff
 to handle this:

 diff --git a/pgadmin/ctl/ctlSQLBox.cpp b/pgadmin/ctl/ctlSQLBox.cpp
 index 3cd5577..26cdb9c 100644
 --- a/pgadmin/ctl/ctlSQLBox.cpp
 +++ b/pgadmin/ctl/ctlSQLBox.cpp
 @@ -114,6 +114,8 @@ void ctlSQLBox::Create(wxWindow *parent, wxWindowID
 id, const wxPoint& pos, cons
         StyleSetFont(i, fntSQLBox);
     }

 +    StyleSetCase(5, wxSTC_CASE_UPPER);
 +
     // Margin style
     StyleSetBackground(wxSTC_STYLE_LINENUMBER,
 settings->GetSQLMarginBackgroundColour());

 But I think we should have an option to activate this. I'm gonna work on
 it, unless someone wants to do it before :)

--
Ticket URL: <http://code.pgadmin.org/trac/ticket/250#comment:1>
pgAdmin III <http://code.pgadmin.org/trac/>
pgAdmin III

Re: [pgAdmin III] #250: Extend the syntax highlighting to setting sql commands in upper

От
"pgAdmin Trac"
Дата:
#250: Extend the syntax highlighting to setting sql commands in upper
-----------------------+----------------------------------------------------
 Reporter:  Andreas    |       Owner:  gleu    
     Type:  feature    |      Status:  assigned
 Priority:  minor      |   Milestone:          
Component:  pgadmin    |     Version:  1.12    
 Keywords:  querytool  |    Platform:  all     
-----------------------+----------------------------------------------------
Changes (by gleu):

  * owner:  dpage => gleu
  * status:  new => assigned


--
Ticket URL: <http://code.pgadmin.org/trac/ticket/250#comment:2>
pgAdmin III <http://code.pgadmin.org/trac/>
pgAdmin III

Re: [pgAdmin III] #250: Extend the syntax highlighting to setting sql commands in upper

От
"pgAdmin Trac"
Дата:
#250: Extend the syntax highlighting to setting sql commands in upper
----------------------+-----------------------------------------------------
  Reporter:  Andreas  |       Owner:  gleu     
      Type:  feature  |      Status:  closed   
  Priority:  minor    |   Milestone:  1.14     
 Component:  pgadmin  |     Version:  1.12     
Resolution:  fixed    |    Keywords:  querytool
  Platform:  all      |  
----------------------+-----------------------------------------------------
Changes (by gleu):

  * status:  assigned => closed
  * resolution:  => fixed
  * milestone:  => 1.14


Comment:

 Implemented on
 http://git.postgresql.org/gitweb?p=pgadmin3.git;a=commit;h=5af897371b22c729c409d2bc7d4576e8426f01b3

--
Ticket URL: <http://code.pgadmin.org/trac/ticket/250#comment:3>
pgAdmin III <http://code.pgadmin.org/trac/>
pgAdmin III